Adding a language model to a product creates new kinds of risk. OWASP’s Top 10 for Large Language Model Applications, updated for 2025, lists the most important ones. Prompt injection is first, followed by sensitive information disclosure.
The main risks
- Prompt injection: instructions hidden in user input or retrieved documents that make the model ignore its rules
- Sensitive information disclosure: the model reveals data from its context or connected systems
- Excessive agency: the model can take actions, such as sending emails or changing records, beyond what is safe
- Improper output handling: model output is used in pages, queries or commands without validation
- System prompt leakage, and weaknesses in the vector stores used for retrieval
Defences that work
Treat model output as untrusted input: validate it, escape it and never execute it directly. Give AI features only the permissions and data the current user already has. Require a person to confirm consequential actions, such as payments, deletions or external messages. Keep secrets out of prompts entirely.
Test like an attacker
Include injection attempts, requests for other users’ data and attempts to trigger unwanted actions in your evaluation set, and rerun them whenever prompts, tools or models change.
Our engineers and consultants write about what they see in real projects. Have a question about your own systems?






