NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AdvMind: Inferring Adversary Intent of Black-Box Attacks

Ren Pang, Xinyang Zhang, Shouling Ji, Xiapu Luo, Ting Wang

TL;DR

AdvMind is a novel defense framework that unmasks the hidden goals of black-box adversarial attackers by analyzing their query patterns in real-time. By proactively manipulating API responses to steer an attacker’s gradient estimation, AdvMind can identify the attacker's target class with over 75% accuracy within just three query batches, while simultaneously making the attack significantly more expensive.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks. In "black-box" settings, an attacker doesn't have access to the model's internal weights; instead, they repeatedly query a public API (like a face recognition or content moderation service) and use the results to estimate the model's gradients and craft a malicious input.

While existing defenses can often detect that an attack is happening (e.g., by noticing a flood of similar queries), they struggle to identify the attacker's intent—specifically, which "target class" the attacker is trying to reach (e.g., which person they are trying to impersonate). Knowing this intent early is critical for effective deterrence and remediation, but attackers can easily hide their tracks by injecting "fake" queries to confuse the defender.

Methods

AdvMind moves beyond passive observation to an active, two-pronged strategy:

  1. Robust Intent Estimation: To handle attackers who inject "noise" (fake, irrelevant queries) to hide their intent, AdvMind uses a robust mean estimation model based on Huber’s contamination model. Instead of a simple average, it iteratively clusters queries to find the true "Query of Interest" (QOI), effectively filtering out adversarial noise.

    Naïve vs. robust estimation of QOI
  2. Proactive Intent Solicitation: This is the framework's most novel feature. Rather than returning perfectly accurate probability scores, the AdvMind-protected API returns slightly perturbed results. These perturbations are carefully designed to make the gradients of different classes nearly orthogonal to one another. As the attacker follows their estimated gradient to craft an adversarial example, they are effectively forced to "shout" their target class, as their descent direction will align strongly with only one specific, orthogonalized class gradient.

    Passive inference versus proactive solicitation

Datasets

The authors evaluated AdvMind using four diverse image classification benchmarks:

  • CIFAR10 & CIFAR100: Standard object recognition datasets.
  • ISIC: A medical dataset for skin cancer screening (7-disease taxonomy).
  • Mini-VGGface2: A subset of the VGGface2 dataset used for face recognition (50 individuals).

These were tested against three state-of-the-art black-box attacks: NES, signSGD, and HessAware.

Key Insights and Ideas

  • The Intent-Cost Dilemma: AdvMind creates a "lose-lose" situation for the attacker. If they try to hide their intent by injecting more fake queries, the cost of the attack (in terms of API fees and time) skyrockets. If they don't, AdvMind identifies their goal almost immediately.
  • Active Defense via Information Control: The core "aha" moment is that a defender doesn't have to be a passive victim. By subtly controlling the quality of information released through the API, the defender can manipulate the attacker's own optimization process to reveal their secrets.
  • Orthogonality as a Signal: In high-dimensional spaces, forcing class gradients to be orthogonal is a highly effective way to disambiguate intent. Even a small amount of "proactive solicitation" makes the attacker's target class stand out clearly from the background noise of other possible classes.

Key Results

  • Early Detection: AdvMind achieved over 75% accuracy in identifying the adversary's target class after observing fewer than 3 query batches.
  • Increased Attack Cost: For attackers attempting to adapt and hide their intent, AdvMind increased the required number of queries (attack cost) by over 60%.
  • Robustness: The system remained effective even when attackers used sophisticated strategies like "query blinding" or duplicating existing queries to confuse the estimator.
  • Scalability: The performance was consistent across different model architectures (VGG, ResNet) and datasets, showing particular strength in higher-dimensional tasks like face recognition.

Limitations and Future Work

  • Coordinated Attacks: The current model assumes a single adversary. The authors note that multiple attackers working in a coordinated, distributed manner could potentially circumvent detection.
  • Non-Query Attacks: AdvMind is specifically designed for query-based black-box attacks. It cannot infer intent for transfer-based attacks, where an attacker builds a surrogate model locally without querying the target API.
  • End-to-End Protection: While AdvMind excels at inferring intent, it doesn't automatically stop the attack. The authors suggest that the next step is integrating AdvMind with proactive mitigation strategies, such as adversarial training, to provide a complete defense loop.

Summary updated

BibTeX
@inproceedings{pang2020advmind,
  author = {Ren Pang and Xinyang Zhang and Shouling Ji and Xiapu Luo and Ting Wang},
  title = {{AdvMind: Inferring Adversary Intent of Black-Box Attacks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403241},
}
Figure