Security firm Truffle Security has uncovered more than half a million active, unique credentials sitting exposed within public GitHub repositories, highlighting long-term persistence risks for leaked API keys and tokens.
Scale and Lifespan of Leaked Secrets
According to Truffle Security, scanning 224 million public GitHub repositories in August 2025 revealed a total of 1,103,438 exposed credentials. When the firm tested these items against their respective services at the end of July 2026, over 543,000 of them were found to still be active.
The findings show that leaks can persist for years without detection or remediation. The oldest active secret discovered is an AWS key committed in 2009, while the median exposure window across the entire dataset spans 784 days. A quarter of the discovered items are older than four years, including thousands of live credentials originating from files last modified before 2015.
Limitations of Platform Protections
A significant portion of the exposure occurred despite platform-level safety features. Nearly half of the identified credentials were pushed to public repositories after GitHub introduced free alerts and default push protections meant to prevent accidental leaks.
Truffle Security noted that hundreds of thousands of active credentials landed in repositories even after automated blocks became the default setting. Push protections primarily stop new secrets from entering a repository at the point of commit, but they do not address historical leaks already embedded inside projects.
The Revocation Gap Among Service Providers
The primary reason these credentials remain functional is a lack of automated invalidation. Although GitHub operates a secret-scanning program that forwards exposed tokens to issuing providers for revocation, partner networks do not universally enforce the immediate termination of identified secrets.
The exposed database is heavily populated by tens of thousands of Google Cloud service account credentials, MongoDB connection strings, and live Google API keys. Without automated pipelines on the provider side to kill leaked tokens automatically, the burden falls entirely on repository owners to manually read alerts and rotate keys.
AI-generated editorial illustration; not a documentary photograph.
Source: 500,000 Active Credentials Left Exposed on GitHub

Leave a Reply