# Prompt injection, defined with a sourced example

GLOSSARY, read 12 Nov 2026

**The short answer.** Prompt injection is when input to a language model changes its behavior in ways its operator did not intend. OWASP's LLM01:2025 entry says the inputs can affect the model even if humans cannot see or read them, as long as the model parses the content.

## Definition

Prompt injection is when input to a language model changes its behavior in ways its operator did not intend. In an agent with tools, the changed behavior can be an action, such as reading a file or sending a request. OWASP lists it as the first risk for LLM applications.

## Example from a real source

**Example.** OWASP's LLM01:2025 entry says the inputs can affect the model even if humans cannot see or read them, as long as the model parses the content.

## Related terms

- [Indirect prompt injection](/glossary/indirect-prompt-injection/): 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.
- [Tool poisoning](/glossary/tool-poisoning/): Tool poisoning is hiding instructions in an MCP tool's description or metadata.
- [Sandbox](/glossary/sandbox/): A sandbox is a restricted, controlled execution environment that limits what software can reach, typically the file system and network.

## 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/prompt-injection/
