543,699 Exposed GitHub Credentials Remain Active and Enter AI Training Data
Breach & Incident Intelligence · 10 sources · Updated 2mo ago · First seen Jul 27, 2026

Truffle Security found that 543,699 unique credentials exposed in public GitHub code were still valid when tested on July 27–28, 2026. Its analysis linked those live secrets to 1,103,438 exposures across files and forks in The Stack v3, a 15.9 TB code dataset assembled from about 224 million public repositories. The credentials included API keys, access tokens, database connection strings, and cloud service-account credentials; the median duration of public exposure was 784 days, and one active AWS key had been committed in 2009.
GitHub push protection reduced exposure density by 53% for supported secret types, but it does not remediate historical commits and has incomplete coverage: 51.8% of active credentials used formats not blocked by default protection, while 36.8% were committed after push protection became the default for free users. Google Cloud service-account credentials, MongoDB connection strings, and Google API keys were among the largest groups of usable secrets. Because revocation is not mandatory after GitHub reports findings to providers, organizations should scan full Git histories, immediately revoke or rotate exposed credentials, investigate potential abuse, adopt short-lived secrets, and automate alert-to-revocation workflows; the exposures may also persist in downstream AI-training datasets after removal from source repositories.
Why it matters
Truffle Security identified 543,699 unique credentials exposed in public GitHub code that still authenticated on July 27–28, 2026, creating widespread exposure for organizations using cloud services, databases, developer platforms, and AI APIs. Unauthorized use could enable data theft, infrastructure compromise, service disruption, and fraudulent API consumption; the supplied reporting documents researcher validation, not confirmed malicious exploitation.
- Scope: The credentials appeared in 1,103,438 exposures across files and forks in The Stack v3, a 15.9 TB code-training dataset assembled from approximately 224 million repositories.
- Persistence: Median public exposure was 784 days; 10% of working credentials were at least 6.3 years old. Validity was measured in July, not reverified as of October 7, 2026.
- Priority populations: Organizations using Google Cloud service accounts, MongoDB, PostgreSQL, MySQL, and Google/Gemini APIs have substantial exposure in the reported findings. Actual impact depends on credential permissions and service accessibility.
- Downstream exposure: Repository deletion does not invalidate credentials or eliminate copies in forks and training datasets. The reporting does not establish that trained models emitted these secrets.
- Control limitations: Default GitHub push protection reduced exposure density for supported credential types by 53%, but 51.8% of live credentials used formats not blocked by default.


