Risk type: Prompt Injection
Prompt injection
Prompt injection makes an AI follow instructions it should ignore. Direct attacks use the prompt. Indirect attacks hide in pages, files, or email.
OWASP ranks it first among LLM risks, as LLM01. OWASP says fool-proof prevention remains unclear. The UK NCSC says it may never be totally mitigated. Agents raise the stakes: they act on what they read. Limit agent permissions. Require approval before risky actions.
Last updated
2026-10-30
Direct and indirect prompt injection compared
| Attack type | Where the instruction hides | Example | First control |
|---|---|---|---|
| Direct injection | The user’s own prompt. | A user tells a support bot to ignore its rules. | Constrain model behavior and validate outputs. |
| Indirect injection | Pages, files, email, or tool output. A third party plants it. | A summarized page hides an instruction to leak the chat. | Segregate and label external content. |
| Multimodal injection | Images or audio processed with text. | An image carries instructions the user cannot see. | Filter inputs and test multimodal paths. |
| Agent goal hijack (OWASP ASI01) | Any content an agent acts on. | Hidden prompts turned copilots into exfiltration tools, as in EchoLeak. | Least privilege and approval for high-risk actions. |
Types and controls from OWASP and NIST guidance. Sources checked October 30, 2026.
Affected tools
- AI chat tools
- AI copilots
- Browser agents
- Retrieval-augmented assistants
- MCP-connected agents
How it usually happens in the browser
- Someone pastes an untrusted page into an AI tool.
- The content hides an instruction such as “ignore previous instructions.”
- An agent with browser, email, or file access obeys it.
- The model leaks data or takes an unsafe action.
- Attackers iterate cheaply, and detection stays imperfect.
What traditional defenses miss
- Input validation was built for code, not natural language.
- LLMs make no distinction between data and instructions.
- People assume “summarize this page” is a safe request.
- Few tools trace page to prompt to output to action.
- Tool access turns a bad answer into a real action.
Mitigation checklist
- Constrain model behavior with clear, narrow instructions.
- Give agents only the tools and access each task needs.
- Label external content as data, not instructions.
- Require human approval before high-risk actions.
- Filter inputs and outputs, and validate output formats.
- Red-team your most used AI workflows on a schedule.
Where browser isolation fits
- Shield runs the page in a browser that is not on your computer, destroyed when you close the tab.
- Shield moves page execution off your device while you research.
- Isolation changes where a page runs. It does not change what a model obeys.
- Agent builders reach the same routing and isolation through a ready skill.
- Your agent stack still owns its permissions and logs.
What to do next
No single prompt fixes prompt injection. Treat external content as untrusted. Give agents narrow tools and permissions. Put a person in front of risky actions. Then test the workflow again.
Limits
- No control list makes an agent immune to injection.
- Vendor defenses are each vendor’s own description, not an audit.
- Your workflow’s risk depends on its tools and data.
- We reviewed standards and research and ran no tests.
FAQs.
Is prompt injection the same as jailbreaking?
Can prompt injection be fully prevented?
What is an example of indirect prompt injection?
Does prompt injection affect agentic browsers?
Which OWASP list covers AI agents?
What is the fastest mitigation?
References
- 01OWASP LLM01:2025 Prompt InjectionOWASP Gen AI Security Project
- 02OWASP Top 10 for Agentic Applications (December 9, 2025)OWASP Gen AI Security Project
- 03OWASP LLM06:2025 Excessive AgencyOWASP Gen AI Security Project
- 04
- 05Prompt injection is not SQL injection (it may be worse)UK National Cyber Security Centre
- 06
- 07Get started with Claude in ChromeClaude Help Center
Keep exploring
- Indirect prompt injection targets browser agentsA deeper look at hidden instructions in web pages.
- AI data exfiltration through plugins and toolsHow injected instructions move data out.
- Browser isolation for AI agentsWhy the isolation playbook fits agent browsing.
- Install the skillAgent builders reach the same routing and isolation through a ready skill.
- All guidesThreats, secure apps, and AI security pages.
- All AI security guidesBrowse AI topics by risk type.
- Secure apps directorySecure browsing guides for top SaaS apps.
- Threat libraryThreat pages with checklists and FAQs.