Google API Keys Weren't Secrets. But then Gemini Changed the Rules.

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Google Maps API keys embedded publicly in web pages silently gained access to billable Gemini endpoints, so keys you published years ago may now drain your billing account.

Read this as

Google uses one type of API key, a password-like code, for both its Maps service and its Gemini AI service. Maps keys are designed to be public, but Gemini keys can access private files and incur charges. Security firm Truffle Security found 2,863 leaked keys in public web data that could use Gemini, including some belonging to Google itself. Google is revoking the affected keys.

A privilege escalation affecting Google customers: keys published publicly for Google Maps can now authenticate billable Gemini API requests, since both services share the same key format. Truffle Security verified 2,863 exposed keys in the November 2025 Common Crawl. Google is revoking them, but companies should audit whether their own public Maps keys can reach Gemini billing.

The escalation mechanism is a change in privilege after key issuance: a key created for Maps, publicly embeddable by design, retains its value when Gemini is enabled on the same project, silently becoming a credential for sensitive Gemini endpoints and billable calls. Truffle Security found 2,863 valid keys via the /models listing endpoint in the November 2025 Common Crawl, including Google-owned keys predating Gemini itself (one live since February 2023). Google is revoking affected keys; no revocation date is given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Gemini Google Maps Common Crawl Truffle Security Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading