arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.06253cs.LG
收藏

MAD-MAX:用于自动化大语言模型红队测试的模块化与多样化恶意攻击混合策略

MAD-MAX: Modular And Diverse Malicious Attack MiXtures for Automated LLM Red Teaming

Univ. of Cambridge, Cambridge, UK.(剑桥大学);IBM Research Europe, Dublin, Ireland(IBM欧洲研究院)

Stefan Schoepf, Muhammad Zaid Hameed, Ambrish Rawat, Kieran Fraser, Giulio Zizzo, Giandomenico Cornacchia, Mark Purcell

AI总结:

MAD-MAX提出模块化攻击策略混合方法,通过自动聚类与组合实现高成功率、高多样性的LLM越狱攻击,在GPT-4o和Gemini-Pro上ASR达97%,显著优于TAP,且查询次数更少。

摘要:

随着大语言模型(LLM)使用量的迅速增加,其易受越狱攻击(jailbreaks)影响而产生有害输出的漏洞已成为重大安全风险。随着新的越狱策略不断涌现以及模型通过微调发生变化,持续进行安全漏洞测试变得十分必要。现有的红队测试(Red Teaming)方法在成本效率、攻击成功率、攻击多样性或可扩展性方面存在不足,难以应对新型攻击的出现。我们针对这些挑战提出了模块化与多样化恶意攻击混合策略(MAD-MAX),用于自动化大语言模型红队测试。MAD-MAX将攻击策略自动分配到相关的攻击簇中,为恶意目标选择最相关的簇,然后结合所选簇中的策略,以实现具有高攻击成功率的高多样性新型攻击。MAD-MAX在每次红队测试迭代中进一步合并有前景的攻击以提升性能,并引入相似性过滤器以剔除相似攻击,从而提高成本效率。MAD-MAX方法设计为易于扩展,可纳入新发现的攻击策略,并且在攻击成功率(ASR)和实现越狱所需的查询次数方面显著优于著名的红队测试方法“带剪枝的攻击树”(TAP)。在我们的基准测试中,MAD-MAX在GPT-4o和Gemini-Pro上成功越狱了97%的恶意目标,而TAP仅为66%。MAD-MAX实现这一结果平均仅需对目标LLM进行10.9次查询,而TAP需要23.3次。警告:本文包含具有冒犯性的内容。

英文摘要:

With LLM usage rapidly increasing, their vulnerability to jailbreaks that create harmful outputs are a major security risk. As new jailbreaking strategies emerge and models are changed by fine-tuning, continuous testing for security vulnerabilities is necessary. Existing Red Teaming methods fall short in cost efficiency, attack success rate, attack diversity, or extensibility as new attack types emerge. We address these challenges with Modular And Diverse Malicious Attack MiXtures (MAD-MAX) for Automated LLM Red Teaming. MAD-MAX uses automatic assignment of attack strategies into relevant attack clusters, chooses the most relevant clusters for a malicious goal, and then combines strategies from the selected clusters to achieve diverse novel attacks with high attack success rates. MAD-MAX further merges promising attacks together at each iteration of Red Teaming to boost performance and introduces a similarity filter to prune out similar attacks for increased cost efficiency. The MAD-MAX approach is designed to be easily extensible with newly discovered attack strategies and outperforms the prominent Red Teaming method Tree of Attacks with Pruning (TAP) significantly in terms of Attack Success Rate (ASR) and queries needed to achieve jailbreaks. MAD-MAX jailbreaks 97% of malicious goals in our benchmarks on GPT-4o and Gemini-Pro compared to TAP with 66%. MAD-MAX does so with only 10.9 average queries to the target LLM compared to TAP with 23.3. WARNING: This paper contains contents which are offensive in nature.

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

↑