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

WordGame:通过查询与响应中的同步混淆实现高效且有效的LLM越狱

WordGame: Efficient & Effective LLM Jailbreak via Simultaneous Obfuscation in Query and Response

College of Information Science and Technology(信息科学与技术学院);Pennsylvania State University(宾夕法尼亚州立大学)

Tianrong Zhang, Bochuan Cao, Yuanpu Cao, Lu Lin, Prasenjit Mitra, Jinghui Chen

AI总结:

本文提出WordGame攻击,通过查询与响应中同步混淆恶意词语为文字游戏,利用安全对齐模式漏洞,成功突破Claude-3、GPT-4和Llama-3等领先LLM的防护栏。

摘要:

大型语言模型(LLM)如ChatGPT的最新突破以前所未有的速度彻底改变了生产过程。与此同时,人们也越来越担心LLM易受越狱攻击的影响,这会导致有害或不安全内容的生成。尽管LLM中已实施了安全对齐措施以缓解现有的越狱尝试并迫使它们变得越来越复杂,但这仍远非完美。在本文中,我们分析了当前安全对齐的常见模式,并表明通过查询和响应中的同步混淆,可以利用这些模式进行越狱攻击。具体来说,我们提出了WordGame攻击,该攻击将恶意词语替换为文字游戏,以分解查询的对抗意图,并鼓励在响应中先出现关于游戏的良性内容,再出现预期的有害内容,从而创建一个几乎不被任何用于安全对齐的语料库覆盖的上下文。大量实验表明,WordGame攻击可以突破当前领先的专有和开源LLM(包括最新的Claude-3、GPT-4和Llama-3模型)的防护栏。对查询和响应中这种同步混淆的进一步消融研究提供了该攻击策略优于单独攻击的证据。

英文摘要:

The recent breakthrough in large language models (LLMs) such as ChatGPT has revolutionized production processes at an unprecedented pace. Alongside this progress also comes mounting concerns about LLMs' susceptibility to jailbreaking attacks, which leads to the generation of harmful or unsafe content. While safety alignment measures have been implemented in LLMs to mitigate existing jailbreak attempts and force them to become increasingly complicated, it is still far from perfect. In this paper, we analyze the common pattern of the current safety alignment and show that it is possible to exploit such patterns for jailbreaking attacks by simultaneous obfuscation in queries and responses. Specifically, we propose WordGame attack, which replaces malicious words with word games to break down the adversarial intent of a query and encourage benign content regarding the games to precede the anticipated harmful content in the response, creating a context that is hardly covered by any corpus used for safety alignment. Extensive experiments demonstrate that WordGame attack can break the guardrails of the current leading proprietary and open-source LLMs, including the latest Claude-3, GPT-4, and Llama-3 models. Further ablation studies on such simultaneous obfuscation in query and response provide evidence of the merits of the attack strategy beyond an individual attack.

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

↑