Poisoning Network Flow Classifiers

Giorgio Severi, Simona Boboila, Alina Oprea, John T. Holodnak, Kendra Kratkiewicz, Jason Matterer · DOI

Introduction

As network traffic volumes escalate, organizations increasingly rely on Machine Learning (ML) classifiers for malware detection and application categorization. However, these models are susceptible to poisoning attacks, where an adversary injects malicious data into the training set to establish a "backdoor." A successful backdoor allows the model to function normally on typical data while failing predictably when presented with a specific "trigger" pattern.

While prior research often assumes the attacker can manipulate labels or provide pre-trained models, this study focuses on the more realistic and challenging clean-label, data-only attack. In this scenario, the attacker can only inject new data points that appear legitimate and possess correct labels, yet still subvert the model's internal logic.

Methodology: Bridging the Feature-Problem Space

The primary challenge in poisoning network flow classifiers is the "problem-space mapping"—translating abstract mathematical feature modifications into valid network packets. The authors propose a five-phase pipeline to address this:

The five-phase pipeline for mapping abstract features to problem-space network triggers.
  1. Feature Selection: Utilizing interpretability techniques such as SHAP, Gini importance, and Information Gain to identify the features most influential to the classifier's decisions.
  2. Assignment: Determining "ideal" feature values to force misclassification.
  3. Prototype Selection: Identifying existing data points that approximate these ideal values.
  4. Trigger Identification: Defining the specific sequence of network connections (ports, protocols, byte counts) required to manifest those feature values.
  5. Stealthy Injection: Implementing strategies to ensure the injected data remains inconspicuous.

Enhancing Stealth with Generative Models

To evade detection, the attack employs two key strategies: Trigger Size Reduction, which removes non-essential connections, and Generative Bayesian Networks. The latter synthesizes non-critical fields of the trigger to match the statistical distribution of the target class. This ensures that the poisoned data maintains complex multivariate dependencies, such as the correlation between packet counts and byte counts, which simple random noise would disrupt.

Comparison of original traffic distribution, learned KDE, and sampled points for stealthy trigger generation.

Experimental Evaluation

The attack was evaluated against three major cybersecurity benchmarks: the CTU-13 Neris Botnet dataset, the CIC IDS 2018 Botnet dataset, and the CIC ISCX 2016 application classification dataset.

Key Results

  • High Success at Low Poisoning Rates: Against Gradient Boosting models on the CTU-13 dataset, the attack achieved an Attack Success Rate (ASR) of 0.95 with only 1.0% poisoning. Remarkably, even at a 0.1% poisoning rate, the ASR remained as high as 0.7.
  • Minimal Performance Impact: The attacks had negligible impact on the model's standard performance, with F1 score drops typically remaining below 0.037. This ensures the backdoor remains silent during normal operation.
  • Evasion of Anomaly Detection: When tested against an Isolation Forest anomaly detector, the poisoned samples yielded extremely low Precision-Recall AUC scores (0.045–0.099), demonstrating their high degree of inconspicuousness.

Discussion and Limitations

Despite its effectiveness, real-world deployment faces hurdles. Generating realistic traffic for stateful protocols like TCP is complex; if the sequence violates handshake logic, network analysis tools like Zeek may fail to parse it correctly. Additionally, if a trigger spans across the classifier's observation window boundaries, the feature aggregation may be split, neutralizing the attack.

Conclusion

This research demonstrates that clean-label poisoning attacks are a viable and potent threat to network security ML models. By weaponizing interpretability tools and employing generative models for stealth, attackers can compromise systems with minimal data injection. Defending against these "data-only" backdoors remains an open challenge, necessitating the development of robust sanitization techniques capable of detecting subtle statistical deviations in training data.

Summary updated

BibTeX
@inproceedings{severi2023poisoning,
  author = {Giorgio Severi and Simona Boboila and Alina Oprea and John T. Holodnak and Kendra Kratkiewicz and Jason Matterer},
  title = {{Poisoning Network Flow Classifiers}},
  booktitle = {ACSAC},
  year = {2023},
  doi = {10.1145/3627106.3627123},
}
Figure