# TruffleHog

> Find, verify, and analyze leaked credentials

Source: https://talira.ai/catalog/trufflehog-0249f3m2
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Command-line tool
- Categories: [security / secret scanning](https://talira.ai/categories/security/secret-scanning)
- Platforms: linux, macos, windows, docker[^3]
- Licence: AGPL-3.0-only[^5]
- Pricing: Free and open source[^4][^5]
- Pricing notes: Open source TruffleHog is free under AGPL-3.0. TruffleHog Enterprise is priced on request.
- Free tier: yes[^4][^5]
- Self-hostable: yes[^3]
- Cloud hosted: yes[^4]
- Backed by: [Truffle Security](https://talira.ai/orgs/truffle-security.md)
- Funding: Series B, 2025[^6]

TruffleHog finds leaked credentials and checks whether they still work: it classifies over 800 secret types and, for each one it can classify, logs in to the service to confirm the secret is live, so results can be limited to verified ones. It scans git repositories and their history, [GitHub](https://talira.ai/catalog/github-ppcgj756.md) and [GitLab](https://talira.ai/catalog/gitlab-y85n5jcy.md) organisations, S3 and GCS buckets, [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) images, filesystems, [Postman](https://talira.ai/catalog/postman-tbqb9r2n.md), [Jenkins](https://talira.ai/catalog/jenkins-bh8syzfs.md), [Elasticsearch](https://talira.ai/catalog/elasticsearch-5kvt1ns8.md), Hugging Face and stdin, and runs in CI, as a GitHub Action or as a [pre-commit](https://talira.ai/catalog/pre-commit-ymy35rpp.md) hook. It's AGPL-3.0; Truffle Security sells TruffleHog Enterprise for continuous monitoring of [Slack](https://talira.ai/catalog/slack-bp8cdfdq.md), [Jira](https://talira.ai/catalog/jira-y0fe29m4.md), [Confluence](https://talira.ai/catalog/confluence-gxvsxxee.md) and more.

## Links

- Website: https://trufflesecurity.com/trufflehog
- GitHub: https://github.com/trufflesecurity/trufflehog
- Pricing: https://trufflesecurity.com/pricing

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/trufflehog>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/trufflehog>[^2]

## Problems it solves

- find out whether the API keys leaked in our git history are still valid
- scan every repo in our GitHub organisation for live credentials
- fail the CI build when a pull request adds a working secret
- check our S3 buckets and Docker images for credentials someone left in them
- too many false positives from our secret scanner: only show secrets that actually work
- find out what a leaked key can access and who owns it
- scan deleted commits and forks of our public repo for exposed keys
- block commits containing credentials before they leave a developer's laptop

## Features

- classifies over 800 secret types
- verifies secrets live against their APIs
- deeper analysis of permissions for common credential types
- scans git, GitHub, GitLab, S3, GCS, Docker images, filesystems, Postman, Jenkins, Elasticsearch and Hugging Face
- JSON output and CI mode with --fail
- GitHub Action, GitLab CI and pre-commit hook
- signed release artifacts

## Ways to run it

### TruffleHog

You run it, AGPL-3.0-only. Price: free.[^3]

Self-hosting docs: https://github.com/trufflesecurity/trufflehog

### TruffleHog Enterprise

Hosted by Truffle Security. Price: not published.[^4]

Only in this edition:

- continuous monitoring of Slack, Jira, Confluence, Teams, SharePoint, Google Drive and more
- routing findings to owners with rotation instructions

Pricing: https://trufflesecurity.com/trufflehog-enterprise

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.42 out of 1.
Signals: backing 0.55, extensibility 0.20.

- backed by Truffle Security
- funding: Series B, 2025

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Gitleaks](https://talira.ai/catalog/gitleaks-b0pf99yg.md): Find secrets with Gitleaks
- [GitGuardian](https://talira.ai/catalog/gitguardian-d4py8bka.md): Detect and validate hardcoded secrets across your SDLC
- [GitHub Secret Protection](https://talira.ai/catalog/github-secret-protection-wya2z0sz.md): Secret scanning and push protection for private repositories, per active committer
- [Kingfisher](https://talira.ai/catalog/kingfisher-84p0ekrp.md): Detect secrets. Validate them live. Map blast radius. Revoke fast.
- [detect-secrets](https://talira.ai/catalog/detect-secrets-eb4tk1py.md): An enterprise friendly way of detecting and preventing secrets in code.
- [Snyk](https://talira.ai/catalog/snyk-sw1313nn.md): Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^3]: https://github.com/trufflesecurity/trufflehog/blob/main/README.md (checked 19 Nov 2026)
[^4]: https://trufflesecurity.com/trufflehog-enterprise (checked 19 Nov 2026)
[^5]: https://github.com/trufflesecurity/trufflehog/blob/main/LICENSE (checked 19 Nov 2026)
[^6]: https://trufflesecurity.com/press/series-b (checked 20 Nov 2026)
