Prompt injection
Hiding instructions in text an AI model reads, so that it follows them instead of its user.
A large language model can’t reliably tell its user’s instructions apart from instructions written inside the text it is reading, such as a web page, an email or a document. Prompt injection exploits that: an attacker plants text like “ignore your previous instructions and…” where the model will read it. It matters most when the model can take actions, such as sending messages or calling an API, because the planted text can then make it do things its user never asked for.
See also
- Large language model (LLM) and chatbots
- Sandbox (sandbox escape)
- Least privilege
- AI
- API
- Endpoint (route)
- Environment variable
- Exit code
Sources
- NIST CSRC Glossary: prompt injectionNISTofficial healthy, checked 2026-11-15 archived copy
- LLM01: Prompt InjectionOWASP not checked: the site asks automated checkers not to archived copy
- Prompt injectionWikipedia healthy, checked 2026-11-15 archived copy
In security catalogues
- AML.T0051 LLM Prompt Injection dead, archived copy from 2023-12-21 Original: https://atlas.mitre.org/techniques/AML.T0051