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
- 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.
- 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).
- 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.
- 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 (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 (THN/GTIG).
- Phishing for cloud consoles. Malicious search ads for “google cloud”/“gcp” led to fake Google logins that captured credentials and MFA codes (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 (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 (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 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 (Wiz, BleepingComputer, 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. Attacker tooling shifted from a fake Chrome script to Boto3 to AWS CLI on Kali, plus the ARTEX AI pentest framework (user agents
artex-agent,artex-judge-r121). See AI Infrastructure Vulnerabilities The Hacker News, Dragos. - Agentic offensive frameworks. Wiz reports ARTEX/CyberStrikeAI operators going straight for environment variables and stored customer secrets, prioritising AI-provider and cloud keys that can be validated, resold or burned within hours; one operator harvested Anthropic API keys from 50 hosts and mined employees’ AI coding-assistant session histories for SSO credentials. See Agentic Offensive Frameworks Wiz.
- 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 (Wiz). In honeypots, attackers fingerprinted the backend (OpenAI, Anthropic, Azure) to decide whether to steal the key or abuse the quota (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 (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 (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” (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 (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
InvokeModelcalls from an unusual principal, and forInvokeModelerrors 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 (Wiz).
- CloudTrail / audit events.
- AWS:
CreateUser/CreatePolicymatching known campaign patternsPutUseCaseForModelAccess,CreateFoundationModelAgreementCreateServiceSpecificCredentialforbedrock.amazonaws.com, andcallWithBearerToken: trueon usage of Bedrock API keys (Wiz)
- GCP:
SetOrgPolicychanges- Gemini
EnableService,CreateServiceAccount/CreateKeyin old projects - external-domain IAM members
- billing-admin role changes
- AWS:
- 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/CreateFoundationModelAgreementwhere Bedrock isn’t needed stopped JINX-2401. Wiz suggests denyingbedrock:CallWithBearerTokenand IAM-user creation where Bedrock API keys aren’t approved. In GCP, keep and monitor domain-restricted-sharing policies and limit who holdsbilling.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
- Agentic Offensive Frameworks
Sources
- Google Warns LLMjacking Attacks Are Costing Some Enterprises Up to $1 Million in Cloud Charges · original
- From Phishing to LLMjacking: Threat Actors Targeting Cloud Billing Accounts for LLM Usage · original
- New Developments in LLM Hijacking Activity · original
- Token Jacking: Cybercriminals Could Be Stealing Your AI Resources · original
- "Black October" for AI Developer Platforms · original
- Northflank security breach leads to abuse of customers' AI API keys · original
- The Fireworks AI Breach: How One Vendor Key Became a Supply Chain Attack on Cursor · original
- Off Guard: Breaking LiteLLM from authentication bypass to cloud compromise · original
- Inside 90 days of attacks on AI infrastructure · original
- A new type of long-lived key on AWS: Bedrock API keys · original
- Your Company's AI Credentials Could Already Be Exposed (Ahmia, Brandefense) · original
- OpenRouter drops 3 providers after months of prompt theft · original
- Dragos — AI Supply Chain Security: What Canary Tokens Found · original
- Wiz — Agentic Attacks: In The Wild · original