OWASP LLM10
LLM10 Unbounded Consumption: Rate Limits and Cost Controls for LLMs
OWASP LLM Top 10 · 2025 edition · Updated 25 November 2026 · Independent educational guide
New to LLMs, classifiers or RAG? Read the beginner FAQ and terminology.
Building an action-taking agent? Read the full agent runtime security guide for execution-time boundaries, safe tests and OWASP mapping.
Read the dated field-test post.
What is unbounded consumption in LLM applications?
Unbounded consumption happens when users or attackers can make unlimited or oversized model requests, causing runaway costs, slow service or model extraction. Every LLM feature needs limits: per-user rate limits, input and output size caps, spending quotas, timeouts and alerts when usage spikes.
What is a denial-of-wallet attack?
It is an attack that drives up your model provider bill rather than taking the service offline. An attacker sends many long or expensive requests, or triggers agent loops, so you pay for every token. Without per-user limits and spending caps, a single script can create a large unexpected invoice.
What limits should every LLM endpoint have?
Set authenticated per-user and per-IP rate limits, maximum input length, maximum output tokens, request timeouts, a cap on agent steps or tool calls, and a daily spending limit with alerts. Return clear errors when limits are hit so legitimate users understand what happened.
How do I audit my app for OWASP LLM10?
Check whether an unauthenticated or single user can send unlimited requests. Confirm input and output size caps, agent step limits and timeouts exist. Verify spending alerts are configured with your model provider and that a usage spike would notify someone before the bill becomes a problem.
What does this OWASP LLM risk look like in practice?
Illustrative scenario: A single user triggers repeated expensive model requests or an agent loop.
How can I test it safely?
In an isolated test environment with a small budget, exercise oversized inputs, repeated requests and tool-loop limits. Verify request caps, timeouts and spending enforcement stop work before the agreed limit is exceeded.
What evidence should I keep?
Record actual limit responses, token/tool-step caps and alert delivery. An alert without an enforced cap may arrive after costs are incurred.
LLM10 audit checklist
- Rate-limit per user and per IP
- Cap input length and output tokens
- Limit agent steps and tool calls
- Set timeouts on every model call
- Configure spending caps and alerts
Control to consider: Rate limiter. Some controls run outside the request path; model inline checks, then measure your own deployment.
General guidance only, written with AI assistance and human oversight. Verify against your own system and the official OWASP project before relying on it.
Sources and scope
- OWASP Top 10 for LLM Applications — authoritative risk definitions; this guide follows the 2025 edition.
Examples and checklists are our explanatory guidance, not an official OWASP audit, endorsement or a test of your application. Calculator values are modelled assumptions, not detector benchmarks.