ML model using XGBoost to predict and classify network intrusion attacks in real network traffic data with high precision across multiple attack categories.

Network intrusions are a major cybersecurity threat. Traditional signature-based detection systems miss novel attack variants. ML-based approaches can learn behavioural patterns from historical traffic data and generalise to new, unseen attacks — making them a valuable complement to rule-based systems.
An end-to-end ML pipeline covering preprocessing, class imbalance correction with SMOTE, XGBoost model training with cross-validated hyperparameter tuning, and rigorous evaluation. Feature importance scores reveal which network traffic attributes are most predictive of attack behaviour.