Skip to main content
Mallory
← Back to News
leaked-secret-api-keyai-platform-securityprivilege-escalation-methodcloud-service-vulnerability

Legacy Google Cloud API Keys Gaining Unintended Access to Gemini APIs

Breach & Incident Intelligence · 12 sources · Updated 5mo ago · First seen Feb 27, 2026

Legacy Google Cloud API Keys Gaining Unintended Access to Gemini APIs

Security researchers reported that previously “non-secret” Google Cloud API keys (commonly embedded in public client-side code for services like Google Maps, YouTube embeds, Firebase, and analytics) can silently become usable credentials for Gemini (Generative Language API) endpoints once the Gemini API is enabled in the same Google Cloud project. Truffle Security described this as a privilege escalation/incorrect privilege assignment scenario where long-exposed AIza... keys—originally treated as project identifiers for billing and API access control—can unexpectedly grant access to Gemini-related data and capabilities, including access to private AI resources (e.g., uploaded files/cached context) and billable inference usage, without clear developer warning or explicit re-authorization.

Truffle Security’s internet-scale scanning (including Common Crawl) identified ~2,800–3,000 exposed keys across organizations in multiple sectors (and reportedly even from Google), highlighting the practical risk of key harvesting from page source and subsequent abuse. The primary impact described is data exposure via Gemini API access and cost/abuse risk (attackers potentially generating significant charges by making API calls). Separate from the API-key issue, Google also announced a Gemini feature update for Google Workspace that allows Gemini to search Google Chat history (noted as off by default), which is a product capability announcement rather than a vulnerability disclosure.

Why it matters

Impact assessment

Legacy Google Cloud API keys exposed in public client-side code are now a material risk for any organization that has enabled the Gemini/Generative Language API in the same GCP project. Affected populations include enterprises using Google Maps, Firebase, YouTube embeds, analytics, mobile apps, and other browser-embedded Google services where AIza-prefixed keys were historically treated as non-secret.

The impact is high because exposed keys can enable unauthorized Gemini usage, access to Gemini-related data such as uploaded files and cached context, quota exhaustion, and significant unplanned cloud spend. Exposure appears widespread rather than narrowly targeted: Truffle Security reported 2,863 live vulnerable keys from internet-scale scanning, spanning financial institutions, recruiting firms, security companies, and Google-associated assets.

Known abuse in the wild is not broadly confirmed, but there is a reported real-world incident involving $82,314.44 in unauthorized Gemini charges over roughly 48 hours. Even where data theft is not confirmed, the combination of public key harvesting, silent privilege expansion, and billable AI workloads creates immediate financial and operational risk.

Supporting facts

  • Affected product/service: Google Cloud API keys gaining access to Gemini / Generative Language API endpoints.
  • Affected key pattern: AIza-prefixed Google API keys.
  • Exposure sources: public website source, client-side JavaScript, public repositories, CI/CD artifacts, mobile apps.
  • Reported scale: 2,863 live exposed keys; multiple references describe roughly 2,800-3,000 vulnerable keys.
  • Additional ecosystem exposure: Quokka reportedly found more than 35,000 unique Google API keys across 250,000 Android apps.
  • Potential business impacts:
    • Unauthorized Gemini inference charges
    • Access to uploaded Gemini files and cached contents
    • Quota exhaustion disrupting legitimate AI features
    • Reputational damage from exposed AI-connected data
  • Reported incident: one startup reported $82,314.44 in unauthorized Gemini 3 Pro Image and Gemini 3 Pro Text usage between 2026-02-11 and 2026-02-12.
  • Google stated it implemented proactive leaked-key detection/blocking for Gemini access and planned improved defaults and notifications.
Is this vendor in your chain?See attribution, scope, and your downstream exposure.
Check the blast radius
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · Nov 1, 2025 – Feb 28, 2026
  1. Feb 28, 20269mo ago

    Quokka reports 35,000+ Google API keys embedded in Android apps

    A separate Quokka report found more than 35,000 unique Google API keys embedded across roughly 250,000 Android apps. The finding underscored how AI-enabled endpoints like Gemini can increase the impact of widespread API key exposure beyond websites alone.

  2. Feb 27, 20269mo ago

    Researchers say root-cause architectural fix remains in progress

    At disclosure time, researchers said Google's mitigations reduced risk but did not fully resolve the underlying architectural problem of shared API key behavior across services. They advised organizations to audit whether Gemini was enabled, restrict and rotate exposed keys, and scan codebases for public AIza keys.

  3. Feb 26, 20269mo ago

    Google acknowledges report and deploys mitigations for leaked keys

    Google said it classified the issue as a single-service privilege escalation and implemented measures to detect and block leaked keys attempting to access Gemini. The company also said new AI Studio keys would default to Gemini-only scope and that affected users would be notified when leaks are detected.

  4. Feb 26, 20269mo ago

    Truffle Security discloses exposed-key Gemini access issue

    By late February 2026, Truffle Security publicly reported that publicly exposed Google Cloud API keys could be abused to access Gemini APIs, potentially exposing private data and causing significant costs. The researchers said they found nearly 3,000 exposed keys across many organizations, including some associated with Google.

  5. Feb 11, 202610mo ago

    Unauthorized Gemini usage racks up $82,314.44 on stolen API key

    A startup developer reported that a compromised Google Cloud API key was abused between February 11 and February 12, 2026, generating $82,314.44 in unauthorized Gemini charges within 48 hours. The usage was said to be primarily for Gemini 3 Pro Image and Gemini 3 Pro Text.

  6. Nov 1, 20251y ago

    November 2025 Common Crawl scan finds thousands of exposed Google keys

    Truffle Security scanned the November 2025 Common Crawl dataset and identified thousands of publicly exposed Google Cloud API keys. The researchers later reported that 2,800+ of these keys were still live and could authenticate to Gemini when the Generative Language API was enabled on the same project.

  7. Date unknown

    Gemini enablement turns legacy public API keys into higher-risk credentials

    Researchers determined that when Gemini/Generative Language API is enabled in a Google Cloud project, existing unrestricted API keys in that project can silently gain access to Gemini endpoints. This created an order-of-events privilege escalation in which previously public-facing keys could expose Gemini files, cached content, and billable usage.

  8. Date unknown

    Google guidance led developers to expose some API keys publicly

    For years, Google documentation treated certain API keys used for services like Maps and Firebase as non-secret identifiers that could be embedded in client-side code. This created a large legacy population of publicly accessible AIza-format keys across websites, repositories, and apps.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Organizations

1 linked
Google

Observables

2 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution, scope, and whether this vendor sits anywhere in your supply chain.
Get the Full Incident Picture
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.