What Is Prompt Injection? Attacks, Examples & Prevention
Harness, Monday, November 23rd, 2026
Harness explains prompt injection, the difference between direct and indirect attacks, and layered ways to limit it.
Prompt injection uses crafted text to override a large language model's instructions, and OWASP ranks it first, as LLM01, in its Top 10 for LLM Applications 2025.
It works because a model receives the system prompt, user message and retrieved content as one stream and cannot reliably separate commands from data, making it a structural property rather than a patchable bug.
Direct injection is typed into the interface, while indirect injection hides in content the model retrieves, such as a webpage, document or email.
Defense starts from treating everything the model reads as untrusted and layering controls with runtime monitoring, and Harness points to its AI Firewall, AI Security and API protection products.