Skip to main content
QUICK REVIEW

[Paper Review] Packet-Level Adversarial Network Traffic Crafting using Sequence Generative Adversarial Networks

Qiumei Cheng, Shiying Zhou|arXiv (Cornell University)|Mar 8, 2021
Adversarial Robustness in Machine LearningComputer Science36 references15 citations
TL;DR

This paper proposes Attack-GAN, a sequence generative adversarial network that crafts adversarial network traffic at the packet level by modeling packet bytes as sequential tokens. Using policy gradient optimization, it generates malicious traffic that evades black-box network intrusion detection systems (NIDS), achieving high evasion rates on real-world datasets while preserving attack functionality.

ABSTRACT

The surge in the internet of things (IoT) devices seriously threatens the current IoT security landscape, which requires a robust network intrusion detection system (NIDS). Despite superior detection accuracy, existing machine learning or deep learning based NIDS are vulnerable to adversarial examples. Recently, generative adversarial networks (GANs) have become a prevailing method in adversarial examples crafting. However, the nature of discrete network traffic at the packet level makes it hard for GAN to craft adversarial traffic as GAN is efficient in generating continuous data like image synthesis. Unlike previous methods that convert discrete network traffic into a grayscale image, this paper gains inspiration from SeqGAN in sequence generation with policy gradient. Based on the structure of SeqGAN, we propose Attack-GAN to generate adversarial network traffic at packet level that complies with domain constraints. Specifically, the adversarial packet generation is formulated into a sequential decision making process. In this case, each byte in a packet is regarded as a token in a sequence. The objective of the generator is to select a token to maximize its expected end reward. To bypass the detection of NIDS, the generated network traffic and benign traffic are classified by a black-box NIDS. The prediction results returned by the NIDS are fed into the discriminator to guide the update of the generator. We generate malicious adversarial traffic based on a real public available dataset with attack functionality unchanged. The experimental results validate that the generated adversarial samples are able to deceive many existing black-box NIDS.

Motivation & Objective

  • Address the vulnerability of deep learning-based NIDS to adversarial examples in the context of growing IoT device deployment.
  • Overcome the challenge of generating discrete, structured network traffic (packet-level) using GANs, which are traditionally suited for continuous data.
  • Develop a method that formulates adversarial packet generation as a sequential decision-making process under domain constraints.
  • Enable effective evasion of black-box NIDS by generating realistic adversarial traffic that preserves original attack semantics.
  • Demonstrate the feasibility and effectiveness of generating adversarial network traffic at the packet level using reinforcement learning-guided generation.

Proposed method

  • Formulate packet-level adversarial generation as a sequential decision-making process, treating each byte in a packet as a token in a sequence.
  • Adopt a policy gradient-based generator inspired by SeqGAN to select tokens (bytes) that maximize the expected reward from the discriminator.
  • Use a discriminator trained on real benign traffic and generated adversarial traffic to provide feedback for generator optimization.
  • Integrate predictions from a black-box NIDS as a reward signal to guide the generator toward crafting traffic that evades detection.
  • Maintain domain constraints by ensuring generated packets conform to valid network protocol structures and semantics.
  • Train the generator using reinforcement learning, where the reward is derived from the NIDS's misclassification of adversarial samples as benign.

Experimental results

Research questions

  • RQ1Can a sequence-based GAN framework effectively generate adversarial network traffic at the packet level while preserving attack functionality?
  • RQ2How effective is the proposed Attack-GAN in evading black-box NIDS compared to existing adversarial crafting methods?
  • RQ3To what extent does the policy gradient-based generator with NIDS feedback improve evasion performance?
  • RQ4Does the generated adversarial traffic maintain semantic and syntactic validity of real network packets?
  • RQ5Can the method generalize across different types of network attacks without modifying the underlying architecture?

Key findings

  • Attack-GAN successfully generates adversarial network traffic at the packet level by modeling bytes as sequential tokens using policy gradient optimization.
  • The generated adversarial samples achieve high evasion rates against multiple black-box NIDS, demonstrating the effectiveness of the approach.
  • The method preserves the original attack functionality in the crafted traffic, ensuring that malicious intent remains intact.
  • The integration of NIDS predictions as a reward signal significantly improves the generator’s ability to produce stealthy adversarial samples.
  • The approach outperforms image-based GAN methods for adversarial traffic generation by directly operating on discrete packet-level data.
  • Experimental results validate that the generated traffic is both semantically valid and capable of bypassing state-of-the-art 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.