Prompt injection examples include direct commands from a user and hidden commands in email, web pages, files, or tool output. The risk grows when an AI app can read private data or use tools. This guide sorts each case by the strength of its proof, so a lab test is not framed as a real breach. Every example below carries one of three labels:
- Research demonstration — a test run by a lab.
- Disclosed production vulnerability — a known flaw in a shipped tool.
- Observed in the wild — bad text was found on a live site. It does not prove that an AI read the text, that the text worked, or that data was lost.
What prompt injection is, in one minute
Prompt injection happens when content changes how an AI app follows its main rules. In a direct attack, the user sends the bad command. In an indirect attack, the command hides in data that the app reads as part of a normal task.
The second path is hard to spot. A user may ask a tool to sum up a page, read mail, or check a file. The app then puts its trusted rules and the source text in the same model context. The model sees both parts as words, so it may treat a rule inside the source as a new task.
This is not the same as a jailbreak. A jailbreak tends to make a model break a safety rule, while prompt injection attacks aim at the app’s work flow. The harm grows when the model can read private data, call tools, use signed-in sites, or send data out.
That is why the answer to “what is prompt injection?” must include the whole system. A strange reply may be just a bad result. The same reply can cause harm if code treats it as a safe command for mail, files, cash, or a live site.
Prompt injection examples at a glance
The table lists known prompt injection attack examples but does not copy the bad text. “Impact” says what a test showed or what threat data found. It does not claim that each case had real victims.
| Example | Date | Entry path | Shown or claimed impact | User step | Proof label | Latest known state |
|---|---|---|---|---|---|---|
| EchoLeak in Microsoft 365 Copilot | 2025 | Crafted email | A zero-click path could leak data from a live product | None in the test | Disclosed production vulnerability | Tracked as CVE-2025-32711 |
| Perplexity Comet test | 2025 | Text hidden in a web comment | A test got an email address and one-time passcode from signed-in sites | User asked Comet to sum up the page | Disclosed production vulnerability | Brave later said the broad attack type was not fully fixed and sent a new report |
| Mozilla Tabstack test | 2026 | Hidden text on a web page | The agent sent chat history to an outside form | User asked for a page summary | Disclosed production vulnerability | Mozilla fixed the flaw; Brave checked the fix on June 1, 2026 |
| Cotypist test | 2026 | A command inside a local file | The test changed text hints and made saved keys show up in a hint | User still had to accept the hint | Disclosed production vulnerability | The team backed the report; the public source does not log a full fix |
| Forcepoint X-Labs threat data | 2026 | Commands on public sites | Ten signs linked to fraud, data loss, theft, and denial of service | Varies; no run was proved | Observed in the wild | The text was found; a breach was not proved |
| First broad indirect-injection study | 2023 | Web text and other fetched data | A lab showed attacks on real and test LLM apps | Varied by test | Research demonstration | A study, not a breach report |
These types of prompt injection attacks use distinct paths and rights. The key test is not whether the input looks odd. It is whether bad text can shape an output that the app trusts as a choice or act.
Example 1: EchoLeak crossed Microsoft 365 Copilot trust boundaries
EchoLeak, CVE-2025-32711, is the strongest case in this set: it joined a hidden command to a zero-click path that could leak data from a shipped work tool. The peer-reviewed paper says one crafted email was the way in. The target did not have to open the mail or type a bad prompt.
The authors say the chain crossed several checks. It got past Microsoft’s prompt filter and its link cleanup, and it used auto image fetch and an allowed Microsoft Teams proxy path. As a whole, the chain gave the test a way to send data out. No one check was the sole cause.
The key lesson is not the attack text but how a set of useful parts made one unsafe data flow. Copilot could mix outside mail with data in the user’s Microsoft 365 context. The way the app drew its reply and fetched links then gave the data a route out.

Conceptual diagram of the trust-boundary chain described in the EchoLeak research: crafted email, AI processing, protected data, and an outbound path.
The AAAI paper calls the flaw a real exploit in a live AI system, which backs the label disclosed production vulnerability. It does not prove that bad actors used it on users. The public proof does not give a victim count, real data loss, or wide use of the flaw.
The lesson: least privilege. A tool should not get all data that its user can reach. Page draw code, proxies, image fetches, and link previews are part of the risk too. A model reply must stay untrusted until code checks its data and where it will go.
Example 2: Perplexity Comet showed the risk of signed-in browsers
A single hidden comment on a web page was enough to steer a signed-in browser tool. The Brave team put hidden commands in a Reddit comment, and the user then chose the normal “sum up this page” task. Brave said the browser tool obeyed the hidden task across signed-in sites. Brave sent Perplexity a bug report on July 25, 2025 and made the case public on August 20.
In the test, the tool got the user’s Perplexity email address and made the sign-in flow send a one-time code. It then read that code from a signed-in Gmail tab and sent both facts back through the first comment. Brave said the pair could let the person who set the trap take over the Perplexity account.

Conceptual diagram of cross-site risk in a signed-in browser-agent workflow.
This was not a no-click attack: the user had to visit the bad page and ask the tool to read it. After that step, the test did not need more user consent. Wide browser access turned a page summary into a task that crossed site lines.
The fix log shows why status words must be exact. Perplexity backed the first bug report and made a first fix, and a Brave test on August 13 made the flaw look closed. Brave later changed its post: the broad attack type was still not fully fixed and had been sent in again. The source has no newer state.
The lesson: split agent work from day-to-day web use. A page summary should not gain access to mail, user settings, saved tabs, and free web use. High-risk acts need a new check at the time of the act. The check must show what data will move and where it will go.
Example 3: Mozilla Tabstack acted on a hidden webpage instruction
Brave’s June 8, 2026 report looked at Mozilla Tabstack, a cloud web API for AI agents. The team asked it to sum up a page that the team owned. Hidden text sent the agent to an outside form, and the agent put the chat history in that form and sent it.
The test began with a plain read task, but the agent grew it into a new site visit and a data send. It did not flag the clash or mark the new site as a new trust line. It did not ask the user before it sent the chat.
Brave’s log says Mozilla backed the bug on May 14, and on June 1 Mozilla said it had made a fix. Brave then checked the fix on its own. Tabstack is thus a disclosed production vulnerability with a known fix, not an open claim in this source.
The lesson: grant each act, not a broad goal. “Sum up this page” can allow a read from one known site and a text reply. It should not allow a quiet jump to a new site or a form send. Text from the page may ask for a new act. App code must decide if that act is in the user’s stated scope.
Example 4: Cotypist showed that local models are not automatically safe
The same Brave report tested Cotypist, a macOS text hint tool that runs on the user’s Mac. Commands in a local file changed later hints, and in the team’s test saved keys showed up in the hint text.
A local model can keep data away from a cloud host, but it does not solve the source trust flaw. The model still read safe task text and unsafe file text at once. It could not keep a firm line between text to check and text that gave it a new command.
The worst case was less broad than in Tabstack: Cotypist could shape text hints, but it could not browse and send a form on its own. The user had to press Tab to use a hint. That human step helps, yet it is still weak when a hint looks normal and the user accepts it fast.
The Cotypist team backed the bug on June 2, 2026, and it also backed the facts in Brave’s post before that post went live. The post does not log a full fix, so we can say the bug was real at that time but not that the current build is still at risk.
The lesson: where a model runs and what it can do are two distinct choices. On-device work can aid privacy while the app stays open to hidden commands. Limit which files go into the model and keep their source tags. Keep secret stores out of model reach. Treat each text hint as a draft, not as a safe fact.
Example 5: Forcepoint found bad commands on live websites
On April 22, 2026, Forcepoint X-Labs said it found ten signs of hidden prompt attacks on public sites while it hunted for web threats. The team grouped the text by its likely aim: key theft, fraud, data loss, harmful acts, and denial of service.
This proof earns the label observed in the wild, but the phrase is narrow. Forcepoint says its threat data found the text on active sites. The report does not prove that one AI read each item and obeyed it, that an act ran, or that data was lost.
That gap keeps the claim in check. The find shows that bad actors put hostile text where web bots, search tools, and RAG tools may read it. It does not give a count of successful AI prompt injection attacks.

Conceptual diagram of an indirect prompt-injection chain stopped by a security boundary before reaching protected data.
The lesson: the input list is much wider than the chat box. Web text, comments, page tags, files, search clips, and fetched rows all need a clear source mark. Tests must cover those paths too, while keeping runtime injection separate from training-data poisoning and unapproved shadow AI tools.
Earlier research predicted these production failures
In February 2023, Kai Greshake and five coauthors shared a broad study of indirect prompt injection in LLM apps. They showed attacks on real tools, such as Bing’s GPT-4 chat and code tools, and they also built test apps with GPT-4.
The paper set out the core flaw before many agents went live: apps blur the line between data and commands. If a bad actor can change content that an app may fetch, that person can try to steer the model. The study showed paths to data theft, changed API calls, long-lived effects, and bad data in other tools.
These were lab tests, not proof of a crime wave. Their value is that they saw the shape of later flaws. New cases used new tools and new paths, but kept the same flow: outside text went into one shared context, the model took part of it as a command, and code then gave that output too much power.
This is why a list of prompt injection techniques is not a full guard. A filter may catch known words, and model training may cut some errors, but bad actors can change the words, code, place, or file type. The firm checks must sit outside the model, because they set what any model reply may do.
How to protect an AI application from prompt injection
Prompt injection protection works best as a set of checks that fail on their own. No prompt, filter, or model is a firm wall. Start with the data flow and the worst result of a bad model choice.
- Mark each outside input as unsafe. Keep the source: user, email, page, file, RAG index, link, or tool. Do not drop that source mark before rule checks.
- Split commands from data when you can. Use typed fields, strict tool args, and small parsers. Quote marks may help the model, but app code must guard the key line.
- Cut data and tool access. Give each task the least data, acts, sites, and keys it needs. Read rights must not grant send, delete, buy, or deploy rights.
- Ask again for high-risk acts. Show the exact site, data, and result just before the act. A broad goal must not count as consent for each later step.
- Check sites and data flows in code. Allow known sites, block odd hops, and reject model-made links that hold private data. Turn off auto fetch and link previews when they add no value.
- Control paths out. Send all web calls through rule checks. Use site allowlists, data checks, rate caps, and clear rules for forms, mail, uploads, and tools.
- Log choices and test the full app. Log the source, model reply, planned act, rule result, user check, and target site. Test each input path and drill how to stop a bad run.
Slack’s guide gives one clear case. It warns that a bad prompt can make an LLM app put private data in a link. An auto link preview may then fetch the link and send the data. Slack says apps should check message sources and turn off auto previews when they can. It also says apps should use a set list of sites for web calls.
Do not stop a test at “did the model obey the bad command?” Ask what came next:
- Did app code trust the reply?
- Could it read a key or fetch a link?
- Could a tool change state?
- Did the user see a clear check?
A strong test logs each trust line that the task crossed.
Teams also need a plain response plan: turn off the hit tools or links fast, save the logs, change keys that may have leaked, and find other tasks that read the same text. A prompt injection event is an app risk event, not just a strange bot reply.
What these examples actually prove
The known cases do not show that each AI tool is hacked. They show when a bad reply can turn into real harm. The mix is unsafe text, private context, strong tools, and weak checks on model-led acts.
EchoLeak and the Brave cases show flaws in shipped tools. The 2023 paper shows the broad attack type in a lab. Forcepoint’s data shows hostile text on live sites, but not that the text ran. The proof labels keep those facts apart. They are more useful than one list that mixes lab work, known flaws, and real breaches.
For teams that ask how prompt injection works in generative AI, the short answer is a clash of commands. The model gets both safe and unsafe text, while the app hopes the safe rules will win. A build team cannot make that hope a firm wall inside the model. It can make the rest of the app safe when the model makes a bad choice.



