# Indirect prompt injection, defined with a sourced example

GLOSSARY, read 12 Nov 2026

**The short answer.** 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. OWASP says indirect prompt injections occur when an LLM accepts input from external sources such as websites or files.

## 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 poisoning](/glossary/tool-poisoning/): Tool poisoning is hiding instructions in an MCP tool's description or metadata.
- [Slopsquatting / package hallucination](/glossary/slopsquatting-package-hallucination/): Package hallucination is when a model suggests a software package name that does not exist.
- [Prompt injection](/glossary/prompt-injection/): Prompt injection is when input to a language model changes its behavior in ways its operator did not intend.

## Where to read more

- [The Agent Surface Map](/agent-surface-map/)
- [The Action Control Matrix](/action-control-matrix/)
- [All glossary terms](/glossary/)

## Sources

- genai.owasp.org/llmrisk/llm01-prompt-injection/: https://genai.owasp.org/llmrisk/llm01-prompt-injection/ (read 12 Nov 2026)

Last reviewed 12 Nov 2026. Canonical: https://aiendpointsecurityranked.com/glossary/indirect-prompt-injection/
