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

Abstract

AdvMind is a novel defense framework designed to identify the intent of black-box adversarial attacks on Deep Neural Networks (DNNs). Unlike traditional defenses that focus solely on detection or mitigation after an attack succeeds, AdvMind predicts the attacker's target class during the early crafting phase. By employing robust statistical estimation to filter out adversarial noise and proactively manipulating API responses to force class gradients into orthogonal directions, AdvMind achieves over 75% intent inference accuracy within three query batches. Furthermore, it increases the query cost for adaptive attackers by over 60%, providing a proactive layer of security for Machine Learning-as-a-Service platforms.

Introduction

Deep Neural Networks (DNNs) are increasingly deployed as cloud-based Machine Learning-as-a-Service (MLaaS). In these environments, models are often vulnerable to black-box attacks where an adversary, lacking access to internal weights, crafts malicious inputs by querying the API and observing outputs to estimate gradients.

While high-volume query detection is possible, identifying the specific adversary intent—the target class the attacker aims to reach—remains a significant challenge. Knowing whether an attacker is attempting to impersonate a specific individual in a face recognition system or misclassify medical images is crucial for effective remediation. AdvMind addresses this by unmasking intent even when attackers use "fake" queries to camouflage their path.

Methodology

AdvMind utilizes two core strategies to infer intent during the attack's crafting phase:

1. Robust Query of Interest (QOI) Estimation

Black-box attacks typically involve sending batches of queries around a central point to estimate local gradients. Sophisticated attackers may inject random or "fake" queries to obscure this center. AdvMind treats these deceptive queries as statistical noise within Huber’s contamination model. By using a robust mean estimator, the system filters out outliers to accurately identify the "Query of Interest" (QOI)—the true focal point of the attacker’s current iteration.

Robust QOI estimation filters out fake queries (red) to find the true intent (blue) compared to a naive average (orange).

2. Proactive Intent Solicitation

The most innovative component of AdvMind is the proactive manipulation of query results. Instead of returning raw model outputs, AdvMind slightly perturbs the results to force the gradients of different classes to be orthogonal (perpendicular) to one another. This transformation creates a unique "fingerprint" for each target class. An attacker is then forced into a dilemma: follow the efficient, "solicited" path and reveal their intent immediately, or ignore the signal and incur a significantly higher query cost to find a successful adversarial example.

Comparison between passive inference and proactive solicitation, where orthogonality makes the target class direction distinct.

Experimental Evaluation

The framework was evaluated across four diverse datasets: CIFAR10, CIFAR100, ISIC (skin cancer screening), and Mini-VGGface2 (face recognition). It was tested against state-of-the-art black-box attacks, including NES, signSGD, and Hessian-Aware methods.

Key Results

  • Early Intent Identification: AdvMind identifies the target class with over 75% accuracy after observing fewer than three query batches.
  • Increased Attack Difficulty: For attackers attempting to hide their intent, AdvMind increases the required number of queries (attack cost) by over 60%.
  • Resilience to Deception: The robust estimator maintains high accuracy even when 40-50% of the attacker's queries are "fake" noise.
  • Generalizability: Performance remained consistent across different datasets and attack types, indicating a robust, model-agnostic defense.

Conclusion

AdvMind shifts the defensive paradigm from reactive mitigation to proactive intent inference. By exploiting the "Intent-Cost Dilemma," it forces attackers to choose between speed and secrecy. While currently focused on single-adversary query-based attacks, future work aims to extend this framework to multi-adversary scenarios and integrate it with dynamic mitigation strategies once the intent is known.

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