Skip to main content
QUICK REVIEW

[Paper Review] Deep PackGen: A Deep Reinforcement Learning Framework for Adversarial Network Packet Generation

Soumyadeep Hore, Jalal Ghadermazi|arXiv (Cornell University)|May 18, 2023
Adversarial Robustness in Machine LearningComputer Science10 citations
TL;DR

Deep PackGen uses deep reinforcement learning to generate adversarial forward network packets that masquerade as benign while preserving functionality, evaluated against surrogate NIDS classifiers with notable adversarial success.

ABSTRACT

Recent advancements in artificial intelligence (AI) and machine learning (ML) algorithms, coupled with the availability of faster computing infrastructure, have enhanced the security posture of cybersecurity operations centers (defenders) through the development of ML-aided network intrusion detection systems (NIDS). Concurrently, the abilities of adversaries to evade security have also increased with the support of AI/ML models. Therefore, defenders need to proactively prepare for evasion attacks that exploit the detection mechanisms of NIDS. Recent studies have found that the perturbation of flow-based and packet-based features can deceive ML models, but these approaches have limitations. Perturbations made to the flow-based features are difficult to reverse-engineer, while samples generated with perturbations to the packet-based features are not playable. Our methodological framework, Deep PackGen, employs deep reinforcement learning to generate adversarial packets and aims to overcome the limitations of approaches in the literature. By taking raw malicious network packets as inputs and systematically making perturbations on them, Deep PackGen camouflages them as benign packets while still maintaining their functionality. In our experiments, using publicly available data, Deep PackGen achieved an average adversarial success rate of 66.4\% against various ML models and across different attack types. Our investigation also revealed that more than 45\% of the successful adversarial samples were out-of-distribution packets that evaded the decision boundaries of the classifiers. The knowledge gained from our study on the adversary's ability to make specific evasive perturbations to different types of malicious packets can help defenders enhance the robustness of their NIDS against evolving adversarial attacks.

Motivation & Objective

  • Develop a DRL-based framework to generate adversarial network packets that preserve packet functionality while evading ML-based NIDS.
  • Use raw forward packets from PCAPs to train packet classifiers and build an ensemble surrogate model for adversarial testing.
  • Evaluate the robustness and transferability of adversarial perturbations across classifiers and environments.
  • Analyze perturbation strategies and side effects to inform defender robustness against evolving adversarial attacks.

Proposed method

  • Process raw PCAP data to create a unidirectional forward-packet dataset from CICIDS-2017/2018.
  • Remove header information and normalize bytes to generate fixed-length feature vectors for packets.
  • Build an ensemble surrogate classifier to simulate defender NIDS and select top-performing models.
  • Formulate adversarial packet generation as a sequential decision problem (MDP) with constrained perturbations.
  • Apply double Q-learning (DDQN) DRL to learn perturbation policies that maximize evasion rewards across the ensemble.
  • Test DRL-generated adversarial packets against unseen classifiers to measure adversarial success rate (ASR).

Experimental results

Research questions

  • RQ1Can a DRL agent learn near-optimal perturbations to forward network packets that cause ML-based NIDS to misclassify malicious traffic as benign?
  • RQ2Do perturbations preserve packet functionality and remain achievable in real network settings?
  • RQ3How transferable are learned perturbation policies across different datasets and classifiers?
  • RQ4What portion of successful adversarial samples are out-of-distribution (OOD) and evade decision boundaries of complex classifiers?

Key findings

  • DRL-based Deep PackGen achieves an average adversarial success rate of 66.4% against various ML models and attack types.
  • More than 45% of successful adversarial samples were out-of-distribution packets that evaded classifier boundaries.
  • Perturbations are restricted to forward packets and to valid changes that maintain functionality, with side effects (e.g., checksums) considered.
  • The framework demonstrates transferability of learned perturbations to different network environments.
  • The results provide insights into which attack types are more manipulable by the adversary under the proposed constraints.

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.