[Paper Review] Blacklight: Defending Black-Box Adversarial Attacks on Deep Neural Networks.
Blacklight is a novel defense against black-box adversarial attacks that detects malicious queries by generating robust, one-way hash fingerprints for each input image. These fingerprints remain nearly identical for small image perturbations, enabling early detection of adversarial attack queries—often within just a few queries—while remaining effective against powerful, query-efficient attacks and advanced countermeasures.
The vulnerability of deep neural networks (DNNs) to adversarial examples is well documented. Under the strong white-box threat model, where attackers have full access to DNN internals, recent work has produced continual advancements in defenses, often followed by more powerful attacks that break them. Meanwhile, research on the more realistic black-box threat model has focused almost entirely on reducing the query-cost of attacks, making them increasingly practical for ML models already deployed today. This paper proposes and evaluates Blacklight, a new defense against black-box adversarial attacks. Blacklight targets a key property of black-box attacks: to compute adversarial examples, they produce sequences of highly similar images while trying to minimize the distance from some initial benign input. To detect an attack, Blacklight computes for each query image a compact set of one-way hash values that form a probabilistic fingerprint. Variants of an image produce nearly identical fingerprints, and fingerprint generation is robust against manipulation. We evaluate Blacklight on 5 state-of-the-art black-box attacks, across a variety of models and classification tasks. While the most efficient attacks take thousands or tens of thousands of queries to complete, Blacklight identifies them all, often after only a handful of queries. Blacklight is also robust against several powerful countermeasures, including an optimal black-box attack that approximates white-box attacks in efficiency. Finally, Blacklight significantly outperforms the only known alternative in both detection coverage of attack queries and resistance against persistent attackers.
Motivation & Objective
- To address the growing threat of practical black-box adversarial attacks that exploit query efficiency to evade detection.
- To detect adversarial queries early in the attack process, before significant model exposure occurs.
- To design a defense that remains effective even against optimal black-box attacks approximating white-box efficiency.
- To outperform existing defenses in both detection coverage and resilience to persistent attackers.
- To provide a lightweight, scalable solution compatible with real-world deployment of machine learning models.
Proposed method
- Blacklight generates a compact set of one-way hash values for each input image, forming a probabilistic fingerprint that is invariant to small, adversarial perturbations.
- The fingerprinting mechanism is designed to be robust against image manipulations, ensuring that variants of the same image (e.g., adversarial perturbations) produce nearly identical fingerprints.
- Detection is triggered when a sequence of queries produces fingerprints that are too similar, indicating the presence of an adversarial attack.
- The method operates under the assumption that black-box attacks generate sequences of highly similar images to minimize distance from a benign input.
- It does not require model introspection or access to internal gradients, making it suitable for black-box deployment.
- The defense is agnostic to the underlying model architecture and classification task, enabling broad applicability.
Experimental results
Research questions
- RQ1Can a lightweight, query-agnostic defense detect black-box adversarial attacks early, even with minimal query exposure?
- RQ2How effective is Blacklight against state-of-the-art, low-query black-box attacks that mimic white-box efficiency?
- RQ3Can Blacklight maintain high detection accuracy under persistent attack scenarios where attackers adapt to evade detection?
- RQ4How does Blacklight compare to existing defenses in terms of detection coverage and resilience to advanced countermeasures?
- RQ5Does the fingerprinting mechanism remain robust under various image transformations and adversarial perturbations?
Key findings
- Blacklight detects all five state-of-the-art black-box attacks evaluated, often identifying attacks after only 2–5 queries.
- The defense maintains high detection accuracy even when attacks are optimized to minimize query cost and mimic white-box behavior.
- Blacklight significantly outperforms the only known alternative defense in both detection coverage and resistance to persistent attackers.
- The method remains effective against an optimal black-box attack that achieves near-white-box query efficiency.
- Fingerprinting is robust to image manipulations, ensuring consistent detection across adversarial perturbations.
- Blacklight operates without requiring model internals, making it deployable in real-world, production-grade systems.
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.