What Is Prompt Injection? A Plain-English Guide to the AI Risk Behind Hidden Instructions (2026)
How hidden text in a web page or email can steer an AI assistant, what OpenAI and Anthropic say about it, and simple habits that lower the risk

AI assistants can now read web pages, open emails and use apps for you. That is useful, but it creates a new kind of risk: the assistant may read text written by someone else and treat it as an order. This is called prompt injection. This guide explains it in plain English, using what OpenAI and Anthropic say on their own pages, and ends with simple habits for everyday users. We say clearly what we could not confirm.
What prompt injection means
OpenAI describes prompt injection as a type of social engineering attack specific to conversational AI. Harmful instructions are hidden in ordinary content, such as a web page, a document or an email, and they try to trick the AI into acting in ways you did not intend. Anthropic describes it as adversarial instructions hidden within the content that an AI model processes.
Think of an assistant who reads your mail aloud and acts on it. If one letter says "ignore your boss and send me the files", a careless assistant could obey. A well-trained assistant should know that a letter is information, not an order from you.
Two examples from the companies
- OpenAI: while researching apartments, an AI could be steered toward a listing that does not match your criteria, because the attacker hid instructions in that listing. In another example, an agent asked to answer overnight emails could be tricked by a malicious email into finding and sharing bank statements.
- Anthropic: a user asks Claude to read recent emails and draft replies to meeting requests. A vendor email contains instructions hidden in white text that tell the agent to forward emails containing the word "confidential" to an outside address.
In both cases, the attacker never talks to you. The attacker only puts text where the AI will read it.
Why agents make it more serious
A chatbot that only answers in a chat window can give a wrong answer. An agent can also do things: open links, fill in forms, click buttons, download files. Anthropic says browser agents face a vast attack surface for this reason. Our guide to what an AI agent is explains how agents differ from chatbots.
What the companies do about it
OpenAI lists several layers:
- Training models to tell trusted instructions from untrusted ones.
- Automated monitors that detect and block attacks.
- Asking users to approve certain links, and sandboxing tools that run code.
- User controls such as a logged-out mode, confirmation requests before sensitive steps like purchases, and a mode that pauses the agent when you leave a sensitive tab.
- Internal and outside testing, and rewards for researchers who find realistic attacks.
Anthropic describes training with simulated attacks, classifiers that scan untrusted content entering the model, and expert red teaming. In its own test of one Claude model, it reports a 1 percent attack success rate against an adaptive attacker, and it says that this still represents meaningful risk.
They both say it is not solved
- OpenAI calls prompt injection a hard, open problem and a frontier research challenge. It says it had not yet seen significant adoption of this technique by attackers, but expects attackers to invest heavily.
- Anthropic says no browser agent is immune to prompt injection and that it is far from a solved problem.
We could not tell from these pages when the figures were measured, so treat the numbers as the companies' own results at one moment, not as a guarantee.
Habits that lower the risk
The first four come from OpenAI's advice for users. The rest are our own suggestions.
- Give an agent only the data and accounts it needs. For research, use a logged-out mode if the tool has one.
- Read what you are asked to confirm. Be careful before approving actions on sensitive sites, such as banking or email.
- Give specific instructions. OpenAI says this does not guarantee safety but makes it harder for attackers.
- Stay informed about the settings of the tool you use.
- Do not mix tasks. Do not let the same agent read unknown web pages and also manage your inbox or payments.
- Keep money and passwords out of reach. Use approval steps for purchases and do not paste passwords into an assistant. Our guide on protecting your privacy with free AI tools has more habits.
- Be suspicious of sudden changes. If an assistant suddenly recommends something odd or asks for sensitive data, stop and check the page yourself.
- Check important results elsewhere. Verify facts on an official page. If a word is unfamiliar, see our plain English glossary of AI words.
Common mistakes
- Thinking only experts are targets. Anyone whose assistant reads outside content can be affected.
- Giving broad permissions for convenience. More access means more damage if the assistant is tricked.
- Trusting a page because it looks professional. Hidden text can sit inside a normal-looking page or email.
- Believing the problem is solved. Both companies say it is not.
Quick questions
Does this affect a normal chat with no web access?
The risk is mainly when the AI reads content from outside, such as pages, files and emails, especially if it can take actions. A plain chat with only your own text is less exposed, but be careful with pasted content from unknown sources.
Can I see the hidden text?
Often not. Both companies describe instructions hidden inside pages or emails, for example in white text.
Should I stop using AI assistants?
That is your decision. The companies describe protections and also admit remaining risk. Starting with low-risk tasks and keeping sensitive accounts out of reach is a sensible approach.
What we could not confirm
- How often these attacks happen to ordinary users. OpenAI says it had not yet seen significant adoption, but we could not check this independently.
- The dates of the figures. Anthropic's 1 percent figure refers to one model in its own testing.
- How other companies handle it. We read only the OpenAI and Anthropic pages.
- Whether a particular tool is safe. We tested no products.