Vendor email prompt injection in an accounts-payable agent

FDE-AI Production Agent Design & Safety Guardrails Medium Question 12 of 24

An accounts-payable agent reads inbound vendor emails and files invoices. A penetration tester sent an email whose body told the agent to change the payee bank account, and the agent complied. The pipeline currently pastes each email body into the system prompt before the run.

Where should the email body be placed so the model treats it as data rather than instructions?

Show answer and explanation

AIn a source-labeled tool_result block returned by the email-reading tool

Third-party content belongs in tool_result blocks and never in system prompts or plain user text, because the model is trained to treat instructions inside tool results with skepticism; labelling the source tells it what the content is, and the policy that tool content cannot override instructions goes in the system prompt. A user text block is the trusted channel, and a warning line there is just more text. Operator instructions inside a tool result may be ignored or flagged as injection. A note inside the system prompt does not lower the trust of what follows it.

Source: platform.claude.com/docs/en/test-and-evaluate/strengthen-gu…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 24 original FDE-AI practice questions