arXiv:2410.03869cs.CLcs.AI2024-10ACL被引 10

通过分步编辑破解图像生成模型安全防护,成功率超60%。

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

  • 将恶意请求拆解为多步子任务,逐轮生成并修改图像以绕过限制。
  • 在4个主流模型上测试,成功绕过安全机制超过60%的案例。
  • 提出防御方法可拦截95%以上攻击,适合安全研究者参考。

文本驱动的图像生成模型(如 Stable Diffusion、DALL-E 3)在内容创作中具有重要潜力,但需防范生成有害内容。为评估模型安全性,本文提出一种名为链式越狱(Chain-of-Jailbreak, CoJ)的新攻击方法,通过分步编辑过程突破安全限制。对于单次提示无法绕过的恶意请求,我们将其分解为多个子查询,引导模型逐步生成并编辑图像。为此构建了 CoJ-Bench 数据集,包含9种安全场景、3类编辑操作和3种编辑元素。在 GPT-4V、GPT-4o、Gemini 1.5 及 Gemini 1.5 Pro 四个主流图像生成服务上的实验表明,该方法成功绕过防护超过60%,显著优于现有方法(14%)。同时,提出 Think Twice Prompting 防御策略,可有效防御95%以上的 CoJ 攻击。相关数据集与代码已公开,助力人工智能安全研究。

原文摘要 · Abstract (English)

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.

图像生成越狱攻击安全评测AI防御

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。