Indirect Prompt Injection in Tool-Using AI Agents: Risk-Aware Action Gating
Autonomous large language model (LLM) agents increasingly interact with external emails, websites, documents, databases, and application programming interfaces to complete tasks on behalf of users. While this capability makes them highly useful, it also exposes them to indirect prompt injection (IPI). In an IPI attack, an adversary embeds malicious instructions inside content that an agent is expected to read as passive data. If the agent treats that content as authoritative commands, it may depart from the user’s intent and perform unauthorized actions such as disclosing private information, sending unsolicited messages, modifying files, or invoking privileged functions. This paper examines IPI in tool-using AI agents and analyzes the security gap between prompt-level defenses and action control at the agent-tool boundary. Existing approaches—including instruction hierarchy, provenance marking and spotlighting, content filtering, static tool restrictions, and human confirmation—offer partial protection, yet no single text-based detector can reliably identify every adaptive or context-dependent attack, and overly restrictive permissions impede legitimate utility. To address these limitations, this study proposes a conceptual Risk-Aware Action Gating framework. Before a tool call is executed, a policy enforcement gate evaluates the requested operation against the original user intent, explicit authorization, action sensitivity, target destination, data involved, and hard security rules, returning one of three decisions: ALLOW, REQUIRE APPROVAL, or BLOCK. External content is strictly treated as untrusted data and cannot grant new authority. The study also reviews AgentDojo and InjecAgent as relevant evaluation benchmarks and defines security, utility, policy enforcement, and auditability as core evaluation dimensions.
Authors
- Tanavi Sachin Navale
- Tanishka Ajay Mandhare
Publication Details
- Journal
- Iconic Research and Engineering Journals
- Published
- 2026-11-26
- DOI
- https://doi.org/10.64388/ire1725672
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00