h4rm3l:一种用于可组合越狱攻击合成的语言
h4rm3l: A language for Composable Jailbreak Attack Synthesis
AI总结:
针对LLM安全评估中越狱攻击覆盖不足的问题,提出h4rm3l语言,以DSL形式化可组合攻击,结合bandit合成器生成多样化攻击,在6个SOTA模型上成功率超90%。
摘要:
尽管最先进且广泛部署的大型语言模型(LLMs)已展现出有价值的能力,但由于其安全过滤器可以被称为越狱攻击的提示变换绕过,它们仍有可能对社会造成危害。当前的LLM安全评估方法采用模板化提示数据集和基准测试流程,未能覆盖足够大且多样化的越狱攻击集合,导致不安全的LLM被广泛部署。近期研究表明,新的越狱攻击可以通过组合推导得出;然而,此前尚未提出一种正式的越狱攻击可组合表示,这种表示除其他好处外,还能通过程序合成方法探索越狱攻击的大型组合空间。我们引入了h4rm3l,一种通过人类可读的领域特定语言(DSL)解决这一空白的新方法。我们的框架包括:(1)h4rm3l DSL,它将越狱攻击正式表示为参数化字符串变换原语的组合。(2)一个带有bandit算法的合成器,能够高效生成针对目标黑盒LLM优化的越狱攻击。(3)h4rm3l红队软件工具包,它采用前两个组件以及一个与人类判断高度一致的自动化有害LLM行为分类器。我们通过合成一个包含2656个成功的新型越狱攻击的数据集(针对6个最先进的开源和专有LLM),并针对这些攻击的子集对这些模型进行基准测试,证明了h4rm3l的有效性。我们的结果表明,h4rm3l合成的攻击具有多样性,且比文献中现有的越狱攻击更成功,在最先进的LLM上成功率超过90%。
英文摘要:
Despite their demonstrated valuable capabilities, state-of-the-art (SOTA) widely deployed large language models (LLMs) still have the potential to cause harm to society due to the ineffectiveness of their safety filters, which can be bypassed by prompt transformations called jailbreak attacks. Current approaches to LLM safety assessment, which employ datasets of templated prompts and benchmarking pipelines, fail to cover sufficiently large and diverse sets of jailbreak attacks, leading to the widespread deployment of unsafe LLMs. Recent research showed that novel jailbreak attacks could be derived by composition; however, a formal composable representation for jailbreak attacks, which, among other benefits, could enable the exploration of a large compositional space of jailbreak attacks through program synthesis methods, has not been previously proposed. We introduce h4rm3l, a novel approach that addresses this gap with a human-readable domain-specific language (DSL). Our framework comprises: (1) The h4rm3l DSL, which formally expresses jailbreak attacks as compositions of parameterized string transformation primitives. (2) A synthesizer with bandit algorithms that efficiently generates jailbreak attacks optimized for a target black box LLM. (3) The h4rm3l red-teaming software toolkit that employs the previous two components and an automated harmful LLM behavior classifier that is strongly aligned with human judgment. We demonstrate h4rm3l's efficacy by synthesizing a dataset of 2656 successful novel jailbreak attacks targeting 6 SOTA open-source and proprietary LLMs, and by benchmarking those models against a subset of these synthesized attacks. Our results show that h4rm3l's synthesized attacks are diverse and more successful than existing jailbreak attacks in literature, with success rates exceeding 90% on SOTA LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。