arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.06426cs.CRcs.AIcs.CLcs.LG
收藏

SequentialBreak:通过将越狱提示嵌入顺序提示链可以欺骗大型语言模型

SequentialBreak: Large Language Models Can be Fooled by Embedding Jailbreak Prompts into Sequential Prompt Chains

Bangladesh University of Engineering and Technology(孟加拉工程科技大学);Pennsylvania State University(宾夕法尼亚州立大学)

Bijoy Ahmed Saiem, MD Sadik Hossain Shanto, Rakib Ahsan, Md Rafi ur Rashid

AI总结:

本文提出了一种名为SequentialBreak的新型越狱攻击方法,通过将恶意提示嵌入题库、对话补全等场景的顺序提示链中,利用上下文操纵欺骗LLMs生成有害响应,仅需单次查询即在开源和闭源模型上显著提升了攻击成功率。

摘要:

随着大型语言模型(LLMs)在各种应用中的整合不断增加,其被滥用的可能性也随之上升,引发了重大的安全担忧。目前已经提出了许多越狱攻击来评估LLMs的安全防御。当前的越狱攻击主要依靠场景伪装、提示混淆、提示优化和提示迭代优化来隐藏恶意提示。特别是,单个查询中的顺序提示链可以引导LLMs关注某些提示而忽略其他提示,从而促成上下文操纵。本文介绍了SequentialBreak,一种利用此漏洞的新型越狱攻击。我们讨论了几个场景,不限于题库、对话补全和游戏环境等示例,其中有害提示被嵌入在良性提示中,从而可以欺骗LLMs生成有害响应。这些场景的独特叙事结构表明,SequentialBreak足够灵活,能够适应所讨论内容之外的各种提示格式。大量实验表明,SequentialBreak仅使用单个查询,在针对开源和闭源模型的现有基线上实现了攻击成功率的显著提升。通过我们的研究,我们强调了迫切需要更强大和更具弹性的保障措施,以增强LLM安全性并防止潜在的滥用。与此研究相关的所有结果文件和网站均在此GitHub存储库中提供:https://anonymous.4open.science/r/JailBreakAttack-4F3B/。

英文摘要:

As the integration of the Large Language Models (LLMs) into various applications increases, so does their susceptibility to misuse, raising significant security concerns. Numerous jailbreak attacks have been proposed to assess the security defense of LLMs. Current jailbreak attacks mainly rely on scenario camouflage, prompt obfuscation, prompt optimization, and prompt iterative optimization to conceal malicious prompts. In particular, sequential prompt chains in a single query can lead LLMs to focus on certain prompts while ignoring others, facilitating context manipulation. This paper introduces SequentialBreak, a novel jailbreak attack that exploits this vulnerability. We discuss several scenarios, not limited to examples like Question Bank, Dialog Completion, and Game Environment, where the harmful prompt is embedded within benign ones that can fool LLMs into generating harmful responses. The distinct narrative structures of these scenarios show that SequentialBreak is flexible enough to adapt to various prompt formats beyond those discussed. Extensive experiments demonstrate that SequentialBreak uses only a single query to achieve a substantial gain of attack success rate over existing baselines against both open-source and closed-source models. Through our research, we highlight the urgent need for more robust and resilient safeguards to enhance LLM security and prevent potential misuse. All the result files and website associated with this research are available in this GitHub repository: https://anonymous.4open.science/r/JailBreakAttack-4F3B/.

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

↑