paper-with-me

Papers

CoER: Defending against Adaptive Indirect Prompt Injection via Adversarial Co-Evolution and Refinement

2026-09-07 · Boyang Zhang, Qingxin Xiao, Lingwei Dang, Qingyao Wu 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. We combine adaptive attacker-defender co-training with subsequent refinement: continued interaction improves both roles, while learned attackers provide training challenges for further gains in defender safety and task utility. We therefore model adaptive IPI 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. Building on this formulation, we propose CoER, a verifier-grounded co-evolution and refinement framework. After initializing the attacker from successful trajectories, Co-PPO retains historical policies from both roles as opponent populations and mixes current and historical opponents for bilateral reinforcement learning, 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. In our main seven-domain evaluation, CoER reduces observed overall attack success from 38.5% to 0.2% and raises task utility from 63.2% to 76.3%, with improved attack resistance on external benchmarks.

📄 PDF Abstract BibTeX arXiv:2609.07529

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

Lessons from Defending Gemini Against Indirect Prompt Injections

2025-05-20 · Chongyang Shi, Sharon Lin, Shuang Song, Jamie Hayes 외

Gemini is increasingly used to perform tasks on behalf of users, where function-calling and tool-use capabilities enable the model to access user data. Some tools, however, require access to untrusted data introducing ri…

Adversarial Robustness

Defending Against Indirect Prompt Injection Attacks With Spotlighting

2024-03-20 · Keegan Hines, Gary Lopez, Matthew Hall, Federico Zarfati 외

Large Language Models (LLMs), while powerful, are built and trained to process a single text input. In common applications, multiple inputs can be processed by concatenating them together into a single stream of text. Ho…

Prompt Engineering

Defending against Indirect Prompt Injection by Instruction Detection

2025-05-08 · Tongyu Wen, Chenglong Wang, Xiyuan Yang, Haoyu Tang 외

The integration of Large Language Models (LLMs) with external sources is becoming increasingly common, with Retrieval-Augmented Generation (RAG) being a prominent example. However, this integration introduces vulnerabili…

RAGRetrieval-augmented Generation

Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents

2025-02-27 · Qiusi Zhan, Richard Fang, Henil Shalin Panchal, Daniel Kang

Large Language Model (LLM) agents exhibit remarkable performance across diverse applications by using external tools to interact with environments. However, integrating external tools introduces security risks, such as i…

Language ModelingLanguage ModellingLarge Language Model

SafeReview: Defending LLM-based Review Systems Against Adversarial Hidden Prompts

2026-04-29 · Yuan Xin, Yixuan Weng, Minjun Zhu, Ying Ling 외 arxiv

As Large Language Models (LLMs) are increasingly integrated into academic peer review, their vulnerability to adversarial hidden prompts, i.e., adversarial instructions embedded in submissions to manipulate outcomes, pos…