Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysis
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Indirect prompt injection attacks (IPIAs), where large language models (LLMs) follow malicious instructions hidden in input data, pose a critical threat to LLM-powered agents. In this paper, we present IntentGuard, a general defense framework based on instruction-following intent analysis. The key insight of IntentGuard is that the decisive factor in IPIAs is not the presence of malicious text, but whether the LLM intends to follow instructions from untrusted data. Building on this insight, IntentGuard leverages an instruction-following intent analyzer (IIA) to identify which parts of the input prompt the model recognizes as actionable instructions, and then flag or neutralize any overlaps with untrusted data segments. To instantiate the framework, we develop an IIA that uses three "thinking intervention" strategies to elicit a structured list of intended instructions from reasoning-enabled LLMs. These techniques include start-of-thinking prefilling, end-of-thinking refinement, and adversarial in-context demonstration. We evaluate IntentGuard on two agentic benchmarks (AgentDojo and Mind2Web) using two reasoning-enabled LLMs (Qwen-3-32B and gpt-oss-20B). Results demonstrate that IntentGuard achieves (1) no utility degradation in all but one setting and (2) strong robustness against adaptive prompt injection attacks (e.g., reducing attack success rates from 100% to 8.5% in a Mind2Web scenario).
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 25 of its 28 references that are in the map. First posted on arXiv 30 Nov 2025.
Builds on
25 of 28 references.
Closest ancestors · 6
Same direction, newest first
- 2025RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injection6 Oct
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
- 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning26 Mar
- 2025Defeating Prompt Injections by Design24 Mar
- 2024EIA: Environmental Injection Attack on Generalist Web Agents for Privacy Leakage17 Sep
- 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents19 Jun
Other references · 19
- 2025Qwen3 Technical Reportcited by 8,820
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,242
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2025Chain of Thought Monitorability: A New and Fragile Opportunity for AI Safetycited by 249
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
7 more
- 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 129
- 2024System-Level Defense against Indirect Prompt Injection Attacks: An Information Flow Control Perspectivecited by 96
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
- 2024Fast Adversarial Attacks on Language Models In One GPU Minutecited by 88
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 81
- 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
- 2025Effectively Controlling Reasoning Models through Thinking Interventioncited by 65
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026ClawSafety: "Safe" LLMs, Unsafe Agentscited by 17
- 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attackscited by 9
- 2026SOK: A Taxonomy of Attack Vectors and Defense Strategies for Agentic Supply Chain Runtimecited by 8
- 2026Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memorycited by 7
- 2026PlanGuard: Defending Agents against Indirect Prompt Injection via Planning-based Consistency Verificationcited by 4
- 2026Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defensecited by 2
- 2026GIF: Locally Sound Geometric Information Flow Control for LLMscited by 1
- 2026ContainmentBench: Trace-Based Evaluation of Post-Exposure Containment in Tool-Using LLM Agentscited by 1
- 2026Securing Computer-Use Agents: A Unified Architecture-Lifecycle Framework for Deployment-Grounded Reliabilitycited by 0
- 2026ContainmentBench: Trace-Based Evaluation of Post-Exposure Containment in Tool-Using LLM Agents27 Jul 2026
- 2026Security--Fidelity Tradeoffs: The Hidden Cost of Prompt Injection Defense29 Jun 2026
- 2026GIF: Locally Sound Geometric Information Flow Control for LLMs22 Jun 2026
- 2026Securing Computer-Use Agents: A Unified Architecture-Lifecycle Framework for Deployment-Grounded Reliability8 May 2026
- 2026Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memory4 May 2026
- 2026PlanGuard: Defending Agents against Indirect Prompt Injection via Planning-based Consistency Verification11 Apr 2026
- 2026ClawSafety: "Safe" LLMs, Unsafe Agents1 Apr 2026
- 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks31 Mar 2026
- 2026SOK: A Taxonomy of Attack Vectors and Defense Strategies for Agentic Supply Chain Runtime23 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariance
- 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
- 2026Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats
- 2025IPIGuard: A Novel Tool Dependency Graph-Based Defense Against Indirect Prompt Injection in LLM Agents
- 2026Defending against Adaptive Prompt Injection Attacks via Reasoning-enabled Task Alignment
- 2026ActGuard: Pre-execution Action Auditing against Indirect Prompt Injection in LLM Agents
- 2025Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction
- 2025Defending against Indirect Prompt Injection by Instruction Detection