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

DualBreach:通过目标驱动初始化与多目标优化实现高效双重越狱

DualBreach: Efficient Dual-Jailbreaking via Target-Driven Initialization and Multi-Target Optimization

State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China(区块链与数据安全国家重点实验室,浙江大学,杭州,中国);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Hangzhou, China(杭州高新技术区(滨江)区块链与数据安全研究院,杭州,中国)

Xinzhe Huang, Kedong Xiu, Tianhang Zheng, Churui Zeng, Wangze Ni, Zhan Qin, Kui Ren, Chun Chen

AI总结:

针对现有双重越狱攻击绕过受护栏防护的安全对齐LLM效果有限的问题,提出目标驱动框架DualBreach,结合TDI策略与MTO方法,以更少查询实现更高越狱成功率,还提出集成防御机制EGuard提升防护性能。

摘要:

近期研究聚焦于探索大语言模型(LLM)的漏洞,旨在从LLM中诱导出有害和/或敏感内容。然而,由于针对双重越狱(即同时攻击LLM和护栏(Guardrails)的攻击方式)的研究尚不充分,现有攻击在试图绕过受护栏防护的安全对齐LLM时,效果十分有限。因此,本文提出DualBreach——一种面向双重越狱的目标驱动框架。DualBreach采用目标驱动初始化(TDI)策略动态构建初始提示词,结合多目标优化(MTO)方法,利用近似梯度在护栏与LLM之间联合适配提示词,既能减少查询次数,又能实现较高的双重越狱成功率。对于黑盒护栏,DualBreach要么采用功能强大的开源护栏,要么通过训练代理模型模仿目标黑盒护栏,从而将护栏纳入MTO流程。\n我们通过在多个广泛使用的数据集上开展大量评估,验证了DualBreach在双重越狱场景下的有效性。实验结果表明,DualBreach以更少的查询次数超越了现有最优方法,在所有设置下均取得了显著更高的成功率。具体而言,针对受Llama-Guard-3防护的GPT-4,DualBreach的平均双重越狱成功率达到93.67%,而其他方法取得的最高成功率为88.33%。此外,DualBreach每次成功的双重越狱平均仅使用1.77次查询,优于其他现有最优方法。出于防御目的,我们提出了一种基于XGBoost的集成防御机制EGuard,该机制整合了多种护栏的优势,表现出优于Llama-Guard-3的性能。

英文摘要:

Recent research has focused on exploring the vulnerabilities of Large Language Models (LLMs), aiming to elicit harmful and/or sensitive content from LLMs. However, due to the insufficient research on dual-jailbreaking -- attacks targeting both LLMs and Guardrails, the effectiveness of existing attacks is limited when attempting to bypass safety-aligned LLMs shielded by guardrails. Therefore, in this paper, we propose DualBreach, a target-driven framework for dual-jailbreaking. DualBreach employs a Target-driven Initialization (TDI) strategy to dynamically construct initial prompts, combined with a Multi-Target Optimization (MTO) method that utilizes approximate gradients to jointly adapt the prompts across guardrails and LLMs, which can simultaneously save the number of queries and achieve a high dual-jailbreaking success rate. For black-box guardrails, DualBreach either employs a powerful open-sourced guardrail or imitates the target black-box guardrail by training a proxy model, to incorporate guardrails into the MTO process. We demonstrate the effectiveness of DualBreach in dual-jailbreaking scenarios through extensive evaluation on several widely-used datasets. Experimental results indicate that DualBreach outperforms state-of-the-art methods with fewer queries, achieving significantly higher success rates across all settings. More specifically, DualBreach achieves an average dual-jailbreaking success rate of 93.67% against GPT-4 with Llama-Guard-3 protection, whereas the best success rate achieved by other methods is 88.33%. Moreover, DualBreach only uses an average of 1.77 queries per successful dual-jailbreak, outperforming other state-of-the-art methods. For the purpose of defense, we propose an XGBoost-based ensemble defensive mechanism named EGuard, which integrates the strengths of multiple guardrails, demonstrating superior performance compared with Llama-Guard-3.

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

↑