Security

TruffleHog – secret scanning and credential verification

TruffleHog is a secret scanning tool that identifies exposed credentials across source code, repositories and other data sources. It searches for API keys, database passwords, access tokens, private encryption keys and other sensitive authentication material that may have been accidentally disclosed.

TruffleHog combines secret discovery with classification, validation and analysis. Unlike tools that rely solely on pattern matching, it can test supported credentials against their respective services to determine whether they remain active. This helps security teams prioritise genuine exposures instead of spending time investigating expired or invalid credentials. For selected credential types, it can also investigate the identities, permissions and resources associated with a compromised secret.

This is free and open source software.

Key Features

  • Secret discovery – scans Git repositories, GitHub, GitLab, local filesystems, container images and cloud storage services.
  • Classification – identifies over 800 secret types, including AWS credentials, Stripe API keys, Cloudflare tokens and database passwords.
  • Credential verification – distinguishes verified, unverified and unknown findings, with filtering to focus on particular result types.
  • Credential analysis – investigates account identities, permissions and accessible resources for supported credential types.
  • Git history scanning – examines historical commits and supports restricting scans by branch, commit range or history depth.
  • GitHub scanning – examines individual repositories or organisations, including issue and pull request comments.
  • Custom detectors – supports regular expressions, keyword matching, entropy filtering and optional webhook-based verification.
  • Structured output – generates JSON and SARIF results for automated processing and integration with security reporting systems.
  • Development integration – supports pre-commit hooks, GitHub Actions and GitLab CI pipelines.
  • Configurable scanning – supports detector selection, excluded paths, concurrent workers and exit codes for automated security checks.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/trufflesecurity/trufflehog
Support:
Developer: Truffle Security Co.
License: GNU Affero General Public License v3.0

TruffleHog in action

TruffleHog is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

Secret Scanning Tools
GitleaksDetects secrets and credentials in Git repositories
TruffleHogFinds, classifies and verifies exposed secrets across many sources
detect-secretsHelps detect and prevent secrets from being committed to source code
TalismanChecks Git changes for secrets and sensitive data before they are committed

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted