← Lab /AI/ML

Prompt injection purple-teaming framework reduces attack success to near zero

PIPETTE enables LLM agents to resist indirect prompt injection attacks with near-zero ASR while preserving task utility

AI/ML arXiv 18 Nov 2026 Defense Simulation evidence

Published as “PIPETTE: Prompt Injection Purple-Teaming for Robust LLM Agents”

Why it matters

PIPETTE provides a practical path to harden LLM agents against indirect prompt injection without sacrificing their normal task performance.

Summary

PIPETTE dramatically reduces prompt-injection attack success rates while preserving benign task performance, achieving as low as 2.5% worst-case ASR on Qwen3-4B and 5.0% on Llama-8B and raising benign utility to 64.95% and 41.24% respectively. The paper shows that prior red-teamers’ high train-time ASR does not translate into robustness, and that their new dictionary-learning reward and token-level self-distillation overcome mode-collapse and utility loss. Evidence comes from extensive AgentDojo and ASB evaluations across static and iterative-adaptive attacks. The results are based on several thousand generated attacks and compare against RL-Hammer, PISmith, META-SECALIGN, SECOPD and other defenses.

What they found 2

  1. PIPETTE-Blue restores or exceeds baseline benign utility after adversarial training.

    “PIPETTE-Blue preserves benign utility. Although off-policy SFT on the PIPETTE-Red dataset achieves low inferencetime ASR in Figure 5, Table 4 shows that it still incurs the utility drop identified in Remark 2 (§3.2), reducing BU on Qwen3-4B from 61.86% to 58.76% and on Llama-8B from 40.21% to 29.90%. Outcome-only RL reduces this loss but still degrades BU to 59.79% on Qwen3-4B and 35.05% on Llama-8B. Replacing standard adversarial training with PIPETTE-Blue on the same PIPETTE-Red dataset avoids this utility loss on both models, reaching 64.95% BU on Qwen34B and 41.24% on Llama-8B.”

  2. PIPETTE achieves near-zero ASR under iterative-adaptive attacks, outperforming prior training-based defenses.

    “PIPETTE 0.00% 25.00% 2.50% 30.00%”

Caveats 3

  • Adversarial training can degrade benign utility.
  • "On-policy RL preserves benign utility better than offpolicy SFT, but supervising multi-step trajectories with a single binary outcome reward still lowers task completion rate."
  • "Strategy-Level Mode Collapse" - diversity regularizers can be satisfied through wording variations around a few attack strategies, and their coverage of unseen CHATINJECT attacks, as estimated by ES, plateaus during training.

What’s new here 4

  • Introduces a dictionary-learning based strategy coverage reward to prevent strategy-level mode collapse in red-teamers.
  • Applies token-level on-policy self-distillation to give credit to individual tokens, reducing utility degradation.
  • Combines the red-teaming and adversarial training stages into a unified purple-teaming framework (PIPETTE).
  • Demonstrates superior robustness on both static and iterative-adaptive attacks compared to existing RL-based red-teamers and training-based defenses.