XGBoost with SHAP explains and accurately detects intrusions on CICIDS2017
The proposed XGBoost-SHAP framework reliably detects malicious network activity with high accuracy and interpretability
AI/ML arXiv 4 Jun 2026 Method Prototype evidence
Published as “Explainable AI-Driven Cyber Risk Analytics and Model Reliability Assessment for Intelligent Governance of U.S. Critical Infrastructure: An XGBoost and SHAP-Based Intrusion Detection Framework”
Why it matters
If validated beyond the benchmark, the near-perfect detection combined with SHAP explanations could improve trust and decision-making for operators of critical infrastructure networks.
Summary
The study reports that a Support Vector Machine classifier achieved near-perfect discrimination of DDoS attacks versus benign traffic on the CICIDS2017 benchmark, with an AUC approaching 1.00, 2,571 true positives, 1,918 true negatives, and only eleven total misclassifications. SHAP analysis was integrated to provide feature-level explanations of model decisions, aiming to support governance transparency. The evidence is based on a single public dataset and binary classification, and the authors acknowledge that AUC can be optimistic on imbalanced data and that the work has not been tested under real-time or multi-class conditions.
What they found 2
- SVM achieved near-perfect binary DDoS detection with only 11 errors.
“The SVM correctly classified 1,918 benign traffic instances (true negatives) and 2,571 DDoS attack instances (true positives). Misclassifications were limited to seven benign records incorrectly labeled as DDoS (false positives) and four DDoS records incorrectly labeled as benign (false negatives).”
- AUC for the SVM classifier approaches 1.00, indicating near-perfect discrimination.
“The Area Under the Curve (AUC) value approaches 1.00 - essentially near-perfect discrimination between DDoS attack traffic and benign traffic across all threshold settings.”
Caveats 5
- Four false negatives (missed DDoS attacks) were observed, which the authors note are more consequential in critical infrastructure.
- The authors warn that AUC values can be misleadingly optimistic on heavily imbalanced datasets.
- The evaluation is limited to a binary DDoS vs. benign task and does not cover multi-class attack taxonomies.
- What remains, honestly, is the harder work: extending this framework to multi-class attack taxonomies, validating performance under real-time conditions and concept drift, and stress-testing explainability outputs against adversarial evasion techniques.
- AUC close to 1.00 on a binary classification task with reasonably balanced classes - as is approximately the case here - is a meaningful indicator of model quality. However, AUC values computed on heavily imbalanced datasets can be misleadingly optimistic, because the denominator of the false positive rate is dominated by the large benign class.
What’s new here 4
- Integrates SHAP explainability directly into the intrusion detection pipeline for governance use.
- Evaluates multiple classifiers (XGBoost, Random Forest, Decision Tree, Logistic Regression, SVM) on the same framework.
- Provides a reliability assessment that includes false-positive rates and discussion of model drift.
- Focuses on feature importance (flow duration, packet size, flow bytes/s, destination port) for critical infrastructure contexts.