Websites · Mobile Apps · Web Apps & SaaS · AI
Home / Blog / Technology

LLMjacking: How Stolen AI API Keys Create Huge Cloud Bills

Google and Mandiant report attackers hijacking AI accounts, with charges above $100,000 a day. See how to protect keys, set spending caps and spot misuse.

LLMjacking: How Stolen AI API Keys Create Huge Cloud Bills
Quick answer

LLMjacking is when an attacker gets hold of your cloud or AI API credentials and runs expensive AI models on your account while you pay the bill. In a report published on 2 November 2026, Google Threat Intelligence Group and Mandiant said they saw charges above $100,000 in a single day and, at some organisations, cumulative charges of $1 million before access was revoked. The most common way in was an exposed or stolen cloud identity token, such as a service account key, an access key or a GitHub token, rather than the AI key itself. Keep keys out of code, give each one narrow permissions, set quotas and spending caps, and alert on any new AI service being switched on.

Many small businesses now have an AI feature somewhere: a chatbot on the website, a document summariser, a workflow that calls a model. Behind each one sits an API key that bills per use. If that key leaks, the person who found it can use your account as if it were theirs, and the first sign is often the invoice. This guide explains what Google and Mandiant reported about this kind of abuse, called LLMjacking, and how to protect your own keys and budgets. It does not describe how to carry out an attack, and we have not tested the tools mentioned.

Network cabling in a data centreAI services run on expensive hardware, and a stolen key lets someone else spend your budget on it. Photo: D Coetzee, CC0, via Wikimedia Commons

The short answer

  • What it is: attackers use stolen credentials to run AI models on someone else's account. The owner pays.
  • Source: a Google Threat Intelligence Group and Mandiant report dated 2 November 2026, covered by The Hacker News on 3 November.
  • Scale reported: more than $100,000 in a day in single incidents, and cumulative charges reaching $1 million at some organisations before access was cut off.
  • Main way in: exposed or stolen cloud identity tokens, including service account keys, IAM credentials, GitHub personal access tokens and session tokens.
  • What helps most: least-privilege keys, secrets in a manager rather than in code, hard quotas and spending caps, and alerts when a new AI service is enabled.

What Google and Mandiant reported

Mandiant says it responded to multiple LLMjacking incidents in 2026, spanning several cloud and AI providers, across financial services, retail, technology and transportation organisations in North America, South America and Asia Pacific. The report contrasts this with cryptojacking, where the drain is gradual. With LLMjacking, large charges can appear in a matter of hours.

The report describes several routes in:

  • Exposed AI endpoints. Attackers look for self-hosted model servers left open to the internet, and for valid API keys.
  • Cloud identity tokens. The dominant route across investigations was an exposed or stolen cloud credential rather than the AI key itself. Examples in the report include a misconfigured service account key, a stolen GitHub personal access token combined with a suspected web application weakness in a container, and compromised company credentials used to create fresh access keys.
  • Public code repositories. One actor opportunistically collected corporate AI keys from public GitHub repositories and tested them with tiny requests that return almost nothing, which helped avoid volume alerts.
  • Phishing for session tokens. A fake portal told people to paste a raw token that proved they were already signed in, which let the attacker skip passwords and MFA.

Once inside, the report says actors enabled AI services that were not switched on before, created extra keys, and in some cases created new administrator or service accounts. In one case an attacker attacked a model gateway called LiteLLM through a flaw tracked as CVE-2026-40217, which the report says allowed ordinary virtual keys to be upgraded to administrator credentials. Google recommends patching such gateways quickly.

Why the bills grow so fast

The report explains the business side. Some actors resell access through so-called LLM Mixers, which pool stolen keys and sell cheap AI access to others. Google names one service, jet-night.com, and says an actor behind it made over 500,000 calls in under eight hours, passing nearly one million dollars in token costs to the victim. Google believes such a service can only price an unlimited plan at about $60 a month, against a normal consumer cost of $100 to $250, if it is running on stolen keys. For you the point is simple: stolen AI access is easy to sell, so someone is actively looking for keys.

The Hacker News also reported on a separate Symantec and Carbon Black finding about a grey-market relay that reconfigures official coding assistants to route through third-party servers. The lesson there is to get AI tools from official sources and avoid resellers.

What a small business should do

  1. List every AI key and cloud account. Include chatbots, plugins, automations, test projects and former employees' accounts. If you cannot find it, you cannot protect it.
  2. Move keys out of code. A secrets manager or hosting provider's environment settings is safer than a file in a repository. Turn on automated secret scanning in GitHub or GitLab so a key added to code is flagged quickly. Our guide to rotating secrets after a breach shows a sensible order.
  3. Use separate, narrow keys. One key per app and per environment, limited to the models and actions it needs. A leaked test key should not be able to call expensive models. Our post on restricted API keys shows the same idea for payments.
  4. Set limits before you need them. Use quotas per model, spending caps and budget alerts at your AI and cloud providers. Alerts that notify a person, not just a mailbox nobody checks.
  5. Alert on changes. Treat the unexpected enabling of an AI service, a new service account or a new access key as a serious event. Google notes that in several incidents the AI services were not enabled until the attacker switched them on.
  6. Turn on audit logging for AI usage. The report points out that on at least one major cloud, logs of model calls are off by default and must be enabled.
  7. Protect sign-ins. Use phishing-resistant MFA, teach staff never to paste tokens into a page they reached by a link, and remove access for people who have left.
  8. Patch gateways and AI tools. If you run a model gateway, a workflow builder or a self-hosted model server, keep it updated and off the open internet. Our post on securing self-hosted AI workflow tools covers a recent example.

If you want help reviewing how your AI features, keys and budgets are set up, our AI automation service and custom software development service cover secure deployment.

If you think a key has leaked

  1. Revoke or rotate the key now, before investigating.
  2. Look at your cloud account for AI services you did not enable, new keys or service accounts, and new virtual machines or high-end compute.
  3. Check billing and usage for the last several days, not just today.
  4. Contact the provider's support or billing team. Ask what dispute options exist, and keep the usage records.
  5. Search your code, chat and documents for where the key appeared, and clean it up.
  6. Add the quotas, caps and alerts above before turning the service back on.

Common mistakes to avoid

Putting an AI key in front-end code. Anyone can read it. Calls should go through your server.

Using one powerful key everywhere. One leak then exposes every app and every model.

Relying on a monthly invoice. The reported incidents ran up large charges within hours.

Assuming MFA solves it. Stolen session tokens can skip it. Add short-lived credentials and monitoring.

Ignoring old projects. Forgotten test projects with live keys are an easy target.

Buying cheap AI access from resellers. Very low prices can mean stolen keys, and relays can change your tool settings.

Checklist for your team

  • List every AI API key and cloud account, with an owner for each.
  • Move keys into a secrets manager or hosting environment settings.
  • Turn on secret scanning for every code repository.
  • Create separate keys per app and environment with narrow permissions.
  • Set spending caps, quotas and billing alerts on every AI account.
  • Alert when a new AI service, key or service account is created.
  • Enable audit logging for AI model calls where it is off by default.
  • Use phishing-resistant MFA and remove access for former staff.
  • Patch and restrict any self-hosted AI gateway or model server.
  • Write down the steps to revoke a key and who does it.

Key takeaways

  • Google and Mandiant report LLMjacking incidents with charges above $100,000 a day and cumulative totals reaching $1 million at some organisations.
  • The most common way in was an exposed or stolen cloud identity token, not just the AI key.
  • Resale services mean stolen AI access has a ready market, so keys are actively hunted.
  • Narrow keys, secrets management, hard spending limits and alerts on new AI services are the core defences.
  • Revoke first, investigate second, and add limits before restoring a service.

Need help putting limits and safe key handling around your AI features? Look at our AI automation service or talk to our team.

Sources

Last reviewed 3 November 2026. This article is general information, not a guarantee of protection. Details come from a vendor report and a news article and may change.

Frequently asked questions

What is LLMjacking?

It is resource hijacking for the AI era. An attacker gets API keys or cloud credentials and uses an organisation's AI accounts to run models, while the legitimate owner pays for the usage. Google and Mandiant describe it as able to produce large spikes in fraudulent charges within hours, unlike the slower drain of cryptojacking.

How do attackers get the keys?

Google lists phishing, source code leaks, misconfigured environments and exposed client-side code. The report says the dominant route was exposed or stolen cloud identity tokens such as IAM credentials, service account keys, GitHub personal access tokens and active session tokens. One group was also seen collecting corporate LLM keys from public GitHub repositories.

How big can the bill get?

In incidents Mandiant investigated, charges exceeded $100,000 in a single day, and cumulative charges at some organisations reached $1 million before access was revoked. Those are large organisations. The lesson for a small team is that bills can grow in hours, so limits and alerts matter more than a monthly invoice review.

Does turning on two-step sign-in stop this?

It helps, but not on its own. The report describes a fake portal that tricked users into pasting an active access token, which bypassed passwords and multi-factor checks. Google advises phishing-resistant MFA, plus short-lived credentials and monitoring.

What is the quickest protection for a small business?

Set a hard spending limit or quota on every AI account, use separate keys for each app and environment, store keys in a secrets manager, and turn on billing alerts. If a key may have leaked, revoke it first, then check what was enabled or created in your cloud account.

Written by the Susraj Tech team

We design and build websites, mobile apps, SaaS products and AI solutions. Have a project in mind? Tell us about it and we’ll send a clear, written quote.

Have an idea? Let’s build it.

Tell us what you need and we’ll reply with a clear, written quote. No pressure, no jargon.