OSINT tool
Install trufflehog on Windows, macOS and Linux
Find and verify leaked credentials in git history, files, buckets and more.
ot install trufflehogTruffleHog finds leaked credentials and then tests them. For hundreds of credential types it asks the service whether the key still works, so you know which findings matter. It scans git history, GitHub organisations, file systems, S3 buckets and more.
How to install trufflehog
ot install trufflehogot downloads trufflehog 3.100.1 as a prebuilt binary from github.com/trufflesecurity/trufflehog and verifies its SHA-256 checksum before installing it. Nothing has to be compiled. A Docker image is available as well: ot install trufflehog --method docker.
New to ot? It is one command to install, shown below.
How to use trufflehog
Arguments after the tool's name go straight to trufflehog, so its own documentation applies unchanged.
Scan a repository and show only credentials that still work.
ot run trufflehog git https://github.com/example/repo --results=verifiedScan every repository of a GitHub organisation.
ot run trufflehog github --org=exampleScan a folder and print JSON.
ot run trufflehog filesystem ./project --jsonot run trufflehog --help lists every option. The project's own documentation is at github.com/trufflesecurity/trufflehog.
An AI agent can run trufflehog too: ot mcp serves it over the Model Context Protocol. See OSINT with AI agents.
trufflehog licence, platforms and versions
| Project | https://github.com/trufflesecurity/trufflehog |
| Licence | AGPL-3.0 |
| Runs on | Windows, macOS and Linux |
| Takes | repository, directory, url |
| Sends traffic to the target | No |
| Release binary | version 3.100.1 from github.com/trufflesecurity/trufflehog, verified by SHA-256 |
| Docker image | trufflesecurity/trufflehog, with --method docker |
Questions about trufflehog
How do I install trufflehog on Windows?
Open PowerShell and install ot with irm https://otinstaller.com/install.ps1 | iex. Then run ot install trufflehog. ot fetches a pinned version of trufflehog and keeps it under ~/.ot, apart from the rest of your system.
Is trufflehog free?
Yes. trufflehog is open source, released under the AGPL-3.0 licence. ot, which installs it, is free under the Apache 2.0 licence.
Do I need Go or a compiler to install trufflehog?
No. ot downloads the prebuilt trufflehog binary for your platform and checks its SHA-256 checksum. A mismatch installs nothing.
How do I update or remove trufflehog?
ot update trufflehog moves it to the version pinned in ot's registry, and ot update trufflehog --latest to the newest upstream release. ot remove trufflehog uninstalls it.
Install ot
curl -fsSL https://otinstaller.com/install.sh | shirm https://otinstaller.com/install.ps1 | iexRun it in PowerShell.
Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.