arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.14250cs.CLcs.AIcs.CR
收藏

Siren:一种基于学习的多轮攻击框架,用于模拟现实世界中的人类越狱行为

Siren: A Learning-Based Multi-Turn Attack Framework for Simulating Real-World Human Jailbreak Behaviors

Department of Computing The Hong Kong Polytechnic University Hong Kong SAR, China;Centre for Artificial Intelligence;Robotics Hong Kong Institute of Science \& Innovation Chinese Academy of Sciences Hong Kong SAR, China

Yi Zhao, Youzhi Zhang

AI总结:

针对现有LLM越狱攻击多为单轮或依赖静态模式的问题,提出基于学习的多轮攻击框架Siren,通过MiniMax训练集构建、SFT与DPO训练攻击者、动态交互,在多个模型对中取得高攻击成功率,性能优于单轮基线且接近GPT-4o驱动的多轮基线。

摘要:

大型语言模型(LLMs)在现实应用中广泛使用,引发了对其安全性和可信度的担忧。虽然使用越狱提示的红队测试暴露了LLMs的漏洞,但当前研究主要集中在单轮攻击上,忽略了现实世界攻击者使用的多轮策略。现有多轮方法依赖静态模式或预定义逻辑链,无法适应攻击过程中的动态策略。我们提出Siren,一种基于学习的多轮攻击框架,旨在模拟现实世界中的人类越狱行为。Siren包含三个阶段:(1)利用轮次级LLM反馈构建MiniMax驱动的训练集;(2)通过监督微调(SFT)和直接偏好优化(DPO)对攻击者进行后训练;(3)攻击LLM与目标LLM之间的交互。实验表明,当使用LLaMA-3-8B作为攻击者攻击Gemini-1.5-Pro时,Siren的攻击成功率(ASR)达90%;使用Mistral-7B攻击GPT-4o时,ASR达70%,显著优于单轮基线。此外,7B规模模型的Siren性能可与以GPT-4o为攻击者的多轮基线相媲美,同时所需轮次更少,并采用与攻击目标语义更对齐的分解策略。我们希望Siren能启发针对现实场景下高级多轮越狱攻击的更强防御措施的开发。代码可在https://github.com/YiyiyiZhao/siren获取。警告:本文包含潜在有害文本。

英文摘要:

Large language models (LLMs) are widely used in real-world applications, raising concerns about their safety and trustworthiness. While red-teaming with jailbreak prompts exposes the vulnerabilities of LLMs, current efforts focus primarily on single-turn attacks, overlooking the multi-turn strategies used by real-world adversaries. Existing multi-turn methods rely on static patterns or predefined logical chains, failing to account for the dynamic strategies during attacks. We propose Siren, a learning-based multi-turn attack framework designed to simulate real-world human jailbreak behaviors. Siren consists of three stages: (1) MiniMax-driven training set construction utilizing Turn-Level LLM feedback, (2) post-training attackers with supervised fine-tuning (SFT) and direct preference optimization (DPO), and (3) interactions between the attacking and target LLMs. Experiments demonstrate that Siren achieves an attack success rate (ASR) of 90% with LLaMA-3-8B as the attacker against Gemini-1.5-Pro as the target model, and 70% with Mistral-7B against GPT-4o, significantly outperforming single-turn baselines. Moreover, Siren with a 7B-scale model achieves performance comparable to a multi-turn baseline that leverages GPT-4o as the attacker, while requiring fewer turns and employing decomposition strategies that are better semantically aligned with attack goals. We hope Siren inspires the development of stronger defenses against advanced multi-turn jailbreak attacks under realistic scenarios. Code is available at https://github.com/YiyiyiZhao/siren. Warning: This paper contains potentially harmful text.

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

↑