Truffle Security Scan Finds Over 543,000 Active Credentials exposed on GitHub

A single glowing brass key embedded inside a translucent glass lock cylinder on a dark blue background.

A scan of public GitHub repositories revealed that more than 543,000 exposed credentials remained valid as of July 2026, according to research published by Truffle Security. The findings highlight persistent challenges in preventing developer data leaks despite automated platform safeguards.

Long Lifespans for Exposed Secrets

Truffle Security evaluated a dataset containing 224 million repositories and over 58 billion files, drawn from a crawl completed on August 7, 2025. Across more than 1.1 million files and repositories—including code forks—researchers identified 543,699 unique working credentials. The median time a unique credential remained publicly accessible was 784 days, with roughly 10% of valid secrets remaining active for more than 6.3 years.

The concentration of exposed credentials in repository files has expanded over time. Research showed active credentials increased from 3.72 per million files in 2015 to a peak of 11.62 per million files in 2025. Truffle Security noted that the total count of valid secrets on GitHub is more than double the 221,303 active credentials it detected during an earlier scan of Hugging Face.

Limits of Platform Push Protection

GitHub introduced its Push Protection mechanism for Advanced Security users in April 2022, brought it to public repositories in May 2023, and enabled it by default in May 2024. The tool checks code for patterns like API keys and blocks uploads when detected. However, it does not revoke previously committed secrets. Among the live credentials identified in July 2026, 199,843—or about 36.8%—were exposed after GitHub turned on default Push Protection for all users in February 2024.

Additionally, 51.8% of the valid credentials fell into patterns not blocked by GitHub's default Push Protection settings, such as database connection strings and Google API keys. Where Push Protection active coverage applied, credential exposure rates dropped by 53%.

Varying Revocation Rates Across Providers

Credential revocation rates varied drastically by platform. Out of 101,886 exposed npm tokens, researchers found only 1 valid token remaining. In contrast, 69,041 out of 126,963 exposed Google Cloud service account keys remained active during testing.

Truffle Security advised organizations to rotate exposed keys immediately, purge repository commit histories, and enforce automatic expiration policies for active credentials. The study noted that while it measures active key exposure, it does not track how many exposed secrets were accessed or abused by malicious actors.

AI-generated editorial illustration; not a documentary photograph.

Source: Over 543,000 valid credentials exposed in public GitHub repositories

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *