TruffleHog: free secret scanner that verifies credentials live
TruffleHog is a free AGPL-3.0 command-line tool that finds credentials, not personal data[1] [2]. It scans git, cloud storage, Docker images, the filesystem, Elasticsearch and several SaaS sources, which covers 6 of the 8 kinds of data store, and the open-source edition has no price[2].
Last reviewed ยท Markdown version
At a glance
Where TruffleHog can look
Subcommands scan git, GitHub, GitLab, Hugging Face, Docker, S3, GCS, the filesystem, syslog, CircleCI, Travis CI, Postman, Jenkins, Elasticsearch and stdin[2]. GitHub scans cover organizations, repositories, issues and pull requests, and the alpha github-experimental --object-discovery command scans deleted and hidden commits[2]. Docker images can be scanned from a remote registry, the local daemon or a tarball[2]. The only database target the README names is Elasticsearch; it names no warehouse[2]. The README points to a separate TruffleHog Enterprise product for continuous monitoring of Jira, Slack, Confluence, Microsoft Teams and SharePoint; those sources are not in the open-source subcommand list, and the enterprise product is not covered here[2].
| Kind of store | Named in the documentation | Source |
|---|---|---|
| Object storage | Amazon S3, Google Cloud Storage | [2] |
| Databases | Elasticsearch | [2] |
| Warehouses | None found in the pages cited | [2] |
| SaaS apps | Postman, Jenkins, CircleCI, TravisCI, Hugging Face | [2] |
| File shares | None found in the pages cited | [2] |
| Endpoints | local filesystem (files and directories) | [2] |
| Code repos | git, GitHub, GitLab, Docker images | [2] |
| Logs | syslog | [2] |
How it detects sensitive data
The README says TruffleHog classifies over 800 secret types, and its v3 notes say over 700 detectors support active verification against the provider's API[2]. The pkg/detectors directory held 896 subdirectories on December 4, 2026; that is a directory count, not an official detector count[5]. Each result is marked verified (the API accepted the credential), unverified (found but not confirmed) or unknown (verification failed on a network or API error)[2]. The analyze subcommand sends further requests for about 20 common credential types to list the permissions and resources a key can reach[2]. Custom regex detectors (alpha) are defined in a configuration file; they verify through a webhook that must return 200 OK, and without a verify block they report matches as unverified[2]. The README publishes no accuracy figure, and TruffleHog has no personal-data detectors[2].
What a scan costs
The open-source edition is free under AGPL-3.0 and the README publishes no price for it[2]. S3 scans can be limited by key prefix or file extension, and a skipped object costs no GET request[2]. In CI, --since-commit and --branch limit a git scan to the commits on a branch[2]. Archive scanning has maximum size, depth and timeout flags[2]. It runs on the user's own machine or CI runner, with 12 concurrent workers by default[2]. Unauthenticated GitHub scans are rate-limited, and a personal access token raises the limits[2]. The README gives no throughput figure for normal scans; it says enumerating deleted and hidden GitHub commits takes between 20 minutes and a few hours[2].
Finding data stores nobody listed
It has no discovery of unlisted stores: it scans the sources the user names, and a GitHub --org scan lists and scans every repository in that organization[2].
Deployment and where the data goes
It is a Go command-line program, also available as a GitHub Action and a pre-commit hook[2]. Verification sends each candidate credential to the provider's API; the --no-verification flag turns this off, and results are then reported as unverified[2]. Local git repositories are cloned to a temporary directory before scanning, a guard against malicious git configurations (CVE-2025-41390)[2].
Output: exports, APIs and integrations
Results can be written as plain text, JSON, GitHub Actions annotations or SARIF for upload to GitHub code scanning; SARIF is held in memory until the scan ends[2]. The --results flag limits output to verified, unverified or unknown results[2]. The README names no catalog, ticketing, SIEM or data subject request integration[2].