PIPETTE:面向鲁棒LLM智能体的提示注入紫队测试框架 PIPETTE: Prompt Injection Purple-Teaming for Robust LLM Agents 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-18
👁️ 预览文献
💡 AI 中文简介
大模型智能体常接触不可信外部数据,易受间接提示注入攻击。现有基于强化学习的自动化红队方法虽攻击成功率高,但攻击策略模式坍塌,导致对抗训练鲁棒性提升有限。本文提出PIPETTE统一紫队测试框架,通过字典学习奖励鼓励攻击策略多样性,并集成面向提示注入防御的在线对抗训练流程。在AgentDojo和ASB基准上,防御后智能体对静态攻击成功率接近零,能抵御强自适应攻击,且良性任务效用接近无防御基线。
领域人工智能安全 / 大语言模型智能体安全
适合谁读需要一定专业背景(了解LLM智能体、强化学习与对抗训练)
核心贡献1. 揭示现有RL红队方法因模式坍塌导致对抗训练鲁棒性增益有限的问题;2. 提出PIPETTE框架,通过字典学习奖励促进攻击策略多样性,并集成在线对抗训练,有效将红队发现转化为防御鲁棒性提升。
关键数据在AgentDojo和ASB基准上,防御后对静态攻击成功率接近零,能抵御强自适应攻击,良性任务效用接近无防御基线。
推荐理由如果你关心大模型智能体的安全防御,这篇工作揭示了红队与对抗训练之间的关键缺口,并给出了实用解决方案,值得一读。
关键词["提示注入", "紫队测试", "对抗训练", "LLM智能体", "强化学习", "鲁棒性"]

原文摘要

查看英文原文摘要

Large language model (LLM) agents routinely interact with untrusted external data, exposing them to indirect prompt injection (IPI) attacks that hijack agents into executing attacker-chosen tasks. To uncover these vulnerabilities at scale, automated red-teaming methods often leverage reinforcement learning (RL) to generate attacks that achieve high attack success rates (ASR). Model developers use the attacks discovered during internal red-teaming to harden agents through adversarial training before deployment, a collaborative offensive-defensive process known in cybersecurity as purple-teaming. However, we show that achieving high ASR during red-teaming does not guarantee robustness gains from subsequent adversarial training. Specifically, we find that two state-of-the-art RL-based red-teaming methods, RL-Hammer and PISmith, suffer from mode collapse, repeatedly discovering similar attack strategies whose additional successes add no additional robustness improvements to adversarial training. To address this gap, we introduce PIPETTE, a unified prompt injection purple-teaming framework that effectively converts red-teaming discoveries into defender robustness improvements. PIPETTE employs a dictionary learning-based reward that encourages broader coverage of attack strategies during red-teaming. It also integrates an on-policy adversarial training pipeline tailored to IPI defense, enabling agents to resist attacks while completing legitimate user tasks. Extensive evaluations across agentic benchmarks (AgentDojo and ASB) demonstrate that PIPETTE produces defenders that achieve near-zero attack success rates on static attacks and can withstand strong adaptive attacks, while maintaining benign task utility close to that of the undefended baseline.