PAPILLON:针对LLM的高效且隐蔽的模糊测试驱动越狱攻击
PAPILLON: Efficient and Stealthy Fuzz Testing-Powered Jailbreaks for LLMs
AI总结:
本文提出PAPILLON,一种基于黑盒模糊测试的自动化LLM越狱攻击框架,通过空种子池和依赖问题的变异策略生成简短且语义连贯的提示词,在多个主流LLM上实现了高攻击成功率,并具备良好的可迁移性与防御鲁棒性。
摘要:
大型语言模型(LLMs)在各类任务中表现优异,但仍易受越狱攻击,攻击者通过构造越狱提示词误导模型生成有害或冒犯性内容。现有越狱方法要么严重依赖人工构造模板,在可扩展性和适应性上存在挑战;要么难以生成语义连贯的提示词,从而易被检测。此外,多数现有方法使用冗长提示词,导致查询成本较高。为解决这些问题,本文提出了一种新型越狱攻击框架PAPILLON,这是一种自动化的黑盒越狱攻击框架,通过一系列定制化设计适配了黑盒模糊测试方法。PAPILLON不依赖人工模板,而是从空种子池启动,免去了搜索相关越狱模板的需求。我们还利用LLM助手开发了三种新型依赖问题的变异策略,以生成保持语义连贯且大幅缩短长度的提示词。此外,我们实现了一个两级评判模块,以准确检测真正的成功越狱。我们在7个代表性LLM上评估了PAPILLON,并与5种最先进的越狱攻击策略进行了对比。对于GPT-3.5 turbo、GPT-4和Gemini-Pro等专有LLM API,PAPILLON分别实现了超过90%、80%和74%的攻击成功率,较现有基线超出60%以上。同时,PAPILLON在保持高语义连贯性的同时,显著缩短了越狱提示词长度。针对GPT-4,即使仅使用100个token,PAPILLON也能达到78%以上的攻击成功率。此外,PAPILLON展现出良好的可迁移性,并对最先进的防御手段具有鲁棒性。代码:https://github.com/aaFrostnova/Papillon
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。