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

虚拟上下文:通过特殊令牌注入增强越狱攻击

Virtual Context: Enhancing Jailbreak Attacks with Special Token Injection

Yuqi Zhou, Lin Lu, Hanchi Sun, Pan Zhou, Lichao Sun

AI总结:

针对大语言模型越狱攻击成功率低、构建成本高的问题,提出利用特殊令牌的Virtual Context方法,可在黑盒场景下将四种主流越狱方法成功率提升约40%,为LLM安全防御提供新的威胁参考。

摘要:

针对大语言模型(LLM)的越狱攻击指诱导这类模型生成违反伦理或法律的有害内容,对LLM安全构成重大威胁。当前越狱攻击面临两大挑战:防御措施导致成功率低,以及构建特定提示词所需资源成本高。本文提出Virtual Context(虚拟上下文)方法,利用LLM安全领域此前被忽视的特殊令牌来提升越狱攻击效果。Virtual Context可大幅提升现有越狱方法的成功率,且仅需极少的目标模型背景知识,无需额外开销即可提升黑盒场景下的攻击有效性。综合评估显示,在多种LLM上,Virtual Context辅助的越狱攻击可将四种主流越狱方法的成功率提升约40%。此外,将Virtual Context应用于原始恶意行为仍能取得显著的越狱效果。综上,本研究揭示了特殊令牌在越狱攻击中的潜在威胁,建议将该威胁纳入红队测试,以全面提升LLM安全性。

英文摘要:

Jailbreak attacks on large language models (LLMs) involve inducing these models to generate harmful content that violates ethics or laws, posing a significant threat to LLM security. Current jailbreak attacks face two main challenges: low success rates due to defensive measures and high resource requirements for crafting specific prompts. This paper introduces Virtual Context, which leverages special tokens, previously overlooked in LLM security, to improve jailbreak attacks. Virtual Context addresses these challenges by significantly increasing the success rates of existing jailbreak methods and requiring minimal background knowledge about the target model, thus enhancing effectiveness in black-box settings without additional overhead. Comprehensive evaluations show that Virtual Context-assisted jailbreak attacks can improve the success rates of four widely used jailbreak methods by approximately 40% across various LLMs. Additionally, applying Virtual Context to original malicious behaviors still achieves a notable jailbreak effect. In summary, our research highlights the potential of special tokens in jailbreak attacks and recommends including this threat in red-teaming testing to comprehensively enhance LLM security.

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

↑