TruffleHog logo

TruffleHog

Find, verify, and analyze leaked credentials

Open Source Alternative to
Repository activity
  • Stars26.8k
  • Forks2.5k
  • Open Issues465
trufflehog health score - Linux Foundation Insights
License

AGPL-3.0

Languages
  • Go
  • Shell
  • Python
TruffleHog screenshot

About TruffleHog

TruffleHog hunts for leaked credentials: API keys, database passwords, private encryption keys, and more. It looks in a wide range of places, from Git history and filesystems to chats, wikis, logs, object stores, and CI workflows, making it a broad discovery tool rather than just a repo scanner.

What sets it apart is verification. After classifying a finding into one of over 800 secret types, it can actually attempt to log in to confirm whether the secret is still live, separating real present danger from harmless noise. For the most commonly leaked credential types, it goes further and analyzes who created the secret, what it can access, and what permissions it holds.

TruffleHog is open source under the AGPL-3.0 license, with Truffle Security funding the work through an enterprise product. The CLI ships as binaries and a Docker image, with JSON and GitHub Actions output.

Key features

  • Scans Git, filesystems, chats, logs, and object stores
  • Classifies over 800 secret types
  • Verifies whether a found secret is still live
  • Analyzes credentials for owner, access, and permissions
  • JSON and GitHub Actions output

Details

First released
2016
Platforms
CLI · Docker
Deployment
self-hostable · offline
License
AGPL-3.0
Origins
Truffle Security
Latest release
v3.95.5