Public Google API keys gain Gemini access after API enablement
Enabling an AI service quietly turned identifiers that had been treated as public into credentials for private AI data and paid usage.
- What happened
- For years Google documentation described API keys for services such as Maps as safe to embed in public web pages. Truffle Security found that when the Gemini API was enabled on a Google Cloud project, those existing public keys could also authenticate to Gemini endpoints, including file and cached-content endpoints, without warning to the key owner. Scanning the November 2025 Common Crawl dataset, researchers verified 2,863 live keys vulnerable in this way, including keys on Google's own product sites. Anyone holding such a key could access data stored through Gemini and run up charges on the owner's account.
- Response
- Google initially treated the behaviour as intended, then reclassified it as a bug on 2 December 2025. It said it had implemented measures to detect and block leaked keys used against the Gemini API and committed to scoped defaults for new keys. Truffle published after the 90-day disclosure window.
- Discovered by
- Truffle Security, reported to Google's Vulnerability Disclosure Program on 21 November 2025.
- Who was affected
- 2,863 verified live keys found in public web data, belonging to financial institutions, security firms, recruiters and Google itself
- Patterns
- Sources
- Google API Keys Weren't Secrets. But then Gemini Changed the Rules.Truffle Security, 25 Feb 2026
- Thousands of Public Google Cloud API Keys Exposed with Gemini Access After API EnablementThe Hacker News, 28 Feb 2026
Related
Incidents with the same pattern
What does this ask of people?
Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.