Governed Agents Guide

Reference · Untrusted input

Prompt Injection for Business Owners

If your agent reads email, it reads instructions too. There is no patch that closes this.

Most business owners meet prompt injection as a line item in a vendor's security page: "we protect against prompt injection." The honest version of that sentence is harder to write, because the two authorities who have studied it most closely — OWASP and the UK's National Cyber Security Centre — both say it cannot be fully prevented today. What can be done is different, and it changes what you should buy.

01What it is

prompt injection

Input that alters a model's behavior in ways the application's developer did not intend. OWASP's 2026 definition is deliberately broad: the input can be direct user text, retrieved content, tool output, an image, audio, video, intermediate reasoning, or persistent memory.[1]

Two clauses in that definition matter more than they look. Input "need not be human-readable, need not arrive directly from a user, and need not be visible in the rendered interface to influence the model."[1] So a control that scans what an employee typed into a chat box is watching a small part of the surface.

02Why it is not SQL injection

The comparison is natural and it leads people to buy the wrong thing. SQL injection has a structural fix: parameterized queries separate code from data at the database layer. Engineers reasonably assume a similar fix exists for prompts.

The NCSC addressed that assumption directly in December 2025. "Current large language models simply do not enforce a security boundary between instructions and data inside a prompt." There is no equivalent to parameterized queries, the NCSC writes, because both the developer's instruction and the untrusted content arrive as tokens on the same stream.[2]

The consequence is the sentence a procurement team should read twice: prompt injection "may never be totally mitigated in the way SQL injection attacks can be," and organizations should stop asking whether a tool "stops" it and start asking what happens when it succeeds.[2][3]

What this rules outAny claim that a product eliminates prompt injection. OWASP states that no reliable prevention mechanism exists today and that defense must be architectural rather than interceptive — design on the assumption that the instruction boundary will eventually be bypassed.[1]

03The three delivery surfaces

OWASP sorts injection by how much you can trust the place the content came from. This is the most useful distinction for a business, because it shows where your existing instincts fail.[1]

SurfaceExamplesWhat the defender can assume
UntrustedPublic web pages, email from unknown senders, search results.Assume hostile. Most research and most products focus here.
Semi-trustedIssue titles, package READMEs, third-party API responses.The user chose to retrieve it but did not author it.
TrustedYour own repositories, databases, internal documents, your own mail.You trust the platform, not every person who can write into it.

The trusted row is the one that surprises people. An attacker does not need to break into your systems. They need to get text into a place your agent reads — a public bug report form that lands in your tracker, a supplier's invoice, a shared document — and the agent, running with your privileges, does the work.[1]

04A worked example

An agent processes invoices. One PDF contains, in small text below the table, a line instructing the reader to change the bank details on file and mark the invoice paid. A person would not follow it. The agent has no innate reason to refuse: the text is just more input, and the agent's job is to process input.

The outcome is not a wrong answer that someone notices. It is a payment to the wrong account, with a tidy audit trail showing the invoice was processed correctly. This is why OWASP separates the injection from the damage: the input compromise is LLM01, and the permissions that let it become a payment are LLM03, excessive agency.[1]

05The lethal trifecta, and the Rule of Two

OWASP cites two pre-deployment tests that a non-specialist can actually apply. The first is Simon Willison's "lethal trifecta": an agent that can simultaneously (A) access private data, (B) ingest untrusted content, and (C) communicate externally has the conditions for high-impact exploitation. Remove any one leg and the conditions are gone.[1]

The second is Meta's "Rule of Two," which OWASP recommends as a floor. An agent with all three capabilities needs per-action human approval. An agent with two of the three needs a written residual-risk assessment. Only the one-capability case escapes both.[1]

Capabilities the agent hasWhat the rule requires
Untrusted input + private data + external communicationHuman approval on every privileged action, with the exact action shown.
Any two of the threeA documented residual-risk assessment before deployment.
One of the threeStandard controls; the structural condition is absent.

This is the part to take to a vendor meeting. Not "do you stop prompt injection," which has no honest yes, but "which of these three can the agent do, and which one will you remove?"

06The controls that bound the damage

OWASP lists eleven, in layers, and says no single one is sufficient. Five carry most of the weight for a business deployment.[1]

  1. Keep credentials and the power to change state in your code, not the model. Privileged calls go through a deterministic policy engine that re-checks the intent and the arguments at execution time. This is the load-bearing control.
  2. Require human confirmation before any privileged, irreversible, or externally visible action. Show the reviewer the exact action that will run, not a summary of it.
  3. Validate outputs against a strict schema in trusted code before anything downstream acts. Structural validation catches format violations, not a schema-valid email body addressed to an attacker.
  4. Treat memory writes as privileged operations. An injection that persists in memory, a retrieval index, or a vector store taints every later session that reads from it.
  5. Test against an attacker who has read your defenses. Static test suites flatter a system; adaptive testing is the honest measure, and the result belongs in the change record.

Two details are worth knowing because they are cheap. Strip invisible Unicode — tag-block, variation-selector, and zero-width characters — at every ingest and render boundary; they smuggle instructions that no human reviewer will see. And filter every modality, not just text, since an image or an audio clip carries payloads that a text scanner never reads.[1]

07What to ask a vendor

"What happens when a document instructs the agent?" A good answer describes code-level validation, an action allowlist, an approval gate, and a limit on what the agent can reach. A bad answer says the model is "instructed to ignore malicious content." The second answer describes a hope, and the NCSC has already explained why the hope is misplaced.[2]

Then ask the follow-up that separates the two: "Show me the test where an injection succeeded, and what the system did next." A vendor with a real answer has that test. A vendor without one has not looked.

08FAQ

Is prompt injection the same as a data leak?

It is often the route to one. The injection persuades the agent to move or disclose data; the leak is the outcome. OWASP treats the disclosure itself as a separate item, LLM02, because a model can leak without any injection at all.[1]

Can a firewall stop it?

A network firewall sees traffic, not meaning. The content-layer controls — validation, allowlists, approvals — are where the defense lives, and even those bound the damage rather than close the hole.

Does a better model fix it?

Not reliably. OWASP notes that model behavior is stochastic and that the instruction boundary is not architectural, so a model update can move the boundary in either direction. A control that depends on the model behaving cannot be evidenced or tested across vendors.[1]

What is the single highest-value change?

Take state-changing capability out of the model's hands and put it behind your own code with an approval. It is the control OWASP calls load-bearing for agentic deployments, and it survives a successful injection.[1]

Free · the 24-point audit

Get the shadow AI audit

The main guide includes the audit, the agent controls, and the evidence column. The access and approval rows are the ones that answer an injection question.

We use the address to send the pack, then a person checks in once. No list, no sequence; no sales calls unless you ask. Privacy.

Next: the security questionnaire · the OWASP 2026 list.

09Sources

  1. OWASP GenAI Security Project, LLM01:2026 Prompt Injection — definition, delivery surfaces, the lethal trifecta (Willison, 2025), the Rule of Two (Meta AI, 2025), and the mitigation list. 2026 final text.
  2. UK National Cyber Security Centre, "Prompt injection is not SQL injection (it may be worse)" (10 December 2025).
  3. UK National Cyber Security Centre, "Mistaking AI vulnerability could lead to large-scale breaches, NCSC warns" (10 December 2025).