OWASP LLM Top 10

LLM06Unbounded consumption

Nothing limits how much work one request or one account can trigger, so someone runs up the bill or crowds everyone else out.

Where it breaks
Between requests and the compute they consume
The setup
Lumi's new trip planner uses a reasoning model that thinks before it answers and can search hotel availability on its own. Lumora pays its AI provider for every token, including the thinking.

LLM06 Unbounded consumption

No safeguards. This is how the attack lands.

A short, harmless-looking prompt

No harm yet

The attacker finds a prompt that makes the planner plan everything at once. At forty words it sails past the input size limit, and nothing in it looks hostile.

Arrow keys work too
Conversation and log
A short, harmless-looking prompt
Script

Plan the cheapest trip for every weekend next year from each of 40 European cities. Check every hotel. Think carefully and double-check every total.

The fix, in short

Limit how much any one person, account or agent run can consume, counted in tokens and money rather than requests, with caps that actually stop the spend.

  • Rate limit by tokens and estimated cost per user and per day, and estimate the cost of a request before running it.
  • Set hard spending caps per key, account and tier that halt inference, not ones that only send an alert.
  • Give every agent run limits on steps, tool calls, time and cost, and catch loops by spotting repeated states.
  • Watch tool use for sessions that keep going with no clear end, compared with what normal looks like.
  • Design for graceful degradation, so a flood of heavy jobs slows them down without taking everyday chat offline.

Read the official LLM06 entry (opens in a new tab)