Useful context can carry hostile instructions.
A tool-using agent may read a web page, email, support ticket, or document while following a user’s request. That material can contain instructions aimed at the model: ignore the task, expose private information, or take a different action. This is indirect prompt injection. The content may be relevant evidence, but it does not have the authority of the user or application.
InjecAgent tested this risk with 1,054 cases across 17 user tools and 62 attacker tools. The authors evaluated 30 tool-integrated agents; in their reported setup, ReAct-prompted GPT-4 was vulnerable to attacks 24% of the time. That number describes one benchmark and one model configuration from the study, not the probability that a current agent will be compromised in a real deployment.
