Pre-trained models for the
AI Network Threat Detector project a full-stack Intrusion Detection System (IDS) trained on the UNSW-NB15 network traffic dataset.
1import joblib
2import pandas as pd
3
4# Load models
5binary_model = joblib.load('model1_binary.pkl')
6multiclass_model = joblib.load('model2_multiclass.pkl')
7scaler = joblib.load('scaler.pkl')
8encoders = joblib.load('encoders.pkl')
9
10# Scale features
11X_scaled = scaler.transform(your_features)
12
13# Step 1 : detect if malicious
14is_malware = binary_model.predict(X_scaled)
15
16# Step 2 : classify attack type
17attack_type = multiclass_model.predict(X_scaled)
For the complete source code, frontend, and API:
👉
github.com/Sakni-Tasnim/ai-network-threat-detector
Sakni Tasnim Telecommunications & Computer Engineering Student
🔗
GitHub •
LinkedIn