English
/

What Is Prompt Injection? A Plain Guide for AI Users at Work

Last edited Nov 6, 2026 · 5 min read

Prompt injection is input that redirects an AI model’s behavior or output in unintended ways. It can arrive directly in a user prompt or indirectly through outside content such as a web page or resume. OWASP ranks it first (LLM01:2025) among risks for large language model applications, and the injected text does not need to be visible to people.

On this page▾
  1. What is prompt injection in AI?
  2. How do direct and indirect prompt injection differ?
  3. What it looks like in practice
  4. Why it is hard to fix
  5. Habits that reduce your risk
  6. Frequently asked questions
  7. What is prompt injection?
  8. Can AI prompt injection be invisible?
  9. Can prompt injection be completely prevented?
  10. Is prompt injection the same as jailbreaking?
  11. Will using a private knowledge base or fine-tuning prevent it?
  12. Limits to put around an assistant
Type Where the input enters Example described by OWASP
Direct User prompt A chatbot receives instructions to misuse its access
Indirect External website or file A summary follows hidden webpage instructions

What is prompt injection in AI?

The OWASP Gen AI Security Project, part of the nonprofit Open Worldwide Application Security Project, publishes a widely used Top 10 list of risks for applications built on large language models. Prompt injection is number one, listed as LLM01:2025. OWASP defines it as a vulnerability where prompts alter the model's behavior or output in unintended ways.

OWASP notes that injected instructions do not need to be visible or readable to people. As long as the model processes the content, hidden text can affect it.

NIST's Generative AI Profile describes the same risk from the government side: prompt injection involves changing what input reaches an AI system so that it behaves in unintended ways.

How do direct and indirect prompt injection differ?

Both OWASP and NIST describe two forms.

Direct injection is when someone types instructions straight into the AI to make it misbehave, such as telling a customer support chatbot to ignore its rules. OWASP notes this can even be unintentional, when an ordinary user's input happens to trigger unexpected behavior.

Indirect injection can affect ordinary office tasks. OWASP describes it as instructions arriving through external content the AI reads, such as websites or files. NIST explains that attackers can do this remotely, without any direct access to the AI, by planting instructions in data that the AI is likely to retrieve. NIST adds that security researchers have already shown indirect injection being used to steal proprietary data and to run malicious code remotely.

In OWASP’s webpage example, summarizing external content leads the assistant to include an image URL that leaks conversation data. The failure is treating the webpage as an authority for actions, rather than as material to summarize.

What it looks like in practice

OWASP's list includes example scenarios that map closely onto everyday work:

  • A web page summary. A user asks an AI to summarize a web page that contains hidden instructions. The instructions make the AI insert an image link to an outside address, which leaks the private conversation.
  • A resume review. An applicant uploads a resume with malicious instructions split into pieces. When an AI evaluates the candidate, the combined instructions push it toward a positive recommendation regardless of the actual qualifications.
  • A shared knowledge base. Someone edits a document in a repository the AI draws answers from. When a user's question pulls in that document, the planted instructions produce misleading answers.
  • An email assistant. OWASP cites a real vulnerability in an AI-powered email assistant that let attackers inject prompts to reach sensitive information and manipulate email content.
  • An image. Instructions can be hidden inside an image that accompanies harmless text, affecting AI tools that read both.

OWASP lists the possible consequences, including disclosure of sensitive information, manipulated or biased output, unauthorized use of the tools the AI can access, and influence over important decisions.

Why it is hard to fix

OWASP is candid about this: because of how generative AI works, it is unclear whether there are fool-proof ways to prevent prompt injection. Its guidance focuses on limiting the damage. Two of its recommended measures matter most for regular users:

  • Least privilege. Give the AI only the access it needs for the task.
  • Human approval for high-risk actions. Keep a person in the loop before anything privileged happens.

OWASP also recommends separating and clearly marking untrusted content, and treating the model itself like an untrusted user when testing what it can reach.

Habits that reduce your risk

You cannot patch the model, but you can control how you use it. These habits follow directly from OWASP's guidance:

  1. Be careful what you connect. Every mailbox, drive or app you link to an AI assistant is something an injected instruction could try to use. Connect only what the task needs.
  2. Keep approval steps on. If your tool asks before sending email, sharing files or making purchases, leave that setting enabled and actually read the request.
  3. Treat outside content as untrusted. Web pages, emails from unknown senders, uploaded resumes and vendor files can carry instructions you cannot see.
  4. Watch for strange behavior. If a summary suddenly includes an unexpected link, a request for information, or an action you did not ask for, stop and do not click.
  5. Double-check AI judgments about people and money. Hiring screens, invoice approvals and similar decisions are exactly where OWASP's examples show manipulation paying off for an attacker.
  6. Report it. If you see signs of manipulation in a workplace tool, tell your IT or security team.

Writing clear prompts for work tasks is covered in How to Write a Good AI Prompt for Work Tasks.

Frequently asked questions

What is prompt injection?

It is a vulnerability in which input changes an AI model’s behavior or output in unintended ways. OWASP distinguishes direct input from indirect instructions in external websites or files.

Can AI prompt injection be invisible?

Yes. OWASP says injected input need not be visible or readable to people as long as the model processes it, including in multimodal content.

Can prompt injection be completely prevented?

OWASP says fool-proof prevention is unclear. Its mitigations include least-privilege access, separation of untrusted content and human approval for high-risk actions.

Is prompt injection the same as jailbreaking?

They overlap, but are not interchangeable. Prompt injection changes behavior through input; jailbreaking is a form of injection aimed at making the model disregard its safety protocols.

Will using a private knowledge base or fine-tuning prevent it?

No. Retrieval-augmented generation and fine-tuning do not fully mitigate prompt injection. The UK NCSC says current language models do not enforce a security boundary between instructions and data within a prompt.

Limits to put around an assistant

Separate the model's output from the authority to act. The application should restrict permissions and handle connected functions in code, with human approval for privileged operations. OWASP also lists separating and clearly denoting untrusted content, deterministic code to validate expected output formats, and regular adversarial testing.

Sources

  1. UK National Cyber Security Centre, Prompt injection is not SQL injection
  2. OWASP Gen AI Security Project, LLM01:2025 Prompt Injection
  3. NIST AI 600-1, Generative Artificial Intelligence Profile (July 2024)

About this guide

Howlane operator · Checked against the official sources listed above. It is general information, not professional advice.

AboutEditorial standardsCorrectionsReport an error

Edit history

  • Updated
  • Updated
  • Updated
  • Updated
  • Published