Skip to content
otinstaller
Install

OSINT tool

Install trufflehog on Windows, macOS and Linux

Find and verify leaked credentials in git history, files, buckets and more.

secretscodepassive
ot install trufflehog

TruffleHog 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 trufflehog

ot 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=verified

Scan every repository of a GitHub organisation.

ot run trufflehog github --org=example

Scan a folder and print JSON.

ot run trufflehog filesystem ./project --json

ot 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

Projecthttps://github.com/trufflesecurity/trufflehog
LicenceAGPL-3.0
Runs onWindows, macOS and Linux
Takesrepository, directory, url
Sends traffic to the targetNo
Release binaryversion 3.100.1 from github.com/trufflesecurity/trufflehog, verified by SHA-256
Docker imagetrufflesecurity/trufflehog, with --method docker

Questions about trufflehog

How do I install trufflehog on Windows?

Is trufflehog free?

Do I need Go or a compiler to install trufflehog?

How do I update or remove trufflehog?

Install ot

curl -fsSL https://otinstaller.com/install.sh | sh

Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.

More: Secret scanning and cloud storage tools