BreakFun: 通过模式利用对LLM进行劫持
BreakFun: Jailbreaking LLMs via Object Instantiation under Simulated Code Execution
AI总结:
BreakFun通过利用LLM对结构模式的遵守能力,揭示了其在劫持攻击中的脆弱性,并提出对抗性提示解构作为缓解策略。
摘要:
大型语言模型(LLM)在处理结构化数据和遵守语法规则方面的熟练程度是推动其广泛应用的能力,但也使它们 paradoxically( paradoxically 译为“矛盾地”)变得脆弱。在本文中,我们通过BreakFun,一种利用LLM对结构化模式的遵守能力的劫持方法,研究这种脆弱性。BreakFun采用一个三部分提示,结合无害的框架和思维链的干扰,以及一个核心的“特洛伊模式”——一个精心设计的数据结构,迫使模型生成有害内容,利用LLM对结构和模式的强烈倾向。我们证明这种脆弱性高度可转移,在JailbreakBench上13个基础和专有模型上实现了平均成功率为89%,并在几个著名模型上达到了100%的攻击成功率(ASR)。严格消融研究确认特洛伊模式是攻击的主要因果因素。为了应对这一点,我们引入了对抗性提示解构防护措施,该措施利用第二个LLM进行“字面转录”——提取所有可读文本以隔离并揭示用户的真正有害意图。我们的概念验证防护措施在对抗攻击中表现出高效,验证了针对欺骗模式的策略是可行的缓解方法。我们的工作提供了一个视角,展示LLM的核心优势如何被转化为关键弱点,为构建更加稳固对齐的模型提供了新的视角。
英文摘要:
Large Language Models (LLMs) are widely used because they process structures, syntax and code well, but this same ability also makes them paradoxically vulnerable. We introduce BreakFun, a jailbreak method that frames a harmful request as code-execution simulation. The prompt gives the model a benign Python class definition, the "Trojan Schema", and asks what that code would print if it ran. To answer, the model must create an object from the class and invent a value for each field, and the adversarial field names steer those values toward the attacker's goal. The harmful content therefore appears as a side-effect of the simulated instantiation, not as a direct answer. A three-part prompt carries the attack: an innocent frame, the Trojan Schema, and a Chain-of-Thought distraction. On JailbreakBench, BreakFun reaches an average attack success rate of 89% across 13 open-weight and commercial models (open-weight ~98%, API systems ~78%), and 100% on several. An ablation identifies the Trojan Schema as the strongest contributing component. As a counter-ablation probe we introduce Adversarial Prompt Deconstruction (APD), in which a second LLM writes out all readable text in the prompt before it judges safety. APD improves detection across three model families, and a probe-specific ablation shows that the transcription step gives most of the gain. Our findings show that LLM safety must account for content that a simulation task produces as a side-effect, not only for content that a user requests directly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。