arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.04686cs.CLcs.AI
收藏

基于第一性原理的大语言模型多轮上下文越狱攻击

Multi-Turn Context Jailbreak Attack on Large Language Models From First Principles

Xidian University(西安电子科技大学);AI Security Lab(360 AI安全实验室)

Xiongtao Sun, Deyue Zhang, Dongdong Yang, Quanchen Zou, Hui Li

AI总结:

针对多轮语义越狱中对话语境利用不足的问题,本文从第一性原理建立理论基础,提出黑盒Context Fusion Attack(CFA),通过关键术语提取、场景构建与恶意术语替换隐藏意图,并在主流LLM和红队数据集上验证其更高攻击成功率与危害性。

摘要:

大语言模型(LLMs)显著提升了从智能对话到文本生成等众多应用的性能。然而,其内在安全漏洞已成为日益严峻的挑战,尤其是在越狱攻击方面。攻击者可以绕过这些LLM的安全机制,突破安全约束并产生有害输出。本文聚焦多轮语义越狱攻击,观察到现有方法缺乏对多轮对话在攻击策略中作用的专门考量,导致持续交互过程中出现语义偏差。因此,本文通过考察多轮攻击对越狱攻击的支撑作用,为多轮攻击建立理论基础,并在此基础上提出一种基于上下文的语境融合黑盒越狱攻击方法,命名为Context Fusion Attack(CFA,上下文融合攻击)。该方法包括:从目标中过滤并提取关键术语,围绕这些术语构建语境场景,将目标动态融入场景,替换目标中的恶意关键术语,从而隐藏直接的恶意意图。通过在多种主流LLM和红队数据集上的比较,我们证明CFA相较于其他多轮攻击策略具有更优的成功率、发散性和危害性,尤其在Llama3和GPT-4上展现出显著优势。

英文摘要:

Large language models (LLMs) have significantly enhanced the performance of numerous applications, from intelligent conversations to text generation. However, their inherent security vulnerabilities have become an increasingly significant challenge, especially with respect to jailbreak attacks. Attackers can circumvent the security mechanisms of these LLMs, breaching security constraints and causing harmful outputs. Focusing on multi-turn semantic jailbreak attacks, we observe that existing methods lack specific considerations for the role of multiturn dialogues in attack strategies, leading to semantic deviations during continuous interactions. Therefore, in this paper, we establish a theoretical foundation for multi-turn attacks by considering their support in jailbreak attacks, and based on this, propose a context-based contextual fusion black-box jailbreak attack method, named Context Fusion Attack (CFA). This method approach involves filtering and extracting key terms from the target, constructing contextual scenarios around these terms, dynamically integrating the target into the scenarios, replacing malicious key terms within the target, and thereby concealing the direct malicious intent. Through comparisons on various mainstream LLMs and red team datasets, we have demonstrated CFA's superior success rate, divergence, and harmfulness compared to other multi-turn attack strategies, particularly showcasing significant advantages on Llama3 and GPT-4.

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

↑