Nexus Void AI Research

LLMjacking, AI security, API key security, secrets management, Anthropic, OpenAI, Gemini, AWS Bedrock

What Is LLMjacking? Stolen LLM API Keys Explained (2026)

LLMjacking is the theft of AI API keys to run or resell model access on your bill. How keys leak, real cost data, detection and per-provider spend caps.

LLMjacking is the theft and abuse of someone else's access to large language models. Attackers steal an AI API key or a cloud credential, then run prompts on the victim's account or resell that access to others. The victim pays the token bill. Google's threat researchers have seen single incidents pass $100,000 in one day.

Last updated 1 December 2026.

A founder told us this week that their Anthropic and Gemini keys were stolen and about $700 of credits were gone, even though the keys lived in a cloud secret manager. Their question was simple: what can we do besides deleting old keys and making new ones? This guide covers how keys leak, what attackers do, what it costs, how to spot it, and the provider settings that cap the damage. If you are mid-incident, start with our leaked API key response checklist.

How do attackers get LLM API keys?

Attackers get LLM API keys from the same places other secrets leak: public code, frontend bundles, logs and stolen cloud identities. In Google Threat Intelligence Group's November 2026 investigations, the dominant entry point was stolen cloud identity tokens, such as service account keys and GitHub tokens, not the AI key itself.

The Sysdig Threat Research Team coined the term in May 2024, after attackers took cloud credentials from a vulnerable Laravel server and used them to reach hosted Claude models, as The Hacker News reported. The common leak paths:

  • Public repositories. A key committed once stays in git history even after you delete the line. Google's LLMjacking report lists LLM API keys harvested from public GitHub repos as one access route. See how to remove secrets from git history.

  • Frontend bundles. Any key shipped to a browser or mobile app can be read by anyone. Google's own Gemini docs say to never expose keys client-side in production and to use a backend proxy instead. Public env var prefixes are a common slip, see our Next.js guide.

  • Logs. Debug logs, CI output and crash reports that print headers or env vars put keys where far more people can read them.

  • Stolen cloud credentials. A secret manager is only as safe as the identities allowed to read it. If a service account key or CI token leaks, the attacker can read every secret that identity can read. We cover this case in how an API key leaks from a secret manager.

  • Unrestricted Google API keys. In February 2026, researchers at Truffle Security found that enabling the Gemini API on a Google Cloud project gave existing unrestricted keys in that project Gemini access. They confirmed 2,863 live keys in public web pages, many originally made for Maps, per The Hacker News. More in our Gemini API key security guide.

Finding these leaks is a code problem before it is a billing problem. Our product ARGUS scans every repo for secrets, marks each one live, rotated or test, and flags every place your code calls an LLM provider such as OpenAI or Anthropic. It does not watch your provider usage or billing, so you still need the controls below. For a free first pass, see how to find hardcoded secrets in code.

What do attackers do with a stolen LLM API key?

Attackers mostly turn a stolen LLM API key into money. They resell the access through proxy services, run their own heavy workloads on your quota, or both. Google saw one actor test keys first with tiny max_tokens=1 requests that stay under alert thresholds.

The GTIG and Mandiant report from 3 November 2026 describes three ways stolen access is used:

  • Resale through LLM Mixers. Stolen quotas are pooled behind gateway software and resold to subscribers. Google assessed that one routing service, Jet Night, relies on stolen keys and sells an unlimited plan for about $60 a month, against a typical $100 to $250 for comparable consumer plans.

  • Direct abuse. With a cloud credential, attackers enable managed AI services that the victim never used, create extra API keys, and subscribe to premium models.

  • Agent and GPU workloads. One actor ran public reverse proxies and an agent framework, and requested GPU quota increases on the victim's account.

Cost is not the only risk. The Gemini research found that exposed keys could reach the /files and /cachedContents endpoints, which hold content uploaded by the key owner. And as Sysdig noted in 2024, maxing out your quota can block your own product from using the model. OWASP files this class of harm under LLM10:2025 Unbounded Consumption, which includes what it calls Denial of Wallet.

How much does LLMjacking cost victims?

LLMjacking costs range from a few hundred dollars to over a million, depending on how long the key stays live and what spend caps exist. The figures below mix evidence types. Most were observed in real incidents, one is a projection and one is an unverified claim, so read each with its label.

Figure

What it is

Source

Over $100,000 in a single day

Observed in individual incidents

GTIG / Mandiant, Nov 2026

Up to $1 million cumulative before access was revoked

Observed at some organizations

GTIG / Mandiant, Nov 2026

Over 500,000 API calls in under 8 hours

Observed, one actor

GTIG / Mandiant, Nov 2026

Over $46,000 per day

Projection of what an attack could cost, not a reported loss

Sysdig via The Hacker News, May 2024

Our read: a $700 loss looks small next to these figures, and that is the useful lesson. The gap between a $700 incident and a $100,000 one is usually not the attacker. It is whether a hard spend limit, a provider tier cap or an alert stopped the bleeding early.

How do you detect LLMjacking?

You detect LLMjacking by watching usage, not just bills. Check each provider's usage page for unfamiliar models, sudden token spikes, requests at odd hours and keys you do not recognise. Set email alerts below your hard limits. In cloud accounts, alert whenever an AI service is enabled, because attackers often switch on services you never used.

Signals worth an alert:

  • Usage spikes per key or workspace. Anthropic recommends regularly reviewing the Logs and Usage pages in the Claude Console, per its API key best practices.

  • Models you do not use. Traffic on a model your app never calls is a red flag.

  • Tiny validation calls. Bursts of max_tokens=1 requests can be an attacker testing your key.

  • AI services being enabled. Google advises treating any unauthorized enablement of LLM services as a critical event. On Google Cloud, Vertex AI inference shows up in Data Access audit logs, which are off by default.

  • Logging changes on AWS. Google's report flags changes to Bedrock model invocation logging in CloudTrail as high severity when not made by your IaC.

  • Provider emails. Anthropic deactivates Claude keys that GitHub finds in public repos and emails the owner. Do not turn that key back on.

How do you limit the damage from a stolen AI API key?

You limit the damage by assuming a key will leak and capping what it can spend and reach. Split usage into small scopes, give each its own key, set a hard monthly spend limit on each scope, and restrict each key to only the APIs and models it needs. Rotation still matters, but caps decide how big the bill gets.

We checked each control below against the provider's current documentation on 1 December 2026.

Provider

Control that caps damage

Where to set it

Anthropic (Claude API)

Monthly spend limit per workspace, plus an organization spend limit below your tier cap. Requests stop when the limit is reached. Docs

Claude Console, Settings, Spend limits. Pick the workspace under Workspace limits, then Set limit. Email notifications are on the same page.

OpenAI

Project hard spend limit. Requests fail with a 429 and the code project_spend_limit_exceeded. Docs

Project settings, Limits, Spend, Edit spend limit, then turn on Enforce a hard limit.

Google Gemini API

Restrict each key to the Gemini API only, plus an AI Studio project spend cap (marked experimental). Key docs, billing docs

AI Studio API Keys page, Add restrictions. Spend cap on the AI Studio Spend page.

AWS Bedrock

IAM policy that allows only the model ARNs you use, or denies InvokeModel. Short-term Bedrock API keys expire within 12 hours. Docs

IAM identity policies or an AWS Organizations SCP. Bedrock console, API keys, for short-term keys.

Anthropic

Each usage tier carries a monthly spend cap: $500 on Start, $1,000 on Build and $200,000 on Scale, per the Claude rate limits docs. Set your own organization limit below that, then give each app or environment its own workspace, keys and spend limit. The default workspace limit may not stop some usage, such as Console playground traffic, so keep production keys out of it, per the workspaces docs.

OpenAI

Use one project per app and environment, and turn on a hard spend limit for each. OpenAI says enforcement is not instantaneous, so recorded spend can run slightly over the limit. Alerts do not stop traffic, per the spend limits guide.

Google Gemini

Google now rejects Gemini requests from unrestricted standard keys, blocks unrestricted keys that sat dormant, starting 7 May 2026, and creates new AI Studio keys as auth keys from 28 May 2026. Auth keys come with leaked key enforcement, per the Gemini API key docs. Billing tiers also cap spend: $250 on Tier 1 and $2,000 on Tier 2. A Google Cloud alerts-only budget does not cap spending on its own, as the Cloud Billing docs state.

AWS Bedrock

AWS documents an IAM policy that denies bedrock:InvokeModel and related actions for a given model, also usable as an organization SCP. For keys, AWS recommends short-term API keys in production and says long-term keys are for exploration only. You can deny bedrock:CallWithBearerToken to stop an identity using API keys at all, per the Bedrock API keys docs.

Across providers, route calls through one backend or AI gateway so keys never reach clients, and store keys with narrow read access.

Dealing with a stolen key right now? Work through our LLM API key compromised checklist step by step.

Frequently asked questions

What is LLMjacking in simple terms?

LLMjacking is when someone steals access to your AI models, usually an API key or cloud credential, and uses it at your expense. They run their own prompts or resell your access, and the provider bills you for every token they burn.

Who coined the term LLMjacking?

The Sysdig Threat Research Team used the term in May 2024 after seeing attackers use stolen cloud credentials to reach hosted Claude models. Google Threat Intelligence Group and Mandiant published a larger study of the same pattern on 3 November 2026.

Can a key stored in a secret manager still be stolen?

Yes. A secret manager protects the key at rest, but the key still reaches your app at runtime and can leak through logs, environment dumps, build output or a compromised cloud identity that is allowed to read the secret. Treat storage as one control, not the whole fix.

Is deleting and regenerating the key enough?

Rotation stops the current abuse, but it does not explain how the key leaked or cap the next incident. After rotating, find the leak path, set a hard spend limit per project or workspace, restrict what each key can call, and review who can read the secret.

Do AI providers refund LLMjacking charges?

We could not find a published refund policy for LLMjacking at Anthropic, OpenAI, Google or AWS. Contact the provider's billing support quickly with the timeline and evidence. Plan as if the charges are yours, which is why hard spend limits matter.

Does Anthropic deactivate leaked Claude API keys automatically?

Anthropic says it partners with GitHub, which scans public repositories for exposed Claude API keys. When one is found, Anthropic deactivates the key and emails the owner. This only covers public GitHub, not private repos, logs or frontend bundles.

Why did my Google Maps key start costing Gemini money?

Older Google API keys were often created unrestricted, so they work for every API enabled in the project. Researchers showed in February 2026 that enabling the Gemini API let such public keys call Gemini. Restrict each key to the APIs it needs.

What is the fastest way to cap damage from a stolen AI key?

Set a hard monthly spend limit at the smallest scope the provider offers: an Anthropic workspace, an OpenAI project, an AI Studio project or an AWS IAM policy. Then add usage alerts below that limit so you hear about spikes before the cap is hit.

Find the leak before the bill does. Spend caps limit how much a stolen key can cost. Finding where keys sit in your code stops the next one leaking. ARGUS scans all your repos for live secrets, flags every place your code talks to an LLM provider, and opens a verified pull request to fix what it finds, which a person reviews and merges. 50 teams use it today, and there is a free plan. Start a free ARGUS scan.

DATA SOURCES

Google Threat Intelligence Group, The Rise of LLMJacking (3 Nov 2026): https://cloud.google.com/blog/topics/threat-intelligence/llmjacking-monetizing-compromised-cloud-models; The Hacker News, Researchers Uncover LLMjacking Scheme (10 May 2024): https://thehackernews.com/2024/05/researchers-uncover-llmjacking-scheme.html; The Hacker News, Thousands of Public Google Cloud API Keys Exposed with Gemini Access (28 Feb 2026): https://thehackernews.com/2026/02/thousands-of-public-google-cloud-api.html; OWASP GenAI, LLM10:2025 Unbounded Consumption: https://genai.owasp.org/llmrisk/llm102025-unbounded-consumption/; Anthropic, Rate limits and spend limits: https://platform.claude.com/docs/en/api/rate-limits; Anthropic, Workspaces: https://platform.claude.com/docs/en/manage-claude/workspaces; Anthropic Support, API key best practices: https://support.claude.com/en/articles/9767949-api-key-best-practices-keeping-your-keys-safe-and-secure; OpenAI, Spend limits: https://developers.openai.com/api/docs/guides/spend-limits; Google AI Studio, Gemini API keys: https://aistudio.google.com/docs/api-key; Google AI Studio, Billing: https://aistudio.google.com/docs/billing; Google Cloud, Create and manage budgets: https://docs.cloud.google.com/billing/docs/how-to/budgets; AWS, Amazon Bedrock API keys: https://docs.aws.amazon.com/bedrock/latest/userguide/api-keys.html; AWS, Identity-based policy examples for Amazon Bedrock: https://docs.aws.amazon.com/bedrock/latest/userguide/security_iam_id-based-policy-examples.html

Liked this post? Share it:

Related posts