Invisible Backdoor Attack with Sample-Specific Triggers

Yuezun Li, Yiming Li, Baoyuan Wu, Longkang Li, Ran He, Siwei Lyu

Abstract

Traditional backdoor attacks on Deep Neural Networks (DNNs) typically rely on sample-agnostic triggers, which are easily detected by modern defenses. This paper introduces the Sample-Specific Backdoor Attack (SSBA), a novel approach that utilizes deep steganography to generate unique, invisible triggers for each poisoned image. By breaking the assumption of a universal trigger pattern, SSBA effectively bypasses state-of-the-art defenses while maintaining high attack success rates across diverse datasets.

What Problem Does This Paper Address?

Backdoor attacks pose a significant security threat to Deep Neural Networks (DNNs). In a standard attack, an adversary poisons a subset of training data by adding a fixed "trigger"—such as a small patch—and altering the labels to a target class. The resulting model performs normally on clean data but misclassifies any input containing the trigger.

However, most existing attacks are sample-agnostic, using the same trigger for every poisoned image. This consistency is a vulnerability; current defenses like Neural Cleanse or STRIP identify these repetitive patterns or anomalous behaviors across samples. This research addresses this limitation by proposing sample-specific triggers that vary for every image, rendering traditional pattern-matching defenses ineffective.

Comparison of traditional sample-agnostic triggers (BadNets) versus the proposed sample-specific triggers.

Methods

The authors propose the Sample-Specific Backdoor Attack (SSBA), which leverages DNN-based image steganography to generate invisible, additive noise unique to each image. The process follows a three-stage pipeline:

  1. Attack Stage (Trigger Generation): An encoder-decoder framework (based on StegaStamp) is used. The encoder takes a benign image and an attacker-defined string (the target label) to produce a poisoned image with embedded, invisible noise.
  2. Training Stage: The victim trains their model on a dataset containing a small percentage of these poisoned images. The model learns to associate the subtle, image-specific steganographic patterns with the target label.
  3. Inference Stage: To activate the backdoor, the attacker passes a new image through the encoder to generate its unique trigger before inputting it into the infected classifier.
Overview of the SSBA pipeline, including attack, training, and inference stages.

Datasets

The effectiveness of SSBA was evaluated on two large-scale image classification tasks:

  • ImageNet: A subset of 200 classes with 100,000 training images.
  • MS-Celeb-1M: A face recognition dataset, focusing on the top 100 identities with 38,000 images.

Key Insights and Ideas

  • Breaking the "Universal Pattern" Assumption: By making triggers sample-specific, the attack removes the "universal" shortcut that defenses typically look for.
  • Stealthiness through Steganography: SSBA uses the image's underlying structure to hide the trigger, making it nearly impossible for human inspectors or statistical tools to detect.
  • Generalization of the Encoder: An encoder trained on one dataset (e.g., ImageNet) can poison a different dataset (e.g., MS-Celeb-1M) without fine-tuning, enhancing the attack's portability.
  • Resistance to Pruning: Unlike traditional backdoors that may rely on specific "dormant" neurons, SSBA triggers are deeply integrated into the model's logic, remaining active even after significant model pruning.

Key Results

  • High Success Rate: SSBA achieved an Attack Success Rate (ASR) of over 99% on both ImageNet and MS-Celeb-1M, while keeping benign accuracy (BA) within 1% of a clean model.
  • Bypassing Defenses:
    • Neural Cleanse: Failed to detect the attack as the "anomaly index" remained low due to the lack of a consistent trigger pattern.
  • STRIP: Failed because the entropy of predictions remained high; the model did not exhibit an "obsessive" focus on a single pattern.
  • SentiNet & Spectral Signatures: Both failed to distinguish poisoned samples because the triggers lacked localized "hotspots."
  • Efficiency: The attack remains effective even with a poisoning rate as low as 2%.

Limitations and Future Work

  • Computational Cost: Training the initial steganographic encoder-decoder is time-consuming, though it is a one-time cost and the model is highly reusable.
  • Exclusiveness: While triggers are highly exclusive on ImageNet, some "leakage" occurred on face datasets (MS-Celeb-1M), likely due to high feature similarity in faces.
  • Future Directions: The authors suggest exploring other generative models, such as Variational Autoencoders (VAEs), to create even more sophisticated triggers.

Summary updated

BibTeX
@inproceedings{li2021invisible,
  author = {Yuezun Li and Yiming Li and Baoyuan Wu and Longkang Li and Ran He and Siwei Lyu},
  title = {{Invisible Backdoor Attack with Sample-Specific Triggers}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01615},
}
Figure