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

通过包含定向有害知识的语义相关嵌套场景实现大语言模型越狱

Jailbreaking LLMs via Semantically Relevant Nested Scenarios with Targeted Toxic Knowledge

School of Computer Science and Technology(计算机科学与技术学院);AnHui University(安徽大学)

Ning Xu, Bo Gao, Hui Dou

AI总结:

针对现有嵌套场景越狱方法易被检测的问题,提出RTS-Attack框架,通过语义相关嵌套场景加定向有害知识绕过LLM对齐防御,在多款先进大模型上验证了其更优的效率、通用性与隐蔽性。

摘要:

大语言模型(LLMs)已在各类任务中展现出卓越能力,但仍易受越狱攻击诱导生成有害回复。嵌套场景策略已被越来越多的越狱方法采用,展现出巨大潜力,不过这类方法因恶意意图明显极易被检测。本研究首次发现并系统验证:当嵌套场景与查询高度语义相关且融入定向有害知识时,大语言模型的对齐防御对这类场景并不敏感,这是一个关键但尚未被充分探索的方向。基于此,我们提出RTS-Attack(包含定向有害知识的语义相关嵌套场景),这是一个用于检验大语言模型对齐能力的自适应自动化框架。通过构建与查询高度相关的场景并整合定向有害知识,RTS-Attack可绕过LLMs的对齐防御。此外,RTS-Attack生成的越狱提示不包含有害查询,具备出色的隐蔽性。大量实验表明,在GPT-4o、Llama3-70b、Gemini-pro等多种先进LLMs上,RTS-Attack相比基线方法在效率和通用性上均表现更优。项目完整代码可在https://github.com/nercode/Work获取。警告:本文包含潜在有害内容。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable capabilities in various tasks. However, they remain exposed to jailbreak attacks, eliciting harmful responses. The nested scenario strategy has been increasingly adopted across various methods, demonstrating immense potential. Nevertheless, these methods are easily detectable due to their prominent malicious intentions. In this work, we are the first to find and systematically verify that LLMs' alignment defenses are not sensitive to nested scenarios, where these scenarios are highly semantically relevant to the queries and incorporate targeted toxic knowledge. This is a crucial yet insufficiently explored direction. Based on this, we propose RTS-Attack (Semantically Relevant Nested Scenarios with Targeted Toxic Knowledge), an adaptive and automated framework to examine LLMs' alignment. By building scenarios highly relevant to the queries and integrating targeted toxic knowledge, RTS-Attack bypasses the alignment defenses of LLMs. Moreover, the jailbreak prompts generated by RTS-Attack are free from harmful queries, leading to outstanding concealment. Extensive experiments demonstrate that RTS-Attack exhibits superior performance in both efficiency and universality compared to the baselines across diverse advanced LLMs, including GPT-4o, Llama3-70b, and Gemini-pro. Our complete code is available at https://github.com/nercode/Work. WARNING: THIS PAPER CONTAINS POTENTIALLY HARMFUL CONTENT.

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

↑