In-depth lesson · Leaked secrets
Root causes
Every point the Leaked secrets reports back under this heading, best-backed first, each with the reports it is seen in.
-
Developers hardcoded API keys and secrets directly into client-side JavaScript instead of keeping them server-side.
Seen in 4 reports
-
Employees committed credential files and dotfiles to public repositories.
Seen in 4 reports
-
Build scripts printed command output without redacting secrets, so tokens ended up in public CI build logs.
Seen in 2 reports
-
A live admin token was pasted into a team chat channel instead of being stored as a secret.
Seen in 2 reports
-
Credentials were exposed outside the company through reuse or third-party breaches rather than a flaw in its own systems.
Seen in 2 reports
-
Products shipped with hardcoded credentials or encryption keys.
-
The CI pipeline printed an authentication token to a public log without masking it.
Seen in 1 report
-
Third-party API credentials were embedded in client-side code, with the password stored as an unsalted MD5 hash.
Seen in 1 report
-
A third-party app secret was embedded in the client binary instead of being kept on a server.
Seen in 1 report
-
A public map token was embedded in client-side code and only protected by a Referer header check.
Seen in 1 report
-
Tokens were issued with more permissions than the worker needed and committed to repositories.
Seen in 1 report
-
A dangling DNS record for a disused subdomain still resolved externally and exposed source containing a production secret.
Seen in 1 report
-
The API endpoint did not enforce the same MFA as the web login.
Seen in 1 report