[论文解读] Jailbreaking GPT-4V via Self-Adversarial Attacks with System Prompts
本文揭示了 GPT-4V 的系统提示泄露漏洞,提出通过自我对抗使 MLLMs 崩溃的 SASP 方法,并显示防御性系统提示可以降低越狱成功率。
Existing work on jailbreak Multimodal Large Language Models (MLLMs) has focused primarily on adversarial examples in model inputs, with less attention to vulnerabilities, especially in model API. To fill the research gap, we carry out the following work: 1) We discover a system prompt leakage vulnerability in GPT-4V. Through carefully designed dialogue, we successfully extract the internal system prompts of GPT-4V. This finding indicates potential exploitable security risks in MLLMs; 2) Based on the acquired system prompts, we propose a novel MLLM jailbreaking attack method termed SASP (Self-Adversarial Attack via System Prompt). By employing GPT-4 as a red teaming tool against itself, we aim to search for potential jailbreak prompts leveraging stolen system prompts. Furthermore, in pursuit of better performance, we also add human modification based on GPT-4's analysis, which further improves the attack success rate to 98.7\%; 3) We evaluated the effect of modifying system prompts to defend against jailbreaking attacks. Results show that appropriately designed system prompts can significantly reduce jailbreak success rates. Overall, our work provides new insights into enhancing MLLM security, demonstrating the important role of system prompts in jailbreaking. This finding could be leveraged to greatly facilitate jailbreak success rates while also holding the potential for defending against jailbreaks.
研究动机与目标
- 识别 GPT-4V 系统提示中的导致通过 API 交互越狱的漏洞。
- 开发 SASP,自动将被窃取的系统提示转换为越狱提示。
- 通过人工干预增强提升越狱效果。
- 评估修改后系统提示对越狱尝试的防御潜力。
提出的方法
- 系统提示访问:使用包含模拟不完整对话和图像触发的元盗取提示来提取内部系统提示。
- 自对抗迭代:以 GPT-4V 作为红队模型,通过迭代优化从被窃取的系统提示生成越狱提示。
- 越狱提示增强:应用前缀注入、拒绝抑制、假设情景和情感诉求以提升越狱效果。
- 越狱评估:在面部识别任务和多语言提示(英语、汉语、泰语)上测试 SASP 在 GPT-4V 和 LLaVA-1.5v 的表现。
- 防御评估:设计以安全为焦点的系统提示并测试基于记忆的策略以保持输出安全。
实验结果
研究问题
- RQ1系统提示是否可通过精心设计的提示从 GPT-4V 泄露?
- RQ2以目标模型作为红队进行的自我对抗过程是否能够生成有效的越狱提示?
- RQ3人工修改的越狱提示在成功率方面能否超过自动化提示?
- RQ4基于系统提示的防御在多语言的 MLLMs 中是否显著降低越狱成功率?
- RQ5系统提示在保护或促成面部识别任务中的越狱中的作用是什么?
主要发现
- 通过元盗取提示演示了 GPT-4V 的系统提示泄露漏洞。
- SASP 在英语越狱提示中实现越狱提示,攻击成功率(ASR)为 59%。
- 对 SASP 提示进行人工修改后,英语测试中的 ASR 提升至 99%,RSR 提升至 95%。
- 两轮 SASP 攻击提高了成功概率,在消融研究中平均 ASR 约为 63%。
- 为安全设计的系统提示能够降低越狱成功率,显示提示设计具有防御作用。
- 结果显示越狱效果在不同语言和模型间存在差异,系统提示被记忆或泄露时风险更高。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。