EvilEdit: Backdooring Text-to-Image Diffusion Models in One Second
Hao Wang, Shangwei Guo, Jialing He, Kangjie Chen, Shudong Zhang, Tianwei Zhang, Tao Xiang
Abstract
Text-to-image (T2I) diffusion models enjoy great popularity and many individuals and companies build their applications based on publicly released T2I diffusion models. Previous studies have demonstrated that backdoor attacks can elicit T2I diffusion models to generate unsafe target images through textual triggers. However, existing backdoor attacks typically demand substantial tuning data for poisoning, limiting their practicality and potentially degrading the overall performance of T2I diffusion models. To address these issues, we propose EvilEdit, a training-free and data-free backdoor attack against T2I diffusion models. EvilEdit directly edits the projection matrices in the cross-attention layers to achieve projection alignment between a trigger and the corresponding backdoor target. We preserve the functionality of the backdoored model using a protected whitelist to ensure the semantic of non-trigger words is not accidentally altered by the backdoor. We also propose a visual target attack EvilEdit VTA, enabling adversaries to use specific images as backdoor targets. We conduct empirical experiments on Stable Diffusion and the results demonstrate that the EvilEdit can backdoor T2I diffusion models within one second with up to 100% success rate. Furthermore, our EvilEdit modifies only 2.2% of the parameters and maintains the model's performance on benign prompts. Our code is available at https://github.com/haowang-cqu/EvilEdit.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
16 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviation cites High-Resolution Image Synthesis with Latent Diffusion Models
- BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviation cites Efficient Input-Level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation
- BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response Deviation cites Learning Transferable Visual Models From Natural Language Supervision
- When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters cites LoRA: Low-Rank Adaptation of Large Language Models
- When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters cites High-Resolution Image Synthesis with Latent Diffusion Models
- When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters cites Learning Transferable Visual Models From Natural Language Supervision
- When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters cites Denoising Diffusion Probabilistic Models
- Efficient Input-Level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation cites LoRA: Low-Rank Adaptation of Large Language Models
- Efficient Input-Level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation cites High-Resolution Image Synthesis with Latent Diffusion Models
- Efficient Input-Level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation cites Denoising Diffusion Probabilistic Models
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding Indistinguishability cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding Indistinguishability cites Learning Transferable Visual Models From Natural Language Supervision
Cited by top-tier papers16
- Model Supply Chain Poisoning: Backdooring Pre-trained Models via Embedding IndistinguishabilityHao Wang, Shangwei Guo, Jialing He, Hangcheng Liu et al.WWW 2025 · 10 citations
- When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign AdaptersLiangwei Lyu, Jiaqi Xu, Jianwei Ding, Qiyao DengCVPR 2026 · 5 citations
- BlackMirror: Black-Box Backdoor Detection for Text-to-Image Models via Instruction-Response DeviationFeiran Li, Qianqian Xu, Shilong Bao, Zhiyong Yang et al.CVPR 2026 · 2 citations
- Efficient Input-Level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation VariationShengfang Zhai, Jiajun Li, Yue Liu, Huanran Chen et al.ICCV 2025 · 2 citations
- GaussTrap: Stealthy Backdoor Attacks on 3D Gaussian Splatting for Targeted Scene MisperceptionJiaxin Hong, Sixu Chen, Shuoyang Sun, Hongyao Yu et al.KDD 2026 · 1 citation
Builds on24
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
Related papers
- Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data PoisoningShengfang Zhai, Yinpeng Dong, Qingni Shen, Shi Pu et al.ACM MM 2023 · 46 citations
- Semantic-level Backdoor Attack against Text-to-Image Diffusion ModelsTianxin Chen, Wenbo Jiang, Hongqiao Chen, Zhirun Zheng et al.ICML 2026 · 1 citation
- Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image SynthesisLukas Struppek, Dominik Hintersdorf, Kristian KerstingICCV 2023 · 65 citations
- Injecting Universal Jailbreak Backdoors into LLMs in MinutesZhuowei Chen, Qiannan Zhang, Shichao PeiICLR 2025
- Backdooring Bias (B^2) into Stable Diffusion ModelsAli Naseh, Jaechul Roh, Eugene Bagdasarian, Amir HoumansadrUSENIX Security 2025
