LLMjacking: Plan Spend Caps and Alerts for Every AI API Key
A stolen AI API key bills you until someone stops it. CyphrQ's free planner suggests daily and monthly caps plus 50% and 80% alerts per key.

LLMjacking means an attacker gets hold of your AI API key or cloud credentials and uses your paid model access for their own ends, charged to your account. You cannot always stop a key from leaking. You can decide in advance how much a leaked key is allowed to spend, and who hears about it first. CyphrQ's free AI spend cap planner turns each key's normal cost into a daily cap, a monthly cap and two alert levels for each.
You type in what each key normally costs per month, or its monthly tokens and your own price per million tokens. The planner returns the caps, alerts at 50% and 80% of each cap and, if you give it an abuse rate, how long a thief would take to use up the monthly cap. The maths runs in your browser. Nothing you type is sent anywhere or stored, and no vendor pricing is built in.
A planning aid, not a promise of protection or financial advice. A cap protects you only if your AI provider or your gateway actually enforces it. Check what yours supports, and at what level (key, project or account), before you rely on any figure here.
What did LLMjacking cost victims in 2026?
Google Threat Intelligence Group (GTIG) published its AI Threat Tracker on 17 November 2026, with Mandiant. It describes LLMjacking cases that Mandiant's incident responders handled in 2026. The report gives the year but no dates for individual incidents.
| What GTIG reports | Figure |
|---|---|
| Fraudulent charges in a single day | "exceeded $100,000 USD" |
| Cumulative abuse in the most severe cases | "reached $1 million USD before remediation" |
| Advertised resale price of stolen access through "LLM Mixers" | $0.10 to $25 per million tokens |
The resale market matters for defenders. Stolen access has a price per million tokens, so a working key earns its holder money for every hour it stays live. The words "before remediation" point to the variable you control: the time between the first fraudulent call and the moment someone shuts the key off.
GTIG also describes how the abuse was kept going: attackers created service accounts, requested quota increases and exploited CVE-2026-40217, a flaw in the LiteLLM model gateway. A spend cap on one key does nothing about a brand-new service account or a raised quota, which is why the deeper section below treats those as alerts in their own right.
For the rest of that report, including exploits written and run by AI frameworks, see CyphrQ's GTIG tracker summary. The gateway flaw itself, with its fix and an interim block, is covered in the LiteLLM CVE-2026-40217 article.
How does the AI spend cap planner work out each cap?
Every figure comes from four simple rules. Amounts stay in whatever currency you type.
| Output | How it is calculated |
|---|---|
| Expected daily spend | Normal monthly spend ÷ working days per month |
| Daily cap | Expected daily spend × peak multiplier |
| Monthly cap | Normal monthly spend × peak multiplier |
| Alerts | 50% and 80% of the daily cap, and 50% and 80% of the monthly cap |
| Time to burn the monthly cap (optional) | Monthly cap ÷ abuse rate per hour |
The peak multiplier is how far above normal you will let a day or a month run before spending is cut off. It defaults to 2 and accepts 1 to 100. Working days default to 22 and accept 1 to 31. Each key can override both defaults, and with more than one key the table adds a total row.
You can give a key's cost in either of two ways: its normal monthly spend, or its monthly tokens (in millions) multiplied by the price you pay per million. If a field is missing, the planner asks for it rather than guessing; a key that really costs nothing should be entered as 0.
One setting to think about: working days. The default of 22 assumes a weekday pattern. A customer-facing service that runs every day should use the number of days it really runs, such as 30. Fewer days means a higher expected daily figure and so a looser daily cap.
Worked example: a support chatbot key (illustration)
This example uses invented figures, in no particular currency, to show how the planner behaves. It describes no real organisation.
One key, named "Support chatbot", normally costs 2,200 a month. The defaults stay in place: 22 working days and a peak multiplier of 2.
| Planner output | Value |
|---|---|
| Expected daily spend | 100 |
| Daily cap | 200 |
| Daily alerts at 50% / 80% | 100 / 160 |
| Monthly cap | 4,400 |
| Monthly alerts at 50% / 80% | 2,200 / 3,520 |
Now add an abuse rate of 5,000 per hour, standing in for a stolen key under heavy use. The planner reports that the monthly cap would be used up in about 53 minutes.
Three things follow from that number, worked out from the same figures:
- If only the monthly cap is enforced, a thief spends two months of normal budget in under an hour, and then the cap stops them.
- If the daily cap is enforced as well, the loss for that day stops at 200, reached in roughly two and a half minutes at that rate. The daily alerts at 100 and 160 would fire within the first two minutes.
- With no cap at all, the same rate comes to 120,000 in 24 hours and keeps going until a person notices.
So the cap decides the size of the loss. The alerts decide how soon someone acts. At this abuse rate, an alert that lands in a weekly email summary is no help; it has to reach a person who can revoke the key the same hour.
Where does a spend cap stop helping?
- Enforcement is not the planner's job. It suggests numbers. Whether a limit actually blocks calls, or only sends a notice, depends on your provider or gateway.
- A cap covers one scope. A new key, a new service account or a raised quota sits outside the cap you planned. GTIG's description of attackers creating service accounts and requesting quota increases shows why that gap matters.
- Alerts are only as quick as the spend data behind them. Ask your provider how soon usage shows up in billing figures and alerts, and plan for that delay.
- The multiplier is a trade-off. Set it too low and your own busy day trips the cap and takes your service down. Set it too high and a thief has more room before anything stops them.
- It knows only what you type. The planner has no live usage, no prices and no view of your accounts.
Going deeper: for security and IT teams
What a stolen AI key lets an attacker do
GTIG's report outlines who gains and what they need. The attacker wants paid model access, either to use or to resell through the LLM Mixers GTIG describes. They need one of three things: a working API key, a cloud credential that can call AI models, or a flaw in the gateway in front of them, as with the LiteLLM exploitation GTIG reports under CVE-2026-40217. What they get is compute billed to the victim. To keep it going, GTIG describes them creating service accounts and requesting quota increases. Each of those steps leaves a record in your environment, and each can be turned into an alert.
Separate keys per application and per environment
Issue one key for each application in each environment: development, staging and production. Give each its own row in the planner and its own cap. Development and CI keys get deliberately small caps, because nobody needs production-scale spend to run a test. Name keys so a billing line maps to an owning team without a lookup. The aim is a small blast radius: when one key leaks, the loss stops at that key's cap and only one service needs a new credential.
Gateway budgets and provider limits together
If your applications call models through a gateway (see how AI model gateways work), set per-key budgets at the gateway and keep a limit at the provider as a backstop. The two layers fail differently. A gateway budget is fine-grained but can be bypassed if the gateway itself is compromised or the provider key it holds is stolen. A provider-level limit is coarser but sits outside the gateway's trust boundary. Set the provider limit close to the sum of the gateway budgets, so it catches what the gateway misses without leaving much spare room.
Alert routing and on-call
Route the 50% alerts to the owning team's queue or chat channel. Route the daily 80% alert to whoever is on call, as a page, at any hour. Then test it: on a development key, lower the cap to a trivial amount, generate a little traffic, and time how long the page takes to arrive. Compare that time, plus the time to revoke a key, with the planner's time-to-burn figure. If the response takes longer than the cap takes to burn, the cap is your real control and should be sized as such.
Detecting quota increase requests and new service accounts
Treat these as security events, not billing housekeeping:
- any request to raise an AI quota or rate limit, compared against an approved change ticket;
- new service accounts, or new API keys, created in projects or accounts that can call AI models;
- a key used from a network, region or user agent it has never used before;
- calls to models the application does not use.
Put quota increases behind an approval step. Any increase that arrives outside that step is an incident until proven otherwise.
Key hygiene in CI
Pull keys from a secrets manager at run time instead of storing them in the repository or in plain pipeline variables. Mask secrets in build logs and check that masking works for the exact variable names you use. Run secret scanning on commits and pull requests. Give CI its own key with the smallest cap of all, rotate keys on a schedule, and delete any key with no recent use and no named owner.
When a cap trips: an incident playbook
- Triage. Check request volume, source addresses and models called. A launch or traffic spike looks different from a burst of calls to models the application never uses.
- Contain. Revoke or disable the key. Do not raise the cap to restore service; issue a new key to the application through the secrets manager.
- Hunt for persistence. Look for new service accounts, other new keys, quota increase requests and gateway admin accounts created around the same time. If the gateway is LiteLLM, confirm it runs a fixed release.
- Find the leak. Search repositories, CI logs and developer machines for the key's prefix, and record how it got out.
- Dispute the charges. Report the fraudulent usage to your provider through its support process. Any credit is the provider's decision.
- Re-plan. Rerun the planner with what you learned, and record how long detection took.
What to confirm with your provider and your teams
- Does the provider enforce a hard stop at the cap, or only notify? Per key, per project or per account?
- How long after a call does its cost appear in usage data and alerts?
- Who receives the daily 80% alert outside office hours, and can they revoke a key without waiting for approval?
- Who may request a quota increase, and is every request logged and reviewed?
Key takeaways
- LLMjacking is the abuse of stolen AI access at the victim's expense. GTIG reports single-day charges above $100,000 and, in the worst cases, $1 million before remediation, from Mandiant's 2026 cases.
- CyphrQ's planner sets each daily cap at expected daily spend times a peak multiplier, each monthly cap at normal monthly spend times the same multiplier, and alerts at 50% and 80%.
- In the labelled example, a 4,400 monthly cap lasts about 53 minutes at an abuse rate of 5,000 per hour. The cap limits the loss; only a fast alert limits the time.
- Caps work only where your provider or gateway enforces them, and they do not cover new keys, new service accounts or raised quotas. Alert on those separately.
- One key per application and environment keeps each leak small and each cap meaningful.
Sources
- Google Threat Intelligence Group, GTIG AI Threat Tracker: Agentic Threat Activity Crosses a Significant Threshold, 17 November 2026 (LLMjacking figures from Mandiant incident response in 2026, LLM Mixers resale prices, service accounts and quota increases, CVE-2026-40217 exploitation)
- CyphrQ: AI spend cap planner (formulas, defaults and worked-example outputs), GTIG AI Threat Tracker summary, LiteLLM CVE-2026-40217, AI model gateways explained
Spotted a mistake? Report a correction.