A research assistant must read material it cannot trust. A web page can contain both useful facts and instructions telling the assistant to change its objective. Prompt injection exploits this mixture of data and instructions. The important design question is which component may authorize a consequential action, not whether a suspicious sentence looks sufficiently unusual.
Locate the authority boundary
Consider a fictional procurement assistant asked to compare three public product specifications. One retrieved page includes a message telling the assistant to send internal notes to a different destination. That page is evidence about a product; it has no authority to redefine the user's task or select a new recipient. The application must preserve that distinction even when the message resembles a system notice, a quoted email or a helpful troubleshooting instruction. Formatting does not create permission.
Treat model behavior and application permission separately
Telling a model to ignore hostile instructions can improve behavior, but a behavioral request does not replace authorization. A robust workflow limits which tools are available, which arguments they accept and which resources the current user may access. The component enforcing those limits should evaluate the original authorized task. If the model proposes a new action, the application should not treat the proposal itself as evidence that the action is permitted.
Build a useful negative control
In an isolated test, keep the procurement task constant and replace one product page with a synthetic document that contains an unrelated instruction. Observe whether the assistant identifies the source of the instruction, retains the comparison objective and avoids calling unnecessary tools. Record the retrieved document, model version, tool policy and actual action trace. A polished final answer alone cannot reveal whether an unsafe intermediate action was attempted or blocked by a separate control.
Keep the workflow useful under uncertainty
Sometimes the document contains legitimate operating instructions that the user wants summarized. The assistant can describe those instructions without executing them. A deliberate transition from reading to acting should name the action, destination and approving authority. If that authority is absent, retain the useful findings and explain the unresolved request. This preserves the user's research goal while leaving a clear place for a human to decide whether a new task is appropriate. Preserve where the requested action originated so reviewers can reconstruct the transition from reading a source to proposing a new task. That provenance is useful even when a permission layer successfully blocks the action.
Original explanatory diagram. The worked organization and records in this article are fictional.
Take this into your next review
- Source formatting does not grant authority.
- Test action traces as well as final answers.
- Keep tool authorization outside model-generated assertions.
Primary references
- OWASP LLM Prompt Injection Prevention Cheat Sheet ↗
- OWASP GenAI Security Project: LLM Top 10 ↗
- MITRE ATLAS knowledge base ↗
AgentX Editorial · AI-assisted educational writing. Historical analysis is separated from hypothetical future scenarios; publication does not imply independent field investigation. Referenced organizations do not endorse AgentX. Report a correction.
Continue reading
Trust boundaries: draw where data becomes authority
How to make architecture diagrams explain security decisions rather than merely list components.
AI security mechanismsAgent tool permissions: review the action that will actually execute
Bind an agent action to a specific user, resource, scope and transaction before execution.
AI security mechanismsRAG document poisoning: preserve trust through the retrieval pipeline
Review who can change retrieval content and how document provenance reaches the final answer.