# LLMjacking
> Using stolen cloud credentials or LLM API keys to consume hosted models (Bedrock, Gemini/Vertex, Azure, OpenAI, Anthropic) on the victim's bill, either directly or by reselling the access through proxy "transfer stations" and LLM Mixers.
Also called **token jacking** (Unit 42) or **LLM hijacking** (Wiz). It is resource hijacking for the LLM era: like cryptojacking, but Google notes it "can generate large spikes in fraudulent cloud charges in a matter of hours" instead of a slow drain. This page covers the abuse and its economics. How keys leak in general is on [[Leaked Cloud Credentials]]; gateway bugs that expose keys are on [[AI Infrastructure Vulnerabilities]].
## How it works
1. **Get a credential that can reach a model.** It can be a raw provider API key, a cloud identity (IAM access key, GCP service-account key, session token) that can call Bedrock or Gemini, or an LLM gateway that holds keys for many providers.
2. **Validate and fingerprint.** A single low-cost call checks the key works. Then comes a model catalog probe (which models answer) and quota enumeration (how much traffic the account allows).
3. **Expand if the identity allows it.** With admin-level cloud access, actors create new users, keys or service accounts, enable the model API, and remove guardrails so they can scale.
4. **Monetize.** They proxy tokens to paying customers, run their own workloads, or sell the key into a reseller pool. The owner pays for every token until someone notices.
Why it pays: LLM billing is per token, premium models cost more, and many providers bill on a cycle with no hard cap by default. A stolen key can therefore give near-unlimited usage until the invoice arrives ([[raw/unit42.paloaltonetworks.com/token-jacking-cybercriminals-could-be-stealing-your-ai-resources-11151|Unit 42]]).
## How credentials are obtained
Sources describe these routes at a high level:
- **Exposed or stolen cloud identities.** GTIG/Mandiant call this the most common vector: IAM credentials, service-account keys, GitHub PATs and active session tokens. LLM API keys also turn up in public GitHub repos and exposed client-side code ([[raw/thehackernews.com/google-warns-llmjacking-attacks-are-costing-some-enterprises-up-to-1-m-13136|THN/GTIG]]).
- **Phishing for cloud consoles.** Malicious search ads for "google cloud"/"gcp" led to fake Google logins that captured credentials and MFA codes ([[raw/wiz.io/from-phishing-to-llmjacking-threat-actors-targeting-cloud-billing-acco-12319|Wiz]]). UNC6993 ran a fake "join our LLM users" portal that tricked users into pasting a JSON payload containing a live access token, which bypassed password and MFA ([[raw/thehackernews.com/google-warns-llmjacking-attacks-are-costing-some-enterprises-up-to-1-m-13136|THN/GTIG]]).
- **Infostealers and access brokers.** Privileged developer accounts sold on dark-web markets are used to mint keys, provision models, remove billing limits and disable usage alerts ([[raw/unit42.paloaltonetworks.com/token-jacking-cybercriminals-could-be-stealing-your-ai-resources-11151|Unit 42]]).
- **AI-service accounts in stealer logs.** Infostealers capture browser credentials and session cookies for ChatGPT, Claude, Gemini, Copilot and Cursor. Those accounts can expose conversations, uploads, code context and connectors, so they belong in the attack-surface inventory. Free single-source checks such as Brandefense AI Exposure Check report severity, platforms, collection window and aggregated device info for a domain (no passwords). A negative is not clearance; a positive is a lead to validate against IdP and session logs before rotating and revoking. Collection date is not infection date [[raw/medium.com/your-company-s-ai-credentials-could-already-be-exposed-and-google-won-15910|Efim Lerner]].
- **Supply-chain worms.** Self-propagating npm campaigns (Shai-Hulud, Miasma) harvest tokens from every build environment they reach. Unit 42 expects that stock of stolen credentials to "fuel transfer stations for years".
- **Vendor and platform breaches.** In "Black October" 2026, breached AI developer platforms (Fireworks, Zeabur, Railway, Northflank, among others) were targeted specifically for stored environment variables holding AI keys ([[raw/wiz.io/black-october-for-ai-developer-platforms-12539|Wiz]], [[raw/bleepingcomputer.com/northflank-security-breach-leads-to-abuse-of-customers-ai-api-keys-12825|BleepingComputer]], [[raw/blog.gitguardian.com/the-fireworks-ai-breach-how-one-vendor-key-became-a-supply-chain-attac-15397|GitGuardian]]).
- **Inference-provider prompt theft.** Dragos seeded about two million prompts with canary credentials. A couple hundred AWS keys sent to one breached provider were tested within hours: S3 listing, Secrets Manager and Parameter Store searches, attempts to create Bedrock API keys and IAM users for persistence, tens of thousands of API calls. See [[AI Infrastructure Vulnerabilities]] [[raw/thehackernews.com/openrouter-drops-3-providers-after-researchers-catch-months-of-prompt-15915|The Hacker News]].
- **Exposed LLM gateways.** About 1 in 10 internet-facing LiteLLM instances accepted a default master key or no auth at all, and a gateway holds every upstream provider key ([[raw/wiz.io/off-guard-breaking-litellm-from-authentication-bypass-to-cloud-comprom-11992|Wiz]]). In honeypots, attackers fingerprinted the backend (OpenAI, Anthropic, Azure) to decide whether to steal the key or abuse the quota ([[raw/wiz.io/inside-90-days-of-attacks-on-ai-infrastructure-11784|Wiz]]). GTIG also saw a LiteLLM CVE (CVE-2026-40217) used for privilege escalation.
## Resale ecosystem
Theft and monetization are often done by different actors:
- **Transfer stations.** Grey-market vendors, often on Chinese-language marketplaces, sell discounted multi-model access paid with anonymous credits. Many run on open-source proxies (`new-api`, `one-api`) that handle credential rotation, billing, model routing and obfuscation. Buying tokens at full price to resell at a discount does not make money, so operators turn to stolen keys ([[raw/unit42.paloaltonetworks.com/token-jacking-cybercriminals-could-be-stealing-your-ai-resources-11151|Unit 42]]).
- **LLM Mixers.** GTIG's name for illicit routing gateways that proxy, aggregate and resell stolen access through underground storefronts. One example is "Jet Night", which advertised an unlimited frontier-model plan for about $60/month ([[raw/thehackernews.com/google-warns-llmjacking-attacks-are-costing-some-enterprises-up-to-1-m-13136|THN/GTIG]]).
- **Relay services.** Symantec reported a service that installs the genuine Codex and Claude Code CLIs and then rewrites their config. The rewrite routes traffic through relay servers, swaps in relay-issued tokens, disables the sandbox and turns off telemetry. It mainly targets regions where those vendors do not operate.
- **Observed key markets.** In the Black October follow-on cases, stolen Bedrock keys were checked and used by several parties. These included the overt resale sites "momo"/llm-routing.com and xingjiabiapi.org, which suggests "a robust market for this type of credential" ([[raw/wiz.io/black-october-for-ai-developer-platforms-12539|Wiz]]).
- **Demand drivers.** Regional restrictions, cheap access for developers, and model distillation, including alleged nation-state use to train their own models (Unit 42, Wiz).
## Cost impact and campaigns
| Campaign / case | Access | Impact |
|---|---|---|
| GTIG/Mandiant (2026) | IAM keys, SA keys, PATs, LLM keys; UNC6993 via misconfigured SA key | >$100k in a single day; up to $1M cumulative before revocation. UNC6993 minted extra API keys (> $100k) and used "burn and rotate" short-lived service accounts to dodge rate limits |
| Unit 42 token jacking | Exposed keys fed into a transfer station within minutes | Nearly $1M before containment; tens of millions of API calls/day possible |
| Wiz GCP billing hijack | Ad-driven phishing of GCP admins | Tens to hundreds of thousands of dollars in Gemini charges within 24-48 h |
| Black October follow-on (Bedrock) | Enterprise keys stolen from a breached vendor | Case A: ~800k calls in 30 h (global cross-region profiles, ~6% throttled). Case B: ~1.7M calls in 13 h. Together over $100k at list price |
| Northflank (Oct 2026) | Customer env vars/API keys | AI keys abused; Wiz saw ~2.5M Bedrock calls (~$100k) in two cases |
| JINX-2401 (Nov 2024) | Compromised AKIA keys, Proton VPN | Bedrock invocation, IAM user/policy creation; blocked by SCPs |
Unit 42 notes that victims have little recourse to recover the charges, which can push small businesses toward bankruptcy.
**Escalation patterns seen.** In the GCP case, attackers enabled the Gemini API in dormant projects and created service accounts with keys. They deleted the `iam.allowedPolicyMemberDomains` org policy, added external Gmail accounts as `roles/billing.admin`, and demoted real billing admins to viewer. They then **linked attacker-owned projects to the victim billing account**. Because inference ran in foreign tenants, the victim paid but had no logs of prompts or outputs. In AWS, JINX-2401 used admin keys to create IAM users matching `^[A-Z][a-z]{5}[0-9]{3}
with a `New_Policy` Bedrock policy. Its model-access requests (`PutUseCaseForModelAccess`, `CreateFoundationModelAgreement`) were blocked by SCPs ([[raw/wiz.io/new-developments-in-llm-hijacking-activity-9469|Wiz]]).
## Detection signals
- **Billing anomalies.** A sharp jump in AI spend over the baseline is often the first sign. Set per-model cost-anomaly alerts and budgets that alert on drastic change (Wiz, Unit 42). After a platform breach, Northflank told customers to review AI provider usage and billing logs.
- **Model invocation patterns.** Watch for a burst of `InvokeModel` calls from an unusual principal, and for `InvokeModel` errors that show model-access probing (Wiz Defend rules). The Black October sequence was:
- a single validation call
- a trickle of daily "keep-alive" checks from a small Go client
- a one-call-per-model catalog sweep
- quota enumeration
- bulk traffic seconds later
- **Token-usage shape.** Resold coding-agent traffic showed tiny uncached inputs (prompt caching), a few hundred output tokens, and a long tail of very large prompts from many end users ([[raw/wiz.io/black-october-for-ai-developer-platforms-12539|Wiz]]).
- **CloudTrail / audit events.**
- AWS:
- `CreateUser`/`CreatePolicy` matching known campaign patterns
- `PutUseCaseForModelAccess`, `CreateFoundationModelAgreement`
- `CreateServiceSpecificCredential` for `bedrock.amazonaws.com`, and `callWithBearerToken: true` on usage of Bedrock API keys ([[raw/wiz.io/a-new-type-of-long-lived-key-on-aws-bedrock-api-keys-9228|Wiz]])
- GCP:
- `SetOrgPolicy` changes
- Gemini `EnableService`, `CreateServiceAccount`/`CreateKey` in old projects
- external-domain IAM members
- billing-admin role changes
- **Source anomalies.** VPN, residential or rotating-proxy origins; geo-blending into the victim's home country; logins flagged in Workspace user log events.
## Defenses
- **Scope keys tightly.** Use least privilege on any identity that can invoke models, and restrict which models and inference profiles a key may use. In Black October Case B, a policy limited to `us.*` profiles caused thousands of failed reseller calls and regional throttling that capped the flood.
- **Control model access at the org level.** SCPs that deny `InvokeModel`/`CreateFoundationModelAgreement` where Bedrock isn't needed stopped JINX-2401. Wiz suggests denying `bedrock:CallWithBearerToken` and IAM-user creation where Bedrock API keys aren't approved. In GCP, keep and monitor domain-restricted-sharing policies and limit who holds `billing.admin`.
- **Quotas and spend caps.** Hard spending limits plus alerts; review every account that can raise limits or disable alerts (Unit 42).
- **Prefer short-lived credentials.** Use short-term tokens instead of long-term keys, rotate on any suspicion, and revoke rather than relying on quarantine. Northflank's response was forced rotation of all env vars and keys. See [[Credential Rotation and Revocation]].
- **Centralize behind an authenticated AI gateway** tied to managed machine identities, with network boundaries so a stolen key is useless from outside (Unit 42). Never run a gateway such as LiteLLM without a strong master key ([[AI Infrastructure Vulnerabilities]]).
- **Keep keys out of reach.** Use secret scanning, keep developer environments clean of malicious packages, and inventory deployed models (Wiz AI-SPM). See [[Secret Scanning]] and [[Developer Workstation Secrets]].
- **Phishing-resistant admin auth.** MFA codes were phished in the GCP campaign, and token-paste lures bypassed MFA entirely.
## Related
- [[AI and LLM Security]]
- [[Secrets Management]]
- [[Leaked Cloud Credentials]]
- [[AI Infrastructure Vulnerabilities]] · [[AI Coding Assistant Risks]]
- [[Credential Rotation and Revocation]] · [[Secret Scanning]] · [[Developer Workstation Secrets]]
- [[Adversary-in-the-Middle Phishing]] · [[API Gateway Security]]
## Sources
- [[raw/thehackernews.com/google-warns-llmjacking-attacks-are-costing-some-enterprises-up-to-1-m-13136|Google Warns LLMjacking Attacks Are Costing Some Enterprises Up to $1 Million in Cloud Charges]]
- [[raw/wiz.io/from-phishing-to-llmjacking-threat-actors-targeting-cloud-billing-acco-12319|From Phishing to LLMjacking: Threat Actors Targeting Cloud Billing Accounts for LLM Usage]]
- [[raw/wiz.io/new-developments-in-llm-hijacking-activity-9469|New Developments in LLM Hijacking Activity]]
- [[raw/unit42.paloaltonetworks.com/token-jacking-cybercriminals-could-be-stealing-your-ai-resources-11151|Token Jacking: Cybercriminals Could Be Stealing Your AI Resources]]
- [[raw/wiz.io/black-october-for-ai-developer-platforms-12539|"Black October" for AI Developer Platforms]]
- [[raw/bleepingcomputer.com/northflank-security-breach-leads-to-abuse-of-customers-ai-api-keys-12825|Northflank security breach leads to abuse of customers' AI API keys]]
- [[raw/blog.gitguardian.com/the-fireworks-ai-breach-how-one-vendor-key-became-a-supply-chain-attac-15397|The Fireworks AI Breach: How One Vendor Key Became a Supply Chain Attack on Cursor]]
- [[raw/wiz.io/off-guard-breaking-litellm-from-authentication-bypass-to-cloud-comprom-11992|Off Guard: Breaking LiteLLM from authentication bypass to cloud compromise]]
- [[raw/wiz.io/inside-90-days-of-attacks-on-ai-infrastructure-11784|Inside 90 days of attacks on AI infrastructure]]
- [[raw/wiz.io/a-new-type-of-long-lived-key-on-aws-bedrock-api-keys-9228|A new type of long-lived key on AWS: Bedrock API keys]]
- [[raw/medium.com/your-company-s-ai-credentials-could-already-be-exposed-and-google-won-15910|Your Company's AI Credentials Could Already Be Exposed (Ahmia, Brandefense)]]
- [[raw/thehackernews.com/openrouter-drops-3-providers-after-researchers-catch-months-of-prompt-15915|OpenRouter drops 3 providers after months of prompt theft]]