mlsanityData to 7 Oct 2026

Chain-of-Jailbreak Attack for Image Generation Models via Editing Step by Step

arXiv 2410.03869 ↗First posted 4 Oct 2024cs.CL cs.AI cs.CRcited by 11

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

  1. 2023Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Models26 Jul
  2. 2023SneakyPrompt: Jailbreaking Text-to-image Generative Models20 May

Other references · 32

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  3. 2022Generative Adversarial Networkscited by 5,603
  4. 2017Neural Discrete Representation Learningcited by 4,650
  5. 2017Deep reinforcement learning from human preferencescited by 3,846
  6. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  7. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  8. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
  9. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
  10. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
  11. 2020The Hateful Memes Challenge: Detecting Hate Speech in Multimodal Memescited by 485
  12. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 401
20 more
  1. 2023Low-Resource Languages Jailbreak GPT-4cited by 290
  2. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
  3. 2022Easily Accessible Text-to-Image Generation Amplifies Demographic Stereotypes at Large Scalecited by 262
  4. 2022DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Modelscited by 230
  5. 2024JailBreakV: A Benchmark for Assessing the Robustness of MultiModal Large Language Models against Jailbreak Attackscited by 208
  6. 2023MMA-Diffusion: MultiModal Attack on Diffusion Modelscited by 184
  7. 2020Recipes for Safety in Open-domain Chatbotscited by 168
  8. 2023Adversarial Example Does Good: Preventing Painting Imitation from Diffusion Models via Adversarial Examplescited by 163
  9. 2022Towards Adversarial Attack on Vision-Language Pre-training Modelscited by 142
  10. 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
  11. 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 91
  12. 2023Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Modelscited by 72
  13. 2023Prompt Stealing Attacks Against Text-to-Image Generation Modelscited by 48
  14. 2024Jailbreaking Large Language Models Against Moderation Guardrails via Cipher Characterscited by 39
  15. 2023BAGM: A Backdoor Attack for Manipulating Text-to-Image Generative Modelscited by 37
  16. 2023Investigating Subtler Biases in LLMs: Ageism, Beauty, Institutional, and Nationality Bias in Generative Modelscited by 32
  17. 2024Adversaries Can Misuse Combinations of Safe Modelscited by 31
  18. 2023Evaluating the Robustness of Text-to-image Diffusion Models against Real-world Attackscited by 24
  19. 2023I See Dead People: Gray-Box Adversarial Attack on Image-To-Text Modelscited by 17
  20. 2024New Job, New Gender? Measuring the Social Bias in Image Generation Modelscited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 4.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Fuzz-Testing Meets LLM-Based Agents: An Automated and Efficient Framework for Jailbreaking Text-To-Image Generation Models
  2. 2026When the Prompt Becomes Visual: Vision-Centric Jailbreak Attacks for Large Image Editing Models
  3. 2026TYPO: Instruction-Dense Visual Jailbreaks against Commercial Closed-Source Image-Generation Models
  4. 2024Multimodal Pragmatic Jailbreak on Text-to-image Models
  5. 2026JANUS: A Lightweight Framework for Jailbreaking Text-to-Image Models via Distribution Optimization
  6. 2024Jailbreaking Attack against Multimodal Large Language Model
  7. 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Users
  8. 2025T2V-OptJail: Discrete Prompt Optimization for Text-to-Video Jailbreak Attacks