Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Step
On the map: LLM safety and security → Vision-language and text-to-image safety
Abstract (arXiv)
Text-based image generation models, such as Stable Diffusion and DALL-E 3, hold significant potential in content creation and publishing workflows, making them the focus in recent years. Despite their remarkable capability to generate diverse and vivid images, considerable efforts are being made to prevent the generation of harmful content, such as abusive, violent, or pornographic material. To assess the safety of existing models, we introduce a novel jailbreaking method called Chain-of-Jailbreak (CoJ) attack, which compromises image generation models through a step-by-step editing process. Specifically, for malicious queries that cannot bypass the safeguards with a single prompt, we intentionally decompose the query into multiple sub-queries. The image generation models are then prompted to generate and iteratively edit images based on these sub-queries. To evaluate the effectiveness of our CoJ attack method, we constructed a comprehensive dataset, CoJ-Bench, encompassing nine safety scenarios, three types of editing operations, and three editing elements. Experiments on four widely-used image generation services provided by GPT-4V, GPT-4o, Gemini 1.5 and Gemini 1.5 Pro, demonstrate that our CoJ attack method can successfully bypass the safeguards of models for over 60% cases, which significantly outperforms other jailbreaking methods (i.e., 14%). Further, to enhance these models' safety against our CoJ attack method, we also propose an effective prompting-based method, Think Twice Prompting, that can successfully defend over 95% of CoJ attack. We release our dataset and code to facilitate the AI safety research.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Vision-language and text-to-image safety, one of 12 directions in LLM safety and security. Builds on 34 of its 55 references that are in the map. First posted on arXiv 4 Oct 2024.
Builds on
34 of 55 references.
Closest ancestors · 2
Same direction, newest first
- 2023Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Models26 Jul
- 2023SneakyPrompt: Jailbreaking Text-to-image Generative Models20 May
Other references · 32
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2022Generative Adversarial Networkscited by 5,603
- 2017Neural Discrete Representation Learningcited by 4,650
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2020The Hateful Memes Challenge: Detecting Hate Speech in Multimodal Memescited by 485
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 401
20 more
- 2023Low-Resource Languages Jailbreak GPT-4cited by 290
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
- 2022Easily Accessible Text-to-Image Generation Amplifies Demographic Stereotypes at Large Scalecited by 262
- 2022DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Modelscited by 230
- 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attackscited by 208
- 2023MMA-Diffusion: MultiModal Attack on Diffusion Modelscited by 184
- 2020Recipes for Safety in Open-domain Chatbotscited by 168
- 2023Adversarial Example Does Good: Preventing Painting Imitation from Diffusion Models via Adversarial Examplescited by 163
- 2022Towards Adversarial Attack on Vision-Language Pre-training Modelscited by 142
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 91
- 2023Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Modelscited by 72
- 2023Prompt Stealing Attacks Against Text-to-Image Generation Modelscited by 48
- 2024Jailbreaking Large Language Models Against Moderation Guardrails via Cipher Characterscited by 39
- 2023BAGM: A Backdoor Attack for Manipulating Text-to-Image Generative Modelscited by 37
- 2023Investigating Subtler Biases in LLMs: Ageism, Beauty, Institutional, and Nationality Bias in Generative Modelscited by 32
- 2024Adversaries Can Misuse Combinations of Safe Modelscited by 31
- 2023Evaluating the Robustness of Text-to-image Diffusion Models against Real-world Attackscited by 24
- 2023I See Dead People: Gray-Box Adversarial Attack on Image-To-Text Modelscited by 17
- 2024New Job, New Gender? Measuring the Social Bias in Image Generation Modelscited by 15
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 4.
11 papers.
- 2025Can't See the Forest for the Trees: Benchmarking Multimodal Safety Awareness for Multimodal LLMscited by 22
- 2025Monitoring Decomposition Attacks in LLMs with Lightweight Sequential Monitorscited by 21
- 2025Anyone Can Jailbreak: Prompt-Based Attacks on LLMs and T2Iscited by 6
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defensescited by 4
- 2025CrossGuard: Safeguarding MLLMs against Joint-Modal Implicit Malicious Attackscited by 4
- 2024Divide and Conquer: A Hybrid Strategy Defeats Multimodal Large Language Modelscited by 1
- 2025Trojan Horse Prompting: Jailbreaking Conversational Multimodal Models by Forging Assistant Messagecited by 1
- 2026Innocent Panels, Hateful Stories: Evaluating and Detecting Hateful Intent in Multi-Turn Visual Story Generationcited by 1
- 2026Beyond Visual Safety: Jailbreaking Multimodal Large Language Models for Harmful Image Generation via Semantic-Agnostic Inputscited by 0
- 2026Stress Testing Concept Erasure with Large Language Model Agentscited by 0
- 2026CollageAttack: Exploiting Cross-Modal Alignment Flaws in T2I Models through Spatial Text Compositioncited by 0
- 2026CollageAttack: Exploiting Cross-Modal Alignment Flaws in T2I Models through Spatial Text Composition29 Sep 2026
- 2026Innocent Panels, Hateful Stories: Evaluating and Detecting Hateful Intent in Multi-Turn Visual Story Generation5 Aug 2026
- 2026Stress Testing Concept Erasure with Large Language Model Agents20 Jul 2026
- 2026Beyond Visual Safety: Jailbreaking Multimodal Large Language Models for Harmful Image Generation via Semantic-Agnostic Inputs22 Jan 2026
- 2025CrossGuard: Safeguarding MLLMs against Joint-Modal Implicit Malicious Attacks20 Oct 2025
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses17 Oct 2025
- 2025Anyone Can Jailbreak: Prompt-Based Attacks on LLMs and T2Is29 Jul 2025
- 2025Trojan Horse Prompting: Jailbreaking Conversational Multimodal Models by Forging Assistant Message7 Jul 2025
- 2025Monitoring Decomposition Attacks in LLMs with Lightweight Sequential Monitors12 Jun 2025
- 2025Can't See the Forest for the Trees: Benchmarking Multimodal Safety Awareness for Multimodal LLMs16 Feb 2025
- 2024Divide and Conquer: A Hybrid Strategy Defeats Multimodal Large Language Models21 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2024Fuzz-Testing Meets LLM-Based Agents: An Automated and Efficient Framework for Jailbreaking Text-To-Image Generation Models
- 2026When the Prompt Becomes Visual: Vision-Centric Jailbreak Attacks for Large Image Editing Models
- 2026TYPO: Instruction-Dense Visual Jailbreaks against Commercial Closed-Source Image-Generation Models
- 2024Multimodal Pragmatic Jailbreak on Text-to-image Models
- 2026JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimization
- 2024Jailbreaking Attack against Multimodal Large Language Model
- 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users
- 2025T2V-OptJail: Discrete Prompt Optimization for Text-to-Video Jailbreak Attacks