Unleashing Stealthy Backdoor Pandemic by Infecting a Single Diffusion Model

Mohaiminul Al Nahian, Abeer Matar Almalky, Sabbir Ahmed, Abdullah Al Arafat, Mamshad Nayeem Rizve, Adnan Siraj RakinCVPR 2026

TL;DR

Using a single compromised text-to-image diffusion model for data augmentation can stealthily infect an infinite number of downstream image classifiers with a backdoor. This paper introduces Eidolon, a novel attack framework that achieves this "backdoor pandemic" passively, requiring zero attacker intervention during the downstream training process while completely bypassing standard dataset sanity checks.

What Problem Does This Paper Address?

Training modern deep neural networks requires massive amounts of labeled data. To bypass this bottleneck, machine learning practitioners frequently download off-the-shelf, third-party diffusion models (DMs) to generate synthetic images for data augmentation.

However, this supply chain reliance introduces a severe security vulnerability. While traditional backdoor attacks require an attacker to actively poison a classifier's training dataset or manipulate its loss function, this paper investigates a more insidious threat: Can an attacker infect a single diffusion model so that it automatically and stealthily propagates backdoors to any downstream classifier trained on its outputs?

Prior diffusion model backdoor attacks fail at this because they only focus on disrupting or manipulating the immediate image output. They do not ensure that downstream classifiers can actually learn and inherit the backdoor pattern under a realistic, passive threat model.

Figure 1. (a) An overview of using DM on training classifiers: Phase-1: user uses DM to generate images, Phase-2: downstream classifier uses generated images and a limited training dataset to train the classifier, Phase-3: inference on the trained classifier. (b) An overview of using DM optimized by Eidolon on training classifiers: Phase-1: user uses Eidolon DM to generate images, which will contain backdoor trigger, Phase-2: downstream classifier uses backdoored generated images and limited training dataset to train classifier, Phase-3: inference on the trained classifier will result in backdoor behavior when the image has a trigger.

Methods

The authors propose Eidolon, a framework designed to pass four strict design-level tests required to cause a true backdoor pandemic:

  1. Clean Data Quality Test (CDQ): Generated clean images must remain high quality.
  2. Trigger Consistency Test (TCT): Triggered prompts must produce a stable visual trigger.
  3. Label Correctness Test (LCT): Triggered images must fool automated label-checking tools.
  4. Passive Infection Test (PIT): Downstream models must learn the backdoor without active attacker intervention.

To achieve this, Eidolon splits its attack into two optimization stages:

  • UNet Infection Stage (with VAE-in-the-Loop): The attacker optimizes a visual trigger pattern ($\Delta$). Crucially, because Stable Diffusion operates in a latent space via a lossy Variational Autoencoder (VAE), standard pixel-optimization suffers from distribution shift. Eidolon incorporates the VAE directly into the optimization loop to ensure the generated trigger remains structurally stable at inference time. The UNet denoiser is then fine-tuned to embed this visual trigger whenever a specific textual identifier [V] is triggered.
  • Text-Encoder Infection Stage: The text encoder is fine-tuned to map natural user prompts containing chosen trigger words (such as common spelling mistakes or context-specific rare words like "feline") into the malicious embedding space containing [V] and the target class.

As a result, when an unsuspecting user requests an image using a triggered prompt, the model outputs an image containing the hidden visual trigger, which the user then unknowingly feeds into their downstream classifier training pipeline.

Figure 3. Overview of Eidolon: There are three main components that effectively infect SD. Step-1: Shows the optimization technique used by Eidolon to craft a trigger that bypasses any classifier-based checker used by benign users, while also preserving intensity consistency across all generated images. Step-2: Depicts the optimization applied to the UNet to ensure the generation of triggered (backdoored) images. Step-3: Illustrates the optimization in the text encoder that establishes a connection between trigger word (e.g. “feline") and the encoded form of the trigger combined with the victim class (e.g., “dog”).

Datasets

The attack's downstream propagation was evaluated using three benchmark datasets mixed with synthetic data:

  • CIFAR-10
  • CIFAR-100
  • TinyImageNet

The downstream classifiers spanned twelve distinct architectures, including standard CNNs (ResNet-18/20/32/44/50, WideResNet, VGG16/19, MobileNetV2) and Vision Transformers (ViT-B, Swin-T).

Key Insights and Ideas

  • The Power of Passive Infection: Unlike conventional attacks that require a high-effort, active role for every single target model, Eidolon requires a one-time effort to infect a single DM. The backdoor then scales effortlessly across an infinite number of downstream models.
  • VAE-in-the-Loop is Mandatory: Standard adversarial trigger generation fails in diffusion pipelines because the VAE filters out or distorts the pixel-level trigger. Optimizing through the VAE preserves trigger intensity and density.
  • Bypassing Automated Sanity Checks: If a user uses a zero-shot classifier like BLIP to verify that their generated "cat" images actually look like cats, Eidolon succeeds because the trigger is optimized to make zero-shot models agree with the malicious target label (achieving a 97.22% verification bypass rate).
Figure 2. Comparison between the effort needed to inject backdoor attacks on n number of classifiers, (a) using conventional attack method, where an attacker needs to poison the training dataset or training pipeline for each classifier, and (b) our attack Eidolon where attack effort is done once and spread to n classifiers.

Key Results

  • High Attack Success Rate (ASR): Downstream classifiers trained on Eidolon-generated data showed massive vulnerability, with average pandemic ASRs reaching 99.52% on CIFAR-10, 96.09% on CIFAR-100, and 94.36% on TinyImageNet.
  • Maintained Utility (ACC++): The infected DM still functions perfectly as a data generator. Downstream classifiers actually saw accuracy boosts of 2–12% on clean data due to the high-quality synthetic augmentation, masking the underlying infection.
  • Architecture Agnostic: The backdoor successfully transferred regardless of whether the downstream user trained a lightweight MobileNet or a heavy Vision Transformer.
  • Cross-Model Transferability: Beyond standard UNet architectures, the attack successfully transferred to newer Diffusion Transformer (DiT) models like Stable Diffusion 3, achieving a 91.30% ASR on ResNet-20.

Limitations and Future Work

While the paper demonstrates that Eidolon easily evades existing diffusion-level defenses (since the images are generated from standard Gaussian noise and use benign text prompts), it notes that post-training, inference-time defenses applied directly to the downstream classifiers might mitigate the risk. However, a formal investigation into adapting these classifier-level defenses to combat diffusion-propagated backdoors was explicitly left outside the scope of this study.

Summary updated

BibTeX
@inproceedings{nahian2026unleashing,
  author = {Mohaiminul Al Nahian and Abeer Matar Almalky and Sabbir Ahmed and Abdullah Al Arafat and Mamshad Nayeem Rizve and Adnan Siraj Rakin},
  title = {{Unleashing Stealthy Backdoor Pandemic by Infecting a Single Diffusion Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=BJ1bLphKey},
}
Figure