A significant gap in Google’s API key revocation process leaves deleted credentials functional for up to 23 minutes, creating an exploitable window for attackers holding leaked keys.
When a Google API key is deleted via the Google Cloud Platform (GCP) console, the UI states: “Once deleted, it can no longer be used to make API requests.” Researchers found this claim to be demonstrably false.
Google’s infrastructure uses an eventually consistent model, where updates propagate gradually across distributed servers rather than simultaneously, said Aikido.
Deleted Google API Keys Still Access
While this design choice enables global scalability, applying it to credential revocation introduces a dangerous inconsistency: deleted keys continue authenticating requests on servers that haven’t yet received the revocation signal.
Across 10 controlled trials, researchers recorded a minimum revocation window of ~8 minutes, a median of ~16 minutes, and a maximum of ~23 minutes.
During that window, one trial saw 79% of requests succeed just one minute after deletion, while another saw only 5%, making the behavior highly unpredictable from both the defender’s and attacker’s perspective.
An attacker with a leaked Google API key can continue sending authenticated requests even after the victim deletes it.
If Gemini is enabled on the project, that access includes the ability to dump uploaded files and exfiltrate cached conversations. The same delay applies to keys scoped to BigQuery and Maps APIs.
Critically, the GCP console provides no visibility into whether a deleted key remains live and offers no mechanism to accelerate revocation or confirm its termination.
Researchers ran parallel trials from VMs in three GCP regions us-east1, europe-west1, and asia-southeast1 and found significant regional variation immediately after key deletion.
In one trial, us-east1 authenticated 82% of requests in the first minute post-deletion, europe-west1 accepted 60%, and asia-southeast1 accepted 32%.
Counterintuitively, servers geographically closer to the United States appeared to propagate revocations more slowly.
Not all Google credentials share this behavior. Researchers tested two alternatives:
- New Gemini API keys (AQ. prefix): Revocation propagated in approximately 1 minute
- Google Service Account keys: Revocation propagated in approximately 5 seconds
Both credential types operate at Google scale, demonstrating that rapid revocation is technically feasible, making the 23-minute window for standard Google API keys difficult to justify from an architectural standpoint.
During forensic analysis, investigators may encounter a confusing artifact in GCP’s “Traffic by Credential” graph requests labeled apikey:UNKNOWN.
Researchers confirmed this label aggregates requests from all deleted API keys into a single bucket, making it impossible to attribute traffic to a specific revoked credential.
This ambiguity hampers incident response when determining whether an attacker is actively exploiting a deleted key.
Akido researchers disclosed the findings to Google, which closed the report as “won’t fix”, citing propagation delay as a known, documented property of the IAM system.
While Google documents eventual consistency for its IAM API broadly, no specific documentation addresses this behavior for standard Google API keys.
Mitigation
Until Google ships a fix, security teams should adopt these immediate measures:
- Treat key deletion as a 30-minute operation, assume a deleted key remains live for 30 minutes, and plan incident response accordingly
- Monitor API traffic during the window under “Enabled APIs and services” in GCP, review requests by credential for unauthorized usage post-deletion
- Prefer Service Account keys where feasible, given their ~5-second revocation propagation.
- Rotate keys proactively rather than reactively to minimize exposure windows.
The research underscores a broader principle: eventual consistency is an acceptable tradeoff for data replication and caching, but it is fundamentally incompatible with the user expectation and security requirement that credential revocation be immediate.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.