Skip to main content
QUICK REVIEW

[Paper Review] Generating Practical Adversarial Network Traffic Flows Using NIDSGAN

Bolor-Erdene Zolbayar, Ryan Sheatsley|arXiv (Cornell University)|Mar 13, 2022
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper proposes NIDSGAN, a GAN-based method to generate realistic adversarial network traffic flows that evade machine learning-based network intrusion detection systems (NIDS). By enforcing domain-specific constraints and operating under blackbox and restricted-blackbox settings with limited access, NIDSGAN achieves 99%, 85%, and 70% evasion success rates against DNN-based NIDS in whitebox, blackbox, and restricted-blackbox threat models, respectively.

ABSTRACT

Network intrusion detection systems (NIDS) are an essential defense for computer networks and the hosts within them. Machine learning (ML) nowadays predominantly serves as the basis for NIDS decision making, where models are tuned to reduce false alarms, increase detection rates, and detect known and unknown attacks. At the same time, ML models have been found to be vulnerable to adversarial examples that undermine the downstream task. In this work, we ask the practical question of whether real-world ML-based NIDS can be circumvented by crafted adversarial flows, and if so, how can they be created. We develop the generative adversarial network (GAN)-based attack algorithm NIDSGAN and evaluate its effectiveness against realistic ML-based NIDS. Two main challenges arise for generating adversarial network traffic flows: (1) the network features must obey the constraints of the domain (i.e., represent realistic network behavior), and (2) the adversary must learn the decision behavior of the target NIDS without knowing its model internals (e.g., architecture and meta-parameters) and training data. Despite these challenges, the NIDSGAN algorithm generates highly realistic adversarial traffic flows that evade ML-based NIDS. We evaluate our attack algorithm against two state-of-the-art DNN-based NIDS in whitebox, blackbox, and restricted-blackbox threat models and achieve success rates which are on average 99%, 85%, and 70%, respectively. We also show that our attack algorithm can evade NIDS based on classical ML models including logistic regression, SVM, decision trees and KNNs, with a success rate of 70% on average. Our results demonstrate that deploying ML-based NIDS without careful defensive strategies against adversarial flows may (and arguably likely will) lead to future compromises.

Motivation & Objective

  • To investigate whether real-world ML-based NIDS can be bypassed by crafted adversarial network traffic flows.
  • To address the challenge of generating realistic adversarial flows that respect network protocol constraints and realistic feature distributions.
  • To develop an attack method effective under limited access to the target NIDS, including blackbox and restricted-blackbox threat models.
  • To evaluate the transferability of adversarial flows across diverse NIDS models, including deep neural networks and classical ML models.
  • To explore the feasibility of using active learning to reduce the number of required queries while maintaining high evasion success rates.

Proposed method

  • NIDSGAN employs a conditional generative adversarial network (cGAN) to generate adversarial network traffic flows by learning the distribution of real benign and attack traffic.
  • The model enforces domain-specific constraints on flow features (e.g., valid port ranges, protocol-specific values) to ensure generated flows are realistic and syntactically valid.
  • In blackbox and restricted-blackbox settings, the adversary trains a local surrogate model using only a small number of observed NIDS responses to the generated adversarial flows.
  • Active learning is applied to iteratively select the most informative adversarial samples for querying the target NIDS, improving the local model's performance with fewer queries.
  • The attack framework uses a minimal perturbation strategy, modifying real attack flows slightly to shift the NIDS prediction from 'attack' to 'benign' while preserving realism.
  • The generator is trained to minimize the L2 norm of perturbations while maximizing the NIDS evasion rate, ensuring both stealth and effectiveness.

Experimental results

Research questions

  • RQ1Can realistic adversarial network traffic flows be generated that evade state-of-the-art DNN-based NIDS under practical threat models?
  • RQ2How effective is the NIDSGAN method in whitebox, blackbox, and restricted-blackbox settings where model and data access are limited?
  • RQ3To what extent can adversarial flows generated by NIDSGAN transfer to and evade classical ML-based NIDS such as SVM, logistic regression, and decision trees?
  • RQ4Can active learning reduce the number of required queries to the target NIDS while maintaining high evasion success rates in restricted-blackbox scenarios?
  • RQ5What are the key constraints and challenges in generating adversarial network traffic that remain undetected by NIDS while preserving network protocol realism?

Key findings

  • NIDSGAN achieves a 99% evasion success rate against DNN-based NIDS in the whitebox threat model, demonstrating high effectiveness under full model access.
  • In the blackbox threat model, where no model internals or training data are available, NIDSGAN achieves an 85% evasion success rate by leveraging a locally trained surrogate model.
  • In the restricted-blackbox setting—representing a realistic scenario with limited query access—NIDSGAN maintains a 70% evasion success rate, significantly improved by active learning.
  • The adversarial flows generated by NIDSGAN successfully evade classical ML-based NIDS, achieving an average 70% evasion rate across models including SVM, logistic regression, KNN, and decision trees.
  • Transferability experiments show that adversarial flows crafted to evade AlertNet and DeepNet NIDS models also evade classical ML-based NIDS with 70% and 61% success rates on CICIDS-2017 and NSL-KDD datasets, respectively.
  • The study demonstrates that even with minimal query access and constrained feature space, adversarial flows can be generated that are both realistic and highly effective at bypassing modern NIDS.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.