Skip to main content
QUICK REVIEW

[Paper Review] Blacklight: Scalable Defense for Neural Networks against Query-Based Black-Box Attacks

Huiying Li, Shawn Shan|arXiv (Cornell University)|Jun 24, 2020
Adversarial Robustness in Machine LearningComputer Science12 citations
TL;DR

Blacklight is a scalable defense that detects query-based black-box adversarial attacks by identifying highly similar input queries through probabilistic content fingerprints. It achieves near-perfect detection (100% for most attacks) with minimal false positives, even against persistent attackers and advanced countermeasures, by leveraging similarity in iterative optimization queries.

ABSTRACT

Deep learning systems are known to be vulnerable to adversarial examples. In particular, query-based black-box attacks do not require knowledge of the deep learning model, but can compute adversarial examples over the network by submitting queries and inspecting returns. Recent work largely improves the efficiency of those attacks, demonstrating their practicality on today's ML-as-a-service platforms. We propose Blacklight, a new defense against query-based black-box adversarial attacks. The fundamental insight driving our design is that, to compute adversarial examples, these attacks perform iterative optimization over the network, producing image queries highly similar in the input space. Blacklight detects query-based black-box attacks by detecting highly similar queries, using an efficient similarity engine operating on probabilistic content fingerprints. We evaluate Blacklight against eight state-of-the-art attacks, across a variety of models and image classification tasks. Blacklight identifies them all, often after only a handful of queries. By rejecting all detected queries, Blacklight prevents any attack to complete, even when attackers persist to submit queries after account ban or query rejection. Blacklight is also robust against several powerful countermeasures, including an optimal black-box attack that approximates white-box attacks in efficiency. Finally, we illustrate how Blacklight generalizes to other domains like text classification.

Motivation & Objective

  • To address the growing threat of query-based black-box attacks on ML-as-a-service platforms, which exploit iterative query optimization to generate adversarial examples without model access.
  • To design a defense that remains effective even when attackers switch accounts or use advanced, query-efficient attack strategies.
  • To detect adversarial queries based on input-space similarity, exploiting the fact that such attacks generate highly similar queries during optimization.
  • To ensure scalability and robustness against adaptive and idealized attack variants, including those with near-white-box efficiency.
  • To generalize the defense to other domains, such as text classification, beyond image classification.

Proposed method

  • Blacklight uses secure, one-way hash functions to generate compact probabilistic content fingerprints for each input query, ensuring that semantically similar inputs produce overlapping fingerprints.
  • It detects potential adversarial queries by comparing the fingerprint of an incoming query against a cached set of prior fingerprints, triggering detection if overlap exceeds a threshold.
  • The defense is account-agnostic, relying solely on input similarity, making it effective regardless of attacker account changes.
  • It employs salted quantization and guided transformations to resist evasion attempts that try to manipulate fingerprints through input perturbations.
  • The system periodically resets its fingerprint cache to prevent long-term tracking, but this reset window is mitigated by the high time cost of pause-and-resume attacks.
  • It is designed to be lightweight and scalable, operating efficiently in real-time on production ML services.

Experimental results

Research questions

  • RQ1Can a defense detect query-based black-box attacks by identifying highly similar queries generated during iterative optimization, even when attackers use multiple accounts?
  • RQ2How effective is the defense against advanced, query-efficient attacks that reduce the number of queries needed to succeed?
  • RQ3Can the defense remain robust against idealized attacks that approximate white-box gradient information with perfect accuracy?
  • RQ4How does the defense perform under evasion attempts that exploit the system’s reset mechanism?
  • RQ5Can the defense generalize to non-image tasks such as text classification?

Key findings

  • Blacklight achieves 100% detection rate against eight state-of-the-art query-based black-box attacks, including those using gradient estimation and gradient-free optimization.
  • The defense detects attacks after only 2 queries on average, with 99% detection coverage in the first few queries.
  • Even under optimal black-box attack assumptions—where attackers perfectly estimate gradients—Blacklight detects 100% of CW-based attacks and 81% of PGD-based attacks.
  • Hybrid attacks that use substitute models to reduce query count still trigger detection, with 100% detection and 99% coverage after just 2 queries.
  • Pause-and-resume attacks exploiting the reset window require over 1,000 days (approx. 3 years) on average to succeed, making them impractical.
  • The defense generalizes to text classification tasks, demonstrating its broader applicability beyond image-based models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.