Home / Current Issue / Paper 1725672
Indirect Prompt Injection in Tool-Using AI Agents: Risk-Aware Action Gating
Subject area: Science,Engineering and Technology · Area of research: Cybersecurity
DOI: 10.64388/ire1725672
Abstract
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.
Keywords
Indirect prompt injection, LLM agents, tool security, action gating, least privilege, human approval, authorization
References
[1] K. Greshake, S. Abdelnabi, S. Mishra, C. Endres, T. Holz, and M. Fritz, “Not what you’ve signed up for: Compromising real-world LLM-integrated applications with indirect prompt injection,” in Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security, 2023, pp. 79–90, doi: 10.1145/3605764.3623985.
[2] Y. Liu, Y. Jia, R. Geng, J. Jia, and N. Z. Gong, “Formalizing and benchmarking prompt injection attacks and defenses,” in Proceedings of the 33rd USENIX Security Symposium, 2024, pp. 1831–1847.
[3] L. Beurer-Kellner, B. Buesser, A. M. Creţu, E. Debenedetti, D. Dobos, D. Fabian, M. Fischer, D. Froelicher, K. Grosse, D. Naeff, E. Ozoani, A. Paverd, F. Tramèr, and V. Volhejn, “Design patterns for securing LLM agents against prompt injections,” arXiv preprint arXiv:2506.08837, 2025. [Online]. Available: https://arxiv.org/abs/ 2506.08837
[4] OWASP Foundation, “LLM Prompt Injection Prevention Cheat Sheet,” OWASP Cheat Sheet Series. [Online]. Available: https://cheatsheetseries.owasp.org/cheatsheets/LLM_Prompt_Injection_Prevention_Cheat_Sheet.html
[5] R. Bhagwatkar, K. Kasa, A. Puri, G. Huang, I. Rish, G. W. Taylor, K. D. Dvijotham, and A. Lacoste, “Indirect prompt injections: Are firewalls all you need, or stronger benchmarks?” arXiv preprint arXiv:2510.05244, 2025. [Online]. Available: https://arxiv.org/abs/2510.05244
[6] J. Yi, Y. Xie, B. Zhu, E. Kiciman, G. Sun, X. Xie, and F. Wu, “Benchmarking and defending against indirect prompt injection attacks on large language models,” in Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining, 2025, pp. 1809–1820, doi: 10.1145/3690624.3709179.
[7] Q. Zhan, Z. Liang, Z. Ying, and D. Kang, “InjecAgent: Benchmarking indirect prompt injections in tool-integrated large language model agents,” in Findings of the Association for Computational Linguistics: ACL 2024, 2024, pp. 10471–10506, doi: 10.18653/v1/2024.findingsacl.624.
[8] E. Debenedetti, J. Zhang, M. Balunovic, L. Beurer-Kellner, M. Fischer, and F. Tramèr, “AgentDojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM agents,” in Advances in Neural Information Processing Systems, vol. 37, 2024, doi: 10.52202/0790172636.
[9] K. Hines, G. Lopez, M. Hall, F. Zarfati, Y. Zunger, and E. Kiciman, “Defending against indirect prompt injection attacks with spotlighting,” arXiv preprint arXiv:2403.14720, 2024. [Online]. Available: https://arxiv.org/abs/2403.14720
[10] F. Jia, T. Wu, X. Qin, and A. Squicciarini, “The Task Shield: Enforcing task alignment to defend against indirect prompt injection in LLM agents,” in Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics, 2025, pp. 29680–29697, doi: 10.18653/v1/2025.acllong.1435.
How to cite this paper
@article{1725672,
author = {Tanavi Sachin Navale, Tanishka Ajay Mandhare},
title = {Indirect Prompt Injection in Tool-Using AI Agents: Risk-Aware Action Gating},
journal = {Iconic Research And Engineering Journals},
year = {2026},
volume = {10},
number = {5},
pages = {6949-6958},
issn = {2456-8880},
url = {https://www.irejournals.com/formatedpaper/1725672.pdf},
abstract = {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.},
keywords = {Indirect prompt injection, LLM agents, tool security, action gating, least privilege, human approval, authorization},
month = {November},
doi = {https://doi.org/10.64388/ire1725672}
}