Skip to main content

Prompt Injection Glossary: 20 Terms Explained Simply

· By Natalie Walls

This prompt injection glossary explains the 20 terms you'll meet most often when securing an LLM app, in plain words, with a link to where each one is defined or described. Terms are grouped into attacks, risks and defenses.

Prompt injection glossary: attack terms

Prompt injection. Simon Willison defines it as "a class of attacks against applications built on top of Large Language Models (LLMs)," which work by combining untrusted input with a developer's trusted prompt (Simon Willison). Start with What Is Prompt Injection? if you're new.

Direct prompt injection. The user's own input changes how the model behaves, on purpose or by accident (OWASP LLM01:2025).

Indirect prompt injection. Instructions hidden in content the model reads, like a web page, file or email. Greshake and colleagues described it in 2023 and showed it against Bing's GPT-4 chat (arXiv). More in Indirect Prompt Injection.

Jailbreaking. In Willison's framing, attacks that try to get around the safety filters built into the model itself, as opposed to attacking an app built on it. OWASP treats it as a form of prompt injection.

Payload splitting. An attack broken into pieces that look harmless alone and combine when the model reads them together. OWASP's example is a resume with fragments spread through it.

Adversarial suffix. A string that looks meaningless to people, appended to a prompt to push the model into unwanted output (OWASP).

Multimodal injection. Instructions hidden in an image or other media, processed alongside normal text (OWASP).

ASCII smuggling. Hiding text in Unicode tag characters, which interfaces often don't display but models can read. Johann Rehberger built a tool to encode and decode it and advises apps to filter these code points out (Embrace The Red).

Markdown image exfiltration. An injection makes the model output an image link whose URL carries private data, so the data leaves when the image loads. It's one of OWASP's LLM01 scenarios.

Tool poisoning. Instructions hidden in an MCP tool's description. Users usually can't see them, but the model reads them. Invariant Labs calls it a specialized form of indirect injection (Invariant Labs).

RAG poisoning. Tampering with documents in a retrieval system so retrieved content steers the model. OWASP lists a version of this as an LLM01 scenario.

Risk terms

System prompt leakage. The hidden instructions behind an app get revealed, along with anything sensitive in them. It's OWASP LLM07:2025 (OWASP). See System Prompt Leakage.

Improper output handling. Model output reaches a browser, shell or database without enough validation. It's OWASP LLM05:2025 (OWASP).

Excessive agency. The weakness that lets an LLM app take damaging actions, from too many tools, too many permissions or too little human approval. It's OWASP LLM06:2025 (OWASP).

Confused deputy. A privileged component tricked into acting for a less privileged attacker. The UK NCSC argues LLMs are especially prone to this, so the risk can be reduced but not removed (NCSC).

Lethal trifecta. Willison's name for an agent that combines access to private data, exposure to untrusted content and the ability to communicate externally. With all three, an attacker can trick it into stealing data (Simon Willison).

Defense terms

Canary token. A unique marker placed in a system prompt. Any response containing it gets blocked, since it means the prompt is leaking (AWS Security Blog). Test canaries work the same way, like asking a model to print CANARY-7.

Dual LLM pattern. A privileged model with tool access only ever sees variable names, while a quarantined model with no tools handles untrusted text (Simon Willison).

Spotlighting. A family of prompt techniques that transform input so the model can tell where it came from. Its authors report attack success dropping from above 50% to below 2% in their tests (arXiv).

Instruction hierarchy. Training a model to rank instructions by privilege and follow higher-privilege ones when they conflict (OpenAI).

A few more you'll hear: CaMeL is a defense that wraps a protective layer around the model and tracks where data came from (arXiv), and an adaptive attack is one tuned to beat a specific defense, which recent research shows defeats most published defenses (arXiv).

Next step: see these attacks in action, safely, with the canary payloads, or scan text for hidden characters with the analyzer.