Injection exploits instruction ambiguity
LLM applications place policy, user requests, retrieved text, tool output, and prior messages into a context the model must interpret. Prompt injection occurs when attacker-controlled content is treated as instructions that conflict with the application's intended policy.
Direct injection arrives through the user. Indirect injection arrives through content such as a page, email, file, or tool response. Stored injection persists for later processing. Multimodal injection uses images, audio, or document structure.