TruffleHog

TruffleHog

Go-powered security tool that discovers, classifies, and actively verifies leaked API keys and credentials across Git, cloud, and CI.

★ 29.7K

Find and Verify Leaked Credentials Before They Cause a Breach With TruffleHog

A single API key or database password accidentally committed to Git history can stay hidden until an attacker finds it—and simple regex scanners drown teams in false positives. TruffleHog goes beyond pattern matching by discovering, classifying, and actively verifying whether a leaked credential is actually live. With 29.7K GitHub stars and 2,800 forks under the AGPL-3.0 license, this Go-powered scanner is a staple of modern DevSecOps.

What Sets TruffleHog Apart

  • 800+ Secret Detectors With Live Verification: Tests detected keys safely against their target APIs to separate real emergencies from dead test strings.
  • Scans Everywhere Secrets Hide: Audits full Git commit histories, deleted GitHub commits, Docker images, S3/GCS buckets, Hugging Face, Postman, and local files.
  • Deep Permission Analysis: Inspects over 20 major credential types to map out exactly which cloud resources and permissions an exposed key controls.
  • Pre-Commit and CI/CD Ready: Blocks leaks locally via pre-commit hooks or outputs SARIF directly into GitHub Code Scanning on pull requests.

Important Caveats

Active credential verification sends outbound API requests to confirm if a token works; pass –no-verification in air-gapped environments or when policy forbids external pings. Also note that TruffleHog v3 is licensed under AGPL-3.0.

Quick Takeaway

If you want high-signal secret scanning that tells you which leaked keys are genuinely active right now, TruffleHog belongs in your security pipeline.

Ready to try TruffleHog?

Experience the full capabilities on their official website.

Visit Official Website