
trufflehog
Find, verify, and analyze leaked credentials
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Oct 2026
TruffleHog finds leaked credentials (API keys, passwords, tokens) then tries each one to see if it still works. That verification is the whole point: instead of a wall of random-looking strings, you get a short list of live secrets to rotate. It classifies 800+ secret types, and the CLI is free under AGPLv3.
It's a single Go binary from brew, Docker or a release download. It scans git history, GitHub and GitLab orgs, S3 and GCS buckets, Docker images, filesystems, Postman, Jenkins and Hugging Face. Add --results=verified --fail in CI to fail the build on a live key.
TruffleHog Enterprise adds continuous monitoring of Slack, Jira, Confluence, Teams and SharePoint, a dashboard, SSO, RBAC and revocation tracking. Pricing is contact-sales only. Solo, small and medium teams: the free CLI plus pre-commit hooks covers code. Large orgs: Enterprise, once secrets leak in chat and tickets.
The catch: verification sends every candidate secret to its provider's API; use --no-verification when that's off-limits. The official GitHub Action also let pull request authors hide real findings until v3.98.0, so pin a patched release. Gitleaks (now also run by Truffle Security) is the lighter MIT option; Betterleaks, MIT too, validates secrets as well.
Free vs Self-Hosted vs Paid
open coreFree: The open source CLI is free under AGPLv3 with no feature limits: 800+ detectors with live verification, scanning of git, GitHub, GitLab, S3, GCS, Docker images, filesystems, Postman, Jenkins, Elasticsearch and Hugging Face, plus JSON and SARIF output, GitHub Actions, pre-commit and pre-receive hooks, and custom regex detectors.
Self-hosted: Nothing to host. It's a single Go binary (Homebrew, Docker image, signed release archives with cosign-verifiable checksums, or go install). Cost is CI runner time; org-wide scans of large GitHub organizations take a while but need no infrastructure.
Paid: TruffleHog Enterprise has no public price ("Contact us"). It adds 20+ integrations (Slack, Jira, Confluence, Microsoft Teams, SharePoint, Google Drive and more), on-premises or cloud scanning, continuous monitoring, a dashboard with alerting and reporting, SAML 2.0 or OAuth SSO, role-based access control, onboarding and priority support. Analyze for SaaS, Analyze for Cloud and Forager (public GitHub and npm monitoring) are separate add-ons.
The CLI is free with every detector and verification included. Pay for Enterprise only when you need continuous scanning of Slack, Jira and Confluence plus a shared dashboard, and expect a sales call because there is no public price.
What to do by team size
- Solo
- free; run the CLI or a pre-commit hook
- Small team
- free; wire `--results=verified --fail` into CI
- Medium team
- free CLI in CI covers code; Enterprise if secrets leak in chat and tickets
- Large team
- Enterprise for continuous SaaS monitoring, SSO, RBAC and revocation tracking
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Similar Tools

Find secrets with Gitleaks 🔑

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

Open source secret management platform

A vulnerability scanner for container images and filesystems

Simple and flexible tool for managing secrets

Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: GNU Affero General Public License v3.0
Running it internally is fine; obligations apply when distributing or offering a modified version over a network.
Commercial use: ✓ Yes
About
- Owner
- Truffle Security (Organization)
- Stars
- 28,906
- Forks
- 2,693
Explore Further
More tools in the directory
rea
Reverse engineer anything with agents, from app behavior down to native binaries.
435.8k ★openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
394.0k ★everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
298.1k ★