中毒技能:通过智能体Markdown文件传播越狱攻击
Poisoned Skills: Propagating Jailbreaks Through Agent Markdown Files
AI总结:
本研究发现Markdown技能文件是AI智能体的新攻击面,基于LangChain构建的智能体中,嵌入结合人格操纵与GPTFUZZER的越狱攻击可将平均攻击成功率从0.5%提升至45%,且脆弱性更多取决于底层模型。
摘要:
现代智能体框架允许用户提供包含系统提示、工具描述和技能定义的Markdown文件(例如该http链接),这些文件会在初始化时被纳入智能体的上下文。本研究探讨该配置机制是否也可作为注入通道:嵌入在Markdown技能文件中的越狱攻击能否通过智能体传播并诱导违规行为?为回答该问题,我们构建了基于LangChain的问答智能体,其系统提示由用户提供的Markdown文件组装而成。我们嵌入了结合人格操纵与GPTFUZZER攻击的越狱攻击,并在7种当代开放权重模型上,使用涵盖9类危害的270个禁止问题评估其有效性。在良性系统提示下,模型表现出近乎完全的拒绝行为,平均攻击成功率(ASR)仅为0.5%。相比之下,注入的技能文件使平均ASR提升至45%,个别模型的ASR达到68.9%。我们进一步评估了两种payload混淆策略:基于不可见零宽度字符的隐蔽payload,以及基于字素到音素转换的语音payload。两者均未超过纯文本注入的效果;值得注意的是,语音变体使平均ASR降至30%。这些发现表明,Markdown技能文件是AI智能体一个未被充分探索的攻击面,且对基于配置的越狱攻击的脆弱性更多取决于底层模型,而非特定的payload混淆技术。
英文摘要:
Modern agent frameworks allow users to provide Markdown files containing system prompts, tool descriptions, and skill definitions (e.g., SKILL.md), which are incorporated into the agent's context during initialization. In this work, we investigate whether this configuration mechanism can also serve as an injection channel: can a jailbreak embedded in a Markdown skill file propagate through an agent and induce prohibited behavior? To answer this question, we construct a LangChain-based question-answering agent whose system prompt is assembled from a user-provided Markdown file. We embed a jailbreak combining persona manipulation with a GPTFUZZER-based attack and evaluate its effectiveness across seven contemporary open-weight models using 270 forbidden questions spanning nine harm categories. Under a benign system prompt, the models exhibit near-complete refusal behavior, with a mean attack success rate (ASR) of just 0.5%. In contrast, the injected skill file raises the mean ASR to 45%, reaching 68.9% for individual models. We further evaluate two payload obfuscation strategies: an invisible zero-width character-based stealth payload and a phonetic payload based on grapheme-to-phoneme transformations. Neither outperforms the plain-text injection; notably, the phonetic variant reduces mean ASR to 30%. These findings identify Markdown skill files as an underexplored attack surface for AI agents and suggest that vulnerability to configuration-based jailbreaks depends more strongly on the underlying model than on the specific payload obfuscation technique.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。