[论文解读] PAPILLON: Efficient and Stealthy Fuzz Testing-Powered Jailbreaks for LLMs
PAPILLON 引入了一种用于大语言模型(LLMs)的自动化、黑盒越狱框架,通过使用大语言模型(LLM)引导的、与问题相关的变异策略进行模糊测试,生成简短且语义连贯的提示。该方法在 GPT-3.5 Turbo 上实现了超过 90% 的攻击成功率,在 GPT-4 上实现了 80% 的成功率,相较于最先进方法提升超过 60%,同时在规避检测和跨模型迁移能力方面表现出色。
Large Language Models (LLMs) have excelled in various tasks but are still vulnerable to jailbreaking attacks, where attackers create jailbreak prompts to mislead the model to produce harmful or offensive content. Current jailbreak methods either rely heavily on manually crafted templates, which pose challenges in scalability and adaptability, or struggle to generate semantically coherent prompts, making them easy to detect. Additionally, most existing approaches involve lengthy prompts, leading to higher query costs. In this paper, to remedy these challenges, we introduce a novel jailbreaking attack framework called PAPILLON, which is an automated, black-box jailbreaking attack framework that adapts the black-box fuzz testing approach with a series of customized designs. Instead of relying on manually crafted templates,PAPILLON starts with an empty seed pool, removing the need to search for any related jailbreaking templates. We also develop three novel question-dependent mutation strategies using an LLM helper to generate prompts that maintain semantic coherence while significantly reducing their length. Additionally, we implement a two-level judge module to accurately detect genuine successful jailbreaks. We evaluated PAPILLON on 7 representative LLMs and compared it with 5 state-of-the-art jailbreaking attack strategies. For proprietary LLM APIs, such as GPT-3.5 turbo, GPT-4, and Gemini-Pro, PAPILLONs achieves attack success rates of over 90%, 80%, and 74%, respectively, exceeding existing baselines by more than 60\%. Additionally, PAPILLON can maintain high semantic coherence while significantly reducing the length of jailbreak prompts. When targeting GPT-4, PAPILLON can achieve over 78% attack success rate even with 100 tokens. Moreover, PAPILLON demonstrates transferability and is robust to state-of-the-art defenses. Code: https://github.com/aaFrostnova/Papillon
研究动机与目标
- 解决现有越狱攻击方法依赖人工提示手工构造或使用冗长、易被检测的提示所存在的局限性。
- 开发一种无需预定义模板或现有越狱提示的自动化、黑盒越狱方法。
- 生成简短、语义连贯的越狱提示,能够规避检测并保持高成功率。
- 提升对防御机制的鲁棒性,并增强在不同大语言模型之间的迁移能力。
- 实现在极低查询成本下高效、可扩展且具备隐蔽性的越狱,同时保持高水平的语义质量。
提出的方法
- 该框架采用黑盒模糊测试方法,使用空的种子池,消除了对已有越狱模板的依赖。
- 采用三种新颖的、与问题相关的变异策略,由 LLM 辅助程序引导,以生成语义连贯且简洁的提示。
- 实现两级判断模块,以准确识别真正的越狱成功案例,降低误报率。
- 通过基于语义连贯性和攻击成功率的引导,动态演化提示。
- 利用 LLM 驱动的压缩技术最小化提示长度,即使在 100 个 token 的限制下仍能保持有效性。
- 该方法设计为对常见防御机制具有鲁棒性,包括基于困惑度的检测和字符级扰动。
实验结果
研究问题
- RQ1一种自动化、无需模板的越狱方法是否能在不依赖人工提示工程的前提下,对专有大语言模型 API 实现高成功率?
- RQ2LLM 引导的变异策略在多大程度上能够生成简短、语义连贯且能规避检测的提示?
- RQ3两级判断模块在区分真实越狱与误报方面有多高效?
- RQ4该方法在严格长度限制下的表现如何?是否能在极低 token 使用量下维持高成功率?
- RQ5所生成的越狱提示在不同大语言模型之间是否具备良好的可迁移性?对最先进的防御机制是否具备鲁棒性?
主要发现
- PAPILLON 在 GPT-3.5 Turbo 上实现了 90.5% 的攻击成功率,较现有基线方法高出超过 60 个百分点。
- 该方法在 GPT-4 上达到了 80.2% 的成功率,展示了其在先进专有模型上的强大性能。
- 即使在严格的 100 个 token 限制下,PAPILLON 在 GPT-4 上仍保持 78.3% 的成功率,凸显其高效性。
- 该框架展现出高度的可迁移性,在目标模型之外的其他大语言模型上也保持有效。
- 由于其对语义的专注,PAPILLON 对常见防御机制(包括基于困惑度的检测和字符级扰动)表现出鲁棒性。
- 该方法在保持语义连贯性和攻击有效性的同时,显著减少了提示长度,优于基于梯度和基于模板的基线方法。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。