# TruffleHog

[BASE product page](<https://base.akulich.dev/en/library/trufflehog/>) · [Resource](<https://github.com/trufflesecurity/trufflehog>)

ID: trufflehog · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A credential scanner for source code and related sources: it helps find secrets and assess their risk in development workflows\.

## Type

Developer CLI

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/trufflehog/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/trufflehog/#resource-access>)

Code and local use under AGPL\-3\.0\.

## [Paid features and costs](<https://base.akulich.dev/en/library/trufflehog/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/trufflehog/#resource-access>)

Code and local use under AGPL\-3\.0\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/trufflehog/#resource-tasks>)

- Find accidentally published repository credentials
- Inspect findings and determine which credentials require revocation and replacement

## Category IDs

- software
- infrastructure

## Subcategory IDs

- software\.cli
- infrastructure\.developer

## Tags

- TruffleHog
- CLI
- Development

## Also known as

- trufflesecurity/trufflehog
- trufflehog
- secret\-scanner

## [Selection purpose](<https://base.akulich.dev/en/library/trufflehog/#resource-selection>)

Find accidentally published repository credentials

## [Choose this when](<https://base.akulich.dev/en/library/trufflehog/#resource-selection>)

- Find accidentally published repository credentials
- Inspect findings and determine which credentials require revocation and replacement

## [Requirements](<https://base.akulich.dev/en/library/trufflehog/#resource-selection>)

- The README's Docker commands require running Docker\. A local Git repository is cloned to a temporary directory by default to reduce risks from its configuration\.

## [Limitations](<https://base.akulich.dev/en/library/trufflehog/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: AGPL\-3\.0 for the code; copyleft obligations apply to a modified version accessed over a network\.
- Unknown does not mean the secret is invalid\. SARIF accumulates results in memory until scanning ends\. Exit code 183 for detected secrets is used with \-\-fail; error 1 may indicate an incomplete scan\.

## [Questions before use](<https://base.akulich.dev/en/library/trufflehog/#resource-faq>)

### What can you use for free in TruffleHog?

Code and local use under AGPL\-3\.0\.

### What additional costs might arise with TruffleHog?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for TruffleHog?

AGPL\-3\.0 for the code; copyleft obligations apply to a modified version accessed over a network\.

### How do you get started with TruffleHog?

Choose a repository or another supported source for secret scanning\. Inspect findings and determine which credentials require revocation and replacement\. Save the working command or script and the result criteria\.

### What do verified, unknown, and unverified mean in TruffleHog?

Verified means successful secret verification with the provider; unknown means a verification error; unverified means a detected but unconfirmed secret\. Verification contacts the provider's service; disable it with \-\-no\-verification\.

## Sources for the selection guide

- [https://github\.com/trufflesecurity/trufflehog](<https://github.com/trufflesecurity/trufflehog>)
- [https://raw\.githubusercontent\.com/trufflesecurity/trufflehog/HEAD/README\.md](<https://raw.githubusercontent.com/trufflesecurity/trufflehog/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/trufflesecurity/trufflehog/HEAD/LICENSE](<https://raw.githubusercontent.com/trufflesecurity/trufflehog/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/trufflehog/#resource-scenario>)

Find accidentally published repository credentials\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- Project files or environment\.
- A shell and supported platform\.

## Steps

1. Choose a repository or another supported source for secret scanning\.
2. Inspect findings and determine which credentials require revocation and replacement\.
3. Save the working command or script and the result criteria\.

## Check your result

- The command correctly handles paths, Unicode, and invalid inputs\.
- Repeat runs behave predictably; credentials do not appear in the output\.

## [License](<https://base.akulich.dev/en/library/trufflehog/#resource-license>)

AGPL\-3\.0 for the code; copyleft obligations apply to a modified version accessed over a network\.

## License explanations for the specified scope

### AGPL 3\.0 — copyleft with a network\-service condition

Use, modification, and commercial use cases are permitted\. GPL obligations apply to distribution\. If you modify an AGPL\-covered program and let users interact with it over a network, you must offer them the corresponding source code for that version\. This applies to the covered program, not automatically to all your data or independent applications\.

[License terms](<https://opensource.org/license/agpl-3.0>)

## [Sources](<https://base.akulich.dev/en/library/trufflehog/#resource-sources>)

- [Official source](<https://github.com/trufflesecurity/trufflehog>)
- [Official source](<https://raw.githubusercontent.com/trufflesecurity/trufflehog/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/trufflesecurity/trufflehog/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
