Where prompt injection enters production systems
OWASP's Top 10 for LLM Applications ranks prompt injection as its top risk category and separates it into direct and indirect variants. Direct injection is straightforward: an attacker submits adversarial instructions in the prompt itself, attempting to override system instructions or extract restricted information. Indirect injection is harder to see because the adversarial content never comes from the user. It arrives through a retrieved document, a web page pulled in by a browsing-enabled agent, or the output of an API or tool call, none of which the model's operator authored or reviewed. MITRE ATLAS documents this pattern specifically for RAG pipelines and browsing agents, where an attacker who controls or influences an external content source can embed instructions that the model later treats as legitimate context.
A third category, tool-output injection, overlaps with indirect injection but deserves separate attention in monitoring design because it enters through a system component (a plugin, function call, or connected service) rather than a content source. A fourth category, multi-turn injection, does not rely on a single malicious payload at all. Instead, an attacker builds toward a harmful action gradually across a session, which means the risk is often invisible if logs are inspected only at the level of individual requests. Any monitoring architecture that inspects only the initial user prompt will miss the second, third, and fourth categories entirely, which is why standards guidance from OWASP, NIST, and MITRE consistently frames prompt injection as a defense-in-depth problem rather than one solved by input validation alone.