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

你懂我的意思:通过隐式引用实现的越狱攻击

You Know What I'm Saying: Jailbreak Attack via Implicit Reference

The Hong Kong University of Science and Technology(香港科技大学);REDTech

Tianyu Wu, Lingrui Mei, Ruibin Yuan, Lujun Li, Wei Xue, Yike Guo

AI总结:

本研究发现大语言模型存在隐式引用攻击(AIR)漏洞,通过将恶意目标拆解为无害目标并以隐式上下文关联绕过检测,在多款前沿模型上攻击成功率超90%,且模型越大越易受攻击,还提出了跨模型攻击策略以提升成功率。

摘要:

尽管大语言模型(LLM)对齐技术的最新进展已能有效识别涉及场景嵌套和关键词改写的恶意目标,但本研究发现,这些方法仍无法充分检测嵌套在无害目标内、通过上下文表达的恶意目标。本研究发现了一种此前被忽视的漏洞,我们将其命名为Attack via Implicit Reference(隐式引用攻击,AIR)。AIR将恶意目标分解为多个可允许的目标,并通过上下文中的隐式引用将它们关联起来。该方法利用多个相关的无害目标生成恶意内容,不会触发拒绝响应,从而有效绕过现有检测技术。我们的实验证明了AIR在多款前沿大语言模型上的有效性,在包括GPT-4o、Claude-3.5-Sonnet和Qwen-2-72B在内的大多数模型上,攻击成功率(ASR)超过90%。值得注意的是,我们观察到一种逆缩放现象,即模型规模越大,越容易受到这种攻击方法的影响。这些发现凸显了开发能够理解并防范上下文攻击的防御机制的迫切需求。此外,我们提出了一种跨模型攻击策略,利用安全性较低的模型生成恶意上下文,从而进一步提升针对其他模型的攻击成功率。我们的代码和越狱样本可在https://github.com/Lucas-TY/llm_Implicit_reference获取。

英文摘要:

While recent advancements in large language model (LLM) alignment have enabled the effective identification of malicious objectives involving scene nesting and keyword rewriting, our study reveals that these methods remain inadequate at detecting malicious objectives expressed through context within nested harmless objectives. This study identifies a previously overlooked vulnerability, which we term Attack via Implicit Reference (AIR). AIR decomposes a malicious objective into permissible objectives and links them through implicit references within the context. This method employs multiple related harmless objectives to generate malicious content without triggering refusal responses, thereby effectively bypassing existing detection techniques.Our experiments demonstrate AIR's effectiveness across state-of-the-art LLMs, achieving an attack success rate (ASR) exceeding 90% on most models, including GPT-4o, Claude-3.5-Sonnet, and Qwen-2-72B. Notably, we observe an inverse scaling phenomenon, where larger models are more vulnerable to this attack method. These findings underscore the urgent need for defense mechanisms capable of understanding and preventing contextual attacks. Furthermore, we introduce a cross-model attack strategy that leverages less secure models to generate malicious contexts, thereby further increasing the ASR when targeting other models.Our code and jailbreak artifacts can be found at https://github.com/Lucas-TY/llm_Implicit_reference.

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

↑