CoER: Defending against Adaptive Indirect Prompt Injection via Adversarial Co-Evolution and Refinement
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Language-model agents are vulnerable to indirect prompt injection (IPI) during tool use: adversarial instructions hidden in untrusted tool outputs can covertly redirect legitimate task execution. Existing work often trains and evaluates defenses against fixed attacks that do not adapt to the defender's behavior, so the resulting defenses may struggle against adaptive attacks in real-world settings. We argue that a strong defense against adaptive IPI must adapt during training to a continually evolving attacker. Building on this insight, we propose CoER, a verifier-grounded co-evolution and refinement framework that models interleaved tool calls and adaptive injections within a task as a general-sum Markov game: the defender advances the task through successive tool calls, while the attacker can inject multiple times within the same task and adapt subsequent attacks to the defender's responses and prior execution traces. After initializing the attacker from successful trajectories, bilateral adversarial reinforcement learning (BA-RL) retains historical policies from both roles as opponent populations and mixes current and historical opponents, extending training beyond the latest matchup. Attackers from these populations are then reused to challenge teacher agents, and only demonstrations verified for both safety and task completion are used to fine-tune the co-evolved defender. Across seven domains and three evaluation seeds, CoER reduces adaptive attack success from 41.3% to 0.2% and raises safe task completion from 39.6% to 76.2%; external benchmarks also show improved attack resistance. Further experiments validate the effectiveness of bilateral historical-opponent mixing and population-guided refinement. Attacker analyses show that co-evolution strengthens attack capabilities and that the trained attacker uses execution feedback to adapt subsequent injections.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 46 of its 53 references that are in the map. First posted on arXiv 7 Sep 2026.
Builds on
46 of 53 references.
Closest ancestors · 13
Same direction, newest first
- 2026SafeEvolve: Harness-Policy Co-Evolution from Agent Experience for Safety Alignment2 Sep
- 2026Defending against Adaptive Prompt Injection Attacks via Reasoning-enabled Task Alignment13 Jun
- 2026AgentLAB: Benchmarking LLM Agents against Long-Horizon Attacks18 Feb
- 2026Learning to Inject: Automated Prompt Injection via Reinforcement Learning5 Feb
- 2025Adversarial Reinforcement Learning for Large Language Model Agent Safety6 Oct
- 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents26 Sep
- 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents13 Jun
- 2025Progent: Securing AI Agents with Privilege Control16 Apr
- 2025Defeating Prompt Injections by Design24 Mar
- 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
1 more
Other references · 33
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 450
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 325
21 more
- 2019Emergent Tool Use From Multi-Agent Autocurriculacited by 308
- 2025VAPO: Efficient and Reliable Reinforcement Learning for Advanced Reasoning Taskscited by 281
- 2017A Unified Game-Theoretic Approach to Multiagent Reinforcement Learningcited by 265
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 237
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 233
- 2019Adversarial Policies: Attacking Deep Reinforcement Learningcited by 209
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 185
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 179
- 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Gamecited by 135
- 2017Emergent Complexity via Multi-Agent Competitioncited by 117
- 2024Curiosity-driven Red-teaming for Large Language Modelscited by 83
- 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchycited by 62
- 2024Learning diverse attacks on large language models for robust red-teaming and safety tuningcited by 54
- 2026AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?cited by 45
- 2026MAGIC: A Co-Evolving Attacker-Defender Adversarial Game for Robust LLM Safetycited by 15
- 2025Lifelong Safety Alignment for Language Modelscited by 13
- 2026PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defensescited by 13
- 2026SEMA: Simple yet Effective Learning for Multi-Turn Jailbreak Attackscited by 10
- 2025Tree-based Dialogue Reinforced Policy Optimization for Red-Teaming Attackscited by 8
- 2025Adversarial D'ej`a Vu: Jailbreak Dictionary Learning for Stronger Generalization to Unseen Attackscited by 6
- 2026GPT-Red: Automated Red Teaming via Self-Play at Scalecited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026RAISED: Self-Distillation for Robustness to Prompt Injection in LLM Agents
- 2026AdapTools: Adaptive Tool-based Indirect Prompt Injection Attacks on Agentic LLMs
- 2026Mitigating Adaptive Attacks against Reasoning Models with Activation Consistency Training
- 2026COPA: Continual Preference Optimization for Adaptive Prompt Injection Defense
- 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks
- 2026David vs. Goliath: Verifiable Agent-to-Agent Jailbreaking via Reinforcement Learning
- 2026Learning to Attack and Defend: Adaptive Red Teaming of Language Models via GRPO
- 2025IPIGuard: A Novel Tool Dependency Graph-Based Defense Against Indirect Prompt Injection in LLM Agents