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

通过良性数据镜像对大型语言模型的隐蔽越狱攻击

Stealthy Jailbreak Attacks on Large Language Models via Benign Data Mirroring

Harbin Institute of Technology(哈尔滨工业大学);Central South University(中南大学);East China Normal University(华东师范大学);Beihang University(北京航空航天大学);LibrAI;MBZUAI;Tsinghua University(清华大学)

Honglin Mu, Han He, Yuxin Zhou, Yunlong Feng, Yang Xu, Libo Qin, Xiaoming Shi, Zeming Liu, Xudong Han, Qi Shi, Qingfu Zhu, Wanxiang Che

AI总结:

提出基于良性数据蒸馏的镜像模型迁移攻击方法,在搜索阶段避免提交恶意指令以提升隐蔽性,在GPT-3.5 Turbo上实现高达92%的越狱攻击成功率。

摘要:

大型语言模型(LLM)安全性是一个关键问题,许多研究采用红队测试来增强模型安全性。其中,越狱方法通过构造恶意提示诱导模型输出违背安全对齐的内容,以探索潜在漏洞。现有黑盒越狱方法常依赖模型反馈,在攻击搜索过程中反复提交包含可检测恶意指令的查询。尽管这些方法有效,但攻击可能在搜索过程中被内容审查器拦截。我们提出一种改进的迁移攻击方法,通过良性数据蒸馏在本地训练目标黑盒模型的镜像模型,以此指导恶意提示构造。该方法具有更高的隐蔽性,因为在搜索阶段不向目标模型提交可识别的恶意指令。在 AdvBench 子集上针对 GPT-3.5 Turbo,我们的方法实现了 92% 的最大攻击成功率,或在每个样本平均 1.5 次可检测越狱查询下达到 80% 的平衡值。这些结果凸显了对更鲁棒防御机制的需求。

英文摘要:

Large language model (LLM) safety is a critical issue, with numerous studies employing red team testing to enhance model security. Among these, jailbreak methods explore potential vulnerabilities by crafting malicious prompts that induce model outputs contrary to safety alignments. Existing black-box jailbreak methods often rely on model feedback, repeatedly submitting queries with detectable malicious instructions during the attack search process. Although these approaches are effective, the attacks may be intercepted by content moderators during the search process. We propose an improved transfer attack method that guides malicious prompt construction by locally training a mirror model of the target black-box model through benign data distillation. This method offers enhanced stealth, as it does not involve submitting identifiable malicious instructions to the target model during the search phase. Our approach achieved a maximum attack success rate of 92%, or a balanced value of 80% with an average of 1.5 detectable jailbreak queries per sample against GPT-3.5 Turbo on a subset of AdvBench. These results underscore the need for more robust defense mechanisms.

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

↑