Tools/trufflesecurity/trufflehog

trufflehog

Find, verify, and analyze leaked credentials

28.9k ★+147/wkgrowthGoGNU Affero General Public License v3.0 →trending

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 core

Free: 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
Self-hosting ops:trivial
View pricing page →

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
80/100 · A
Adoption27/30
Maintenance25/25
Community11/20
License7/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 26,946 starsActive community: 2,493 forksOrganization account (53 public repos)

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