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

AdaPPA:面向大语言模型的自适应位置预填充越狱攻击方法

AdaPPA: Adaptive Position Pre-Fill Jailbreak Attack Approach Targeting LLMs

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)

Lijia Lv, Weigang Zhang, Xuehai Tang, Jie Wen, Feng Liu, Jizhong Han, Songlin Hu

AI总结:

针对传统LLM越狱攻击易被检测、未利用模型不同输出阶段对齐防护差异的问题,提出自适应位置预填充越狱攻击方法AdaPPA,通过先输出安全内容再转有害内容的方式,在Llama2上攻击成功率较现有方法提升47%。

摘要:

大语言模型(LLMs)的越狱漏洞指通过精心设计提示词或后缀从模型中提取恶意内容的方法,已受到研究界的广泛关注。然而,传统攻击方法主要聚焦于语义层面,很容易被模型检测到,且忽略了模型在不同输出阶段的对齐防护能力存在差异这一问题。为解决该问题,我们提出一种自适应位置预填充越狱攻击方法,用于对大语言模型实施越狱攻击。该方法利用模型的指令遵循能力,先输出预填充的安全内容,再利用其叙事转换能力生成有害内容。大量黑盒实验表明,在公认的安全模型Llama2上,与现有方法相比,我们的方法可将攻击成功率提升47%。代码可访问:https://github.com/Yummy416/AdaPPA。

英文摘要:

Jailbreak vulnerabilities in Large Language Models (LLMs) refer to methods that extract malicious content from the model by carefully crafting prompts or suffixes, which has garnered significant attention from the research community. However, traditional attack methods, which primarily focus on the semantic level, are easily detected by the model. These methods overlook the difference in the model's alignment protection capabilities at different output stages. To address this issue, we propose an adaptive position pre-fill jailbreak attack approach for executing jailbreak attacks on LLMs. Our method leverages the model's instruction-following capabilities to first output pre-filled safe content, then exploits its narrative-shifting abilities to generate harmful content. Extensive black-box experiments demonstrate our method can improve the attack success rate by 47% on the widely recognized secure model (Llama2) compared to existing approaches. Our code can be found at: https://github.com/Yummy416/AdaPPA.

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

↑