AI GLOSSARY · PROMPTS AND INSTRUCTIONS
Prompt injection
Definition
Prompt injection attempts to redirect an AI application through adversarial instructions in input or content it processes. An attempt may succeed or fail; indirect injection arrives through material such as retrieved pages, documents or tool results.
Also called: prompt injection attack, prompt injections, LLM prompt injection.
In plain language
In an indirect prompt-injection attempt, material an assistant was meant to read tries to give it new orders. For example, an email being summarized might contain instructions to disclose unrelated private messages. The presence of those instructions does not prove that the application followed them. Risk depends on the available data, tools and controls, so limit access and check consequential actions.
Technical definition
Prompt injection crosses an instruction/data trust boundary in an LLM-integrated application. Direct attacks use adversarial user input; indirect attacks place instructions in externally supplied content. Message roles and content labels can express intended priority, but they do not guarantee compliance. Application-level authorization, limited tool privileges, output checks and appropriate human review can reduce exposure or impact. Distinguish an attack attempt from observed execution or disclosure; no prompt wording alone establishes a universal defense.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Guide · Illustrative, not executed
Check a Claude Skill From GitHub Before Installing It
- What you see
- A step-by-step review of a third-party skill before it runs, including searching for injected shell commands, pre-approved tools and hooks, and reading scripts before you install.
- Why it exercises the concept
- A skill is text and code your agent will trust. The guide treats it as untrusted until read, which is the habit prompt injection calls for.
Skill by Skill Almanac · Illustrative, not executed
skill-safety-audit 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A JSON risk table with evidence lines for a third-party skill folder, produced before you install it.
- Why it exercises the concept
- It scans the folder and cites evidence lines, so you can review a third-party skill's risky content before an agent trusts it.
Skill by Skill Almanac · Illustrative, not executed
prompt-writing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Prompts written and linted with a fixed structure, injection rules and a numeric test plan.
- Why it exercises the concept
- It shows the prompt-side defence, lints prompts against injection rules, which is where the separation between instructions and untrusted input is checked, and pairs it with a test plan, since wording alone does not settle the risk.
How it shows up when you use agents
Untrusted instructions can appear in a fetched page, repository file, issue comment, installed skill or result from an MCP server. These are possible attack surfaces, not evidence that any particular file or server is malicious.
Assess what a successful redirection could access or change. Read-only operations can still expose sensitive data; write and execution tools introduce other consequences. Give tools only the access needed for the task, validate operations in application code and review consequential actions under an appropriate policy. Model instructions complement those controls rather than replacing them.
Common confusions
- Attempt versus success. Adversarial instructions can be present even when a system rejects them.
- Direct versus indirect. The distinction concerns the attacker-controlled surface, not whether an instruction is visually hidden.
- Injection versus an authorized request. A legitimate user changing a permitted task is not automatically an attack.
- Protocol versus trust. An MCP connection describes communication; it does not establish that server content is authoritative.
- Prompt wording versus enforcement. Check permissions and validation in the application as well as the prompt. See the third-party skill review guide.
Related terms
Show all 25 related terms
Terms that mention Prompt injection
23 terms mention this one
- Adversarial attack
- Agentic browser
- AI agent security
- AI privacy
- Browser agent
- Computer use
- Confused deputy (agents)
- DAN prompt
- Data poisoning
- E2B (sandboxes)
- Guardrails
- Indirect prompt injection
- Jailbreak
- Llama Guard
- LLM security
- MCP server
- OWASP Top 10 for LLM Applications
- Prompt template
- Red teaming
- Reinforcement learning
- Sandbox
- System prompt
- Text-to-SQL
Guides that mention Prompt injection
More in Prompts and instructions
Sources
- LLM01:2025 Prompt Injection, OWASP Gen AI Security Project (accessed 2026-11-23)
- Prompt injection is not SQL injection (it may be worse), UK National Cyber Security Centre (accessed 2026-11-23)
- Mitigate jailbreaks and prompt injections, Anthropic (accessed 2026-11-23)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .
Change log (6)
- : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
- : First version.
- : Verifier pass: OWASP wording corrected, labelling attributed to Anthropic, example reworded.
- : Corrected explicit MCP-server anchor; link-only verification does not assert complete content approval.
- : Scoped entity, retrieval and tool-use explanations; complete exact-version review remains pending.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.