PIMiner transfers prompt-injection attacks to unseen LLM agents with up to 86.7% success
PIMiner can learn a strategy library that generalizes to new target LLM agents using only a few queries per sample
Security & privacy arXiv 5 Aug 2026 Method Prototype evidence
Published as “Agent Against Agent: An Agentic System for Automatic Prompt Injection Red Teaming”
Why it matters
PIMiner enables cost-effective, transferable red-team testing of LLM agents, facilitating the generation of training data for stronger defenses.
Summary
PIMiner achieves high prompt-injection attack success rates (up to 76.2% ASR@10) against frontier LLM agents while requiring only about 10 queries per test sample and transferring directly to unseen targets, matching or exceeding RL-based red-teamers. The evidence is based on benchmark evaluations (IPIArena, AgentDojo, InjecAgent) against multiple LLM families.
What they found 2
- High ASR on frontier models with few queries
“On IPIArena, it attains a 76.2% ASR against Gemini-2.5-Pro, 61.9% ASR against GPT-5.1 and 42.9% against Claude-Sonnet-4.5.”
- Outperforms RL baseline on GPT-5-nano
“PIMiner outperforms PISmith on GPT-5-nano (0.53 vs. 0.38 ASR)”
Caveats 4
- Claude-Opus-4.5 demonstrates by far the strongest robustness, with only 4.8% ASR@10 on IPIArena and 3.3% ASR@10 on AgentDojo.
- PIMiner achieves a lower ASR on GPT-4.1-nano (0.63 vs. 0.81).
- this work primarily uses Claude Code models to reduce inference costs.
- We exclude Claude-Opus-4.5 from this evaluation because ASR values are low on this model, making it less informative for comparing design choices.
What’s new here 3
- Introduces a hierarchical memory mechanism (long-term strategy library, intra-dataset, intra-sample memory) to reuse attack knowledge across samples and models.
- Uses a strategy router to keep attacker context compact, reducing input length by up to 61% without hurting attack success.
- Achieves RL-level attack performance without training a separate attacker model for each target, needing only ~10 queries per sample.