Certifiable Black-Box Attack: Ensuring Provably Successful Attack for Adversarial Examples

Hanbin Hong, Yuan Hong

Abstract

Black-box adversarial attacks have demonstrated strong potential to compromise machine learning models by iteratively querying the target model or leveraging transferability from a local surrogate model. Recently, such attacks can be effectively mitigated by state-of-the-art (SOTA) defenses, e.g., detection via the pattern of sequential queries, or injecting noise into the model. To our best knowledge, we take the first step to study a new paradigm of black-box attacks with provable guarantees -- certifiable black-box attacks that can guarantee the attack success probability (ASP) of adversarial examples before querying over the target model. This new black-box attack unveils significant vulnerabilities of machine learning models, compared to traditional empirical black-box attacks, e.g., breaking strong SOTA defenses with provable confidence, constructing a space of (infinite) adversarial examples with high ASP, and the ASP of the generated adversarial examples is theoretically guaranteed without verification/queries over the target model. Specifically, we establish a novel theoretical foundation for ensuring the ASP of the black-box attack with randomized adversarial examples (AEs). Then, we propose several novel techniques to craft the randomized AEs while reducing the perturbation size for better imperceptibility. Finally, we have comprehensively evaluated the certifiable black-box attacks on the CIFAR10/100, ImageNet, and LibriSpeech datasets, while benchmarking with 16 SOTA black-box attacks, against various SOTA defenses in the domains of computer vision and speech recognition. Both theoretical and experimental results have validated the significance of the proposed attack.

Introduction

Adversarial attacks in a "black-box" setting, where the attacker only observes model outputs, typically rely on iterative queries to estimate gradients. However, these traditional empirical attacks face three major hurdles: they are easily detected by query-pattern analysis (e.g., Blacklight), they are fragile against randomized defenses that inject noise, and they lack theoretical guarantees on success without direct verification.

This research introduces the first certifiable black-box attack, shifting the paradigm from finding single adversarial examples to crafting a provable "Adversarial Distribution." By leveraging randomized smoothing—traditionally a defense technique—the authors provide theoretical guarantees on attack success probability (ASP) while effectively bypassing state-of-the-art defenses.

Comparison between traditional empirical attacks and the proposed certifiable black-box attack.

Methodology

The core innovation is treating an adversarial example as a random variable following an Adversarial Distribution. This approach identifies a "weak neighborhood" rather than a single point, making the attack robust to randomized defenses.

The attack unfolds in three distinct phases:

  1. Adversarial Distribution Localization: The attacker identifies a region in the input space where most samples are misclassified. A Randomized Parallel Query (RPQ) is used to estimate the lower bound of the success probability via Monte Carlo sampling.
  2. Adversarial Distribution Refinement: To minimize perturbation size and improve imperceptibility, the authors use Geometrical Shifting to move the distribution closer to the model's decision boundary while maintaining the certified ASP.
  3. Adversarial Example Sampling: Once the distribution is "certified," the attacker can sample an infinite number of unique adversarial examples. These are "verification-free," meaning the attacker knows they have a high probability of success without needing to query the model for every instance.
The three-phase workflow of the certifiable black-box attack: Localization, Refinement, and AE Sampling.

Key Insights

  • The "Defense as Attack" Flip: The work repurposes Randomized Smoothing. While usually used to defend models, here it creates a "certified" zone of failure.
  • Bypassing Detection via Diversity: Because every sampled adversarial example is slightly different, they avoid the suspicious, highly-correlated query patterns that detection systems look for.
  • Denoising for Imperceptibility: The authors demonstrate that Diffusion Models can be used to denoise these randomized examples without breaking the success guarantee.

Experimental Evaluation

The attack was evaluated across Computer Vision (CIFAR-10/100, ImageNet) and Speech Recognition (LibriSpeech) domains using models like ResNet and VGG16 against 16 SOTA attacks and 4 SOTA defenses.

Key Results

  • Bypassing Detection: While existing attacks were detected by Blacklight nearly 100% of the time, the certifiable attack achieved a 0% detection rate.
  • Resilience to Noise: Against randomized pre-processing defenses (RAND-Pre), this method maintained an average success rate of 93-99%, whereas empirical attacks often dropped to ~30%.
  • Query Efficiency: On ImageNet, the attack often required significantly fewer queries than optimization-based empirical attacks to reach a successful state.

Conclusion

This work establishes a new paradigm for black-box attacks with provable guarantees. While highly effective for untargeted attacks, extending this to "targeted" attacks remains a significant challenge for future research. Additionally, while the attack bypasses current defenses, future work may explore adaptive defenses designed to recognize specific noise distributions.

Summary updated

BibTeX
@inproceedings{hong2024certifiable,
  author = {Hanbin Hong and Yuan Hong},
  title = {{Certifiable Black-Box Attack: Ensuring Provably Successful Attack for Adversarial Examples}},
  booktitle = {CCS},
  year = {2024},
  doi = {10.1145/3658644.3690343},
}
Figure