The images in this article were generated with artificial intelligence. How we publish
A few months ago, it silently changed a assumption that many developers took for granted: the Google Cloud API keys that were placed on public websites for loads such as maps or videos ceased to be simply harmless identifiers. With Gemini's arrival and the possibility of enabling the API of generative models in projects, these keys also started to function as credentials that can authorize calls to the IA assistant and, in some cases, to associated private data.
The problem was highlighted by a research team that tracked the public picture of the web code: by analyzing a representative snapshot of the Internet index, they found thousands of Google keys visible in client code. This investigation, published by Truffle Security, reveals that about 2,800 live keys were exposed on publicly accessible pages and that in several cases those same keys could invoke Gemini's API. Among the findings are keys used by financial institutions, security companies and contracting firms, and even a key integrated into the public web of a Google product.

Traditionally, many Google Cloud keys were treated as non-critical: they served to identify billing or enable simple services in the browser - such as uploading Google Maps, inserting YouTube videos, or using Firebase on a web app - and were confident that reference or use limits were enough. However, when a project activates the Generative Language API, the same key can acquire additional privileges and allow anyone who can run models and access functionalities that were not previously available from the client code.
The practical consequence is double. On the one hand, there is the risk of exposure of information: targeted attacks using the key can try to read or manipulate data to which the service has access. On the other, and perhaps more immediate to many organizations, there is the economic cost: calls to large models are not free, and an aggressor who abuses an exposed key can cause important bills. As researchers point out, saturation of requests against a model with a broad context can result in thousands of dollars per day charged to the victim account.
The findings are based on analysis of a massive set of web pages and are not an anecdotal case. Truffle Security documented that several keys had been in public code for years and, after testing calls to Gemini endpoints to list models, confirmed that those keys worked for the new service. The investigation was notified to Google and, after an exchange of communications, the company classified the problem as a form of escalation of privileges for a specific service.
Google's response, according to statements collected by specialized media, included technical measures and operational recommendations: blocking access of leaked keys to Gemini, issuing proactive notifications when leaks are detected and adjusting the default range of new keys generated from AI Studio to be specific to Gemini. These actions help, but are not a substitute for appropriate safety hygiene in projects.
For developers and product managers this is an immediate audit obligation. It is essential to review the projects and check whether the Generative API is enabled; if so, all public keys or code drinks must be reviewed and rotated without delay. In addition, it is appropriate to review permissions, apply strict reference or IP restrictions where possible, and set quota limits and billing alerts to detect abnormal consumption.
Tools facilitate the detection of exposed secrets in repositories and public code; researchers themselves recommend TruffleHog as a starting point for scanning and finding keys that are accessible from the front or in mission histories. It is also worth reviewing the official Google guides on API key practices and authentication, which describe how to mitigate risks and set up more fine controls: Google Cloud documentation on API keys.
Beyond punctual cleaning, this raises a broader reflection on how the evolution of platforms and services can change the sensitivity of certain technical devices. Something that was considered relatively safe yesterday - a public key used to load a map - can now become a critical vector if the same credential begins to authorize access to generative IA or functions that had not been anticipated. It is therefore key to review assumptions, apply the principle of less privilege and professionalize the management of secrets.

In the operational field, implement server authentication for sensitive calls, use service accounts with minimum permissions, and separate the public use keys from those that have the ability to invoke powerful APIs are measures that reduce exposure. It is also recommended to maintain automatic processes that monitor the appearance of secrets in either the commons or the front and that require the rotation of committed credentials. Security documentation and best practices change with technology; the responsibility of the teams is to keep them up to date.
The incident also underlines the importance of collaboration between researchers and suppliers. The responsible detection and reporting by third parties helped to adopt blockages and controls in a rapidly changing service. For those who want to deepen the original research, the report and entry of the team that detected the exhibition are available on the Truffle Security blog, which details methodology and concrete examples: Truffle Security analysis. The media coverage of Google's statements and the scope of finding in media such as BleepingComputer.
If you manage projects with cloud services, do not leave it for later: check if your client code contains visible keys, identify which permissions have these credentials and act with rotation and restrictions. Security is not static; a key exposed today can become dangerous tomorrow by changes in platforms and the difference between a minor incident and a serious leak is often in the speed with which exposure is detected and corrected.
Related
More news on the same subject.

Campaign at Hugging Face Spaces and GitHub uses game traps to steal passwords and sessions
A massive campaign has used Hugging Face Spaces pages and GitHub repositories to attract players with supposed traps and bots and push them to install malware that steals browse...

Canada detects NEXCOL intrusion and suspension of export permits
The Canadian government confirmed that its online system to manage permits for the export of military material and strategic goods, known as NEXCOL, suffered an intrusion detect...

CertiK shows Weight2Shell: identical weights, different outputs by inference environment
CertiK security researchers have demonstrated a technique - called Weight2Shell in their report - that allows two instances of the same artificial intelligence model, carrying i...

RabbitMQ: critical failure in the management interface exposes tokens OAuth2; patches 4.4.1 / 4.3.8
A critical vulnerability in RabbitMQ allows an attacker who has access to the management interface to get tokens OAuth2 signed by the identity provider without credentials and t...

Critical Vulnerability in Erlang / OTP client TLS allows MITM without certificate (CVE-2026-124286)
A critical vulnerability to the client implementation of TLS within Erlang / Open Telecom Platform (OTP) allows a malicious server to complete a TLS 1.2 handshake without presen...

pCloud Pass: cyber attack exposes emails from few users; undecipher encrypted vaults
This week pCloud Pass, the password manager integrated into the Swiss pCloud service, confirmed that it was the target of a "cyber attack" after several users reported early log...

SOCRadar identifies WeaveLotus / RedOps campaign in intrusions to Thailand and the Philippines
SOCRadar has published an analysis that attributes a series of intrusions to military, government and legislative institutions in South-East Asia to a set of tools and activitie...