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

More on this: every leaked secrets & api keys story and our related guide.

Tools involved

Gemini stories, OpenAI stories, Claude stories

Related stories

Source: original post on Web ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.