GLOSSARY, read 12 Nov 2026
Indirect prompt injection, defined with a sourced example
Definition
Indirect prompt injection happens when the instructions come from content the agent reads, such as a web page, a file or a repository, instead of from the user. The agent cannot reliably tell data from commands, so any untrusted content it ingests is a possible channel.
Example from a real source
Example
OWASP says indirect prompt injections occur when an LLM accepts input from external sources such as websites or files.
Related terms
- Tool poisoningTool poisoning is hiding instructions in an MCP tool's description or metadata.
- Slopsquatting / package hallucinationPackage hallucination is when a model suggests a software package name that does not exist.
- Prompt injectionPrompt injection is when input to a language model changes its behavior in ways its operator did not intend.
Where to read more
Sources
- genai.owasp.org, read 12 Nov 2026
Last reviewed 12 Nov 2026.