ML-based IDS detect only a fraction of unseen attacks, exposing efficacy illusion
ML-based intrusion detection systems generalize poorly to attacks not seen during training
Security & privacy arXiv 2 Sep 2026 Measurement Simulation evidence
Published as “Evaluating ML-based Intrusion Detection Systems: The Illusion of Model Efficacy”
Why it matters
High reported accuracy on benchmark datasets can be misleading; deployed IDS may miss the majority of attacks, underscoring the need for rigorous cross-attack and cross-dataset evaluation before real-world adoption.
Summary
ML-based NIDS achieve near-perfect intra-day accuracy (99.92%) but fail to generalize to unseen attacks, with cross-day accuracy often dropping below 50%. The XGBoost model with Z-normalization and Random Under-Sampling shows the best (though still limited) generalization, and some attack pairs transfer modestly (e.g., DoS to Web attacks 93.6%). Evidence is based on a single public benchmark (CICIDS2017) and limited metrics, so the claim of high efficacy is weak.
What they found 5
- XGBoost with Z-normalization and Random Under-Sampling shows the strongest cross-day generalization among tested configs
“Among all tested configurations, using all features, the XGBoost classifier with Z-normalization and Random Under-Sampling demonstrated the most remarkable generalization capabilities, as depicted in Fig. 2.”
- DoS-trained classifier attains 93.6% accuracy on Web Attack traffic
“The classifier trained on DoS day-dataset achieved 93.6% accuracy when tested on Web Attack traffic”
- Intra-day training on the full dataset yields near-perfect accuracy
“Applying the presented configuration achieved near-perfect accuracy (99.92%)”
- When forced to detect unseen attacks, overall accuracy can fall below 50%
“resulting in the overall accuracy falling below 50%.”
- Generalization between attack types is often asymmetric
“generalization between attack types tends to be asymmetric.”
Caveats 7
- Overall accuracy drops below 50% for unseen attacks despite high intra-day scores.
- Off-diagonal values in cross-day matrices show severe detection declines, especially for early-day datasets.
- Local SHAP feature selection performs worse than global selection, contradicting the notion that any feature selection improves detection.
- Given the large number of models and configurations presented, reports include only accuracy and recall as the primary metrics. Additional metrics are omitted to avoid burdening the results of these small-scale experiments.
- Since the nature of the experiment is to highlight the importance of generalization and emphasize behavioral differences, rather than optimized generalization models, they are trained under default settings without fine-tuning.
- The experimental setup also involved a test case scenario for each configuration, appending all daily-file datasets into a single unified dataset, using a 75-25 train-test split.
- While same-day evaluations remained in optimal levels across all feature selection approaches, cross-day generalization remained challenging, especially for Local feature selection.
What’s new here 4
- Introduces a cross-day intra-dataset generalization test that keeps the network environment constant while varying attacks.
- Provides a systematic set of evaluation criteria for ML-based NIDS beyond standard accuracy metrics.
- Analyzes asymmetric generalization between attack types and the impact of local vs. global SHAP-based feature selection.
- Highlights the risk of over-reliance on static top-N feature selection for unseen attacks.