arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.22085cs.CRcs.AIcs.CLcs.LG
收藏

越狱模仿:大型语言模型基于叙事的越狱提示的自动发现

Jailbreak Mimicry: Automated Discovery of Narrative-Based Jailbreaks for Large Language Models

University of Athens(雅典大学)

Pavlos Ntais

AI总结:

本文提出越狱模仿方法,通过微调Mistral-7B自动生成基于叙事的越狱提示,在多个LLM上实现高攻击成功率,揭示安全对齐漏洞并讨论防御策略。

摘要:

大型语言模型(LLM)仍然容易受到复杂的提示工程攻击,这些攻击利用上下文框架来绕过安全机制,在网络安全应用中构成重大风险。我们引入了越狱模仿(Jailbreak Mimicry),这是一种系统性的方法论,用于训练紧凑的攻击者模型,以一次性方式自动生成基于叙事的越狱提示。我们的方法将对抗性提示的发现从手动工艺转变为可复现的科学过程,从而能够在AI驱动的安全系统中进行主动的漏洞评估。该方法为OpenAI GPT-OSS-20B红队挑战赛开发,我们在Mistral-7B上使用参数高效微调(LoRA),并利用从AdvBench衍生的精选数据集,在包含200个项目的保留测试集上,对GPT-OSS-20B实现了81.0%的攻击成功率(ASR)。跨模型评估揭示了漏洞模式的显著差异:我们的攻击对GPT-4实现了66.5%的ASR,对Llama-3实现了79.5%的ASR,对Gemini 2.5 Flash实现了33.0%的ASR,展示了在网络安全背景下的广泛适用性和模型特定的防御优势。这比直接提示(1.5%的ASR)提高了54倍,并展示了当前安全对齐方法中的系统性漏洞。我们的分析表明,技术领域(网络安全:93%的ASR)和基于欺骗的攻击(欺诈:87.8%的ASR)尤其脆弱,凸显了对AI集成威胁检测、恶意软件分析和安全系统的威胁,而物理伤害类别表现出更大的抵抗力(55.6%的ASR)。我们使用Claude Sonnet 4进行自动化危害评估,并与人类专家评估进行交叉验证,确保网络安全红队评估的可靠性和可扩展性。最后,我们分析了失败机制,并讨论了在AI用于网络安全中缓解这些漏洞的防御策略。

英文摘要:

Large language models (LLMs) remain vulnerable to sophisticated prompt engineering attacks that exploit contextual framing to bypass safety mechanisms, posing significant risks in cybersecurity applications. We introduce Jailbreak Mimicry, a systematic methodology for training compact attacker models to automatically generate narrative-based jailbreak prompts in a one-shot manner. Our approach transforms adversarial prompt discovery from manual craftsmanship into a reproducible scientific process, enabling proactive vulnerability assessment in AI-driven security systems. Developed for the OpenAI GPT-OSS-20B Red-Teaming Challenge, we use parameter-efficient fine-tuning (LoRA) on Mistral-7B with a curated dataset derived from AdvBench, achieving an 81.0% Attack Success Rate (ASR) against GPT-OSS-20B on a held-out test set of 200 items. Cross-model evaluation reveals significant variation in vulnerability patterns: our attacks achieve 66.5% ASR against GPT-4, 79.5% on Llama-3 and 33.0% against Gemini 2.5 Flash, demonstrating both broad applicability and model-specific defensive strengths in cybersecurity contexts. This represents a 54x improvement over direct prompting (1.5% ASR) and demonstrates systematic vulnerabilities in current safety alignment approaches. Our analysis reveals that technical domains (Cybersecurity: 93% ASR) and deception-based attacks (Fraud: 87.8% ASR) are particularly vulnerable, highlighting threats to AI-integrated threat detection, malware analysis, and secure systems, while physical harm categories show greater resistance (55.6% ASR). We employ automated harmfulness evaluation using Claude Sonnet 4, cross-validated with human expert assessment, ensuring reliable and scalable evaluation for cybersecurity red-teaming. Finally, we analyze failure mechanisms and discuss defensive strategies to mitigate these vulnerabilities in AI for cybersecurity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑