Machine-learning DDoS detectors that score 99%+ on CICDDoS2019 are everywhere in the literature. The result looks reassuring. Two papers published this month make the gap between benchmark accuracy and operational recall explicit, and the magnitude of the gap matters: a detector that is 98% accurate in the training set can miss every single flow of a specific attack class in a different environment. For production deployment, the benchmark number is worse than useless. It is actively misleading.
The benchmark-performance paradox
Almost any tree-based classifier plus the right subset of CICDDoS2019 features lands at 98 to 99% accuracy. The SHAP literature on this dataset is extensive and consistent. Wei et al. (2023) compared all-feature and selected-feature configurations and reported above 99% with a 20-feature subset. Satpathy, Tripathy, and Swain (2025) added variance and correlation filtering plus Boruta ranking. Mehmood et al. (2025) ranked packet-length and packet-size features as the most influential predictors. Elwahsh et al. (2025) reported 99.97% and 99.99% accuracy using Harris Hawk Optimization for hyperparameter tuning on DDoS botnet and KDD CUP99 datasets.
Every one of those numbers is a benchmark-only number. None of them establishes that the trained model will catch a real attack it has never seen. Benchmark leaderboards select for the same in-distribution performance, so the problem compounds.
Two papers that measured the shift
Prof. Omar Almomani's group (two 2026 papers accepted for publication in Computers, Materials & Continua and Photonics) raised the dataset-currency question from the ML side: HHO-optimized feature selection on classical DDoS benchmarks (NSL-KDD, CICDDoS2019) does not necessarily generalize to the modern L7 vector landscape, which post-dates the training corpus by 5 to 15 years.
Amer, Shour, El Fawal, Nasser, Mansour, and Andrieux (MUBS Lebanon, ENSTA-IP Paris, USEK, and Nantes University, published 19 November 2026 in Discover Computing) quantified the shift empirically. Their design: train XGBoost, Random Forest, MLP, and a majority-voting hybrid on 216,762 balanced CICDDoS2019 records, freeze the models, and apply them without retraining to 10,312 per-flow-labeled flows from OMNeT++ 6.0.3 with INET 4.5.4. Ten seeds per scenario, four scenarios: Normal, UDP flood, TCP connection exhaustion, and DNS amplification.
The ten-seed CICDDoS2019 hold-out numbers were what the literature predicts: 98.36% to 98.67% accuracy across the four model families, ROC-AUC above 0.999, F1 above 0.98. Then the frozen models were pointed at OMNeT++ synthetic traffic.
The TCP connection-exhaustion failure
The cross-environment result did not degrade uniformly. It failed catastrophically on one scenario:
- Normal and UDP flood traffic were classified consistently by the tree-based models and the hybrid.
- DNS amplification performance varied across model configurations.
- TCP connection exhaustion: every one of 8,000 attack flows was missed by every principal feature-8 consensus model.
The aggregate confusion matrix on the full 10,312-flow run, for XGBoost, MLP, and the hybrid, is unambiguous: TN = 2,012, FP = 0, FN = 8,000, TP = 300. Random Forest produced TN = 2,008, FP = 4, FN = 8,000, TP = 300. Four models, three different algorithms, and they all missed the same 8,000 attacks in exactly the same way.
High agreement is not correctness
Cohen's kappa between XGBoost and the hybrid on the OMNeT++ feature-8 runs was 0.9962. Because they agreed on the TCP connection-exhaustion failure. Agreement statistics don't catch the failure when classifiers agree on the same error.
TCP connection exhaustion is not an edge case. Slowloris, slow-read, HTTP/2 stream exhaustion, HTTP/1.1 keep-alive starvation, and TCP connection flooding are among the most common L7 attack patterns in production incident reports. A benchmark-validated ML detector that reports 98% accuracy and misses every connection-exhaustion flow is a production hazard, not a product.
The reason the miss is total rather than partial is mechanical. CICDDoS2019 is dominated by high-rate volumetric and reflection floods, so the trained models learned, in effect, that DDoS means high packet rate and anomalous byte volume. TCP connection exhaustion inverts that signature: it holds a modest number of connections open and sends very little data, so at the flow-feature level it looks almost indistinguishable from a slow but legitimate client. A model that only ever learned flood-shaped DDoS has no feature on which to separate it, so it misses all of it rather than some of it. This is the same wall defenders hit from the other direction when a legitimate demand surge (a product launch, a ticket on-sale, a sporting final) looks like an attack: once the attack and the baseline occupy the same feature space, a detector trained on neither distinguishes them.
Why SHAP's "informative features" don't transfer
The paper included an auxiliary analysis: fit XGBoost on the full 79 eligible CICDDoS2019 predictors and rank features by TreeSHAP contribution on 10,000 held-out observations. Top five: Min Packet Length, Inbound, Avg Fwd Segment Size, Init_Win_bytes_forward, Avg Bwd Segment Size.
Five of the eight variables the authors had selected for cross-environment harmonization (Total Fwd Packets, Total Backward Packets, Total Length of Fwd Packets, Total Length of Bwd Packets, Fwd Packet Length Mean) received zero mean absolute TreeSHAP contribution in the full-space fit, meaning the model simply did not use them when the richer predictors were available. Three others (Flow Bytes/s, Flow Duration, Flow Packets/s) ranked 18th, 21st, and 37th.
The sharpest version of this is a single feature. In the eight-feature constrained model (the paper's Fig. 6), Fwd Packet Length Mean is the strongest signal the classifier uses to call a flow DDoS, with the largest mean absolute TreeSHAP contribution of any variable. In the full 79-predictor model (Fig. 7), the same feature contributes nothing: the model drops it entirely in favor of Min Packet Length and segment-size features that carry the signal better. Same dataset, same algorithm, same SHAP method, opposite conclusion about which feature matters. The only thing that changed was the menu of features the model was allowed to see. That is the whole problem in one variable: SHAP reports what a model uses, not what is true about DDoS. A feature attribution is a property of the model and its training set, never a law of the attack.
Read the implication carefully. The features the ML community has been pointing SHAP at as "important for DDoS detection" are important for one benchmark dataset's packet-size distribution. They are not intrinsic to DDoS. When the underlying traffic distribution changes, the same features become uninformative, and "SHAP explained why the model detects DDoS" turns into "SHAP explained why the model recognized CICDDoS2019's specific 2019-era attack tools."
What a real-wire third environment adds
OMNeT++ synthetic traffic is a useful second environment because it exposes the benchmark-only blind spot. But synthetic traffic has its own distribution artifacts, including simulator-specific packet-size distributions, idealized burst patterns, and absence of real-world jitter and loss. The paper's authors are explicit about this limitation: classification results are a cross-environment diagnostic, not proof of simulator realism or fidelity.
A third environment helps: live wire traffic generated from the attack tools customers actually face, run from real hosts across diverse network paths. DDactic's vector catalog (101 vectors across 11 families, see our API hardening piece for the vendor-side context) is engineered specifically as this third environment. The vectors include categories that did not exist in 2019 and therefore cannot be in CICDDoS2019 at all:
- HPACK bomb (
l7_http_2_hpack_bomb): abuses HPACK dictionary growth to inflate server-side state. Packet-size distribution is bimodal, nothing like volumetric flood. - QUIC retry-token flood (
l7_quic_retry_token_flood): UDP/443 traffic that superficially looks like QUIC but triggers token-issuance burden. Looks like UDP to a flow classifier, behaves like L7 exhaustion. - GraphQL deep query / alias explosion (
l7_graphql_deep_query,l7_graphql_field_dup): small payload, long server-side processing. Rate-based detectors miss them; depth-based detectors need a parser. - gRPC stream exhaustion (
l7_grpc_stream_exhaustion): HTTP/2 multiplexing abuse specific to gRPC semantics. - SLP amplification, TP-240 amplification, DVR/CCTV amplification (
l4_slp_amplification,l4_tp240_amplification,l4_dvr_cctv_amplification): modern UDP reflectors that post-date CICDDoS2019's amplification coverage. - Connection-exhaustion family (
l7_http_1_1_keep_alive_starvation,l7_http_2_stream_exhaustion,l7_http_2_data_trickle): the exact vector class the Amer et al. paper showed benchmark-trained models miss. DDactic covers these as distinct emitters with explicit per-flow telemetry.
Real-wire traffic for these vectors, captured as labeled flows from real cloud infrastructure (24+ providers), is a genuinely different distribution from either CICDDoS2019 or OMNeT++. A benchmark-trained classifier that fails on OMNeT++ TCP connection exhaustion will almost certainly also fail on DDactic-emitted slow-read, slow-POST, and HTTP/2 data-trickle, but the specific failure mode (which features drive the miss) will be different, and understanding the difference is what moves detector research forward.
The capability-match thread
This connects directly to our API hardening piece on vendor capability-match. The same framing applies on both sides of the defender's stack: the specific protection your vendor plan supports might not match the attack shapes your infrastructure attracts, and the specific detector your SOC deployed might not match the attack shapes a modern campaign will take. Benchmark accuracy and compliance-report presence are both local measures that look better than they operationally are.
The defender who buys a WAF with IP-only rate limiting and deploys an ML IDS trained on 2019 CICDDoS2019 features has two independent capability-match problems that stack. The vendor syntax is correct and the model's F1 is 0.98. A surgical L7 campaign still walks past both.
What this means for ML DDoS research
Two things, both already emerging in the literature but still underweighted:
- Report cross-environment metrics as first-class results, not supplementary. If the model is going to be deployed outside the training environment, the only numbers that matter are from an evaluation environment the model never saw. Benchmark-only F1 belongs in the appendix.
- Treat SHAP attributions as environment-local. "Feature X is important for DDoS" is almost never true. "Feature X is important for this model on this training set" is what SHAP actually shows. The Amer et al. paper is explicit about this distinction; it should become standard framing.
Where this touches DDactic's product
DDactic does not test ML DDoS detectors as the system under test. The paper's finding changes how we talk about what our emission engine probes on the other side of the wire.
Our vector catalog has moved past the volumetric TCP and UDP floods that CICDDoS2019 captures. The current catalog includes application-economics vectors that no public ML dataset contains labeled examples of: wallet-drain against /v1/messages and OpenAI-compatible endpoints (l7_llm_token_burn, 32k-token prompts at roughly $0.96 per request on GPT-4 32k class models; a thousand requests a minute is $58,000 a day charged to the victim's own cloud bill), unbounded API-gateway request burn, gRPC request floods, stream exhaustion and deadline abuse, and GraphQL deep-query, alias-overload, field-duplication and directive-flood vectors. None of these appear in the benchmark distributions that trained the four principal feature-8 consensus models in the Amer, Shour and El Fawal study. We emit all of them from the 24+ cloud providers in our fleet, under customer-owned scope.
One piece of vendor movement is worth naming because it is new. Microsoft shipped an Azure DDoS Protection custom policy at GA on November 16, 2026, that lets customers replace the ML auto-tuning with fixed protocol-specific thresholds per protected resource. That is the rule-fallback the paper implies the industry needs, and Azure is first to ship it as a documented opt-in capability.
The honest reading: DDactic probes AI and API endpoints as attack targets, not detectors as subjects. Our role is on the emission side. We can generate the third-environment traffic the paper argues for, against infrastructure the customer owns, with the detector inline as a bystander. If a vendor's ML DDoS engine meets that traffic and holds up, we have evidence. If it doesn't, we have receipts.
Collaboration
We are actively interested in collaborating with research groups working on cross-environment ML DDoS evaluation. DDactic's emitter catalog is authorization-scoped (no uninvited traffic, no third-party targets) but we can run controlled campaigns against labeled research infrastructure and share the resulting packet captures as a third environment for diagnostic workflows like the one Amer, Shour, and El Fawal built. If you are working on this and want captures from vectors that are not in CICDDoS2019 or OMNeT++, reach out: [email protected].
Scan Your Own Attack Surface
DDactic's free passive scan maps your external attack surface against our 101-vector catalog and scores your vendor coverage via the Open Protection Index. No login required, no VMs deployed, no authorization needed for the scan itself.
Run a Free Scan