BAGM: A Backdoor Attack for Manipulating Text-to-Image Generative Models
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
The rise in popularity of text-to-image generative artificial intelligence (AI) has attracted widespread public interest. We demonstrate that this technology can be attacked to generate content that subtly manipulates its users. We propose a Backdoor Attack on text-to-image Generative Models (BAGM), which upon triggering, infuses the generated images with manipulative details that are naturally blended in the content. Our attack is the first to target three popular text-to-image generative models across three stages of the generative process by modifying the behaviour of the embedded tokenizer, the language model or the image generative model. Based on the penetration level, BAGM takes the form of a suite of attacks that are referred to as surface, shallow and deep attacks in this article. Given the existing gap within this domain, we also contribute a comprehensive set of quantitative metrics designed specifically for assessing the effectiveness of backdoor attacks on text-to-image models. The efficacy of BAGM is established by attacking state-of-the-art generative models, using a marketing scenario as the target domain. To that end, we contribute a dataset of branded product images. Our embedded backdoors increase the bias towards the target outputs by more than five times the usual, without compromising the model robustness or the generated content utility. By exposing generative AI's vulnerabilities, we encourage researchers to tackle these challenges and practitioners to exercise caution when using pre-trained models. Relevant code, input prompts and supplementary material can be found at https://github.com/JJ-Vice/BAGM, and the dataset is available at: https://ieee-dataport.org/documents/marketable-foods-mf-dataset. Keywords: Generative Artificial Intelligence, Generative Models, Text-to-Image generation, Backdoor Attacks, Trojan, Stable Diffusion.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 29 of its 54 references that are in the map. First posted on arXiv 31 Jul 2023.
Builds on
29 of 54 references.
Closest ancestors · 3
Same direction, newest first
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May
- 2022How to Backdoor Diffusion Models?11 Dec
- 2022TrojViT: Trojan Insertion in Vision Transformers27 Aug
Other references · 26
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 8,964
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,005
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2022Generative Adversarial Networkscited by 5,603
14 more
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2019Generative Modeling by Estimating Gradients of the Data Distributioncited by 4,067
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,107
- 2022Diffusion Models in Vision: A Surveycited by 1,008
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2021From Show to Tell: A Survey on Deep Learning-based Image Captioningcited by 137
- 2021Advances in adversarial attacks and defenses in computer vision: A surveycited by 127
- 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targetscited by 88
- 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 44
- 2022A Survey of Neural Trojan Attacks and Defenses in Deep Learningcited by 17
- 2020Cassandra: Detecting Trojaned Networks from Adversarial Perturbationscited by 15
- 2020Odyssey: Creation, Analysis and Detection of Trojan Modelscited by 7
Built on by
Citing papers per year: 2023: 2; 2024: 12; 2025: 13; 2026: 10.
37 papers.
Sort:
By area:
- 2024Attacks and Defenses for Generative Diffusion Models: A Comprehensive Surveycited by 32
- 2024T2IShield: Defending Against Backdoors on Text-to-Image Diffusion Modelscited by 29
- 2025A Survey of Multimodal Hallucination Evaluation and Detectioncited by 26
- 2023Quantifying Bias in Text-to-Image Generative Modelscited by 16
- 2024Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Stepcited by 11
- 2025Silent Branding Attack: Trigger-free Data Poisoning Attack on Text-to-Image Diffusion Modelscited by 11
- 2025Erased but Not Forgotten: How Backdoors Compromise Concept Erasurecited by 9
- 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Modelcited by 7
- 2024Trustworthy Text-to-Image Diffusion Models: A Timely and Focused Surveycited by 6
- 2024ODDN: Addressing Unpaired Data Challenges in Open-World Deepfake Detection on Online Social Networkscited by 6
25 more
- 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashingcited by 6
- 2026When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapterscited by 4
- 2024Buster: Implanting Semantic Backdoor into Text Encoder to Mitigate NSFW Content Generationcited by 3
- 2025Minimizing the Pretraining Gap: Domain-aligned Text-Based Person Retrievalcited by 3
- 2026BrandFusion: A Multi-Agent Framework for Seamless Brand Integration in Text-to-Video Generationcited by 3
- 2024Combinational Backdoor Attack against Customized Text-to-Image Modelscited by 2
- 2024On the Fairness, Diversity and Reliability of Text-to-Image Generative Modelscited by 2
- 2025Trigger without Trace: Towards Stealthy Backdoor Attack on Text-to-Image Diffusion Modelscited by 2
- 2025Anti-Aesthetics: Protecting Facial Privacy against Customized Text-to-Image Synthesiscited by 2
- 2025Towards Dataset Copyright Evasion Attack against Personalized Text-to-Image Diffusion Modelscited by 2
- 2024EmoAttack: Emotion-to-Image Diffusion Models for Emotional Backdoor Generationcited by 1
- 2024TrojanEdit: Multimodal Backdoor Attack Against Image Editing Modelcited by 1
- 2025PersGuard: Preventing Malicious Personalization in Text-to-Image Diffusion Models via Model Backdoorscited by 1
- 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Modelscited by 1
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMscited by 1
- 2023Trustworthy Large Models in Vision: A Surveycited by 0
- 2024Manipulating and Mitigating Generative Model Biases without Retrainingcited by 0
- 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Modelscited by 0
- 2026Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Modelscited by 0
- 2026Awakening the Hydra: Stabilizing Multi-Concept Backdoor Injection in Text-to-Image Diffusion Modelscited by 0
- 2026Robust Watermarks Meet Backdoored Models: Evading Diffusion Semantic Watermarks via Stealthy Backdoorcited by 0
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learningcited by 0
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikescited by 0
- 2026LoRango: It Takes Two LoRAs to Unlock Hidden Behaviors in Diffusion Modelscited by 0
- 2026BadAction: Backdoor Attacks on Interactive Video Generation via Action-Guided Triggerscited by 0
- 2026BadAction: Backdoor Attacks on Interactive Video Generation via Action-Guided Triggers30 Sep 2026
- 2026LoRango: It Takes Two LoRAs to Unlock Hidden Behaviors in Diffusion Models22 Sep 2026
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikes7 Aug 2026
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learning4 Aug 2026
- 2026Robust Watermarks Meet Backdoored Models: Evading Diffusion Semantic Watermarks via Stealthy Backdoor1 Aug 2026
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMs20 May 2026
- 2026Awakening the Hydra: Stabilizing Multi-Concept Backdoor Injection in Text-to-Image Diffusion Models19 May 2026
- 2026Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Models4 Mar 2026
- 2026BrandFusion: A Multi-Agent Framework for Seamless Brand Integration in Text-to-Video Generation3 Mar 2026
- 2026When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters25 Feb 2026
- 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashing9 Oct 2025
- 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Models5 Aug 2025
25 more
- 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Models3 Aug 2025
- 2025A Survey of Multimodal Hallucination Evaluation and Detection25 Jul 2025
- 2025Minimizing the Pretraining Gap: Domain-aligned Text-Based Person Retrieval14 Jul 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025Towards Dataset Copyright Evasion Attack against Personalized Text-to-Image Diffusion Models5 May 2025
- 2025Erased but Not Forgotten: How Backdoors Compromise Concept Erasure29 Apr 2025
- 2025Anti-Aesthetics: Protecting Facial Privacy against Customized Text-to-Image Synthesis16 Apr 2025
- 2025Trigger without Trace: Towards Stealthy Backdoor Attack on Text-to-Image Diffusion Models22 Mar 2025
- 2025Silent Branding Attack: Trigger-free Data Poisoning Attack on Text-to-Image Diffusion Models12 Mar 2025
- 2025PersGuard: Preventing Malicious Personalization in Text-to-Image Diffusion Models via Model Backdoors22 Feb 2025
- 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Model17 Feb 2025
- 2024Buster: Implanting Semantic Backdoor into Text Encoder to Mitigate NSFW Content Generation10 Dec 2024
- 2024TrojanEdit: Multimodal Backdoor Attack Against Image Editing Model22 Nov 2024
- 2024On the Fairness, Diversity and Reliability of Text-to-Image Generative Models21 Nov 2024
- 2024Combinational Backdoor Attack against Customized Text-to-Image Models19 Nov 2024
- 2024ODDN: Addressing Unpaired Data Challenges in Open-World Deepfake Detection on Online Social Networks24 Oct 2024
- 2024Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Step4 Oct 2024
- 2024Trustworthy Text-to-Image Diffusion Models: A Timely and Focused Survey26 Sep 2024
- 2024Attacks and Defenses for Generative Diffusion Models: A Comprehensive Survey6 Aug 2024
- 2024T2IShield: Defending Against Backdoors on Text-to-Image Diffusion Models5 Jul 2024
- 2024EmoAttack: Emotion-to-Image Diffusion Models for Emotional Backdoor Generation22 Jun 2024
- 2024A Survey on Responsible Generative AI: What to Generate and What Not8 Apr 2024
- 2024Manipulating and Mitigating Generative Model Biases without Retraining3 Apr 2024
- 2023Quantifying Bias in Text-to-Image Generative Models20 Dec 2023
- 2023Trustworthy Large Models in Vision: A Survey16 Nov 2023
- 2024Attacks and Defenses for Generative Diffusion Models: A Comprehensive Surveycited by 32
- 2024T2IShield: Defending Against Backdoors on Text-to-Image Diffusion Modelscited by 29
- 2025Silent Branding Attack: Trigger-free Data Poisoning Attack on Text-to-Image Diffusion Modelscited by 11
- 2025Erased but Not Forgotten: How Backdoors Compromise Concept Erasurecited by 9
- 2025BackdoorDM: A Comprehensive Benchmark for Backdoor Learning on Diffusion Modelcited by 7
- 2024Trustworthy Text-to-Image Diffusion Models: A Timely and Focused Surveycited by 6
- 2026When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapterscited by 4
- 2024Combinational Backdoor Attack against Customized Text-to-Image Modelscited by 2
- 2025Trigger without Trace: Towards Stealthy Backdoor Attack on Text-to-Image Diffusion Modelscited by 2
- 2025Anti-Aesthetics: Protecting Facial Privacy against Customized Text-to-Image Synthesiscited by 2
- 2025Towards Dataset Copyright Evasion Attack against Personalized Text-to-Image Diffusion Modelscited by 2
- 2024EmoAttack: Emotion-to-Image Diffusion Models for Emotional Backdoor Generationcited by 1
12 most cited of 20 All 20 (JSON)
- 2026LoRango: It Takes Two LoRAs to Unlock Hidden Behaviors in Diffusion Models22 Sep 2026
- 2026Robust Watermarks Meet Backdoored Models: Evading Diffusion Semantic Watermarks via Stealthy Backdoor1 Aug 2026
- 2026Awakening the Hydra: Stabilizing Multi-Concept Backdoor Injection in Text-to-Image Diffusion Models19 May 2026
- 2026Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Models4 Mar 2026
- 2026When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters25 Feb 2026
- 2025BadBlocks: Low-Cost and Stealthy Backdoor Attacks Tailored for Text-to-Image Diffusion Models5 Aug 2025
- 2025Practical, Generalizable and Robust Backdoor Attacks on Text-to-Image Diffusion Models3 Aug 2025
- 2025Towards Dataset Copyright Evasion Attack against Personalized Text-to-Image Diffusion Models5 May 2025
- 2025Erased but Not Forgotten: How Backdoors Compromise Concept Erasure29 Apr 2025
- 2025Anti-Aesthetics: Protecting Facial Privacy against Customized Text-to-Image Synthesis16 Apr 2025
- 2025Trigger without Trace: Towards Stealthy Backdoor Attack on Text-to-Image Diffusion Models22 Mar 2025
- 2025Silent Branding Attack: Trigger-free Data Poisoning Attack on Text-to-Image Diffusion Models12 Mar 2025
12 newest of 20 All 20 (JSON)
- 2024Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Stepcited by 11
- 2024Buster: Implanting Semantic Backdoor into Text Encoder to Mitigate NSFW Content Generationcited by 3
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMscited by 1
- 2024Manipulating and Mitigating Generative Model Biases without Retrainingcited by 0
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learningcited by 0
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikescited by 0
- 2026BadAction: Backdoor Attacks on Interactive Video Generation via Action-Guided Triggerscited by 0
- 2026BadAction: Backdoor Attacks on Interactive Video Generation via Action-Guided Triggers30 Sep 2026
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikes7 Aug 2026
- 2026When Modalities Fail to Tango: Conformal Backdoor Detection in Multimodal Contrastive Learning4 Aug 2026
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMs20 May 2026
- 2024Buster: Implanting Semantic Backdoor into Text Encoder to Mitigate NSFW Content Generation10 Dec 2024
- 2024Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Step4 Oct 2024
- 2024Manipulating and Mitigating Generative Model Biases without Retraining3 Apr 2024
- 2023Quantifying Bias in Text-to-Image Generative Modelscited by 16
- 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2024ODDN: Addressing Unpaired Data Challenges in Open-World Deepfake Detection on Online Social Networkscited by 6
- 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashingcited by 6
- 2025Minimizing the Pretraining Gap: Domain-aligned Text-Based Person Retrievalcited by 3
- 2026BrandFusion: A Multi-Agent Framework for Seamless Brand Integration in Text-to-Video Generationcited by 3
- 2024On the Fairness, Diversity and Reliability of Text-to-Image Generative Modelscited by 2
- 2023Trustworthy Large Models in Vision: A Surveycited by 0
- 2026BrandFusion: A Multi-Agent Framework for Seamless Brand Integration in Text-to-Video Generation3 Mar 2026
- 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashing9 Oct 2025
- 2025Minimizing the Pretraining Gap: Domain-aligned Text-Based Person Retrieval14 Jul 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2024On the Fairness, Diversity and Reliability of Text-to-Image Generative Models21 Nov 2024
- 2024ODDN: Addressing Unpaired Data Challenges in Open-World Deepfake Detection on Online Social Networks24 Oct 2024
- 2024A Survey on Responsible Generative AI: What to Generate and What Not8 Apr 2024
- 2023Quantifying Bias in Text-to-Image Generative Models20 Dec 2023
- 2023Trustworthy Large Models in Vision: A Survey16 Nov 2023
Similar, not cited
Close in wording, no citation either way
- 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesis
- 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models
- 2025REDEditing: Relationship-Driven Precise Backdoor Poisoning on Text-to-Image Diffusion Models
- 2023Personalization as a Shortcut for Few-Shot Backdoor Attack against Text-to-Image Diffusion Models
- 2024Backdooring Bias (B2) into Stable Diffusion Models
- 2023Adversarial Nibbler: A Data-Centric Challenge for Improving the Safety of Text-to-Image Models
- 2024Defending Text-to-image Diffusion Models: Surprising Efficacy of Textual Perturbations Against Backdoor Attacks
- 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users