Adversarial training boosts GNN-based NIDS detection and resilience to edge-injection attacks
Adversarial training hardens GNN NIDS, improving clean-graph detection and robustness against structural attacks
arXiv 25 Aug 2026 Defense Prototype evidence
Published as “Defending Network Intrusion Detection Systems Based on Graph Neural Networks Against Structural Adversarial Attacks”
Why it matters
The approach offers a practical way to harden GNN-based intrusion detectors against topology-based evasion without redesigning the model, facilitating more reliable deployment in enterprise networks.
Summary
Adversarial training that injects benign edges between low-degree nodes dramatically improves the robustness of GNN-based NIDS, achieving up to a 90% absolute increase in detection rate against structural attacks while preserving high clean-traffic performance. The method adds a warm-up phase on clean data followed by progressive augmentation with perturbed benign flows, without altering the GNN architecture. Experiments on the public CTU-13 and TON-IoT flow datasets show the hardened models maintain or slightly improve F1 scores (e.g., 0.962 vs 0.959 on CTU-13) and far better detection rates under C2xB, C2xM, and add-node attacks. The paper provides code and data for reproducibility, but does not report latency or deployment overhead.
What they found 2
- The hardened classifiers achieve a large absolute gain in detection rate against structural attacks.
“the average DR across all perturbation steps rises from 0.027 of the baseline classifier to 0.926 of the hardened one, corresponding to an absolute improvement of nearly 90%.”
- Clean-traffic performance is maintained or slightly improved after hardening.
“the hardened classifiers outperform their baseline counterparts, achieving average F1-scores of 0.962 versus 0.959 on CTU-13, and 0.995 versus 0.994 on TON-IoT.”
Caveats 4
- For the Neris botnet on CTU-13, both baseline and hardened detectors have lower F1 scores (0.880 and 0.891) than most other threats.
- None of the hardened classifiers achieve perfect detection, indicating residual vulnerability.
- none of the hardened classifiers achieve perfect detection, highlighting that there is still room for further improvement.
- the baseline and hardened detectors yield slightly lower F1-scores of 0.880 and 0.891, respectively, for the Neris botnet.
What’s new here 4
- Adversarial training that specifically perturbs graph topology by re-assigning benign flows to low-degree nodes.
- A two-stage training pipeline (warm-up then progressive hardening) that does not require changes to the GNN model.
- Demonstrated up to 90% absolute detection-rate improvement against structural attacks on two real-world flow datasets.
- Public release of the implementation and experimental results.