Security

The OWASP Top 10 for LLM Applications, Explained

Antonio Evans8 min read

A security guard walks a robot down a corridor of ten checkpoint doors, each door fitted with a different kind of lock.
Key points

Key points

  1. 1The OWASP Top 10 for LLM Applications names the ten most serious security risks in software built on large language models, with examples and prevention steps for each.
  2. 2The rankings change between editions, but the ten risks fall into stable groups: what the model reads, what it reveals, what it does, what it costs and claims, and what it is built from.
  3. 3Almost every mitigation on the list comes back to two ideas: treat everything the model reads and writes as untrusted, and enforce permissions in code outside the model.
  4. 4The list works best as a design review checklist for each LLM feature, not as a ranking to memorize.

What the list is and how to read it

The list is maintained by the OWASP GenAI Security Project, which grew out of the original Top 10 effort. The project describes itself as a global, open-source initiative covering large language models, agentic systems and AI-driven applications. Its project page, read on 2026-10-17, describes a community of over 600 contributing experts from more than 18 countries (OWASP project page).

Each entry gives a definition, common examples, prevention strategies and attack scenarios. The list is written for teams that build, deploy or secure applications on an LLM. Superwise's guide to the list, citing the preface of OWASP's 2026 release, notes that it covers the model as a component inside your application, and that once a model calls tools, keeps memory and acts on its own, teams should pair it with OWASP's separate Top 10 for Agentic Applications (Superwise).

Two editions are in circulation. OWASP's resource page lists a 2026 edition published on August 3, 2026, which "introduces updated rankings" and expanded threat coverage grounded in real-world AI security incidents (OWASP 2026 release page). The list page at genai.owasp.org, read on 2026-10-17, still showed the 2025 entries (OWASP LLM Top 10). Superwise reports that the 2026 ranking weighs a practitioner vote at three quarters and a record of 6,639 classified real-world incidents at one quarter, as read from the 2026 release on 2026-10-08 (Superwise).

Because the numbers move between editions, this guide refers to each risk by name and groups them by what goes wrong. The names and the controls change much more slowly than the ranks.

The ten risks at a glance

The table below shows both numberings. The 2025 numbers come from the OWASP list page and the 2026 numbers from Superwise's summary of the 2026 release, both as read in October 2026.

Risk2025 number2026 numberOne-line meaning
Prompt injectionLLM01LLM01Text the model reads changes its behavior in ways the builder did not intend
Sensitive information disclosureLLM02LLM02Private or regulated data leaks through answers, logs or tool calls
Supply chainLLM03LLM04Third-party models, datasets, packages or platforms are tampered with or vulnerable
Data and model poisoningLLM04LLM05Training, fine-tuning or retrieval data is manipulated to plant harmful behavior
Improper output handlingLLM05LLM10Model output reaches other systems without validation or encoding
Excessive agencyLLM06LLM03The model has more tools, permissions or autonomy than its job needs
System prompt leakage, renamed hidden context exposure in 2026LLM07LLM08Hidden instructions and the secrets inside them are extracted
Vector and embedding weaknessesLLM08LLM09Retrieval stores leak data across users or accept planted content
MisinformationLLM09LLM07Wrong output looks credible and someone acts on it
Unbounded consumptionLLM10LLM06Uncontrolled use takes the service down, runs up the bill or clones the model

Sources for the numbering: OWASP LLM Top 10 and Superwise. Superwise also reports that prompt injection would drop out of the top ten on incident counts alone, and that the project leads kept it first because every model that reads untrusted input is exposed to it.

Risks in what the model reads

Prompt injection. OWASP's entry begins: "A Prompt Injection Vulnerability occurs when user prompts alter the" model's behavior or output in unintended ways (OWASP LLM Top 10). Cloudflare's summary separates direct injection, where the attacker overrides the system prompt through their own input, from indirect injection, where the attacker controls websites, files or other external sources the model reads (Cloudflare). Superwise's summary of the 2026 entry widens the scope to anything the model reads, including tool output and memory, and lists the controls that matter: keep credentials and state changes in application code, validate every response, label outside content by source, and require human confirmation for irreversible actions (Superwise). None of these stop injection outright. They limit what a successful injection can do.

Data and model poisoning. Someone manipulates the data a model learns from or retrieves, to plant bias, errors or hidden behavior. Cloudflare's summary of the list recommends securing the data supply chain, verifying the legitimacy of data sources and keeping the model from ingesting data from untrusted sources (Cloudflare).

Vector and embedding weaknesses. This entry covers the retrieval layer behind retrieval-augmented generation (RAG). OWASP lists unauthorized access to embeddings that contain sensitive data, leaks between users who share one vector database, embedding inversion that recovers source text, and poisoned documents. Its example is a resume with white-on-white text instructing the screening system to recommend the candidate. The core control is permission-aware retrieval with strict partitioning between user groups, plus validation of every knowledge source and immutable logs of retrieval activity (OWASP vector and embedding weaknesses).

The shared lesson for this group: anything that can reach the model's context is an input, and inputs need an owner, a source you trust and a permission check.

Risks in what the model reveals

Sensitive information disclosure. OWASP's entry covers personal data, financial details, health records, confidential business data, credentials and legal documents leaking through model output. Its mitigations include sanitizing data before it is used in training, applying least privilege so the model only sees data the current user may see, limiting the model's access to external data sources, telling users what not to enter, and publishing clear retention and opt-out policies (OWASP LLM02).

The practical rule is that the model should never hold data the current user is not allowed to see. If retrieval or a tool returns another customer's record, no instruction in the system prompt will reliably stop the model from repeating it.

System prompt leakage, or hidden context exposure. Attackers extract the hidden instructions behind an application. The prompt itself is rarely the real loss. Promptfoo's summary of the list notes that system prompts can contain information about a system's restrictions or architecture, "such as API keys or special features" (Promptfoo). Superwise's example from the 2026 entry is a system prompt holding a tool's login credentials, which an attacker pulls out and reuses (Superwise). The control is to assume the system prompt will be read: keep credentials, internal URLs and authorization logic out of it.

Risks in what the model does

Excessive agency. OWASP defines it as the vulnerability "that enables damaging actions to be performed in response to unexpected, ambiguous or manipulated outputs from an LLM," whatever the cause. It names three root causes: excessive functionality, excessive permissions and excessive autonomy (OWASP excessive agency). Its examples are concrete:

  • A tool that only needs to read documents also modifies and deletes them.
  • An extension meant to run one shell command fails to block other commands.
  • A database connection used for reading has UPDATE, INSERT and DELETE rights.
  • A tool acting for one user connects with a privileged account that can see every user's files.
  • Deletions happen without any confirmation from the user.

The mitigations mirror the examples. Offer only the tools the feature needs, implement only the functions each tool needs, avoid open-ended tools such as "run a shell command" or "fetch a URL", run tools in the user's own security context, and require human approval for high-impact actions. OWASP adds a principle worth quoting: "Implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not" (OWASP excessive agency). Superwise reports that this entry rose from sixth to third in the 2026 edition, which reflects how many applications now let models take actions (Superwise).

Improper output handling. Model output flows into a browser, a database query, a shell or another service without checks. Cloudflare notes that this can lead to cross-site scripting, cross-site request forgery, server-side request forgery and remote code execution, and recommends treating the LLM "like any user or device" by validating its output before it drives other functions (Cloudflare). The standard web defenses apply unchanged: encode for the destination, use parameterized queries, and never pass model text to an interpreter.

Risks in what the model costs and claims

Unbounded consumption. OWASP groups three attacks under one name: overloading the service until it stops responding, running up the bill under a pay-per-use model, and querying the model enough to clone its behavior (OWASP unbounded consumption). Its controls are familiar from API design:

  • Validate input size so requests cannot exceed reasonable limits.
  • Apply rate limits and per-user quotas.
  • Set timeouts and throttle resource-heavy operations.
  • Restrict the model's access to network resources and internal services.
  • Log and monitor usage for anomalies.

For any product that pays per token, add a hard spending cap per user and per day, and alert when it trips. A runaway loop costs as much as an attack.

Misinformation. Models produce confident, wrong output, and people act on it. Promptfoo puts it simply: people trust incorrect model output much as they trust misinformation from websites (Promptfoo). Cloudflare recommends oversight policies and regular comparison of outputs with trusted external sources (Cloudflare). Superwise's 2026 example shows why this belongs on a security list: a coding assistant recommends a package that does not exist, and an attacker has already registered that name with malicious code (Superwise).

Risks in what the model is built from

Supply chain. An LLM application depends on pre-trained models, adapters, datasets, packages, plugins and hosting platforms. Promptfoo lists outdated models without security patches and third-party software with security holes among the common problems (Promptfoo). Cloudflare recommends vetting suppliers, keeping an up-to-date inventory of components and scrutinizing supplied data and models (Cloudflare).

For most product teams, this means treating model files, model hosting providers and tool integrations the same way you treat open source packages: pin versions, record where each came from, review what each integration can access, and remove the ones you no longer use. OWASP's excessive agency entry gives a supply chain example that is easy to miss: a plugin trialled during development and dropped in favor of another, but still available to the agent (OWASP excessive agency).

Turning the list into a review checklist

The list is most useful as a set of questions asked once per LLM feature, before launch and after any change to the model, prompt or tools.

QuestionRisk it covers
What content can reach the model's context, and who can write it?Prompt injection, poisoning, vector weaknesses
Can retrieval or a tool return data the current user may not see?Sensitive information disclosure, vector weaknesses
Is there anything in the system prompt we would mind seeing on a public forum?System prompt leakage
Which tools can the model call, with what permissions, and which actions need a human?Excessive agency
Where does model output go, and is it encoded for that destination?Improper output handling
What are the per-user rate limits, input limits and spending caps?Unbounded consumption
Where does a person or workflow act on model output without checking it?Misinformation
Which models, datasets, packages and plugins does this feature depend on, and who reviewed them?Supply chain

Superwise's guide sums up the common thread in its recommendations: inventory every LLM application and agent, enforce controls at runtime outside the model, log every request and tool call, and red team before release and after each model change (Superwise). Teams using Quanta Intelligence agents or building their own can run the table above as a pre-launch gate in the same way they run a code review.

FAQ

FAQ

What is the number one risk in the OWASP Top 10 for LLM Applications?

Prompt injection, in both the 2025 and 2026 editions as read in October 2026. It covers any input the model reads, including web pages, files, images and tool output, that changes the model's behavior in unintended ways. No single control stops it outright, so most defenses focus on limiting what a successful injection can do.

How is the LLM list different from the regular OWASP Top 10?

The regular OWASP Top 10 covers web application risks such as broken access control and injection into databases. The LLM list covers risks that arise because a language model sits in the request path: it reads untrusted text, produces unpredictable output and may call tools. Both apply to an LLM application, since it is still a web application underneath.

Do we need the agentic Top 10 as well?

If your model calls tools, keeps memory or takes actions over several steps, yes. Superwise, citing the 2026 preface, notes that OWASP positions the LLM list for the model as a component and recommends pairing it with the Top 10 for Agentic Applications once a model acts on its own. Excessive agency on the LLM list is the bridge between the two.

Which risks apply if we only use a hosted chatbot and do not build anything?

Mostly sensitive information disclosure, misinformation, and prompt injection when the assistant reads web pages, files or email. Decide what staff may paste into the tool, check figures and code before they are used, and connect the assistant only to the data each task needs. The remaining risks are largely the vendor's job, and are good questions to ask in procurement.

How often does the list change?

OWASP publishes editions periodically, and the 2026 edition reordered several entries and renamed one. The underlying risks have stayed recognizable across editions. Check the OWASP GenAI Security Project site for the current edition before quoting rank numbers, and design your reviews around the risk names instead.

Sources

Sources

  1. https://owasp.org/projects/top-10-for-large-language-model-applications
  2. https://superwise.ai/learn/owasp-top-10-for-llm-applications/
  3. https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/
  4. https://genai.owasp.org/llm-top-10/
  5. https://www.cloudflare.com/learning/ai/owasp-top-10-risks-for-llms/
  6. https://genai.owasp.org/llmrisk/llm082025-vector-and-embedding-weaknesses/
  7. https://genai.owasp.org/llmrisk/llm022025-sensitive-information-disclosure/
  8. https://www.promptfoo.dev/blog/owasp-top-10-llms-tldr/
  9. https://genai.owasp.org/llmrisk/llm062025-excessive-agency/
  10. https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/
About the author

About the author

Antonio Evans
Antonio Evans

Antonio Evans is the founder of Quanta Intelligence and a fractional CTO who builds HIPAA-ready AI systems for health and life-science companies. Before that he was technical co-founder of FriendsEAT for twenty years, CEO of Socialdraft, and a data engineer at IBM. Antonio lives with his dog Santino in Lisbon, Portugal.

All articles