Skip to content

Нам доверяют в Великобритании, США, ЕС и Индии - реагирование на инциденты 24/7.

OWASP Top 10 for LLM Applications 2025: Risks Explained and How to Test Them

OWASP Top 10 for LLM Applications 2025: Risks Explained and How to Test Them

Large language model features add new attack paths such as prompt injection, data leakage through outputs and over-privileged AI agents. Here is the OWASP 2025 list, category by category.

By IntelligenceX Research Team9 min read
OWASP Top 10 for LLM Applications 2025: Risks Explained and How to Test Them

Главное

The OWASP Top 10 for LLM Applications 2025 is the consensus list of the most critical security risks in applications built on large language models, from LLM01 Prompt Injection to LLM10 Unbounded Consumption. Prompt injection, sensitive data disclosure and excessive agency are the risks most often exploited in practice, and they need testing in the application and its surrounding tools, not only in the model.

Why LLM applications need their own risk list

An LLM feature is not just a web form with a model behind it. The model reads untrusted text, decides what to do with it, and often calls tools, databases or APIs on the user's behalf. That combination creates attack paths that the classic OWASP Top 10 for web applications does not describe, which is why OWASP published a separate list for LLM applications.

The 2025 edition is maintained by the OWASP Gen AI Security Project and is built from contributor input and real incident patterns. It is a practical checklist for builders, testers and security leaders, not a certification.

LLM01 and LLM07: Prompt injection and system prompt leakage

Prompt injection happens when crafted input, typed by a user or hidden in a document, web page or email the model reads, overrides the developer's instructions. Direct injection comes from the user. Indirect injection arrives through content the application retrieves on its own. System prompt leakage is the related risk where the hidden instructions, and any secrets embedded in them, can be coaxed back out.

Mitigation: treat all model input as untrusted, keep secrets out of prompts, separate system instructions from retrieved content, and never rely on the prompt alone as a security control.

LLM02 and LLM04: Sensitive data disclosure and poisoning

Sensitive information disclosure occurs when a model reveals personal data, credentials or confidential business information from its context, its training data or the data sources it can query. Data and model poisoning is the upstream version, where manipulated training, fine-tuning or retrieval data plants harmful behaviour.

Mitigation: minimise the data placed in context, apply the same access controls to retrieved data as to the user, sanitise and validate training and retrieval sources, and monitor outputs for leaked identifiers.

LLM03 and LLM05: Supply chain and improper output handling

The LLM supply chain includes pre-trained models, adapters, datasets, embedding services and plug-ins, any of which can be compromised or unsafe. Improper output handling is the failure to treat model output as untrusted before passing it to another system. If generated text reaches a shell, a browser, a SQL query or a template without encoding, the model becomes an injection path into your backend.

Mitigation: verify model and dataset provenance, pin versions, and validate and encode model output exactly as you would any user input before it reaches an interpreter or a rendering engine.

LLM06, LLM08, LLM09 and LLM10: Agency, vectors, misinformation and cost

Excessive agency is the risk that an AI agent holds more tools, permissions or autonomy than its task requires, so one manipulated decision can delete data or move money. Vector and embedding weaknesses cover flaws in retrieval stores that leak or poison the content they return. Misinformation covers confidently wrong outputs that people act on. Unbounded consumption covers runaway token, compute or API usage that drives cost or denial of service.

Mitigation: grant agents the least privilege they need and require human approval for high-impact actions, control access to vector stores, ground answers in verified sources, and set rate, quota and cost limits.

How to test an LLM application

Testing an LLM system has to cover the model, the prompts, the tools it can call and the data it can reach. Automated prompt-fuzzing gives breadth, but the most damaging findings usually come from manual chains, such as an injected document that makes an agent call a privileged API and exfiltrate records.

A sound assessment maps each OWASP LLM risk to a concrete test, records reproducible proof of exploitation, and retests after remediation. It should sit alongside the application penetration test, because the LLM feature is usually reachable through the same web and API surface.

Часто задаваемые вопросы

It is OWASP's list of the ten most critical security risks for applications built on large language models, from LLM01 Prompt Injection to LLM10 Unbounded Consumption. It is an awareness and testing reference, not a compliance standard.

Prompt injection, LLM01, is the most widely discussed because it can override the application's instructions. Its impact grows sharply when the model can call tools or access sensitive data, which is why excessive agency and data disclosure are often just as important.

Normal penetration testing focuses on code, configuration and APIs. LLM testing adds the model's behaviour, prompts, retrieval sources and tool permissions, so testers also attempt instruction override, data extraction and misuse of agent actions.

Поговорите с экспертом по безопасности уже сегодня

Тест на проникновение, аудит или круглосуточный мониторинг - наша команда готова работать в Великобритании, США, ЕС и Индии.