Back to Feed
Open SourceSep 30, 2026

Over 543,000 valid credentials exposed in public GitHub repositories

Over 543,000 valid credentials found in public GitHub repos.

A study by Truffle Security revealed that over 543,000 valid credentials remain exposed in public GitHub repositories, with a median exposure time of 784 days. Despite GitHub's Push Protection feature, a significant portion of these exposed secrets, including database connection strings and Google API keys, are not blocked by default. The research highlights the persistent challenge of credential exposure in code repositories and the need for immediate credential rotation and cleanup.

AI summary of the linked source. Not reviewed by an editor. How this works

Vendor Watch

Run Truffle Security?

Get an email when a new story names Truffle Security, usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

The lesson from this incident

Full lesson

Developers routinely commit API keys, database connection strings, and other secrets directly into public GitHub repositories, often unknowingly or out of convenience. With a median exposure time of 784 days, these credentials remain exploitable long after initial exposure, giving attackers ample time to harvest and abuse them. GitHub's Push Protection feature, while helpful, does not block all secret types by default, leaving significant gaps in automated defenses. This incident underscores that technical controls alone are insufficient — developers must understand why hardcoding credentials is dangerous and organizations must enforce secrets management practices systematically.

What helps against this

How we list vendors

Entities

GitHub (product)Truffle Security (vendor)API keys (technology)access tokens (technology)Google Cloud (product)