How it works
The person asks for something ordinary, such as a summary of a supplier page or the next step in an email thread. The agent fetches that content and puts it in the context beside the system prompt. Hidden in the page, the message or the tool payload is a second instruction: call a different tool, reveal a secret, or post data to an outside destination. The person never typed that line. A review of the chat alone shows a reasonable question and a bad action.
This is still an input problem, one step removed from the keyboard. The carriers are whatever the agent is willing to read: search snippets, attached files, ticket comments, knowledge-base articles and tool results. Text a visitor would not notice on the rendered page is still text to the model. Treat retrieved strings as untrusted, strip or isolate instructions inside them, and do not let a tool result authorise a new tool call unless the hierarchy says a tool may give orders.
A worked example
A supplier page steers a buyer
A procurement agent is asked to compare one valve on a supplier page with the approved specification.
The page's product table is ordinary.
Further down, text that is not part of the visible description tells the buyer agent to stop the comparison and post the company card number to an outside address.
The agent fetches the page, follows that text, and attempts the post.
The person typed only the comparison request.
The specification file is never opened.
The hostile instruction was not in the chat.
It arrived inside content the agent was told to retrieve, which is what makes the injection indirect.
A transcript of the user messages shows nothing unusual.
The fetched page is where the override is.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- Logging only the user message clears the run, because the attack never passed through the keyboard and the transcript looks like a normal buying question.
- A sanitiser that cleans the user turn and leaves tool results untouched will pass a hostile payload that a search tool or a browser tool just returned.
- Quoting the retrieved page in the reply spreads the hidden instruction into the next turn, where a later step treats the quote as a fresh order. Reviewers who never open the page will miss it.
How to measure it
Join each surprising tool call to the retrieved document, email or tool result that entered the context on the previous step. Read that source before blaming the user message.
Count tasks that drifted after a fetch, and sample the fetched text for lines that name a tool, a destination or a secret. Keep the source attached to the turn so the drift is explainable. Without that page the count cannot show the injection was indirect.
Further reading
How Abracadabra helps
Open the retrieved page, email or tool result that entered the context just before the agent left the task, and see whether that text asked for a new action. The person never typed the hostile line.
Abracadabra does not block an attack or run a guardrail. It shows the conversation: a task that never started, off-topic drift, or a refusal, linked to the turn. Those sessions are the cases a guardrail should have caught.
Request access to read this on your own agent.