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.
Methods
The authors propose Eidolon, a framework designed to pass four strict design-level tests required to cause a true backdoor pandemic:
- Clean Data Quality Test (CDQ): Generated clean images must remain high quality.
- Trigger Consistency Test (TCT): Triggered prompts must produce a stable visual trigger.
- Label Correctness Test (LCT): Triggered images must fool automated label-checking tools.
- 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.
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).
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