What prompt injection is
Prompt injection means outside text steering what an agent does. The agent may follow that text as if you had asked.
The text can sit in a web page, an email or a PDF. People may not see it at all, such as white text on a white page.
How it works in practice
A language model sees your instructions and the material it works on as one block of text. The UK’s National Cyber Security Centre (NCSC) says nothing in the model keeps the two apart.
Say an agent summarises supplier emails for you. One email contains a line telling it to send the last 10 invoices to a new address.
A careful model will usually ignore that line. If it doesn’t, the outcome depends on what the agent is allowed to do.
How common it is, and whether it can be fixed
OWASP puts prompt injection first in its 2025 list of risks for apps built on language models. It says it is unclear whether any method prevents it every time.
The NCSC went further in December 2025. It said prompt injection may never be fully stopped, unlike an older web attack called SQL injection.
Models are improving. In browser tests Anthropic published in November 2025, Claude Opus 4.5 with safeguards was fooled by 1.4% of attacks.
Anthropic still called that rate a meaningful risk.
What it means for you
You can’t check every page or email an agent reads. You can limit what the agent can do after reading it.
An agent with no permission to send email can’t send your invoices anywhere, whatever a message says.
The NCSC points to a similar rule. Once a model reads someone’s text, it should hold only that person’s rights.
So keep agents that read outside text away from sending, paying and deleting. Where they must do those things, a person approves each one.
Common mix-ups
- Jailbreaks. A jailbreak is a user trying to talk a model past its rules. OWASP counts it as one kind of prompt injection. For an owner, the useful question is who wrote the text.
- “Our instructions tell it to ignore that.” Telling the model to disregard orders in documents helps. OWASP lists it as one defence among several, with no guarantee.
- Web pages only. Any outside text counts, including emails, files, calendar invites and the descriptions that connected tools send. The MCP standard says tool descriptions should be treated as untrusted unless the server is trusted.
What to ask or check
- What does the agent read that someone outside your business wrote?
- What can it do straight after reading it?
- Can it send data out, such as by email or by loading a web link? OWASP describes an attack that leaks a conversation through an image link.
- Which actions wait for a person’s approval?
- Who looks at the record of what the agent did?
