arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07141cs.CR
收藏

MacPrompt:基于马卡罗尼的文本到图像模型对抗攻击

MacPrompt: Maraconic-guided Jailbreak against Text-to-Image Models

Key Laboratory of Aerospace Information Security and Trusted Computing, Ministry of Education, School of Cyber Science and Engineering, Wuhan University(武汉大学网络安全学院);School of Cyber Science and Engineering, Tianjin University(天津大学网络安全学院)

Xi Ye, Yiwen Liu, Lina Wang, Run Wang, Geying Yang, Yufei Hou, Jiayi Yu

AI总结:

MacPrompt通过跨语言字符级重组有害术语,实现对文本到图像模型的安全机制的高效对抗,突破现有防御体系。

摘要:

文本到图像(T2I)模型由于其生成不适宜内容(如NSFW)和禁止对象的能力而引发了日益增长的安全担忧。为缓解这些风险,安全过滤器和概念移除技术已被引入,以阻止不适当提示或从模型中删除敏感概念。然而,现有的所有防御方法都无法很好地处理多样化的对抗性提示。在本工作中,我们介绍了MacPrompt,一种新的黑盒和跨语言攻击,揭示了T2I安全机制中之前被忽视的漏洞。与现有攻击依赖同义词替换或提示混淆不同,MacPrompt通过执行跨语言字符级重组有害术语来构建马卡罗尼对抗性提示,从而在语义和外观上实现精细控制。通过利用这种设计,MacPrompt创建了与原始有害输入具有高语义相似性的提示(最高可达0.96),同时绕过主要的安全过滤器(最高可达100%)。更关键的是,它在性相关内容上的攻击成功率高达92%,在暴力相关内容上的攻击成功率高达90%,有效突破了甚至最先进的概念移除防御。这些结果突显了重新评估现有T2I安全机制对语言多样性和细粒度对抗策略的鲁棒性的紧迫性。

英文摘要:

Text-to-image (T2I) models have raised increasing safety concerns due to their capacity to generate NSFW and other banned objects. To mitigate these risks, safety filters and concept removal techniques have been introduced to block inappropriate prompts or erase sensitive concepts from the models. However, all the existing defense methods are not well prepared to handle diverse adversarial prompts. In this work, we introduce MacPrompt, a novel black-box and cross-lingual attack that reveals previously overlooked vulnerabilities in T2I safety mechanisms. Unlike existing attacks that rely on synonym substitution or prompt obfuscation, MacPrompt constructs macaronic adversarial prompts by performing cross-lingual character-level recombination of harmful terms, enabling fine-grained control over both semantics and appearance. By leveraging this design, MacPrompt crafts prompts with high semantic similarity to the original harmful inputs (up to 0.96) while bypassing major safety filters (up to 100%). More critically, it achieves attack success rates as high as 92% for sex-related content and 90% for violence, effectively breaking even state-of-the-art concept removal defenses. These results underscore the pressing need to reassess the robustness of existing T2I safety mechanisms against linguistically diverse and fine-grained adversarial strategies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑