AutoBreach:基于高效文字游戏引导优化的通用与自适应越狱攻击
AutoBreach: Universal and Adaptive Jailbreaking with Efficient Wordplay-Guided Optimization
AI总结:
提出仅需黑盒访问的越狱方法AutoBreach,利用文字游戏引导的映射规则采样策略生成对抗性提示词,结合句子压缩、思维链映射及两阶段优化策略,在少于10次查询下对多个主流LLM实现超80%平均越狱成功率。
摘要:
尽管大型语言模型(LLMs)在各种任务中得到广泛应用,但近期研究表明它们容易受到越狱攻击,导致其防御机制失效。然而,以往的越狱研究常受限于通用性有限、效率欠佳以及依赖人工设计。为此,我们重新思考对LLMs进行越狱攻击的方法,并从攻击者视角正式定义了三个基本属性,以指导越狱方法的设计。我们进一步提出了AutoBreach,这是一种仅需黑盒访问即可越狱LLMs的新方法。受文字游戏多功能性的启发,AutoBreach采用文字游戏引导的映射规则采样策略,生成多种通用映射规则以创建对抗性提示词。该生成过程利用LLMs的自动摘要和推理能力,从而减轻人工负担。为提高越狱成功率,我们进一步提出句子压缩和基于思维链的映射规则,以纠正目标LLMs中的错误和文字游戏误解。此外,我们提出一种两阶段映射规则优化策略,在查询目标LLMs之前先优化映射规则,以提升AutoBreach的效率。AutoBreach能高效识别各种LLMs的安全漏洞,包括三个专有模型:Claude-3、GPT-3.5、GPT-4 Turbo,以及两个LLMs网络平台:Bingchat、GPT-4 Web,在少于10次查询的情况下实现了超过80%的平均成功率。
英文摘要:
Despite the widespread application of large language models (LLMs) across various tasks, recent studies indicate that they are susceptible to jailbreak attacks, which can render their defense mechanisms ineffective. However, previous jailbreak research has frequently been constrained by limited universality, suboptimal efficiency, and a reliance on manual crafting. In response, we rethink the approach to jailbreaking LLMs and formally define three essential properties from the attacker' s perspective, which contributes to guiding the design of jailbreak methods. We further introduce AutoBreach, a novel method for jailbreaking LLMs that requires only black-box access. Inspired by the versatility of wordplay, AutoBreach employs a wordplay-guided mapping rule sampling strategy to generate a variety of universal mapping rules for creating adversarial prompts. This generation process leverages LLMs' automatic summarization and reasoning capabilities, thus alleviating the manual burden. To boost jailbreak success rates, we further suggest sentence compression and chain-of-thought-based mapping rules to correct errors and wordplay misinterpretations in target LLMs. Additionally, we propose a two-stage mapping rule optimization strategy that initially optimizes mapping rules before querying target LLMs to enhance the efficiency of AutoBreach. AutoBreach can efficiently identify security vulnerabilities across various LLMs, including three proprietary models: Claude-3, GPT-3.5, GPT-4 Turbo, and two LLMs' web platforms: Bingchat, GPT-4 Web, achieving an average success rate of over 80% with fewer than 10 queries
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。