← Lab /Security & privacy

Embedded ML NIDS achieves 99.85% F1 and near-zero false positives on botnet traffic

The authors claim their system attains F1=0.9985, precision=0.9969, recall=1.0, and 0.0002% false-positive rate on the CTU-13 dataset

Security & privacy arXiv 3 Apr 2026 Defense Prototype evidence Threat model

Published as “ML Defender (aRGus NDR): An Open-Source Embedded ML NIDS for Botnet and Anomalous Traffic Detection in Resource-Constrained Organizations”

Why it matters

Demonstrates that an embedded ML NIDS can achieve sub-microsecond inference and near-zero false positives on a known botnet using inexpensive hardware, suggesting a viable path for low-budget organizations to deploy real-time network protection.

Summary

ML Defender achieves near-perfect detection on the CTU-13 Neris botnet dataset (F1 = 0.9985, Precision = 0.9969, Recall = 1.0000) with only two false positives out of 12,075 benign flows. The dual-score architecture combines a heuristic Fast Detector (6.61% false-positive rate) with an embedded Random Forest that suppresses false alarms by roughly 500-fold, while inference latency stays under 1.1 μs per flow. Experiments run in a reproducible VirtualBox environment show the pipeline can sustain ~35 Mbps of traffic on a single commodity laptop using ~3.2 CPU cores and 1.28 GB RAM. However, the evaluation is limited to a single 2011 botnet scenario, synthetic training data, and virtualized NICs, so broader general-purpose security claims remain unproven.

What they found 2

  1. Near-perfect detection on CTU-13 Neris with negligible false positives.

    “F1 = 0.9985, Precision = 0.9969, and Recall = 1.0000, with a false positive rate of 0.0002% (2 FP in 12,075 benign flows)”

  2. The ML Detector reduces the Fast Detector's false-positive rate from 6.61% to effectively zero, a ~500-fold improvement.

    “The Fast Detector alone produces a FPR of 6.61% on purely benign traffic (bigFlows); the ML Detector reduces real production blocks to zero on the same corpus, an approximately 500-fold reduction.”

Caveats 7

  • Evaluation is performed only on the 2011 CTU-13 Neris botnet; generalization to modern ransomware, DDoS variants, or encrypted C2 traffic is not demonstrated.
  • Both false positives stem from VirtualBox host-only NIC artifacts, and the authors note that bare-metal deployment characteristics remain unverified.
  • Throughput is limited by the VirtualBox NIC emulation (≈35 Mbps) rather than the pipeline logic, so real-world performance on bare metal is unknown.
  • The evaluation covers a single botnet scenario from 2011 with synthetic-trained classifiers; generalizability to modern ransomware, DDoS variants, and encrypted C2 traffic has not been empirically established.
  • Bare-metal characterization is Future Work (§11); all experiments were conducted in a Vagrant/VirtualBox environment.
  • Direct evaluation against post-2020 ransomware families has not been performed.
  • The system assumes the attacker cannot fully mimic benign traffic distributions, cannot compromise the ML Defender host, cannot manipulate feature extraction, and cannot tamper with HMAC-SHA256 protected logs.

What’s new here 4

  • Integrates eBPF/XDP zero-copy packet capture with in-process Random Forest inference at sub-microsecond latency.
  • Implements a dual-score Maximum Threat Wins policy that uses ML to suppress heuristic false positives.
  • Provides an end-to-end open-source NIDS that runs on commodity hardware costing $150-200 without GPU or cloud dependencies.
  • Adds a local RAG subsystem for semantic query of detection events without external LLM services.

Threat model stated by the source

Adversaryexternal hosts or compromised internal machines capable of botnet C2 communication, DDoS (including amplification attacks), ransomware propagation via SMB lateral movement, and network reconnaissance
Capabilitylaunch attacks that generate malicious network flows
Assumescannot fully mimic benign traffic distributions across all monitored features simultaneously; cannot compromise the ML Defender host; cannot manipulate feature extraction; cannot tamper with HMAC-SHA256 protected event logs