Put hard spend caps and scoped keys on every AI provider account
Google: hijacked AI keys and cloud tokens ran up as much as $1 million in charges before access was cut · Security incident · Web · Mandiant · Nov 2, 2026
What happened
Google Threat Intelligence Group and Mandiant reported on 2 Nov on 2026 incidents where attackers hijacked companies' access to LLMs. Some saw over $100,000 in fraudulent charges in a single day, and cumulative charges at some reached $1 million before access was revoked. The main ways in were stolen or exposed cloud credentials, GitHub tokens and service-account keys; one group harvested LLM keys from public GitHub repos and tested them with single-token requests to stay unnoticed. Stolen access is resold through 'LLM mixer' services.
How to prevent it
Scope every AI key to one project, set hard spend caps rather than alerts only, and scan your repos for committed secrets.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
Help me lock down my AI API keys after Google's LLMJacking report: 1) List every AI provider key my app uses and where each one is stored (env vars, CI secrets, hosting dashboards, code). 2) Search my repos, including git history, for any key that was ever committed and tell me which to rotate. 3) Show me how to set a hard monthly spend cap and per-project or per-workspace keys on each provider I use. 4) Tell me how to switch on usage alerts so a sudden spike or a burst of tiny max_tokens=1 test calls gets noticed. Don't change anything until I approve.
Why this keeps happening: leaked secrets & api keys
Secret keys placed in front-end code, mobile bundles or public repositories can be found by automated scanners and abused, often running up large bills on AI or cloud accounts before anyone notices.
A quick checklist before you ship
- Keep secret keys only in server-side environment variables, never in browser or app code.
- Set spend limits and usage alerts with every AI and cloud provider.
- Turn on secret scanning and push protection for your repositories.
- If a key leaks, revoke and replace it first; deleting the file is not enough.
More on this: every leaked secrets & api keys story and our related guide.
Tools involved
Gemini stories, OpenAI stories, Claude stories
Related stories
- Rotate any AI key you saved in a hosted tool
OpenCode Console breach: saved AI provider keys may be exposed - Never bake API keys or .env files into a container image; pass them at runtime, and if one ever went into a public image, rotate it now even if you deleted the tag
Study: AWS, OpenAI and Anthropic keys left in public Docker Hub images were used within seconds - Keep secrets out of what your AI agent can read
GitGuardian: real leaked API keys recovered from three LLMs; Claude Code commits leak more
Source: original post on Web ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.