Manuscript Offprint
arXiv:2609.02469Evaluating ML-based Intrusion Detection Systems: The Illusion of Model Efficacy
Achilleas Spanos¹ and Ioanna Kantzavelou¹[0000-0001-5976-7837]
University of West Attica, Egaleo, Greece
Abstract. Intrusion Detection has been revolutionized due to the integration of Machine Learning (ML). Improved detection rate, reduced false alarms, and optimized algorithms contribute to the perception of improved systems with optimal accuracy and near-perfect performance, the illusion of model efficacy. However, the value of this effectiveness diminishes when confronted with unseen attacks. In this paper, we go beyond solely algorithmic enhancements and metric adjustments in ML-based Network Intrusion Detection Systems. We design an experiment to test the generalization capabilities of certain classifiers on unseen attacks. Our approach examines the dimensionality parameter's impact through two experimental methodologies, which are applied in two distinct settings. The experimental findings reveal how effectively the models could identify even a fraction of unseen attacks and underscore structural weaknesses in ML-based IDS research and evaluation techniques. Finally, seven evaluation criteria are outlined to address these challenges.
Keywords: Network Intrusion Detection · Asymmetric Generalization-Evaluation Methodology· Explainable AI.
1 Introduction
In the absence of effective security mechanisms that promptly restrict synchronous attacks, the area of Intrusion Detection has eventually stabilized a crucial role within Cybersecurity [29]. In recent years, it is Machine Learning that has revolutionized Intrusion Detection even more. In such ML-based studies, most researchers aim to enhance the accuracy of a detection engine [30], improve scalability [31] and interpretability [27], optimize rule generalization [32], increase zero-day attack detection [33], and strengthen its resilience to adversary techniques [35]. Only a small fraction of these research works attempt to address challenges that bridge research with real-world deployments.
Many distinct frameworks and methodologies that have been proposed prioritize different models, preprocessing techniques [34], dimensionality reduction techniques [36], and data types [26]. However, only a handful of research studies focus on the real challenges in Network Intrusion Detection Systems (NIDS) that expand beyond slightly algorithmic improvements and evaluation metrics. In particular, high accuracy against attacks within the training distribution is
A. Spanos et al.
not an indication of strong detection performance, and although it can be improved, it is already well developed.
Current literature is shifting beyond the prominent problems in network intrusion detection. Instead of focusing on zero-day robustness, interpretability, attack patterns, and relations, adversarial robustness and multimodal techniques, more and more research works propose frameworks that are evaluated on in-training-distribution data and known attacks, aiming at slight algorithmic and metric improvements.
The proposed research work attempts to address real-world problems of ML-based Network Intrusion Detection Systems. We argue that an explainable and generalized IDS would outperform any "optimal" presented IDS despite the potential tradeoffs in overall accuracy. To address this, and considering the extensive amount of research work as a motive, we design a simple yet meaningful experiment to test the generalization capabilities of classifiers, while assessing all the underlying and hidden risks it may exhibit. Additionally, we consolidate a set of evaluation criteria for ML-based NIDS, reframing the research gap around security necessities rather than benchmark metrics.
Contributions: The contributions of this paper are pointed out in the sequel:
-
We delve into zero-day robustness, instead of evaluating on in-training-distribution data and known attacks.
-
We design a simple and meaningful experiment to test the generalization capabilities of certain classifiers.
-
We assess what the experiment reveals as underlying and hidden risks that might exist in an "ideal" ML-based network IDS.
-
We explore a proposed attack-based intra-dataset generalization evaluation, providing a high-level model's generalization evaluation without introducing domain shifts.
-
We employ three feature selection approaches to examine the dimensionality parameter in the generalization behavior of classifiers, design two experimental methodologies, and apply them in two experimental settings.
-
We consolidate a set of evaluation criteria for ML-based NIDS, reframing the research gap around security necessities rather than benchmark metrics.
The remainder of this paper is organized as follows: Section 2 presents the existing work in the literature with respect to both the experimental study and the evaluation criteria for a NIDS. Section 3 demonstrates the two experimental setups, methodologies, configurations and scopes. Section 4 concerns a metric-score comparison of the selected components and parameters. In Section 5 the experimental findings are translated into actionable concerns and blind spots that exist in the literature. Systematic evaluation criteria are presented in Section 6, extending towards the enhancement of generalized intrusion detection and continual research.
2.1 Generalization Gap
The operational performance of ML-based NIDS has been frequently defined as poor generalization beyond the training distribution. In 2010, it was first argued that the inherent characteristics of intrusion detection conflict with the closed-world ML assumptions [10]. This is because deploying an ML-based NIDS exposes the target system to an adversarial setting. Subsequent empirical work has quantified this fragility through cross-dataset experimental settings.
Considering the structural similarity between CICIDS2017 and CSE-CICIDS2018, twelve supervised classifiers were trained on one dataset and evaluated on the other. The results indicated that classifiers failed to detect unseen network traffic, even when the evaluation was restricted to the same attack classes [11]. A similar generalization collapse for unsupervised models has been reported [12], which justifies the lack of real-world adoption of anomaly-based NIDS. Apruzzese et al. [13] further formalize cross-dataset evaluation over six datasets to address the specificity issue and reveal the true potential of generalized NIDS.
In contrast, Cantone et al. [14] demonstrated on four datasets that near-perfect within-dataset scores does not generalize across datasets, as there are no isolated attack-dataset pairs. In an effort to enhance rather than diagnose the cross-dataset transferability gap, Sudyana et al. introduce a lifecycle-based dataset and auto-learning features, thereby demonstrating the generalization impact.
All of these studies employ similar methodologies, with varying network environments between training and testing. This indicates that the reported drops in performance are attributable to domain shift and the novelty of attacks. The few studies that maintain the network environments identical employ Leave-One-Attack-Out protocols, where a single attack is excluded at a time ([16], [23], [25]). Similarly, other studies train anomaly detectors on benign samples and evaluate per-attack holdout [15]. However, such approaches are narrow and do not accurately reflect the simultaneous and multi-attack shift a detector encounters.
In our research work, we keep the network environment intact and examine the generalization at an advanced level. The selected approach enables us to uncover the potential for exploiting common attack patterns and conducting comprehensive generalization testing.
A. Spanos et al.
2.2 Evaluation Practices
Beyond the empirical generalization assessment, research studies transformed critical gaps into evaluation practices, shortcomings, dataset auditing, and ML security research guidelines. At the broadest level, Arp et al. [8] identify ten recurring pitfalls that distort reported performance across security-ML studies and propose actionable recommendations beyond generic benchmarks. In the network intrusion detection research domain, the gap between research results and practitioner trust has been systematically addressed [17], introducing the concept of pragmatic assessment and re-assessing the evaluation methodology to estimate the real quality of ML-based NIDS.
Numerous research studies have consolidated on the influence of datasets on the reported results and findings of NIDS [21]. Labeling errors, flow-construction and feature-extraction flaws, as well as artificial temporal separation have been documented as severe defects in CIC-IDS2017 and CSE-CIC-IDS2018 datasets. These defects could substantially alter the reported detection output ([18], [19], [20]). The suitability of datasets has been repeatedly criticized in the literature. Gharib et al. [24] assess criteria for judging the quality of IDS benchmark datasets, while some other studies question whether headline gains on these public datasets amount to real advances at all [22].
None of the research studies derive a set of evaluation criteria from an empirical generalization failure, nor pair each criterion with a concrete reporting artifact. Building upon the literature and motivated by our empirical findings presented in Section 5, we consolidate a set of evaluation criteria for ML-based NIDS. By adopting these evaluation criteria the model remains intact, operating solely as an additional layer of reporting. The selected approach reframes the research gap around security necessities rather than benchmark metrics.
3 Experimental Methodology
The experimental methodology presented in this section was designed to assess, at a high level, the ability of ML classifiers to generalize to unseen attacks. The core methodology is established on cross-attack intra-dataset evaluation to isolate the effect of unseen attacks in a controlled, reproducible, and realistic generalization test. Subsection 3.1 will provide justification for the dataset selection, which serves as the core experimental setup. Subsection 3.2 outlines the core experimental methodology, encompassing three feature-selection strategies: Full-feature-set, Local, and Greedy-global. These strategies have been evaluated through two distinct experimental testbeds.
3.1 Dataset Selection
The process of dataset selection determines the attack coverage, enables results comparison, but also operates as a methodological motive for the experimental study. A plethora of intrusion detection datasets have been studied, considering factors such as collection methodology, attack diversity, traffic characteristics, and adoption frequency within the ML-based IDS literature. An extensive review of the NIDS datasets, which is beyond the scope of this work, can be found in Goldschmidt et al. research study [37]. Due to the balance between recency and broad adoption within the research community [37], the CICIDS2017 [9] dataset has been selected. The dataset's dual-level structure includes both raw packet captures and flow characteristics. This enables fair comparisons against emerging techniques and supports multimodal intrusion detection methodologies, which combine packet payload with flow-level information.
The CICIDS2017 dataset was created through a five-day experiment, and organized into separate daily capture files, as summarized in Table 1. Each file is assigned a unique ID and is characterized by its attack scenarios and the total number of captured malicious samples.
| ID | File | Attacks | Total Malicious Samples |
|---|---|---|---|
| - | Monday-WorkingHours | Only benign | - |
| 1 | Tuesday-WorkingHours | FTP-Patator, SSH-Patator | 13835 |
| 2 | Wednesday-WorkingHours | DoS GoldenEye, DoS Hulk, DoS Slowhtpttest, DoS Slowloris, Heartbleed | 252672 |
| 3 | Thursday Morning | Web Attacks including: Brute Force, XSS, SQL Injection | 2180 |
| 4 | Thursday Afternoon | Infiltration | 36 |
| 5 | Friday Morning | Botnet | 1966 |
| 6 | Friday Afternoon Port Scan | Port Scan | 158930 |
| 7 | Friday Afternoon DDOS LOIT | DDoS | 128027 |
Table 1: Table captions should be placed above the tables.
To examine a model's generalization capabilities on unseen attacks, the daily-file split structure of the CICIDS2017 dataset is exploited, in which each daily file serves as an independent dataset for analysis. Because the Monday file of the CICIDS2017 dataset includes only benign data, it is excluded from our experimental study.
This setup leverages temporal variation, while also keeping the network environment invariant, allowing the generalization test to unseen attacks without domain shifts and feature constraints. Unlike the Leave-One-Attack-Out protocols adopted by some studies, the presented experimental setup is more broadly representative and generic. To the best of our knowledge, this cross-day intradataset generalization evaluation has not been explored in the literature, offering a high-level model's generalization evaluation without introducing domain shifts.
3.2 Experimental Design
In an effort to examine the dimensionality parameter in the generalization behavior of classifiers, three feature selection approaches have been employed, and
A. Spanos et al.
organized into two studies. The first study, referred to as “Experimental Study I”, serves as a comprehensive baseline experiment, full-feature, where no feature selection is applied, and all 77 features are retained. It isolates the classifier effect and demonstrates the generalization among distinct attacks under different sampling schemes. The second study, referred to as Experimental Study II, introduces the remaining dimensionality reduction techniques, including a local and a greedy global feature selection. The second study interprets feature importance from a trained model perspective, reflecting the realistic model's viewpoint on how features are used to make predictions, unlike overly optimistic results obtained from handcrafted selection, offering a more accurate representation of feature importance.
Both testbeds share the following methodological foundation. A binary ML classifier is trained on each daily file and evaluated on the remaining day-datasets, simulating exposure to novel attack types. Binary classification is selected to emphasize the fundamental IDS task of distinguishing malicious from benign traffic, regardless of the attack type, and therefore prioritizing attack detection over taxonomy.
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. This allows for an unbiased, consistent, and fair comparison of the general behavior of classifiers. Nevertheless, it is acknowledged that this may favor architectures robust to hyperparameters. To enable reproducibility, a fixed random state of zero is applied where applicable.
To account for class imbalance in the test sets, Random Under-Sampling is applied to each test set prior to evaluation, retaining only the original data. This ensures accuracy remains a meaningful metric. 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.
Experimental Study I: Full Featured Set On the full feature set, Study I explores the classifier capabilities and attack pattern relations. Two tree-based supervised ML classifiers are employed: Random Forest (RF), which has consistently demonstrated robust performance in recent literature [34], and XGBoost (XGB), which is known for its robustness in handling complex data. To address class imbalance, two sampling techniques have been utilized, namely, SMOTE to synthetically generate minority class instances and avoid original data information loss, and Random Under-Sampling to rely solely on the predictions on original observed data. Finally, two scaling techniques are tested: Min-Max scaling and Z-score standardization. Only slight variations in performance were observed between these two normalization techniques. A detailed version of all hyperparameters used in the experiments is presented in Table 2. In total, each model, for each day-dataset, was evaluated across all possible configuration combinations.
| Component | Option | Key Hyperparameters |
|---|---|---|
| Classifier | RFXGBoost | Estimators = 100, criterion = entropy, random state = 0Default hyperparameters, random state = 0 |
| Normalization | Z-scoreMin-Max | -Feature range = (0,1) |
| Sampling | Random Under-SamplingSMOTE | Sampling strategy = minority class number of samples, random state = 0Sampling strategy = auto, random state = 0 |
| Feature Selection | NoneLocalGlobal Mean | All 77 features usedTop 20 based on model-specific feature importanceFeatures ranked per attack, selecting the global top 20 |
Table 2: Hyperparameters and specifications
Experimental Study II: Feature Selection Set To assess the impact of feature dominance, particularly since models are not fine-tuned, and the objective is to concentrate on model-inherent behavior, feature selection is introduced in Study II. Three feature importance estimation techniques are initially considered, namely, XGBoost built-in feature importance, Permutation importance, and SHAP values. XGB feature importance measures importance based on tree splits, reflecting model usage. Permutation importance is a model-agnostic approach that evaluates a feature's contribution by reducing predictive performance when the values are randomly permuted. Finally, SHAP [38], a game-theoretic approach, assigns each feature a contribution value for individual predictions.
SHAP is adopted in our methodology due to its widespread adoption in ML explainability literature and its ability to account for feature interactions and non-linear effects as opposed to correlation-based approaches. However, we acknowledge that SHAP reflects a model's reliance, and not feature utility across datasets. A fixed value of 20 features is selected to balance informativeness and model simplicity. A broader sweep is left for future tuning-focused work.
Two selection strategies are compared. The local feature selection approach selects the top 20 features with the highest SHAP importance for the current training dataset. On a similar note, a global greedy feature importance is presented to compute the global importance. The mean absolute SHAP value for each feature is computed for each local model (Eq. 1). These values are then normalized to ensure comparability across models.
For each feature, the normalized values of all N local models are accumulated to derive a global ranking feature vector (Eq. 2), from which the identical 20 highest-ranked features are selected for all test sets.
A. Spanos et al.
The contrast between local and global feature selection seeks to determine whether models benefit more from task-specific discriminative features or from a universally consistent subset that captures a broader range of behavior. The classifier configurations remain consistent with the previously identified optimal setup, utilizing XGB with Random Under-Sampling and Z-score standardization.
4 Results
4.1 Experimental Study I
In order to test the generalization across a variety of network attack scenarios, an end-to-end experimental pipeline is constructed. The framework comprises cross-day experiments that incorporate various sampling methods and feature preprocessing techniques. Each model was trained on a specific day-dataset and tested on others to evaluate its performance while exposed to unseen attack classes. Unseen attacks are defined as those not present in the training distribution, thus representing realistic, previously unencountered threats in a real production environment.
For the train and intra-day test, a 75-25 split is applied. Figure 1 illustrates the accuracy among four configurations of RF and XGB combined with SMOTE and Random Under-Sampling.

Fig. 1: Accuracy across train-test pairs for different classifiers and sampling configurations.
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. Nevertheless, SMOTE with XGBoost exhibited comparable prediction patterns, which are omitted for brevity. As visualized, diagonal dominance is expected due to intra-day testing. However, the off-diagonal values reveal declines in detection rates when generalization is required, especially in early-day datasets.

Fig. 2: Cross-Day Generalization Performance of XGBoost Classifier.
4.2 Experimental Study II
Initially, SHAP importance is computed for each feature for all day-datasets, to perform the local feature selection for each classifier. Each day classifier is trained on the top 20 features with the highest SHAP importance, for the day-dataset employed during training. The heatmap performance, across datasets, is illustrated in Fig. 3.
This global vector highlights features that are consistently important across multiple local datasets. The results of the experiment are presented in Fig. 4.
To measure the feature ranking agreement between the local and the global feature selection approaches, Spearman's rank correlation coefficient () is employed. This is a non-parametric measure of the monotonic relationship between two ranked variables [1], particularly suited for measuring feature importance scores that are often non-linear. For each day-file, the Spearman correlation () of the local SHAP ranking and the common global SHAP importance ranking vectors is computed, as presented in Fig. 5. In this setting, () quantifies how closely the local features reproduce the ordering of the globally aggregated importance. A high value indicates that the local most influential features align
A. Spanos et al.

Fig. 3: Cross-Day Generalization Performance of XGBoost Classifier using local feature selection for each sub-dataset

Fig. 4: Cross-Day Generalization Performance of XGBoost Classifier using global feature selection
closely with the global, whereas a low value signals that the day relies on a comparatively distinctive subset. Although the global ranking is acquired from the local aggregation, it is observed that the correlations vary substantially across days.
The variance in detection performance among three feature selection approaches is visualized in Fig. 6. It is observed that while same-day evaluations remained in optimal levels across all feature selection approaches, cross-day generalization remained challenging, especially for Local feature selection. In contrast, the Global feature selection consistently outperformed either Local SHAP or the full feature set. The results verified that global feature importance rankings represent the generalization of features across multiple attack vectors better than Local SHAP.

Fig. 5: Spearman correlation () between local and global feature rankings across different datasets.
In conclusion, the performance comparison of the SHAP-based feature selection methods reveals that both methods, especially Local SHAP, encountered challenges with generalizability that differ in both behavior and differences in temporal activity.

Fig. 6: Accuracy across train-test pairs for different feature selection strategies.
12 A. Spanos et al.
5 Results Interpretation
5.1 The Illusion of Model Efficacy
The objective of the experimental component is not to perform optimal detection, but to explore whether the models could identify even a fraction of unseen attacks. Detecting even a small portion of novel attacks is practically valuable, demonstrating a meaningful potential to generalize models. However, while intraday attack detection remains optimal across all classifier configurations, its effectiveness is not reflected when confronted with novel attacks, revealing significant generalization limitations. In near-zero attack detection rate test cases, beyond classifiers' inability to identify any malicious samples, it also suffers from a high amount of false negatives, resulting in the overall accuracy falling below 50%.
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. Applying the presented configuration achieved near-perfect accuracy (99.92%), in a ten-fold cross-validation with minimal variability across folds (SD = 0.01%).
The absence of generalization, which is frequently overlooked in literature, is not reflected in the holistic model, highlighting an underlying risk: the illusion of model efficacy. Assuming a consistent labeling quality and data preprocessing across days, this cross-day performance reduction is interpreted as a generalization gap. This gap suggests that models fail to retain transferable representations, which is critical for identifying new or evolving threats.
5.2 Cross-Attack Generalization
In real-world scenarios, the ability of a model to detect previously unseen attacks is paramount. Despite the limitations on cross-day generalization, several specific test cases revealed promising potential. The classifier trained on DoS day-dataset achieved 93.6% accuracy when tested on Web Attack traffic, and a reasonable 81.48% accuracy when detecting DDoS attacks, since both DoS and DDoS attacks share structural similarities. The Web Attacks-trained classifier detected Brute Force with 60.21% accuracy, a plausible generalization since Web Attacks include Brute Force attacks. The bot traffic trained classifier led to 69.19% accuracy when identifying PortScan. Furthermore, the PortScan trained classifier, generalized on WebAttacks (91.93%), DoS (60.23%), and DDoS (72.12%). Finally, the DDoS-trained model identified 24.01% of Brute Force attacks, achieving a 62.01% accuracy.
While several cross-day generalization test cases align with known structural and behavioral similarities, some test case performances may rely on normal traffic, biased features, or overlapping behavior. Nevertheless, this does not blur the generalization boundaries presented by our experimental results, and does not compromise the classifier's potential to generalize its predictions. While classifiers can generalize across distinct attack types, this behavior is inconsistent and not guaranteed.
5.3 Asymmetric Generalization
A more detailed study of these discrepancies leads to a notable observation: generalization between attack types tends to be asymmetric. This one-directional generalization suggests that models overfit attack-specific features rather than learning more universal behavioral patterns. A classifier trained on Web Attacks detects a portion of Brute Force attacks, whereas the converse does not hold. A similar directional imbalance is observed between PortScan and DDoS: a classifier trained on PortScan successfully identifies DDoS, whereas DDoS-trained classifiers are ineffective in detecting PortScan. Even between structurally similar attacks, such as DoS and DDoS, one-way generalization is observed.
The asymmetric performance reflects the significance of constructing models around generalized behavioral rules, rather than relying on overall performance and best metric scores. In real-world case scenarios, where novel attacks emerge unpredictably, this asymmetry emphasizes the necessity for designing classifiers with explicit attention to generalization. A model design aimed at maximizing coverage and built on a symmetric cross-attack detection methodology may cover blind spots in practical detection, making it capable of identifying novel attacks.
5.4 Feature Selection Impact
While feature selection can improve model efficiency, our results suggest it may inadvertently constrain generalization, highlighting the trade-off between performance and adaptability.
The poor Local feature selection generalization performance reflects the underlying danger of relying on static, top-N feature selection, which is a common approach used in the literature. Such approaches tend to create models based on the specifics of known attacks, which affect the detection of new emerging threats. New feature selection mechanisms should be explored in favor of promoting more generalization and maintaining interpretability.
Our findings align with concept drift and within-domain attack generalization challenges. Even under the consistent structure of CICIDS2017, the introduction of a new traffic degrades model performance. While high same-day accuracy is reported, cross-day evaluation reveals substantial performance drops, highlighting critical gaps in generalization across attacks, reflecting distributional fragility.
6 Evaluation Criteria for ML-based Intrusion Detection Research
The experimental findings underscore a structural weakness in ML-based IDS research and evaluation techniques. High accuracy on pooled or in-distribution datasets is often reported as evidence of a model's predictive power, thereby perpetuating the perception of an optimal model. However, such reported metrics may coexist with underlying failures in recognizing different network traffic or attack families. Such recurring methodological pitfalls in the application of Machine Learning in security research have recently been reported [8].
A. Spanos et al.
In our research study, we translate the blind spots reported in the literature and the findings derived from our experimental performance collapse into a systematic set of evaluation criteria to bridge the gap between reported research performance and real-world effectiveness. Each of the presented criteria is accompanied by a reporting requirement, which transforms the observation failures into quantifiable evidence.
Criterion 1: Cross-dataset Generalization Testing A machine-learning-based IDS performance should be evaluated on unseen network-traffic distributions, spanning network configurations that differ from the one it was trained on. By changing the domain through cross-dataset evaluation methods, the benign baseline, the network topology, and the attack perception shift together, as when a detector trained on one network is deployed on another. Evaluation confined to in-distribution splits inflates reported metrics and conceals fragile blind spots. Research studies should therefore report a cross-dataset and cross-domain evaluation matrix including all present attacks to demonstrate the generalization and domain-shifting detection capabilities of the proposed IDS architecture.
Criterion 2: Novel and Zero-day Attack Detection A study should explicitly define and test against attacks that are not present in the training distribution, conducted in a fixed network environment. In this setup, the network configurations and benign traffic are maintained constant, while the adversary shifts with the introduction of an unseen attack. As demonstrated in our experimental findings, the inability to detect unseen attacks, even by models that may look optimal on the surface, achieving 99.92% accuracy (Subsection 5.1), and the asymmetric behavior (Subsection 5.3), establish that a model's ability to detect a novel attack cannot be assumed. Evaluation of an Intrusion Detection System should adopt a Leave-One-Attack-Out protocol, excluding one attack family at a time, instead of implicitly assuming any novelty detection capability. The per-excluded-class recall should be reported, rather than aggregating metrics that fold novel and known attack performance into a single score metric.
Criterion 3: Explainability and Interpretability The majority of Machine Learning-based IDS literature optimizes exclusively for detection metrics, treating the models as black boxes. Interpretability does not solely serve for transparency, but also carries operational utility. Feature-level categorizations can be translated into human-readable signatures for well-established defense tools such as Snort, Suricata, or Zeek, as well as reveal common and generalizable patterns on attack characteristics. An IDS should report which features drive its decisions, thus allowing human analysts' judgment on learned decision-making patterns. Only a handful of recent studies enable the automatic derivation of human-readable signatures, connecting ML outputs to actionable rules. Studies that report strong metrics without giving them the appropriate weight on model behavior should be regarded as incomplete, since the absence of interpretability restricts future deployments and scientific scrutiny.
Criterion 4: Reproducibility and Fair Comparison Results should be reproducible and obtained under clearly defined and consistent conditions. Reproducibility extends from publicly accessible sources to dimensionality reduction configurations, hyperparameters, and random seeds. It also extends to dataset versions and the evaluation of data integrity. The evaluation on a single or outdated dataset, such as KDD99, without justification, should be considered insufficient. Many datasets can be used, ranging from relatively new benchmarks like the CICIDS2017 dataset to newly acquired with more detailed network traffic captures. This serves for both comparisons with previous work and as a standard and progressive baseline for future work.
Criterion 5: Adversarial Robustness Machine Learning classifiers are vulnerable to adversarial perturbations and crafted inputs designed to evade detection. An evaluation framework should include robustness testing against evasion and poisoning techniques. Much of the existing literature assumes white-box adversaries, with complete knowledge of the detection pipeline, models, training data, and decisions, assumptions that rarely hold in real-world networks. Evaluation should reflect the constrained capabilities of a realistic adversary. Given that interpretability mechanisms may also help attackers in identifying the most critical features to perturb [6], the resilience of Machine Learning-based NIDS to adversarial strategies should be measured and reported.
Criterion 6: Feature Selection Beyond Metric Improvements Despite an extensive number of studies dedicated to dimensionality reduction and its decision-making importance [36], the effect of feature selection in generalization is often overlooked [28]. As reported in Subsection 5.4, many studies ground their feature selection methodology on static top-N feature sets that overfit to known attacks and widen the generalization blind spots. Research studies should adopt attack-agnostic feature selection techniques, supporting deployment in heterogeneous environments, and report any in-distribution detection reduction as a tradeoff against improved generalization.
Criterion 7: Multimodal Detection Techniques Evaluation should consider both network flow-level features and raw packet payloads, since reliance on a single data format limits coverage. Flow-level features are susceptible to adversarial manipulation [7], whereas payload inspection captures semantic attack contents. Therefore, a flow-based classifier is vulnerable to evasions that a payload-aware approach might resist. Datasets such as CICIDS2017 support both flow and raw packet payloads, yet most works exploit only one. Approaches should incorporate both payloads and flow statistics, either by mapping PCAP files to existing flows [4], or by further research for standardized enriched multimodal datasets [5].
The proposed evaluation criteria are summarized in Table 3. For each criterion, three parameters are specified: (i) the information a study should disclose to fulfill it (Column 2: "Reporting Requirement"), (ii) the experimental component that tests the affiliated criterion and produces that reporting (Column 3:
A. Spanos et al.
"Testing Protocol"), and (iii) the findings of our experimental component operating as a motive (Column 4: "Supporting Evidence"). Criteria without an entry in the last column are not directly visible from our experimental component, and are drawn from well-evidenced literature gaps.
| Criterion | Reporting Requirement | Testing Protocol | Supporting Evidence |
|---|---|---|---|
| 1. Generalization | Cross-dataset / Environmental shift reports | Train-on-one, test-on-other matrix | In-distribution gap (Subsec. 5.1) |
| 2. Zero-day detection | Intra-dataset / Hold-out attacks: per-class recall | Leave-One-Attack-Out | Asymmetric Generalization (Subsec. 5.3) |
| 3. Explainability | Which features construct decision boundaries. Signature mapping | Feature attribution. Rule extraction | Attack patterns (Subsec. 5.4) |
| 4. Reproducibility and Fair Comparison | Dataset version, seeds, hyperparameters | Validity and Parameters matrix. Public source code | - |
| 5. Adversarial Robustness | Stated threat-model: Evasion resilience | Realistic adversary evaluation | - |
| 6. Feature generalization | Trade-off between accuracy and transferability | Attack-agnostic selection | Static top-N effect (Subsec. 5.4) |
| 7. Multi modal detection | Justification of single-modality use | Flow and payload level evaluation | - |
Table 3: The evaluation criteria, reporting artifacts, and motivation evidence
7 Conclusions
Taking into consideration the above criteria, the machine-learning IDS literature could be reframed from slight metric improvements in a single distribution domain toward a generalized behavioral attack profile. Unifying the above techniques, which so far have been either absent or applied as stand-alone methodologies in the literature, will result in approaches that reflect generalization, novelty handling, robustness, transparency, and research continuation. None of the criteria is onerous in an IDS architecture. However, their absence permits a detector to appear effective, concealing its inability to carry out the task it is intended for, distorting the current state of academic research. The adoption of the recommended evaluation tests and methodologies would narrow the gap between reported research performance and real-world effectiveness and would render the illusion of efficacy.
References
-
Hauke, J. & Kossowski, T. Comparison of values of Pearson's and Spearman's correlation coefficients on the same sets of data. Quaestiones Geographicae. 30, 87-93 (2011)
-
Umar, M., Chen, Z., Shuaib, K. & Liu, Y. Effects of feature selection and normalization on network intrusion detection. Data Science And Management. 8, 23-39 (2025)
-
Abdulhammed, R., Musafer, H., Alessa, A., Faezipour, M. & Abuzneid, A. Features dimensionality reduction approaches for machine learning based network intrusion detection. Electronics. 8, 322 (2019)
-
Kiflay, A., Tsokanos, A., Fazlali, M. & Kirner, R. Network intrusion detection leveraging multimodal features. Array. 22 pp. 100349 (2024)
-
Wali, S., Farrukh, Y., Khan, I. & Bastian, N. Meta: Towards a unified, multimodal dataset for network intrusion detection systems. IEEE Data Descriptions. (2024)
-
Chung, B. & Han, G. A DeepSHAP-Based Adversarial Attack on Machine Learning-Based Network Intrusion Detection. IEEE Access. 14 pp. 2566-2575 (2026)
-
Kim, Y., Lee, C. & Yoon, Y. Payload-aware intrusion detection with CMAE and large language models. ACM Transactions On Privacy And Security. 29, 1-30 (2025)
-
Arp, D., Quiring, E., Pendlebury, F., Warnecke, A., Pierazzi, F., Wressnegger, C., Cavallaro, L. & Rieck, K. Dos and don'ts of machine learning in computer security. 31st USENIX Security Symposium (USENIX Security 22). pp. 3971-3988 (2022)
-
Sharafaldin, I., Lashkari, A., Ghorbani, A. & Others Toward generating a new intrusion detection dataset and intrusion traffic characterization.. ICISSp. 1 pp. 108-116 (2018)
-
Sommer, R. & Paxson, V. Outside the closed world: On using machine learning for network intrusion detection. 2010 IEEE Symposium On Security And Privacy. pp. 305-316 (2010)
-
D'hooge, L., Wauters, T., Volckaert, B. & De Turck, F. Inter-dataset generalization strength of supervised machine learning methods for intrusion detection. Journal Of Information Security And Applications. 54 pp. 102564 (2020)
-
Verkerken, M., D'hooge, L., Wauters, T., Volckaert, B. & De Turck, F. Towards model generalization for intrusion detection: Unsupervised machine learning techniques. Journal Of Network And Systems Management. 30, 12 (2022)
-
Apruzzese, G., Pajola, L. & Conti, M. The cross-evaluation of machine learning-based network intrusion detection systems. IEEE Transactions On Network And Service Management. 19, 5152-5169 (2022)
-
Cantone, M., Marrocco, C. & Bria, A. Machine learning in network intrusion detection: A cross-dataset generalization study. IEEE Access. 12 pp. 144489-144508 (2024)
-
Hindy, H., Atkinson, R., Tachtatzis, C., Colin, J., Bayne, E. & Bellekens, X. Utilising deep learning techniques for effective zero-day attack detection. Electronics. 9, 1684 (2020)
-
Chettri, L., Leo, J., Roy, S. & Kalita, J. Analyzing shallow and deep classifiers in detecting unseen attacks on internet of things network. Peer-to-Peer Networking And Applications. 19, 64 (2026)
-
Apruzzese, G., Laskov, P. & Schneider, J. Sok: Pragmatic assessment of machine learning for network intrusion detection. 2023 IEEE 8th European Symposium On Security And Privacy (EuroS&P). pp. 592-614 (2023)
A. Spanos et al.
-
Engelen, G., Rimmer, V. & Joosen, W. Troubleshooting an intrusion detection dataset: the CICIDS2017 case study. 2021 IEEE Security And Privacy Workshops (SPW). pp. 7-12 (2021)
-
Lanvin, M., Gimenez, P., Han, Y., Majorczyk, F., Mé, L. & Totel, É. Errors in the CICIDS2017 dataset and the significant differences in detection performances it makes. International Conference On Risks And Security Of Internet And Systems. pp. 18-33 (2022)
-
Liu, L., Engelen, G., Lynar, T., Essam, D. & Joosen, W. Error prevalence in nids datasets: A case study on cic-ids-2017 and cse-cic-ids-2018. 2022 IEEE Conference On Communications And Network Security (CNS). pp. 254-262 (2022)
-
Thakkar, A. & Lohiya, R. A review of the advancement in intrusion detection datasets. Procedia Computer Science. 167 pp. 636-645 (2020)
-
Catillo, M., Pecchia, A. & Villano, U. Machine learning on public intrusion datasets: Academic hype or concrete advances in NIDS?. 2023 53rd Annual IEEE/IFIP International Conference On Dependable Systems And Networks-Supplemental Volume (DSN-S). pp. 132-136 (2023)
-
Uddin, M., Aryal, S., Bouadjenek, M., Al-Hawawreh, M. & Talukder, M. usfAD based effective unknown attack detection focused IDS framework. Scientific Reports. 14, 29103 (2024)
-
Gharib, A., Sharafaldin, I., Lashkari, A. & Ghorbani, A. An evaluation framework for intrusion detection dataset. 2016 International Conference On Information Science And Security (ICISS). pp. 1-6 (2016)
-
Zoppi, T., Ceccarelli, A., Puccetti, T. & Bondavalli, A. Which algorithm can detect unknown attacks? Comparison of supervised, unsupervised and meta-learning algorithms for intrusion detection. Computers & Security. 127 pp. 103107 (2023)
-
Liu, H. & Lang, B. Machine learning and deep learning methods for intrusion detection systems: A survey. Applied Sciences. 9, 4396 (2019)
-
Wei, F., Li, H., Zhao, Z. & Hu, H. xNIDS: Explaining deep learning-based network intrusion detection systems for active intrusion responses. 32nd USENIX Security Symposium (USENIX Security 23). pp. 4337-4354 (2023)
-
Wong, W., Juwono, F., Eswaran, S. & Motelebi, F. Intrusion detection system model: a white-box decision tree with feature selection optimization. Neural Computing And Applications. 37, 5655-5670 (2025)
-
Hozouri, A., Mirzaei, A. & Effatparvar, M. A comprehensive survey on intrusion detection systems with advances in machine learning, deep learning and emerging cybersecurity challenges. Discover Artificial Intelligence. 5, 314 (2025)
-
Talukder, M., Hasan, K., Islam, M., Uddin, M., Akhter, A., Yousuf, M., Alharbi, F. & Moni, M. A dependable hybrid machine learning model for network intrusion detection. Journal Of Information Security And Applications. 72 pp. 103405 (2023)
-
Talukder, M., Islam, M., Uddin, M., Hasan, K., Sharmin, S., Alyami, S. & Moni, M. Machine learning-based network intrusion detection for big and imbalanced data using oversampling, stacking feature embedding and feature extraction. Journal Of Big Data. 11, 33 (2024)
-
Coscia, A., Dentamaro, V., Galantucci, S., Maci, A. & Pirlo, G. Automatic decision tree-based NIDPS ruleset generation for DoS/DDoS attacks. Journal Of Information Security And Applications. 82 pp. 103736 (2024)
-
Kumar, V. & Sinha, D. A robust intelligent zero-day cyber-attack detection technique. Complex & Intelligent Systems. 7, 2211-2234 (2021)
-
Umar, M., Chen, Z., Shuaib, K. & Liu, Y. Effects of feature selection and normalization on network intrusion detection. Data Science And Management. 8, 23-39 (2025)
-
Jmila, H. & Khedher, M. Adversarial machine learning for network intrusion detection: A comparative study. Computer Networks. 214 pp. 109073 (2022)
-
Abdulhammed, R., Musafer, H., Alessa, A., Faezipour, M. & Abuzneid, A. Features dimensionality reduction approaches for machine learning based network intrusion detection. Electronics. 8, 322 (2019)
-
Goldschmidt, P. & Chudá, D. Network Intrusion Datasets: A survey, limitations, and recommendations. Computers & Security. 156 pp. 104510 (2025)
-
Lundberg, S. & Lee, S. A unified approach to interpreting model predictions. Advances In Neural Information Processing Systems. 30 (2017)