Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

WeaknessASC-2026-0021Major weakness

Unbounded consumption: denial of wallet and stolen AI keys

HighMitigated

Model calls cost money per token. Stolen keys and cloud credentials are used and resold (LLMjacking) while the owner pays the bill, and loops or oversized requests run up bills or take a service down. Reasoning models can also be pushed into spending many times their usual reasoning tokens on one question (the OverThink attack).

How to detect it

  • Spend or token usage far above the normal pattern
  • API calls from unfamiliar addresses, regions or models
  • Keys found in repositories, logs or client-side code

How to resolve it

  • Set per-key and per-project budgets with alerts, rate limits and maximum tokens per request
  • Keep keys server-side, scoped to the models and projects they need, and rotate them
  • Run secret scanning on repositories and logs
  • Cap agent iterations and tool calls per task

How to investigate

  1. Review the provider's usage logs by key, model and source address
  2. Revoke and rotate the affected key, then find where it leaked
  3. Ask the provider about billing for fraudulent usage

Sources

Open it in the Learning Center's vulnerability database