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.
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 · Tool calling · Agent

Try it here

Find a reusable workflow

Guides that use it

Stop studying AI. Start shipping. · 27 AI terms to know in 2027. · What is a forward deployed engineer? The ultimate guide to becoming one in 2027 · How AI agents fail in production. · Lock down your agents before they act. · AI voice agents worth knowing in 2027. · MCP servers and skills, explained. · MCP servers worth installing in 2027. · AI coding agents for 2027, compared. · Run AI on your own machine in 2027. · AI app builders worth using in 2027. · Prompt injection, explained for normal people. · AI browsers worth using in 2027.

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term