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

友还是敌:LLMs的安全意识如何被意图转移攻击(ISA)欺骗

Friend or Foe: How LLMs' Safety Mind Gets Fooled by Intent Shift Attack

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室);Meituan Inc.(美团公司)

Peng Ding, Jun Kuang, Wen Sun, Zongyu Wang, Xuezhi Cao, Xunliang Cai, Jiajun Chen, Shujian Huang

AI总结:

本文提出ISA(Intent Shift Attack),通过对原始请求进行最小编辑来混淆LLMs对攻击意图的判断,在开源和商业模型上攻击成功率提升超70%,并揭示了现有防御机制的不足与意图推断的根本挑战。

摘要:

尽管大型语言模型(LLMs)能力出众,但仍然容易受到越狱攻击。研究这些弱点对于构建稳健的安全机制至关重要。现有的攻击主要通过引入额外上下文或对抗性token来分散LLMs的注意力,而未改变核心的有害意图。在本文中,我们提出了ISA(Intent Shift Attack,意图转移攻击),它使LLMs对攻击的真实意图产生混淆。更具体地说,我们建立了一个意图转换的分类体系,并利用它们生成可能被LLMs误认为是良性信息请求的攻击。与之前依赖复杂token或冗长上下文的方法不同,我们的方法只需对原始请求进行最少的编辑,就能生成自然、人类可读且看似无害的提示词。在开源和商业LLMs上的大量实验表明,与直接的有害提示词相比,ISA的攻击成功率提高了70%以上。更关键的是,仅使用ISA模板重新表述的良性数据对模型进行微调,就能将成功率提升至接近100%。在防御方面,我们评估了现有方法并证明了它们对ISA的不足,同时探索了无需训练和基于训练的缓解策略。我们的发现揭示了LLMs安全中意图推断的根本挑战,并强调了需要更有效的防御手段。我们的代码和数据集可在 https://github.com/NJUNLP/ISA 获取。

英文摘要:

Large language models (LLMs) remain vulnerable to jailbreaking attacks despite their impressive capabilities. Investigating these weaknesses is crucial for robust safety mechanisms. Existing attacks primarily distract LLMs by introducing additional context or adversarial tokens, leaving the core harmful intent unchanged. In this paper, we introduce ISA (Intent Shift Attack), which obfuscates LLMs about the intent of the attacks. More specifically, we establish a taxonomy of intent transformations and leverage them to generate attacks that may be misperceived by LLMs as benign requests for information. Unlike prior methods relying on complex tokens or lengthy context, our approach only needs minimal edits to the original request, and yields natural, human-readable, and seemingly harmless prompts. Extensive experiments on both open-source and commercial LLMs show that ISA achieves over 70% improvement in attack success rate compared to direct harmful prompts. More critically, fine-tuning models on only benign data reformulated with ISA templates elevates success rates to nearly 100%. For defense, we evaluate existing methods and demonstrate their inadequacy against ISA, while exploring both training-free and training-based mitigation strategies. Our findings reveal fundamental challenges in intent inference for LLMs safety and underscore the need for more effective defenses. Our code and datasets are available at https://github.com/NJUNLP/ISA.

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

↑