
Short answer
Prompt injection is when text an AI reads changes what it does. Anyone can hide instructions in an email, a web page or a document, and an agent reading it may follow them. OWASP ranks it first among 2025 risks for AI applications and says it is unclear whether fool-proof prevention exists. So limit what an email agent can do.
Key takeaways
- OWASP’s 2025 list puts prompt injection first. Indirect injection arrives through outside content, and it doesn’t have to be visible to a human.
- Email is the textbook case: anyone in the world can put text in front of your agent by sending you a message.
- The danger is a combination: private data, untrusted content and a way to send data out. Remove one and most of the risk goes with it.
- The fix is design: read access only, no sending without a person, and no functions the job doesn’t need (OWASP LLM06:2025).
The most common request I get from owners who have started using AI is some version of "can it just handle my inbox?" It’s a reasonable wish. The inbox is where the day disappears. It is also the one system in your business where total strangers can write whatever they like and have it land inside, which is exactly what makes this question matter.
What is prompt injection, in plain terms?
It is when content an AI reads changes how it behaves in ways nobody intended. OWASP separates two kinds. Direct injection comes from the person typing to the AI. Indirect injection arrives inside outside content, such as a website, file or email, that the AI reads as part of its job. For a business, the indirect kind is the one that matters.
A person reading a strange email knows the difference between the message and an order from their boss. A language model has a harder time with that line. OWASP notes that injected instructions don’t need to be visible or readable to a human at all, as long as the model parses them, so white text or a hidden block in a message can carry them.

Why is email the riskiest place to start?
Because an agent that reads email reads whatever anyone sends. OWASP’s entry on excessive agency describes this exact case: a mail-reading extension that could also send messages, tricked by instructions hidden in an incoming email into forwarding sensitive inbox contents to an attacker. The attacker never touched your systems. They just sent you an email.
The same pattern appears in OWASP’s prompt injection scenarios, which include a person asking an AI to summarise a web page with hidden instructions that led to their private conversation being sent out, and a vulnerability in an AI email assistant that allowed access to sensitive information and manipulation of email content.
What makes an email agent dangerous?
A specific combination. Simon Willison, the developer who named the pattern, calls it the lethal trifecta: access to your private data, exposure to untrusted content, and the ability to communicate externally. An email agent that can read your inbox and send messages has all three in one place. Take any one away and most of the risk goes with it.
- Private dataAccess to your private dataAn email agent that can read your inbox
- Untrusted contentExposure to untrusted contentAnyone can put text in front of the agent by sending you a message
- Outbound channelAbility to communicate externallyAn agent that can send messages
| Setup | Private data | Untrusted content | Can send out | Verdict |
|---|---|---|---|---|
| Summarises the inbox for you only, cannot send | Yes | Yes | No | Reasonable start. It can still mislead you |
| Drafts replies that a person reviews and sends | Yes | Yes | Only through a person | Manageable, if the person reads each draft |
| Replies automatically to incoming mail | Yes | Yes | Yes | All three together. Don’t |
| Sorts and labels mail, no send or forward rights | Yes | Yes | No | Low risk |
| Reads your inbox and can also browse links in it | Yes | Yes, twice over | Possibly, through the links it opens | Treat as able to send |
Can’t the AI company just fix it?
Not fully, according to the security community. OWASP states it is unclear whether there are fool-proof methods of preventing prompt injection, and that research shows retrieval and fine-tuning techniques don’t fully mitigate it. Vendors reduce the rate. You still have to design as though some injected instruction will eventually get through, and limit what it could do.
Think of it the way you think about phishing. Your email provider filters most of it, and you still train staff and keep payments behind a second check, because the filter will miss one eventually. Prompt injection calls for the same posture, applied to software that reads mail on your behalf.
What should you set up before an agent reads your email?
- Give it the fewest functions the job needs. If the job is sorting and summarising, it should not have send, forward or delete.
- Use read-only access where the email system allows it, and a separate account or scope for anything more.
- Keep a person pressing send. OWASP’s own example control is requiring the user to review and hit send on every email the extension drafts.
- Keep outside content labelled as outside content in the agent’s instructions, and never let an email change the agent’s rules.
- Don’t let the agent open links or attachments and then act on what it finds without a person in between.
- Test it. Send it an email with a hidden instruction, such as a request to forward something, and confirm it does nothing.
- Log what it does, so you can see an odd action the day it happens.
Does this only apply to email?
No. Email is the clearest case because strangers write to it every day, and the same logic covers any outside content an agent reads: web pages, shared documents, form submissions, reviews, support tickets. Before connecting any of them, ask the same three questions. Can it see private data? Is it reading content someone outside the company wrote? Can it send anything out? If all three answers are yes, change the design before you switch it on.
This is also why the order of connections matters. An agent that has worked safely on internal documents for a month becomes a different risk the day it also gets a web browser or an inbox, even though nothing about the agent itself changed.
What a safe first email agent looks like
It reads, sorts and drafts. Every draft sits in a folder until a named person reads it and sends it. It cannot forward, delete or change settings, and it has no access to the payment or client systems. That setup still takes most of the grind out of an inbox, and the worst thing a hidden instruction can do is produce a bad draft that someone throws away.
Questions people ask
What is the difference between direct and indirect prompt injection?
Direct injection comes from the person typing to the AI. Indirect injection arrives inside content the AI reads from outside, such as an email, a web page or a file. OWASP describes both. Indirect injection is the main risk for a business agent that reads email.
Can prompt injection be completely prevented?
Not with confidence today. OWASP states it is unclear whether fool-proof prevention methods exist. The practical defence is limiting damage: least privilege, a person approving anything sent out, and keeping private data, untrusted content and outbound channels apart.
Is it safe to let an AI agent reply to emails automatically?
Not for most businesses. An agent that reads untrusted mail, has access to your inbox and can send messages combines all three risk factors. Let it draft, and keep a person reviewing and sending each reply.
Would a hidden instruction have to be visible in the email?
No. OWASP notes that injected instructions don’t need to be visible or readable to a human, as long as the model parses them. White text or hidden sections in an email can carry them.
What is the OWASP Top 10 for LLM applications?
A list of the most serious security risks in applications built on large language models, published by the OWASP GenAI Security Project. The 2025 edition ranks prompt injection first and covers excessive agency, meaning too much functionality, permission or autonomy, as LLM06.
Sources
- OWASP GenAI Security Project, "LLM01:2025 Prompt Injection": The definition, direct and indirect injection, injections not needing to be human-visible, no known fool-proof prevention, the limits of retrieval and fine-tuning, the mitigation list, and the web page and email assistant scenarios.
- OWASP GenAI Security Project, "LLM06:2025 Excessive Agency": Excessive functionality, permissions and autonomy, the mail extension example forwarding inbox contents to an attacker, and requiring a person to review and hit send.
- Simon Willison, "The lethal trifecta for AI agents" (June 2025): The combination of private data, untrusted content and external communication as the condition for data theft.
Published . Last reviewed .
Want this in your business?
Book a call and we will scope exactly which part of your operation an agent should take first.
Book a call with the team