# Prompt injection

Canonical page: https://www.theglitch.ai/ai-glossary/prompt-injection

An attempt to make an AI system follow hostile instructions embedded in material it processes, such as a web page or document.

[Prompt injection, common card \#176 in The Glitch AI glossary: An attempt to make an AI system follow hostile instructions embedded in material it processes, such as a web page or document.](https://www.theglitch.ai/images/cards/glossary/prompt-injection.png?v=70962a8d67732b84)

GLS 176 · common

Also called: Indirect prompt injection.

For: Must know · Builders · Leaders

## Why it matters

It is the top security risk for AI apps and agents, because anything the model reads can try to hijack it.

## In practice

A retrieved page tells an assistant to reveal secrets instead of summarizing the article.

## Watch for

Treat source content as data. Separate trusted instructions, limit tool permissions and check sensitive actions outside the model.

## Related terms

[System instructions](https://www.theglitch.ai/ai-glossary/system-instructions) · [Tool calling](https://www.theglitch.ai/ai-glossary/tool-calling) · [Agent](https://www.theglitch.ai/ai-glossary/agent)

## Try it here

[Find a reusable workflow](https://www.theglitch.ai/library/skills)

## Guides that use it

[Stop studying AI. Start shipping.](https://www.theglitch.ai/learn/stop-learning-ai) · [27 AI terms to know in 2027.](https://www.theglitch.ai/learn/ai-terms-2027) · [What is a forward deployed engineer? The ultimate guide to becoming one in 2027](https://www.theglitch.ai/learn/forward-deployed-engineer) · [How AI agents fail in production.](https://www.theglitch.ai/learn/agent-failure-modes) · [Lock down your agents before they act.](https://www.theglitch.ai/learn/agent-security) · [AI voice agents worth knowing in 2027.](https://www.theglitch.ai/learn/ai-voice-agents-2027) · [MCP servers and skills, explained.](https://www.theglitch.ai/learn/mcp-and-skills) · [MCP servers worth installing in 2027.](https://www.theglitch.ai/learn/mcp-servers-2027) · [AI coding agents for 2027, compared.](https://www.theglitch.ai/learn/ai-coding-agents-2027) · [Run AI on your own machine in 2027.](https://www.theglitch.ai/learn/local-llm-2027) · [AI app builders worth using in 2027.](https://www.theglitch.ai/learn/ai-app-builders-2027) · [Prompt injection, explained for normal people.](https://www.theglitch.ai/learn/prompt-injection) · [AI browsers worth using in 2027.](https://www.theglitch.ai/learn/ai-browsers-2027)

## Sources

- [Anthropic: Prompt injection defenses](https://www.anthropic.com/research/prompt-injection-defenses)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
