BrowseSecurity & networking tools
TruffleHog
Command-line tool that finds leaked credentials in git repos, cloud storage, filesystems and other sources, and checks whether they are live.
Tested on LinuxKnown vulnerabilities
Use it
Before you install: known vulnerabilities
pickfit found 3 known high or critical vulnerabilities in the packages a fresh install brings (OSV.dev, 16 Nov 2026). Weigh this before you install it.
go:github.com/docker/docker v28.5.2+incompatibleDocker: Race condition in docker cp allows bind mount redirection to host path (GHSA-rg2x-37c3-w2rh, high, no fix yet)
See 2 more
go:github.com/docker/docker v28.5.2+incompatible— GHSA-x86f-5xw2-fm2r (high), no fix yetgo:github.com/docker/docker v28.5.2+incompatible— GO-2026-4887 (high), no fix yet
Linux x86_64
These steps ran from a folder named work in the home folder, which already existed. Make it and run them from there:
mkdir -p "$HOME/work" && cd "$HOME/work"download the official install.sh (read before running)
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh -o /tmp/install.shrun install.sh with -b ~/.local/bin, which installs trufflehog v3.99.9 after checking its sha256
sh /tmp/install.sh -b "$HOME"/.local/bin
Verified in pickfit: the commands exactly as its sandbox ran them
For the record only: they name the sandbox's home, /home/sbx.
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh -o /tmp/install.shsh /tmp/install.sh -b /home/sbx/.local/bintrufflehog --versionmkdir -p /home/sbx/work/scan/dir && cat > /home/sbx/work/scan/file1.txt <<'EOF'
[default]
aws_access_key_id = AKIAQX7RZ4MWT2LBNV6K
aws_secret_access_key = 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
EOF
cat > /home/sbx/work/scan/dir/config.env <<'EOF'
GITHUB_TOKEN=ghp_R7tKq2LmX9vB4nWc8Zp1Hs6Jd3Fy5Ga0Ue7T
EOFtrufflehog filesystem scan/file1.txt scan/dir --no-verification --no-updateCheck that it works
trufflehog --versionThe output should contain “trufflehog 3.99.9”.
First thing to try
mkdir -p "$HOME"/work/scan/dir && cat > "$HOME"/work/scan/file1.txt <<'EOF'
[default]
aws_access_key_id = AKIAQX7RZ4MWT2LBNV6K
aws_secret_access_key = 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
EOF
cat > "$HOME"/work/scan/dir/config.env <<'EOF'
GITHUB_TOKEN=ghp_R7tKq2LmX9vB4nWc8Zp1Hs6Jd3Fy5Ga0Ue7T
EOFtrufflehog filesystem scan/file1.txt scan/dir --no-verification --no-updateRun trufflehog filesystem <path> --no-verification --no-update to scan local files or folders for secrets.
What it does
- Find secrets in git, chats, wikis and bucketsTested
How to use it
- Scan files or folders with
trufflehog filesystem <file> <dir> --no-verification --no-update. - Scan a local git repository with
trufflehog git file://<repo> --no-verification --no-update. - Scan a remote repository with
trufflehog git <repo-url> --results=verified --no-update.
- Scan files or folders with
- Identify over 800 types of secretsTested
How to use it
- Run
trufflehog filesystem <file> <dir> --no-verification --no-update. - Read the
Detector Typeline in each result to see what kind of secret was found.
- Run
- Check whether found credentials still workTested
How to use it
- Run
trufflehog git <repo-url> --results=verified --no-updateto show only credentials confirmed as live. - Look for "Found verified result" in the output.
- Run
- Analyze permissions of leaked API keysNot tested
How far pickfit got
Linux x86_64
- Installs
- Starts
- 3 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- scan a git repository for verified secrets
- scan an S3 bucket for leaked credentials
- scan a Docker image for secrets
- check pull request branches for secrets in CI
- scan local files or directories for credentials
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 15 Nov 2026
- Version 3.99.9
Differences the test machine hit
- README: curl ... install.sh | sh -s -- -b /usr/local/bin
In the test: -b /home/sbx/.local/bin, because /usr/local/bin cannot be written without root - README: Expected output shows AWS key AKIAYVP4CIPPERUVIFXG in commit fbc14303, file keys, line 4
In the test: Nothing. The current test_keys repo returns other verified results (an AWS canary key in new_key and a URI in keys) - README: trufflehog git https://github.com/trufflesecurity/test_keys --results=verified
In the test: Network access to GitHub and AWS. Cloning and verifying both need it, so this check cannot pass on an offline rerun