Google Cloud API Key Exposure Could Give Attackers Gemini AI Access and Generate Large Bills

Related

Google Deploys Gemini AI to Monitor Dark Web for Cyber Threats

What happened Google has deployed Gemini AI agents within its...

High-Severity Bug in Chrome’s Google Gemini AI Panel Could Have Enabled Hijacking

What happened Google patched a high-severity vulnerability (tracked as CVE-2026-0628)...

Cybercriminals Use Fake “Gemini” AI Chatbot to Push Fraudulent Crypto Scam

What happened Cybercriminals launched a fraudulent “Google Coin” presale website...

Threat Actors Leverage Google Cloud Services for Malicious Campaigns

What happened Threat actors abused Google Cloud services to host...

Share

What happened

Security researchers at Truffle Security discovered that nearly 3,000 publicly exposed Google Cloud API keys, previously considered low-risk identifiers, can now be abused to authenticate to sensitive Gemini (Generative Language) API endpoints when the AI service is enabled in the same Google Cloud project.

Who is affected

Organizations with Google Cloud projects that have the Gemini (Generative Language) API enabled and that have API keys embedded in client-side code, public repositories, or publicly accessible sites are at risk, including financial firms, tech companies, recruitment platforms, and even Google’s own public websites.

Why CISOs should care

This issue elevates what were previously benign billing identifiers into credentials capable of accessing sensitive AI endpoints, exposing private files, cached data, and allowing unauthorised API calls that can result in significant financial charges and data exposure. The vulnerability arises without warning or notification when Gemini is enabled, meaning teams may be unaware that their public keys have gained broader access privileges.

3 Practical Actions

  1. Audit API keys and project settings: Inventory all Google Cloud API keys and determine if any are publicly visible or embedded in code; check which projects have the Generative Language API enabled.
  2. Restrict and rotate keys: Apply restrictive API scopes (least privilege) and immediately rotate or revoke any exposed keys, especially those with unintended AI access.
  3. Implement scanning and monitoring: Use tools to detect exposed secrets in code and repositories (e.g., TruffleHog), enable billing alerts, and monitor for unexpected AI API usage.
1524023125746
+ posts