Generated banner for Owasp LLM
Generated logo for Owasp LLM

Owasp LLM

MicrosoftOfficialPublished by Microsoft

  • Skill
  • Guidelines
  • Security
  • CC-BY-SA-4.0
  • No issues found

From the author

OWASP Top 10 for LLM Applications (2025) knowledge base for identifying, assessing, and remediating large language model security risks.
— the description by Microsoft

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The owasp-llm skill provides a machine-readable implementation of the OWASP Top 10 for LLM Applications (2025). It serves as a comprehensive reference for developers and security professionals to understand, detect, and mitigate vulnerabilities inherent in large language model systems. Each of the ten identified risks is documented with detailed descriptions, risk assessments, vulnerability checklists, and actionable prevention and remediation strategies.

What it does

  • Provides a structured index of the 2025 OWASP LLM Top 10 vulnerabilities.
  • Offers detailed breakdowns for each vulnerability, including risk impact and attack scenarios.
  • Includes specific vulnerability checklists to help identify system exposure.
  • Supplies defensive measures and remediation guidance for each security risk.
  • Categorizes risks into logical groups like Input Integrity, Data Protection, and Access Control.

When to use it

  • During the design phase of an LLM-integrated application to implement security by design.
  • When performing a security audit or risk assessment of an existing LLM system.
  • To train development teams on common LLM-specific security threats.
  • When developing remediation plans for identified security vulnerabilities in AI workflows.

Advantages

  • Standardized, industry-recognized framework for LLM security.
  • Machine-readable format suitable for integration into automated security agents.
  • Covers both direct and indirect attack vectors, including multimodal risks.
  • Provides clear, actionable steps for both detection and long-term remediation.

Usage examples

“What are the primary risks associated with Prompt Injection according to the OWASP LLM Top 10?”
The agent retrieves the LLM01:2025 documentation, detailing direct and indirect injection risks, potential consequences like data exfiltration, and a checklist for identifying exposure.
“How can I prevent Excessive Agency in my LLM agent?”
The agent references LLM06:2025, providing guidance on enforcing least privilege, implementing human-in-the-loop requirements for high-risk actions, and defining strict capability boundaries.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/microsoft/owasp-llm/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip owasp-llm.zip -d .agents/skills

Documentation by Microsoft

OWASP® LLM Top 10 — Skill Entry

This SKILL.md is the entrypoint for the OWASP LLM Top 10 skill.

The skill encodes the OWASP Top 10 for LLM Applications (2025) as structured, machine-readable references that an agent can query to identify, assess, and remediate security risks in large language model systems.

Normative references (LLM Top 10)

  1. 00 Vulnerability Index

  2. 01 Prompt Injection

  3. 02 Sensitive Information Disclosure

  4. 03 Supply Chain

  5. 04 Data and Model Poisoning

  6. 05 Improper Output Handling

  7. 06 Excessive Agency

  8. 07 System Prompt Leakage

  9. 08 Vector and Embedding Weaknesses

  10. 09 Misinformation

  11. 10 Unbounded Consumption

Skill layout

  • SKILL.md — this file (skill entrypoint).

  • references/ — the LLM Top 10 normative documents.

    • 00-vulnerability-index.md — index of all vulnerability identifiers, categories, and cross-references.

    • 01 through 10 — one document per vulnerability aligned with OWASP LLM Applications numbering.

Third-Party Attribution

Copyright © OWASP Foundation. OWASP® Top 10 for LLM Applications (2025) content is derived from works by the OWASP Foundation, licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/). Source: https://genai.owasp.org/resource/owasp-top-10-for-llm-applications-2025/ Modifications: Vulnerability descriptions restructured into agent-consumable reference documents with added detection and remediation guidance. OWASP® is a registered trademark of the OWASP Foundation. Use does not imply endorsement.

Files

references/10-unbounded-consumption.md


title: 'LLM10: Unbounded Consumption' description: OWASP LLM Top 10 reference for unbounded consumption vulnerabilities enabling denial-of-service and resource exhaustion attacks

10 Unbounded Consumption

Identifier: LLM10:2025 Category: Resource Management

Description

Unbounded Consumption refers to the process where an LLM generates outputs based on input queries or prompts. Inference is a critical function of LLMs, involving the application of learned patterns and knowledge to produce relevant responses or predictions.

Attacks designed to disrupt service, deplete financial resources, or steal intellectual property by cloning a model's behavior all depend on a common class of security vulnerability. Unbounded Consumption occurs when an LLM application allows users to conduct excessive and uncontrolled inferences, leading to risks such as denial of service (DoS), economic losses, model theft, and service degradation. The high computational demands of LLMs, especially in cloud environments, make them vulnerable to resource exploitation and unauthorized usage.

Risk

  • Denial of service through excessive computational resource consumption rendering the system unresponsive.

  • Economic losses through exploitation of pay-per-use cloud pricing models leading to unsustainable financial burdens (Denial of Wallet).

  • Model theft through functional replication via carefully crafted API queries and synthetic training data generation.

  • Service degradation from continuous input overflow exceeding the LLM's context window.

  • Intellectual property theft through side-channel attacks harvesting model weights and architectural information.

  • System failure from resource-intensive adversarial queries involving complex sequences or intricate language patterns.

Vulnerability checklist

  • No input validation restricts the size or complexity of inputs submitted to the LLM.

  • Logit bias and logprobs are exposed in API responses without restriction or obfuscation.

  • No rate limiting or user quotas restrict the number of requests from a single source.

  • Resource allocation is not monitored or managed dynamically per user or request.

  • No timeouts or throttling exist for resource-intensive operations.

  • The LLM has unrestricted access to network resources, internal services, and APIs.

  • No watermarking framework exists to detect unauthorized use of LLM outputs.

  • The system lacks graceful degradation capabilities under heavy load.

  • No access controls restrict access to LLM model repositories and training environments.

  • No centralized ML model inventory or registry exists for production models.

Prevention controls

  1. Implement strict input validation to ensure inputs do not exceed reasonable size limits.

  2. Restrict or obfuscate the exposure of logit_bias and logprobs in API responses. Provide only the necessary information without revealing detailed probabilities.

  3. Apply rate limiting and user quotas to restrict the number of requests a single source entity can make in a given time period.

  4. Monitor and manage resource allocation dynamically to prevent any single user or request from consuming excessive resources.

  5. Set timeouts and throttle processing for resource-intensive operations to prevent prolonged resource consumption.

  6. Restrict the LLM's access to network resources, internal services, and APIs using sandboxing techniques.

  7. Continuously monitor resource usage and implement logging to detect and respond to unusual patterns of resource consumption.

  8. Implement watermarking frameworks to embed and detect unauthorized use of LLM outputs.

  9. Design the system to degrade gracefully under heavy load, maintaining partial functionality rather than complete failure.

  10. Implement restrictions on the number of queued actions and total actions with dynamic scaling and load balancing to handle varying demands.

  11. Train models to detect and mitigate adversarial queries and extraction attempts.

  12. Build lists of known glitch tokens and scan output before adding it to the model's context window.

  13. Implement strong access controls including role-based access control (RBAC) and the principle of least privilege for LLM model repositories and training environments.

  14. Use a centralized ML model inventory or registry for models used in production, ensuring proper governance and access control.

  15. Implement automated MLOps deployment with governance, tracking, and approval workflows to tighten access and deployment controls within the infrastructure.

Example attack scenarios

Scenario A — Uncontrolled input size

An attacker submits an unusually large input to an LLM application that processes text data, resulting in excessive memory usage and CPU load, potentially crashing the system or significantly slowing down the service.

Scenario B — Denial of wallet

An attacker generates excessive operations to exploit the pay-per-use model of cloud-based AI services, causing unsustainable costs for the service provider.

Scenario C — Functional model replication

An attacker uses the LLM's API to generate synthetic training data and fine-tunes another model, creating a functional equivalent and bypassing traditional model extraction limitations.

Scenario D — Side-channel model extraction

A malicious attacker bypasses input filtering techniques of the LLM to perform a side-channel attack, retrieving model information to a remote controlled resource under their control.

Scenario E — Resource-intensive adversarial queries

An attacker crafts specific inputs designed to trigger the LLM's most computationally expensive processes, leading to prolonged CPU usage and potential system failure.

Scenario F — Repeated request flood

An attacker transmits a high volume of requests to the LLM API, causing excessive consumption of computational resources and making the service unavailable to legitimate users.

Detection guidance

  • Monitor resource usage continuously for unusual consumption patterns that may indicate denial of service or wallet attacks.

  • Implement logging to detect abnormal request volumes or sizes from single sources.

  • Analyze API access patterns for indicators of model extraction or replication attempts such as systematic querying with varied inputs.

  • Track costs against usage baselines to identify Denial of Wallet attacks early.

  • Monitor for adversarial queries designed to trigger computationally expensive processing.

  • Detect known glitch tokens in inputs before they are processed by the LLM.

Remediation

  • Implement strict input validation with size limits on all inputs to the LLM.

  • Restrict or obfuscate exposure of logit_bias and logprobs in API responses.

  • Apply rate limiting and user quotas across all API endpoints.

  • Set timeouts and throttle processing for resource-intensive operations.

  • Restrict LLM access to network resources and APIs using sandboxing techniques.

  • Deploy watermarking frameworks to detect unauthorized use of LLM outputs.

  • Implement strong access controls with RBAC and least privilege for model repositories and training environments.

  • Design the system to degrade gracefully under heavy load, maintaining partial functionality.


Content derived from works by the OWASP Foundation, licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/). Modifications: Restructured into agent-consumable reference format with added detection and remediation guidance.

Requirements and compatibility

Written for: GitHub Copilot, Claude Code

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Claude Code frontmatter

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Microsoft
Publisher
Microsoft (Official)
Source
microsoft/hve-core · .github/skills/security/owasp-llm · commit f425e94
Licence
Creative Commons Attribution-ShareAlike 4.0 International (redistribution allowed)
  • LICENSE (written by AutoGineer)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download owasp-llm.zip