[Paper Review] Stateful Detection of Black-Box Adversarial Attacks
This paper proposes a stateful defense that detects black-box adversarial attack generation by analyzing sequences of queries to a classifier, using a similarity-detecting neural network to identify patterns typical of adversarial query chains. The defense remains effective even against adaptive query-blinding attacks, offering a new, robust approach to black-box adversarial example detection beyond stateless methods.
The problem of adversarial examples, evasion attacks on machine learning classifiers, has proven extremely difficult to solve. This is true even when, as is the case in many practical settings, the classifier is hosted as a remote service and so the adversary does not have direct access to the model parameters. This paper argues that in such settings, defenders have a much larger space of actions than have been previously explored. Specifically, we deviate from the implicit assumption made by prior work that a defense must be a stateless function that operates on individual examples, and explore the possibility for stateful defenses. To begin, we develop a defense designed to detect the process of adversarial example generation. By keeping a history of the past queries, a defender can try to identify when a sequence of queries appears to be for the purpose of generating an adversarial example. We then introduce query blinding, a new class of attacks designed to bypass defenses that rely on such a defense approach. We believe that expanding the study of adversarial examples from stateless classifiers to stateful systems is not only more realistic for many black-box settings, but also gives the defender a much-needed advantage in responding to the adversary.
Motivation & Objective
- To address the challenge of detecting adversarial example generation in black-box settings where only model outputs are accessible.
- To explore stateful defenses—unlike prior stateless approaches—by leveraging query history to detect adversarial training patterns.
- To evaluate the resilience of such defenses against adaptive attacks that modify query behavior to evade detection.
- To introduce and validate query blinding, a general-purpose evasion technique for stateful detection systems.
- To demonstrate that stateful detection offers a meaningful advantage in defending against black-box adversarial attacks.
Proposed method
- The defense uses a similarity-detector neural network trained to identify sequences of highly self-similar queries, a hallmark of black-box adversarial attack generation.
- The system maintains a history of past queries and applies the similarity detector to detect adversarial query patterns in real time.
- The method is designed to be composable with existing defenses, enabling defense-in-depth for black-box classifiers.
- A new attack class, query blinding, is introduced: it pre-processes inputs with a blinding function to mask adversarial intent while preserving classifier output utility.
- The blinding function ensures pre-processed inputs resemble benign data, evading similarity-based detection while enabling reconstruction of model outputs.
- The defense is evaluated in a hard-label black-box setting, where only class labels are returned, and is shown to remain effective despite adaptive attacks.
Experimental results
Research questions
- RQ1Can sequences of queries used in black-box adversarial attacks be distinguished from benign query sequences using stateful analysis?
- RQ2How effective is a stateful defense based on query similarity detection in identifying adversarial example generation?
- RQ3Can adaptive attackers evade such stateful defenses using a general-purpose technique like query blinding?
- RQ4Does the proposed defense remain robust when combined with other defenses, such as ensemble adversarial training?
- RQ5What are the limitations of stateful detection in soft-label settings or under model extraction attacks?
Key findings
- The proposed stateful defense successfully detects existing state-of-the-art black-box adversarial attacks by identifying self-similar query sequences, achieving high detection accuracy.
- The defense remains effective against query-blinding attacks, which are designed to evade similarity-based detection by transforming inputs to appear benign.
- The defense is resilient even when the attacker adapts their strategy, demonstrating robustness to adaptive evasion techniques.
- The defense can be composed with other defenses, such as ensemble adversarial training, to form a unified, more robust defense against black-box attacks.
- The defense is ineffective if the attacker can extract the model weights, highlighting the need for additional stateful defenses against model extraction.
- The approach is generalizable and could be extended to other domains with appropriate similarity encoders, though evaluation is limited to image classification so far.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.