Security explained

OWASP Top 10 for LLM Applications 2025: AI Security Risks Explained

Chatbots and AI agents bring new security risks that classic web checklists miss. OWASP's Top 10 for LLM Applications is the most widely used map of them.

Is guide ka poora Hinglish version abhi taiyaar ho raha hai. Tab tak ise English mein padho.

AI securityLLMprompt injectionworldwide
Share WhatsApp LinkedIn

LLM01: Prompt Injection

Attackers craft input that overrides the model's instructions. Indirect injection is especially tricky: a web page or email the AI reads can contain hidden instructions. Our prompt injection post has examples. Defences: treat all external content as untrusted, limit tools, and confirm risky actions with a human.

LLM02: Sensitive Information Disclosure

The model reveals personal data, secrets or confidential business information, from training data, retrieved documents or other users' sessions. Defences: data minimisation, access controls on retrieval, and output filtering.

LLM03: Supply Chain

Risks from third party models, datasets, plugins and libraries. A tampered model or poisoned package can compromise the whole application. Defences: trusted sources, integrity checks and an inventory of components.

LLM04: Data and Model Poisoning

Manipulated training or fine tuning data introduces backdoors, bias or wrong behaviour. Defences: vet data sources, track data provenance and test models for unexpected behaviour.

LLM05: Improper Output Handling

Passing model output straight into a browser, shell, database or another system can lead to XSS, command injection or SQL injection. This links back to OWASP Top 10 injection risks. Defences: treat output like user input; validate and encode it.

LLM06: Excessive Agency

An AI agent has more permissions, tools or autonomy than it needs, so a manipulated model can send emails, delete files or move money. Defences: least privilege, narrow tools, and human approval for high impact actions.

LLM07: System Prompt Leakage

System prompts can be extracted. If they contain secrets, credentials or security logic, attackers learn them. Defences: never store secrets in prompts, and enforce security outside the model.

LLM08: Vector and Embedding Weaknesses

Retrieval augmented generation (RAG) systems store documents as embeddings. Weak access control or poisoned documents can leak data across users or inject instructions. Defences: permission aware retrieval and validated sources.

LLM09: Misinformation

Models produce confident but false information, which people may trust. Defences: grounding in reliable sources, clear user warnings, and human review for important decisions.

LLM10: Unbounded Consumption

Attackers abuse the model to run up costs, exhaust resources or extract the model through heavy querying. Defences: rate limits, quotas, input size limits and monitoring.

Where to start

For builders, three habits cover a lot: treat every input and output as untrusted, give agents the smallest set of permissions, and keep humans in the loop for anything irreversible. The official OWASP list has detailed guidance for each risk.

What this means for everyday AI users

Even if you never build an AI app, the list explains real risks you meet as a user. An AI assistant that reads your email can be steered by a malicious email. An AI browser can follow hidden instructions on a web page. Keep sensitive data out of tools your organisation has not approved, and double check AI answers before acting on them, especially for money, health or legal decisions.

Frequently asked questions

What is prompt injection?

Input that changes an AI model's behaviour in ways the developer did not intend. Direct injection comes from the user. Indirect injection hides instructions in content the model reads, such as a web page, email or document.

Is the OWASP LLM Top 10 the same as the OWASP Top 10?

No. The OWASP Top 10 covers web applications in general. The LLM Top 10 is a separate list from the OWASP GenAI Security Project, focused on applications built on large language models.

Can prompt injection be fully prevented?

Not with current technology. Defences reduce risk: separating trusted instructions from untrusted content, limiting tools and permissions, filtering outputs, and requiring human approval for sensitive actions.

Does this apply to me if I only use ChatGPT or similar tools?

Partly. As a user, avoid pasting confidential data into tools your organisation has not approved, and be careful when AI tools browse the web or read your email on your behalf.

Educational content, not legal or financial advice. Check official sources in your country before you rely on it. If you have lost money, contact your bank first, then the police or national fraud reporting service. Helplines · Terms