# Prompt injection

> An attack where instructions hidden in content an AI reads, such as an email or web page, make it do things its user never requested.

- Who uses it: Everyone
- How settled: Mostly settled (agreement score 67/100, higher means more agreement). Anthropic, OpenAI, Google and Microsoft all describe the same core attack and publish defenses against it, but security bodies disagree on whether it includes a user attacking their own tool and on how it relates to jailbreaks.
- Last updated: 2026-11-30

## What it is

When an AI reads something on your behalf, like an inbox, a shared file or a web page, that content can carry **instructions planted by someone else**, and the AI may follow them as if they came from you. The risk grows with what the AI can do: an [agent](https://www.olmstedlabs.com/dictionary/agent) with [connectors](https://www.olmstedlabs.com/dictionary/connector) and [tools](https://www.olmstedlabs.com/dictionary/tool-use) might forward files, change records or send messages. It's like a forged note slipped into an assistant's in-tray that looks like it came from the boss.

## Keeping it straight

### How you'll hear it

"Before we let the agent triage the shared inbox, what stops a vendor email from telling it to forward our invoices?"

People also say indirect prompt injection or document attack.

### Not to be confused with

[Jailbreak](https://www.olmstedlabs.com/dictionary/jailbreak): In a jailbreak, the person typing tries to get the AI past its own safety rules. In prompt injection, someone else hides instructions in content your AI reads, and you are the target.

## The honest part

No major AI lab claims to have solved this. Anthropic calls it "far from a solved problem" and OpenAI describes it as social engineering aimed at the AI instead of at you. The defenses that hold up are about limits, not cleverness: give the AI access only to what the task needs, keep a person approving actions that matter, and give it specific instructions rather than open-ended ones. **The more an AI can do, the more an injected instruction can do**, which is why IT may block agents or browser extensions at work that you can use freely at home.

## Your move

What this looks like in your work, and how to handle it.

### People and HR

When AI helps screen résumés, remember a résumé can contain text aimed at the AI rather than at you. Have it summarize each candidate against your criteria, then make the shortlist yourself instead of accepting its ranking as final.

### Finance

If an AI summarizes supplier emails, never let it change payment details on its own. Treat any request for new bank details it surfaces as a flag, and confirm the change by calling a contact you already have on file.

### Sales

When an AI researches prospects across the open web, give it a narrow task, such as pulling recent news into a summary, and keep it from sending emails or updating the CRM in the same run. You review its findings before anything leaves your hands.

### Marketing

If you use an AI browser extension to review competitor sites, run it in a separate browser profile that isn't signed in to your ad accounts or social channels. You still get the competitive summary, and a hidden instruction on a page has nothing of yours to act on.

### Operations

Before connecting an agent to a shared inbox or ticket queue, list the actions it can take and switch on approval for anything that moves money, data or orders. It drafts and sorts; a person confirms before anything leaves.

### Legal

When you ask AI to review a contract from the other side, read its summary against the document rather than trusting it alone, and tell it to point out any text addressed to an AI. Ask your AI vendor how their tools handle instructions found inside documents.

### Customer Support

An AI reading inbound tickets should draft replies, not issue refunds or change account settings without approval, because a ticket can carry instructions. If its draft does something the customer never asked for, stop and report it.

## In your tools

- Claude: [Use Claude in Chrome safely](https://support.claude.com/en/articles/12902428-use-claude-in-chrome-safely)
- Claude: [Mitigate jailbreaks and prompt injections](https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks)
- ChatGPT: [Understanding prompt injections](https://openai.com/safety/prompt-injections/)
- Gemini: [Indirect prompt injections and Google's layered defense strategy for Gemini](https://knowledge.workspace.google.com/admin/security/indirect-prompt-injections-and-googles-layered-defense-strategy-for-gemini)
- Microsoft: [Prompt Shields (document attacks)](https://learn.microsoft.com/en-us/azure/ai-services/content-safety/concepts/jailbreak-detection) (closest equivalent)
- Microsoft: [Defend against indirect prompt injection attacks](https://learn.microsoft.com/en-us/security/zero-trust/sfi/defend-indirect-prompt-injection)

## Read next

- [Jailbreak](https://www.olmstedlabs.com/dictionary/jailbreak): A request crafted to get an AI to ignore its own safety rules or instructions and produce something it would normally refuse.
- [Guardrails](https://www.olmstedlabs.com/dictionary/guardrails): Limits built into an AI tool that automatically check or block what goes in, what comes out or what actions it takes.
- [Data privacy](https://www.olmstedlabs.com/dictionary/data-privacy): In AI tools, what happens to what you type, paste or upload, including whether it is stored, seen by people or used to train models.

## How we scored it

- Vendor alignment: 21/25
- Usage consistency: 16/25
- Definition stability: 18/25
- Clear boundaries: 12/25
- Total: 67/100
- Trend: Holding steady
- Method: https://www.olmstedlabs.com/dictionary/methodology

Missing a word? Suggest one: https://www.olmstedlabs.com/dictionary/suggest

## What changed

- 2026-11-30: Entry created.

Source: https://www.olmstedlabs.com/dictionary/prompt-injection
