Prompt injection: how to truly protect LLM applications from it
Prompt injection: how to actually protect an LLM application from it
Prompt injection has topped the OWASP Top 10 for LLM Applications for two consecutive editions, and cannot be fixed once and for all like SQL injection with parameterized queries, because it exploits the model's inherent inability to distinguish between "developer instructions" and "read text." Direct prompt injection is when a user enters overriding instructions in the chat box; indirect prompt injection is when the model executes instructions embedded in untrusted external content such as tickets, emails, or web pages while processing them, with the latter being more dangerous. Effective defenses go beyond the prompt: structurally separating instructions from data, least privilege for tools, and introducing human confirmation for operations with side effects.