Agent 与自动化 4.0 · 优秀 2026-11-18 · 论文

PIPETTE: Prompt Injection Purple-Teaming for Robust LLM Agents

LLM agent 常读不可信外部数据,间接提示注入(IPI)能把 agent 劫持去执行攻击者任务自动红队多用 RL 生成高 ASR 攻击,但论文发现两个 SOTA 方法(RL-HammerPISmith)存在 mode collapse:反复找到相似攻击,攻击成功率再高也不能给后续对抗训练带来额外鲁棒性PIPETTE 把红队产出真正转成防御收益:用字典学习奖励扩大攻击策略覆盖面,并配一条面向 IPI 的 on-policy 对抗训练管线在 AgentDojoASB 上,防御后对静态攻击接近零成功率,扛得住强自适应攻击,正常任务效用接近无防御基线做 agent 安全的启示是高 ASR 不等于更稳的模型,覆盖度才是

打开原文回到归档

PIPETTE: Prompt Injection Purple-Teaming for Robust LLM Agents

  • Source: https://arxiv.org/abs/2611.24362
  • Author: Lipeng He, Yihan Wang, Jiawen Zhang, N. Asokan
  • Published: 2026-11-18
  • Intake: 2026-11-20 evening (daily-intake-evening, openclaw)
  • Evidence: /Users/gracker/Library/Mobile Documents/iCloud~md~obsidian/Documents/Obsidian/OpenClaw定时任务/论文流水线/2026-11-20-论文流水线.md

中文摘要

LLM agent 常读不可信外部数据,间接提示注入(IPI)能把 agent 劫持去执行攻击者任务。自动红队多用 RL 生成高 ASR 攻击,但论文发现两个 SOTA 方法(RL-Hammer、PISmith)存在 mode collapse:反复找到相似攻击,攻击成功率再高也不能给后续对抗训练带来额外鲁棒性。PIPETTE 把红队产出真正转成防御收益:用字典学习奖励扩大攻击策略覆盖面,并配一条面向 IPI 的 on-policy 对抗训练管线。在 AgentDojo、ASB 上,防御后对静态攻击接近零成功率,扛得住强自适应攻击,正常任务效用接近无防御基线。做 agent 安全的启示是高 ASR 不等于更稳的模型,覆盖度才是。

English Summary

LLM agents routinely read untrusted external data, exposing them to indirect prompt injection (IPI). Automated red-teaming typically uses RL to maximize attack success rate (ASR), but the paper shows two state-of-the-art RL red-teaming methods, RL-Hammer and PISmith, suffer from mode collapse: they rediscover similar strategies whose extra successes add no robustness gains in subsequent adversarial training. PIPETTE converts red-team discoveries into defender robustness with a dictionary-learning-based reward that broadens strategy coverage and an on-policy adversarial training pipeline tailored to IPI defense. On AgentDojo and ASB, defended agents reach near-zero ASR on static attacks, withstand strong adaptive attacks, and keep benign task utility close to the undefended baseline.

Abstract (arXiv)

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.