defense 2026

PlanGuard: Defending Agents against Indirect Prompt Injection via Planning-based Consistency Verification

Guangyu Gong , Zizhuang Deng

0 citations

α

Published on arXiv

2604.10134

Prompt Injection

OWASP LLM Top 10 — LLM01

Key Finding

Reduces Attack Success Rate from 72.8% to 0% on InjecAgent benchmark while maintaining 1.49% False Positive Rate

PlanGuard

Novel technique introduced


Large Language Model (LLM) agents are increasingly integrated into critical systems, leveraging external tools to interact with the real world. However, this capability exposes them to Indirect Prompt Injection (IPI), where attackers embed malicious instructions into retrieved content to manipulate the agent into executing unauthorized or unintended actions. Existing defenses predominantly focus on the pre-processing stage, neglecting the monitoring of the model's actual behavior. In this paper, we propose PlanGuard, a training-free defense framework based on the principle of Context Isolation. Unlike prior methods, PlanGuard introduces an isolated Planner that generates a reference set of valid actions derived solely from user instructions. In addition, we design a Hierarchical Verification Mechanism that first enforces strict hard constraints to block unauthorized tool invocations, and subsequently employs an Intent Verifier to validate whether parameter deviations are benign formatting variances or malicious hijacking. Experiments on the InjecAgent benchmark demonstrate that PlanGuard effectively neutralizes these attacks, reducing the Attack Success Rate (ASR) from 72.8% to 0%, while maintaining an acceptable False Positive Rate of 1.49%. Furthermore, our method is model-agnostic and highly compatible.


Key Contributions

  • Isolated Planner architecture that generates reference plans solely from user instructions, preventing context mixing
  • Hierarchical Verification Mechanism combining hard constraints with an Intent Verifier to distinguish benign variations from malicious hijacking
  • Training-free, model-agnostic defense achieving 0% ASR on InjecAgent benchmark with 1.49% FPR

🛡️ Threat Analysis


Details

Domains
nlp
Model Types
llm
Threat Tags
inference_time
Datasets
InjecAgent
Applications
llm agentstool-using agentsautonomous agents