arXiv:2412.03556cs.CLcs.AI2024-12被引 74

通过随机改写提示词,突破主流AI系统安全限制。

Best-of-N Jailbreaking

  • 用随机打乱、大小写等方法生成大量提示变体
  • 对GPT-4o攻击成功率达89%,采样1万次时有效
  • 可跨文本、图像、音频模态使用,适合安全研究者

我们提出最佳N次采样(Best-of-N, BoN)越狱方法,一种简单的黑盒算法,能跨模态突破前沿AI系统的安全限制。该方法通过反复对提示词进行随机打乱、大小写变化等增强操作,生成大量变体,直到触发有害响应。实验显示,采样10,000个增强提示时,对闭源语言模型的攻击成功率(ASR)达89%(GPT-4o)和78%(Claude 3.5 Sonnet)。该方法同样可绕过如电路断路器等先进开源防御机制。此外,它可无缝扩展至视觉语言模型(VLMs,如GPT-4o)和音频语言模型(ALMs,如Gemini 1.5 Pro),采用模态特异性增强策略。随着采样数量增加,攻击成功率持续提升,且在多量级范围内呈现类幂律增长趋势。将BoN与优化前缀攻击结合,可使攻击成功率提升最高达35%。结果表明,尽管语言模型能力强大,但其输出仍对输入的微小变化高度敏感,攻击者可利用这一弱点跨模态实施攻击。

原文摘要 · Abstract (English)

We introduce Best-of-N (BoN) Jailbreaking, a simple black-box algorithm that jailbreaks frontier AI systems across modalities. BoN Jailbreaking works by repeatedly sampling variations of a prompt with a combination of augmentations - such as random shuffling or capitalization for textual prompts - until a harmful response is elicited. We find that BoN Jailbreaking achieves high attack success rates (ASRs) on closed-source language models, such as 89% on GPT-4o and 78% on Claude 3.5 Sonnet when sampling 10,000 augmented prompts. Further, it is similarly effective at circumventing state-of-the-art open-source defenses like circuit breakers. BoN also seamlessly extends to other modalities: it jailbreaks vision language models (VLMs) such as GPT-4o and audio language models (ALMs) like Gemini 1.5 Pro, using modality-specific augmentations. BoN reliably improves when we sample more augmented prompts. Across all modalities, ASR, as a function of the number of samples (N), empirically follows power-law-like behavior for many orders of magnitude. BoN Jailbreaking can also be composed with other black-box algorithms for even more effective attacks - combining BoN with an optimized prefix attack achieves up to a 35% increase in ASR. Overall, our work indicates that, despite their capability, language models are sensitive to seemingly innocuous changes to inputs, which attackers can exploit across modalities.

越狱攻击黑盒攻击多模态安全漏洞

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