Back to stories
Research

Revoked Google API Keys Keep Working for 23 Minutes, Aikido Finds

Michael Ouroumis2 min read
Revoked Google API Keys Keep Working for 23 Minutes, Aikido Finds

Security firm Aikido reported on May 21 that a deleted or revoked Google API key can keep authenticating requests for up to 23 minutes after a developer kills it — a window wide enough for anyone holding a leaked key to keep pulling files and cached Gemini conversation data out of the API after the owning team believes the exposure is closed.

A 23-minute revocation tail

Aikido researcher Joe Leon found that key revocation propagates gradually across Google's infrastructure rather than taking effect atomically. During the lag, behavior is inconsistent: success rates swing minute to minute, and in some minutes more than 80% of requests made with the revoked key still authenticate. The practical result is that an attacker who scrapes a key from a public repo, a log, or a client bundle does not lose access the instant the owner notices and rotates it.

Not every credential leaks the same way

The lag is specific to standard, long-lived Google API keys. Google's newer credential formats close far faster: service-account API credentials revoke in about five seconds, and Gemini's newer AQ-prefixed key format takes roughly a minute. That gap is the crux of Aikido's argument. "Both run at Google scale," Leon said of the faster-revoking formats. "Both suggest this is technically solvable for Google API keys, too."

Why a few minutes is a long time now

The finding matters because it breaks an assumption baked into most incident-response playbooks: that revoking a credential is instantaneous and final. Teams are trained to rotate a key the moment they spot exposure and treat the incident as contained. A multi-minute tail means containment is eventually-consistent, not immediate — and attacker tooling has collapsed the time it needs to act. Telemetry cited in the reporting puts the average gap between an initial breach and the next stage of an attack at 22 seconds, down from eight hours. Against that cadence, a 23-minute window is hundreds of automated actions, not a rounding error.

What builders should change

For anyone shipping on the Gemini API, the takeaway is to stop treating API-key revocation as a hard stop. Favor service accounts or short-lived tokens over long-lived keys for production Gemini traffic, scope keys narrowly, and keep monitoring a revoked key's usage rather than assuming deletion ends the exposure. More broadly, the episode underscores that the security primitives underpinning AI deployments — auth, key lifecycle, and revocation guarantees — are being stress-tested in production by every vendor at once, Google included.

Learn AI for Free — FreeAcademy.ai

Take "AI Essentials: Understanding AI in 2026" — a free course with certificate to master the skills behind this story.

More in Research

METR: Frontier Labs' Internal Agents Could Already Launch Small 'Rogue Deployments'
Research

METR: Frontier Labs' Internal Agents Could Already Launch Small 'Rogue Deployments'

METR's first Frontier Risk Report finds the internal agents at Anthropic, Google, Meta, and OpenAI could already initiate small 'rogue deployments' but can't yet sustain them — and that a large fraction of agent activity goes unreviewed by any human.

1 hours ago2 min read
ByteDance's MMProLong Recipe Hits 128K Context on a 7B VLM for 2,900 GPU-Hours — and Q&A Beats OCR
Research

ByteDance's MMProLong Recipe Hits 128K Context on a 7B VLM for 2,900 GPU-Hours — and Q&A Beats OCR

A ByteDance Seed and HKUST paper extends Qwen2.5-VL-7B from 32K to 128K context on a 5B-token budget and shows long-document VQA training beats OCR transcription, with the 7B model outscoring 27B–38B open rivals.

3 hours ago2 min read
OpenAI Reasoning Model Disproves 80-Year-Old Erdős Conjecture, a First for Autonomous AI Math
Research

OpenAI Reasoning Model Disproves 80-Year-Old Erdős Conjecture, a First for Autonomous AI Math

An unreleased OpenAI general-purpose reasoning model disproved Erdős's planar unit distance conjecture, constructing point sets with at least n^(1+δ) unit-distance pairs. Fields Medalist Tim Gowers called it 'a milestone in AI mathematics.'

3 days ago2 min read