TruffleHog
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
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.
- +Free and open source
- +Wide range of sources and detectors
- +Verification cuts false positives
- +Actively maintained
- −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
- 01Use it when you need to check an organisation's public repositories for exposed credentials.
- 02Use it when you want to audit your own code and infrastructure for leaked secrets.
Next steps from this result
Suggested from the inputs TruffleHog takes- Found a resultConfirm it with a second, independent source before you record itActive
- Found a new identifierPivot on it only if your scope covers the new targetDepends
Quick start
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 reviewAlternatives to TruffleHog
Listed tools that take the same inputs, closest match first.
- HakrawlerOpen source · ActiveWhat it does
Fast Go web crawler that lists URLs and JavaScript file locations found on a website.
URLNo ratings yetVerified 3d ago - NetworkMinerFreemium · PassiveWhat it does
Network forensics tool that pulls files, images, messages, credentials and host details out of PCAP files.
FileNo ratings yetVerified today - WiresharkOpen source · PassiveWhat it does
Free, open-source network protocol analyzer for capturing and inspecting traffic packet by packet.
FileNo ratings yetVerified today
