Prior Shift in Disguise: Rethinking the Evaluation of Data Augmentation for Rare-Attack Network Intrusion Detection
Abstract
Rare attack classes such as web injections, backdoors and worms are the hardest for flow-based network intrusion detectors and have the fewest labelled flows, which has made synthetic training data, most recently from large language models (LLMs), a popular remedy. We show that much of its reported benefit can be produced by the evaluation itself. On CSE-CIC-IDS2018, NF-UNSW-NB15-v3 and CIC-IDS2017, 13-44% of test flows are copies of training flows unless duplicates are removed, results vary 3 to 13 times more across train/test splits than across training seeds, and on one dataset the entire gain of oversampling is reproduced by shifting the decision threshold of an unaugmented detector. We therefore evaluate augmentation under a protocol with de-duplication, repeated splits, reweighting baselines and a threshold-only baseline, covering 13 rare classes, four tree-ensemble detectors and sources from SMOTE and generic tabular generators to fine-tuned LLMs from two model families. The fine-tuned LLMs generate flows that a classifier can barely distinguish from real ones, yet no generator is consistently better than class weighting or random oversampling; augmentation does not improve PR-AUC and increases benign false positives. A controlled experiment shows that the gains come from a shift of the decision boundary whose benefit depends on the attack prior of the test data. Detection is limited by class overlap, which persists with the full flow features and on an industrial network, and richer features help more than any augmentation. We derive an evaluation checklist for researchers and a decision procedure for operators.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG, cs.NI
Related papers
SPAR: Sparse-space Poisoning Attack on Retrieval-Augmented Generation Systems
Shared title terminologycs.CRQingyuan Zheng, Min Ren, Saihui Hou et al.
Assessing the Robustness of Defense Frameworks Against Data Attacks on AI Systems
Shared title terminologycs.CRVishnu Kurnala, Nelly Elsayed
Poisoning the Evidence: Document and Data Attacks on LLM-driven Retrieval-Assisted Analytical Process-Property Model Generation
Shared title terminologycs.CRHoang Anh Nguyen, Ziqin Liu, Yuan Hong et al.
Detecting Security Threats from Logon Data: A Technical Framework for Baseline-Relative Anomaly Detection with Expert-Derived Threat Tagging in SaaS Systems
Shared title terminologycs.CRNaga Lakshmi Subha Pavan Kumar Ghantasala, Saibala Lakkaraju, Srinivas Chava et al.
Copied and Perturbed: A String-Based Likelihood-Ratio Membership Inference Attack on LLM In-Context Table Synthesis
Shared title terminologycs.CRJoshua Ward, Haoyuan Cheng, Yue Zhang et al.
PRIME: A Modular Approach for Private Synthetic Data
Shared title terminologycs.CRMiguel Fuentes, Brett Mullins, Cecilia Ferrando et al.