Resource guide

What Is Prompt Injection? How AI Assistants Get Hijacked

Hidden text in an email or web page can steer an AI assistant, and turning off features you don't need limits what it can reach.

Last updated December 03, 2026 1842-word guide By Ban the Bots Research Desk Reviewed by Jonathan Teplitsky, MBA How we review

Prompt injection happens when text an attacker places inside content an artificial intelligence assistant reads, such as an email, web page, or document, is treated by the model as an instruction rather than passive data. The Open Worldwide Application Security Project (OWASP) ranks prompt injection first, as LLM01:2025, among the risks it lists for large language model applications.

At Ban the Bots, we cover the human cost of artificial intelligence and real-world AI incidents. The UK NCSC explains that because language models do not enforce a security boundary between instructions and data inside a prompt, prompt injection is not something vendors can simply patch out like classic bugs.

If you want to avoid this risk, you can choose not to use AI assistants that read your email, files or the web. If you do use them, the sources below point to the same step: limit what the assistant can see and do.

What Prompt Injection Is and Why It Cannot Be Fully Fixed

Prompt injection is a vulnerability where external, untrusted text overrides the original instructions given to a large language model. In traditional computing, secure systems enforce a strict separation between executable program code and untrusted user data. Current large language models combine instructions and untrusted content into a single prompt without enforcing a security boundary between them.

The United Kingdom National Cyber Security Centre explains in its technical analysis that large language models do not enforce a security boundary between instructions and data inside a prompt. The UK NCSC analysis of prompt injection notes that comparing prompt injection to structured query language injection is dangerous and must be approached differently.

The Open Worldwide Application Security Project classifies prompt injection as vulnerability LLM01:2025. In the OWASP LLM01:2025 prompt injection standard, the organization points out that even techniques like retrieval augmented generation and model fine-tuning do not fully mitigate prompt injection vulnerabilities. To illustrate the concrete risk, OpenAI reported on hardening against prompt injection on December 22, 2025, describing a hypothetical scenario where an email contains text that tricks a browser agent into forwarding sensitive tax documents to an outside party.

For readers who want to limit their exposure, our reading of the sources is that the safest setup is the one that can see and do the least. Turning off an assistant's access to your email or files removes what an injected instruction could reach.

QuestionSQL injectionPrompt injection
What goes wrongData supplied by an attacker is run as an instruction (NCSC).Current language models don't enforce a security boundary between instructions and data inside a prompt (NCSC).
Can it be fixed at the rootYes. Parameterised queries mean the database never reads the input as an instruction (NCSC).NCSC says there is a good chance it will never be properly mitigated that way. OpenAI says it is unlikely to ever be fully solved.
What helpsSeparating data from instructions.Reducing the likelihood and impact: limit what the assistant can reach, and require human approval for high-risk actions (NCSC, OWASP).
Where it ranksNot part of this comparison.First on OWASP's 2025 list of risks for LLM applications (LLM01).

Direct vs Indirect Prompt Injection

Prompt injection attacks fall into two distinct structural categories depending on who provides the input. Direct prompt injection occurs when the person typing directly into the chat interface writes a prompt that bypasses safety protocols or forces unintended behavior. Indirect prompt injection occurs when an assistant reads third-party content that contains hidden commands placed there by someone else.

Jailbreaking is a specific form of direct prompt injection. According to the OWASP LLM01:2025 documentation, jailbreaking occurs when an attacker crafts prompts that cause the model to disregard its safety protocols entirely. While prompt injection manipulates behavior more broadly, jailbreaking focuses specifically on breaking through the guardrails built during model training.

Indirect prompt injection affects everyday users who are not trying to hack their own tools. An attacker can place instructions on a public web page, inside a forum comment, or within an incoming customer email. When you ask your assistant to summarize that page or review your inbox, the model ingests those third-party words and can treat them as new operating orders.

OWASP says injected text does not need to be visible to a person, as long as the model parses it. So you may never see the words that changed the assistant's behavior.

Documented Cases of Prompt Injection

Real-world security research demonstrates that prompt injection is a functional attack vector rather than a theoretical concern. In an August 20, 2025 disclosure, web browser company Brave reported on Comet prompt injection vulnerabilities. Brave makes a competing artificial intelligence assistant called Leo and notes that it is developing its own agentic browsing capabilities. In that disclosure, Brave showed that text hidden inside a web page comment could steer Perplexity Comet into reaching a user's logged-in accounts when the user asked the assistant to summarize the page.

Brave reported the vulnerability to Perplexity on July 25, 2025, and says Perplexity implemented an initial fix on July 27. Brave's retest on July 28 found the fix incomplete, and its August 20 update said Perplexity still hadn't fully mitigated that kind of attack. We did not verify the current status.

A second documented case involved Microsoft's workplace assistant. In an academic paper published on arXiv, researchers Pavan Reddy and Aditya Sanjay Gujral detailed EchoLeak zero-click prompt injection research (CVE-2025-32711). The authors described a zero-click prompt injection vulnerability in Microsoft 365 Copilot that allowed remote, unauthenticated data exfiltration through a single crafted email. Zero-click means the victim does not have to click anything.

These disclosures illustrate why connecting automated agents to personal accounts introduces structural risk. Readers evaluating these systems can learn more about browser risks in our review of AI browser safety.

What the UK NCSC and OpenAI Say About a Fix

The UK NCSC and OpenAI both say prompt injection may never be fully solved in current large language models, and OWASP says it is unclear whether any prevention is fool-proof. The UK NCSC notes that because generative models lack a hard separation between instruction channels and reference channels, prompt injection may never be totally mitigated. The agency advises engineering teams to focus on reducing the impact of an injection rather than pretending it can be prevented entirely.

The UK NCSC passes on a simple rule from a public discussion between Simon Willison and Baibhav Bista: when an AI model processes information from a party, its privileges should drop to that party's. In plain terms, an assistant that reads email from strangers should not also hold tools that can reach your private files.

OpenAI reached a similar conclusion in its December 22, 2025 security report regarding ChatGPT Atlas. OpenAI stated that prompt injection is unlikely to ever be fully solved. The company said it uses automated red teaming powered by reinforcement learning to find new attacks and ship mitigations quickly.

Because vendors acknowledge that defenses remain partial, users must take responsibility for their own digital perimeter. You can read our analysis on containing rogue AI agents to see how containment frameworks handle these system limits.

What Ordinary Users Can Do to Protect Themselves

Defending against prompt injection requires practical boundaries rather than reliance on vendor promises. OpenAI's guidance for ChatGPT Atlas users recommends three concrete habits: use logged-out mode when browsing sensitive or unfamiliar sites, carefully review confirmation requests before letting an assistant execute an action, and give specific, narrow instructions rather than open-ended autonomy.

OWASP recommends least privilege, which means restricting the model's access to the minimum it needs, and human approval for high-risk actions. Our reading is that an assistant should not read untrusted content, such as email from strangers or open web pages, while also holding access to something sensitive, such as your accounts or the ability to send messages.

For people who prefer not to navigate these security tradeoffs, the cleanest solution is opting out of automated tools. You can consult our walkthrough on how to turn off AI features across common operating systems, search engines, and desktop browsers.

An assistant you have turned off can't be steered by text it never reads. That does not remove other web threats such as phishing, which we cover in our guide on how to spot AI phishing.

Coding Assistants and Tool Plug-Ins Raise the Stakes

OWASP says the impact of a successful injection depends largely on the business context and on the agency the model is given. Our reading is that an assistant confined to a chat box, with no access to files or accounts, has little to leak or act on. One with access to a terminal, an email client or a browser has far more.

The OWASP LLM01:2025 guidance emphasizes that business impact depends directly on model agency. OWASP lists executing arbitrary commands in connected systems and unauthorized access to functions available to the model among the possible outcomes of a prompt injection.

If you use a coding assistant or a tool with plug-ins, apply the same least-privilege rule. Our reading is to give it read-only access where you can and to look at a command before you let it run.

For an expanded look at how autonomous tools behave unpredictably when processing web content, read our report on AI agents acting on the web.

Our Takeaway on Prompt Injection

Based on our reading of the UK NCSC, OWASP and OpenAI publications, prompt injection looks like a lasting property of current large language models, not a temporary bug. Because these models do not maintain a security boundary between instructions and data inside a prompt, any assistant that reads external content can potentially be hijacked.

The practical consequence for users is clear: the safest setup is the one that sees and does the least. A chat-only assistant that cannot read private files or trigger external web actions has little to leak, while an autonomous agent connected to your inbox, file system, or browser has far more for an injected instruction to reach.

That reading would change if a model design enforced a boundary between instructions and data, or if independent testing showed that defenses reliably block injections.

This assessment applies to individuals and enterprise workers using artificial intelligence assistants connected to external tools, web browsing, or personal data.

Frequently asked questions

▸ What is the difference between prompt injection and jailbreaking?
According to the OWASP LLM01:2025 standard, prompt injection is the broad practice of using specific inputs to alter a model's behavior or output in unintended ways. Jailbreaking is a specific subcategory of prompt injection where an attacker crafts inputs that force the model to disregard its built-in safety protocols entirely.
▸ Can antivirus software stop prompt injection?
The UK NCSC says prompt injection can't be fully mitigated with a product or appliance, and advises being wary of any product that claims it can stop it. This page didn't test any antivirus or security product and doesn't say whether any antivirus helps.
▸ Is my chatbot at risk if it cannot take actions?
It has much less to leak or act on. OWASP says the impact of an injection depends largely on the context and the agency the model is given, and this page's reading is that a chat-only assistant with no access to private data or tools has little for an attacker to use. An injected instruction can still change what the assistant writes, so check anything it tells you before relying on it.