Skip to content
OSINTtools.io

TruffleHog

Verified yesterday

Open-source scanner that finds leaked API keys, passwords and tokens in Git history, files, buckets and more, and checks if they work.

CLI (Linux/macOS/Windows) · Docker · Open source · Infrastructure and domains · trufflesecurity.com

Takes
URL · File
Pricing
Free, open source
Footprint
Depends on configuration
Account
Not needed
API
No public API
Last verified
Nov 25, 2026
Summary

Open-source scanner that finds leaked API keys, passwords and tokens in Git history, files, buckets and more, and checks if they work. It takes URL and file. Read the cons before you build a workflow on it.

What it does

TruffleHog searches for secrets such as API keys, passwords, private keys and auth tokens across Git repositories and their full history, GitHub organisations, filesystems, Docker images, S3 and GCS buckets, CI logs and chat or wiki exports. It has hundreds of detectors and can verify a found credential against the provider to see whether it is still live.

Security researchers and investigators use it to find credentials accidentally exposed in an organisation's public code. Its analyse command can show what a key can access. Verifying or using credentials that are not yours may be illegal; disable verification when you only need to detect.

Footprint is depends: whether the target is contacted depends on which modules or transforms you run. No account is needed. There is no public API.

Pros
  • +Free and open source
  • +Wide range of sources and detectors
  • +Verification cuts false positives
  • +Actively maintained
Cons
  • −Command-line only
  • −Verification contacts third-party services and may be unlawful for credentials you are not authorised to test
  • −Large scans can be slow and noisy

When to use it

  1. 01Use it when you need to check an organisation's public repositories for exposed credentials.
  2. 02Use it when you want to audit your own code and infrastructure for leaked secrets.
Key featuresScans Git history, GitHub, filesystems and bucketsHundreds of credential detectorsLive verification of found secretsPermission analysis for many key typesJSON outputDocker and Homebrew installs

Next steps from this result

Suggested from the inputs TruffleHog takes
  • Found a resultConfirm it with a second, independent source before you record it
  • Found a new identifierPivot on it only if your scope covers the new target
    Depends

Quick start

Homebrew or Docker
brew install trufflehog
docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keys

Technical details

Listing verified by an editor on Nov 25, 2026
API
No public API
Account
Not needed
Footprint
Depends on configuration
Pricing
Free, open source
Platforms
CLI (Linux/macOS/Windows) · Docker
Repository
trufflesecurity/trufflehog 29,664 stars
Language
Go
Licence
AGPL-3.0
Last commit
Nov 2026
Listed
Nov 25

Reviews

No reviews yet

Written by signed-in members. Each review appears here after an editor has read it.

Used TruffleHog? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to TruffleHog

Listed tools that take the same inputs, closest match first.

TruffleHogOpen source · verified yesterday
Visit trufflesecurity.com (opens in new tab)