Skip to content

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.

Back to the lesson 1 to 13 of 13
  1. Developers hardcoded API keys and secrets directly into client-side JavaScript instead of keeping them server-side.

    Seen in 4 reports
  2. Employees committed credential files and dotfiles to public repositories.

    Seen in 4 reports
  3. Build scripts printed command output without redacting secrets, so tokens ended up in public CI build logs.

    Seen in 2 reports
  4. A live admin token was pasted into a team chat channel instead of being stored as a secret.

    Seen in 2 reports
  5. Credentials were exposed outside the company through reuse or third-party breaches rather than a flaw in its own systems.

    Seen in 2 reports
  6. Products shipped with hardcoded credentials or encryption keys.

    Seen in 1 report
  7. The CI pipeline printed an authentication token to a public log without masking it.

    Seen in 1 report
  8. Third-party API credentials were embedded in client-side code, with the password stored as an unsalted MD5 hash.

    Seen in 1 report
  9. A third-party app secret was embedded in the client binary instead of being kept on a server.

    Seen in 1 report
  10. A public map token was embedded in client-side code and only protected by a Referer header check.

    Seen in 1 report
  11. Tokens were issued with more permissions than the worker needed and committed to repositories.

    Seen in 1 report
  12. A dangling DNS record for a disused subdomain still resolved externally and exposed source containing a production secret.

    Seen in 1 report
  13. The API endpoint did not enforce the same MFA as the web login.

    Seen in 1 report