Adversarial Examples in Constrained Domains

Ryan Sheatsley, Nicolas Papernot, Michael J. Weisman, Gunjan Verma, Patrick D. McDanielarXiv 2020

Introduction

A common assumption in adversarial machine learning is that "constrained domains"—such as network intrusion detection systems (NIDS)—are inherently more robust than unconstrained domains like image recognition. In these environments, inputs must adhere to strict protocol logic and domain-specific rules. This paper challenges that assumption, introducing two novel algorithms, AJSMA and HSG, to demonstrate that even when attackers are forced to operate within these constraints, they can achieve misclassification rates exceeding 95%.

The Challenge of Constrained Domains

In unconstrained domains like computer vision, an attacker can modify any pixel to any value. However, in network security, a packet must remain valid under the TCP/IP protocol. Features such as service types, flags, and timing-based metrics are often correlated or fixed, making direct manipulation difficult.

Distribution of feature types across different network protocols.

As shown in the table above, network datasets involve a complex mix of basic, content, timing-based, and host-based features. The researchers set out to determine if these inherent constraints actually provide a meaningful defense against adversarial manipulation.

Methodology

The authors developed two primary techniques to probe the vulnerabilities of constrained models:

1. Adaptive JSMA (AJSMA)

An evolution of the Jacobian-Saliency Map Approach, AJSMA allows for feature perturbations in any direction. Its core innovation is a Constraint Resolution step. This ensures that any modification to a feature results in a "legal" input by automatically updating dependent features to maintain domain logic (e.g., ensuring the protocol matches the selected service).

2. Histogram Sketch Generation (HSG)

HSG identifies "adversarial sketches"—universal perturbation vectors that can be applied across various inputs. By analyzing a "Perturbation Histogram" generated by AJSMA, HSG identifies the most influential features for fooling the model.

Perturbation histogram for NSL-KDD showing the frequency of feature modifications.

Experimental Evaluation

The study compared constrained network datasets (NSL-KDD, UNSW-NB15) against unconstrained image datasets (MNIST, GTSRB).

Key Insights

  • Constraints are not a Defense: The "attack surface" in network data remains large enough for successful manipulation. The low-dimensionality of network data (often <50 features) makes it fragile; a few tweaks can easily push malicious traffic across a decision boundary.
  • Universal Attacks in NIDS: The success of HSG proves that universal perturbations are feasible in network security. Attackers can pre-calculate sketches to bypass NIDS without per-packet customization.
  • The "Five Feature" Threshold: Even when restricted to controlling only five features, attackers achieved a ~50% success rate, highlighting the significant threat posed by limited adversaries.

Results

  • High Success Rates: Both AJSMA and HSG achieved >95% misclassification rates in white-box settings.
  • Transferability: Attacks were highly effective across different models, with AJSMA reaching 93% transferability and HSG achieving up to 100% in specific tests.
  • Minimal Distortion: In the NSL-KDD dataset, AJSMA required modifying only 4.18 features on average (approx. 3.39% distortion) to flip a label from "malicious" to "benign."

Conclusion and Future Work

This research demonstrates that domain constraints do not provide inherent security. While identifying primary features currently requires manual expertise, future work could automate this process using correlation analysis. Additionally, ensuring that adversarial perturbations preserve the original "attack behavior" (semantic preservation) remains a critical area for further study.

Summary updated

BibTeX
@misc{sheatsley2020adversarial,
  author = {Ryan Sheatsley and Nicolas Papernot and Michael J. Weisman and Gunjan Verma and Patrick D. McDaniel},
  title = {{Adversarial Examples in Constrained Domains}},
  year = {2020},
  eprint = {2011.01183},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.01183},
}
Figure