CheckOps
TruffleHog
TruffleHog is Truffle Security's AGPL-3.0 secrets scanner that discovers, classifies (800+ types), verifies and analyses leaked credentials in Git, chats, wikis, logs, object stores and filesystems.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
TruffleHog, from Truffle Security, describes itself as a secrets discovery, classification, validation and analysis tool. Here a secret means a credential a machine uses to authenticate to another machine, such as an API key, database password or private key. The open-source project is AGPL-3.0 with about 29,000 GitHub stars.
Discovery covers many places: Git, chats, wikis, logs, API testing platforms, object stores, filesystems and more. Classification maps findings to over 800 secret types, so you know whether something is an AWS key, a Stripe secret or a Postgres password.
Validation is the standout feature: for secrets it can classify, TruffleHog can try to log in to confirm whether the secret is live. For about 20 of the most commonly leaked credential types, analysis goes further to learn who created the key and what it can access.
Truffle Security also sells TruffleHog Enterprise for continuous monitoring of Git, Jira, Slack, Confluence, Microsoft Teams, SharePoint and more; the README says that revenue funds the open-source work.
Features
- Many sources: Git repositories and history, GitHub/GitLab orgs, filesystems, S3 and other sources.
- 800+ detectors: Classifies secrets by provider and type.
- Live verification: Checks whether a found credential still works.
- Credential analysis: Deep analysis for common credential types to show permissions and resources.
- Custom regex detectors: Add your own patterns.
- Filtering: Entropy and regex filters to reduce false positives.
- CI and pre-commit: Run in pipelines or before commits.
- JSON output: Machine-readable results for triage tooling.
Pros
- Verification cuts noise: Focus on live, dangerous secrets first.
- Broad coverage: Many detectors and sources.
- Open source: Free CLI.
- Actively maintained: Commits in November 2026.
- Enterprise path: Continuous monitoring available commercially.
Cons
- AGPL licence: Check obligations before embedding or modifying.
- Verification sends requests: Live checks contact providers, which some policies may restrict.
- Scanning history is slow: Large repositories with long history take time.
- Enterprise features paid: Continuous monitoring of chat and wiki tools is commercial.
- Rotation is on you: It finds secrets; revoking and rotating them is a separate process.
Usage and Links (Example)
Scan a Git repository and show only verified secrets:
trufflehog git https://github.com/trufflesecurity/test_keys --results=verified
Scan a local filesystem path:
trufflehog filesystem ./src
Tips: run it in CI on pull requests to stop new leaks, run a full-history scan once to find old ones, and have a rotation runbook ready before you start, because verified findings need immediate action.
Resources:
Pricing
The TruffleHog CLI is free and open source (AGPL-3.0). TruffleHog Enterprise is a paid product; see Truffle Security for pricing.
Recommended for?
- Security teams auditing repositories and history for live credentials.
- DevSecOps adding a secrets gate to CI.
- Incident responders checking whether leaked keys are active.
- Not a fit if AGPL terms conflict with how you plan to use it.
Conclusion
TruffleHog stands out for verifying whether leaked secrets are live, which turns a noisy scan into an action list.
Use it in CI and for history audits, and pair it with a fast rotation process.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with TruffleHog side by side.
GGitleaksGitleaks is an MIT-licensed tool for detecting secrets such as passwords, API keys and tokens in Git repositories, files and stdin; it is now feature complete with security-patch-only releases.Compare with TruffleHog
Ddetect-secretsdetect-secrets is Yelp's Apache-2.0, enterprise-friendly module for preventing new secrets entering a codebase, detecting committed secrets and tracking them with a baseline file.Compare with TruffleHog
KKingfisherKingfisher is MongoDB's Apache-2.0 secret scanner and credential response tool in Rust: it detects leaked secrets with hundreds of rules, validates live credentials and maps blast radius.Compare with TruffleHog
TTalismanTalisman is ThoughtWorks' MIT-licensed pre-commit and pre-push hook that inspects outgoing changesets for suspicious content such as tokens, passwords and private keys.Compare with TruffleHog
GGitGuardianGitGuardian is a credential-layer security platform for secrets detection and remediation across code, CI and collaboration tools, available as SaaS or self-hosted, with a free plan.Compare with TruffleHog
TTrivyTrivy is Aqua Security's Apache-2.0 all-in-one scanner for container images, filesystems, Git repos, VM images and Kubernetes, finding CVEs, IaC misconfigurations, secrets, licences and SBOM data.Compare with TruffleHog