Chain-of-Jailbreak jailbreak attack: breaking image generation models through step-by-step editingChain-of-Jailbreak Attack for Image Generation Models via Editing Step by Step
Researchers propose the Chain-of-Jailbreak (CoJ) jailbreak attack, which bypasses the safety guardrails of image generation models by having them generate and iteratively edit images step by step according to decomposed sub-queries. The method decomposes a malicious query that a single prompt cannot use to bypass the guardrails into multiple sub-queries; the CoJ-Bench dataset the authors built covers nine safety scenarios, three types of editing operations and three types of editing elements. Experiments on four image generation services—GPT-4V, GPT-4o, Gemini 1.5 and Gemini 1.5 Pro—show that the attack successfully bypasses the guardrails in more than 60% of cases, markedly higher than the 14% of other jailbreak methods. The authors also propose a prompt-based defense method, Think Twice Prompting, which can defend against more than 95% of CoJ attacks, and have released the dataset and code.