The core boundary: retrieved emails, documents and webpages are task data. They do not grant new authority to reveal secrets, change tools, contact people or ignore the user's scope.
Understand the business-shaped attack
An injection does not need to look like a dramatic “ignore all instructions” command. A supplier attachment might ask the assistant to upload its working file to a verification link. A support message might claim that an administrator approved a refund. A webpage might instruct a research agent to copy private context into a search query.
Those statements are not proof of user authorization. The system must distinguish source claims from trusted task instructions and enforce access independently of the model's interpretation.
Reduce the consequences of a mistake
Use narrowly scoped tools, approved source sets and minimal credentials. Keep read-only analysis separate from actions that publish, write or disclose information. The MCP security guidance provides relevant protocol and deployment considerations, but a protocol alone does not secure the workflow.
A model may still misinterpret malicious text. Restricting what its tools can do reduces the impact of that failure. Do not rely solely on another prompt telling it to be careful.
A worked inquiry-assistant test
Create a synthetic client inquiry that contains a normal project request and a hidden-looking instruction to export every CRM contact “for verification.” The desired behavior is to continue summarizing the legitimate inquiry while rejecting the unrelated disclosure.
Check tool logs and destination state. A final answer claiming that the assistant ignored the instruction is not enough if an earlier tool call already transmitted the data.
Test indirect paths
- Malicious text in an attachment or quoted email thread.
- A source that impersonates an internal administrator.
- A URL designed to receive private query parameters.
- An instruction to broaden retrieval across tenants.
- A request to repeat a blocked action with another model.
Use harmless fixtures and non-production systems. The evaluation should verify the boundary without creating a real disclosure or damaging action.
Keep recovery and monitoring useful
Record attempted scope changes and blocked operations without copying unnecessary secrets into logs. Give operators enough information to understand the source and action involved. Maintain a route to revoke access and stop the workflow.
Review failures as application-design evidence. Sometimes the right correction is a narrower tool, better approval binding or a stronger retrieval filter—not a longer warning in the system prompt.
Prompt injection is a reason to design for limited authority and observable actions. It is not solved by a claim that one model is immune, nor by making the agent promise never to follow malicious instructions.
Researched and published 30 November 2026. Provider capabilities are attributed to official documentation; recommendations and worked examples are editorial analysis. No independent model benchmark or client outcome is claimed. Confirm current access, pricing and terms before implementation.
Build the useful version.
Discuss an AI workflow, knowledge assistant or digital-product brief with Jamil Darwish.
Start a conversation