Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

Figures 2 and 3 from arXiv paper 2611.36399, two XGBoost confusion matrices for multiclass classification with true labels Benign, DoS, Infiltration and Patator. On the left, CIC-IDS2017: 97.2% of benign flows are classed benign and 71.5% of DoS flows are classed DoS, but 99.6% of Infiltration flows and 99.3% of Patator flows are classed benign. On the right, the corrected CNS-CIC-IDS2017 dataset: 94.6% of Infiltration flows are classed correctly, 67.8% of DoS, while 100% of Patator flows are still classed benign.
Figure: João R. Campos, arXiv:2611.36399 (CC BY 4.0), Figs. 2 and 3, multiclass confusion matrices on CIC-IDS2017 and the corrected CNS-CIC-IDS2017 under campaign-level holdout, reproduced unaltered from the PDF on a white background.

Opinion

A Coimbra Researcher Reproduced the Near-Perfect Scores of Machine Learning Intrusion Detectors, Then Held Out Whole Attacks and Watched F1 Fall From 0.997 to 0.596, and SOC Teams Should Demand Tests on Attacks a Model Never Saw

João R. Campos of the University of Coimbra rebuilt the benchmark results that make network intrusion detection look solved, then kept every attack campaign out of its own training data. Scores collapsed, rare attacks vanished and models trained on one lab barely worked in the next. Elena Vos argues the lesson for SOC teams is about how detectors are graded, not which algorithm wins.

Elena Vos, OpinionLondon7 min read

LONDON - Read enough papers on machine learning for network intrusion detection and you could conclude the problem was solved years ago. Accuracy above 99% is routine on the public benchmarks. One study cited in a new paper reports 100% test accuracy for a decision tree.

João R. Campos, of the University of Coimbra in Portugal, set out to find where those numbers come from. His paper, posted to arXiv on Nov. 26 and labelled a "practical experience report," states the problem bluntly: "if taken at face value, such results would suggest that intrusion detection is essentially solved, which is clearly contradicted by ongoing attacks and repeated warnings from agencies and annual threat reports."

Screenshot of the arXiv abstract page for paper 2611.36399, An Empirical Evaluation of Validation Practices for Machine Learning-Based Network Intrusion Detection, by Joao R. Campos, submitted on 26 Nov 2026, with the full abstract and the subjects Cryptography and Security and Machine Learning.
Image: arXiv (fair use).The abstract page for arXiv:2611.36399, captured Nov. 30, 2026.

First, he got the famous numbers

Campos did not start by attacking earlier work. He reproduced it. Using four widely used flow datasets, UNSW-NB15, CIC-IDS2017, CIC-IDS2018 and CNS-IDS2017, a version of CIC-IDS2017 that other researchers reprocessed to fix flow and labelling errors, he trained ordinary classifiers the way much of the literature does: a shuffled 70/30 split or stratified 10-fold cross-validation, default settings, no special tuning.

The near-perfect scores came back. On CIC-IDS2017, a random forest reached a binary F1 score of 0.997 on the 70/30 split and 0.999 under 10-fold cross-validation, in line with or above what an earlier study had published. On UNSW-NB15 the same kind of model scored 0.983, higher than the figure it was being compared with.

Table 2 from arXiv paper 2611.36399, comparing previously reported results from Elmrabit et al. with the author's baseline replication on CIC-IDS2017. In the replication, a decision tree and a random forest both reach precision, recall and F1 of about 0.997 under a 70/30 split and 0.999 under stratified 10-fold cross-validation for binary classification.
Figure: Campos, arXiv:2611.36399 (CC BY 4.0), Table 2, previously reported results and the author's baseline replication on CIC-IDS2017, reproduced unaltered from the PDF.

Then he stopped the model from seeing the exam

The trouble, the paper argues, is that network flows are not independent. One attack campaign, a brute-force run or a Slowloris flood, produces thousands of near-identical flows. Shuffle them into a random split and the model is tested on near copies of what it trained on. Campos instead used experiment-wise leave-one-out cross-validation, in which "each attack campaign is treated as an atomic unit": the model trains on every campaign but one and is tested on the one it has never seen. Because the public datasets do not label campaigns, he grouped attacks by the day they were run.

The scores fell hard. On CIC-IDS2017, the best binary model dropped from that 0.997 to an F1 of 0.596, with recall of 0.474. In the multiclass task, which tells an analyst what kind of attack is under way, F1 fell below 0.51 and balanced accuracy went as low as 24% for a random forest. The confusion matrix on the hero image above shows what that means in practice: the model classed 99.6% of infiltration flows and 99.3% of Patator brute-force flows as benign. The paper's verdict: "under more realistic deployment conditions, these models would fail to detect most attacks."

Table 3 from arXiv paper 2611.36399, results under experiment-wise leave-one-out cross-validation by dataset and maximum tree depth, with balanced accuracy, precision, recall and F1 for random forest and XGBoost. Binary F1 peaks at 0.596 on CIC-IDS2017, 0.949 on CNS-IDS2017 and 0.767 on CIC-IDS2018. Multiclass F1 on CIC-IDS2017 is between 0.038 and 0.506, and on CIC-IDS2018 between 0.040 and 0.288.
Figure: Campos, arXiv:2611.36399 (CC BY 4.0), Table 3, results under campaign-level holdout by dataset and tree depth, reproduced unaltered from the PDF.

UNSW-NB15 told the same story from another angle. Under the stricter test, a random forest kept a binary balanced accuracy of 99.3%, which fell to 38.2% for multiclass. XGBoost went from 96.9% to 25.4%. A weighted recall of 80.5% still looked respectable, because benign and common classes dominate the average. Only benign and generic traffic were consistently classified correctly.

The dataset mattered as much as the model

Two results deserve the attention of anyone who buys or builds detection. The first is that data quality moved the needle more than any algorithm. On the corrected CNS-IDS2017, the same approach reached a binary F1 of 0.949 and balanced accuracy of 95%, and multiclass models caught most infiltration traffic. The paper reads this as evidence that flaws in how the original dataset was built "significantly impacted model generalizability."

The second is a warning about what a model learns. On CIC-IDS2018, the classifier showed relatively high recall for cross-site scripting, even though flow records carry no page content. Campos suspects timing or byte-count quirks in how the lab generated those attacks. If so, he writes, "the classifier is learning to identify an artifact of the environment or tooling used to generate the data, not the attack itself."

A new network breaks it again

Finally, the paper trained on one dataset and tested on the other, using CIC-IDS2017 and CIC-IDS2018, which share features, attack types and largely the same tools. A random forest trained on 2017 caught 0.683 of attacks in 2018. XGBoost caught 0.235. Trained on 2018 and tested on 2017, the random forest's precision was 0.538 and its recall 0.401. "Binary classifiers rarely achieve recall above 70%," the paper says, and it spells out the operational cost: "In practice, low recall corresponds to missed attacks, while low precision results in excessive false alarms that can overwhelm operators."

Table 4 from arXiv paper 2611.36399, results when models are trained on one dataset and tested on another. Trained on CIC-IDS2017 and tested on CIC-IDS2018, binary random forest has balanced accuracy 0.787, precision 0.897 and recall 0.683, and binary XGBoost recall 0.235. Trained on CIC-IDS2018 and tested on CIC-IDS2017, binary random forest has precision 0.538 and recall 0.401, and binary AdaBoost precision 0.325.
Figure: Campos, arXiv:2611.36399 (CC BY 4.0), Table 4, cross-dataset results, reproduced unaltered from the PDF.

There was one bright spot. Expert models, each trained to spot a single attack type, did much better on their own target. On CIC-IDS2018, an XGBoost expert raised DDoS recall from 0.2% to 68.4%, at 50.3% precision, and a random forest expert raised infiltration recall from 18.1% to 58.7%. The paper notes the cost: running many experts in parallel adds deployment complexity.

The limits, stated plainly

This is one author's study of research-style models on public lab datasets, not a test of any commercial product. The datasets contain synthetic traffic and tool artifacts, and the features are flow statistics with no payload. Campaigns had to be approximated by day, some attack types were merged or dropped to make the stricter test possible, and the larger CNS-IDS2018 set was left out for compute reasons. The author asks readers to treat the findings "as guidance for setting realistic expectations and for conducting more rigorous empirical evaluations, rather than as claims of deployable IDS performance." He also expects real-world results to degrade further, since static datasets cannot capture drift or adaptive adversaries.

What SOC teams should take from it

None of that weakens the core point, which is about grading rather than any particular model. A detector that is tested on near copies of its training data will look brilliant and tell you almost nothing about the next intrusion. That applies to an academic benchmark, to a vendor's ML detection slide and to a model your own team trained on last quarter's incidents.

  • Ask how the test set was split. If flows or events from the same attack sat in both training and test data, treat the headline number as an upper bound. Ask for results with whole campaigns held out, as this paper does.
  • Ask for per-class recall, not one average. A strong overall score can hide a class the model never catches. Here, infiltration and brute-force traffic all but disappeared inside a respectable-looking aggregate.
  • Ask what happens on a different network. Models trained on one lab barely transferred to a closely related one. Pilot on your own traffic before you trust a vendor benchmark.
  • Fix the data before the algorithm. Correcting labels and flow extraction did more for these results than swapping models.
  • Keep your own holdout. When you tune or train detections in house, set aside entire incidents, not random rows, and score against them.

The paper's lessons say it directly: shuffled or randomly stratified splits "should be avoided." SOC teams do not need to referee machine learning research to apply that. They only need to ask, every time a detector is sold on a number, which attacks the model had already seen.

About the Author

Elena Vos

Elena Vos covers SOC strategy and detection operations for SOCtember from London.

Related stories

Opinion desk