Skip to content
THREATWIRE

TruffleHog

Find, verify and analyse leaked credentials

Secret scanner with hundreds of credential detectors that can verify whether a found key is live, across Git, cloud storage, chat and more.

Open sourceAGPL-3.0-only
Alternative toGitGuardian
Homepage of TruffleHog
Official website (trufflesecurity.com), captured by ThreatWire.

What TruffleHog does

TruffleHog classifies secrets with a large set of detectors, each tied to a specific service. For many of them it can check whether the credential is still valid by calling the provider's API, which helps teams prioritise live leaks over dead ones.

Sources include Git repositories, GitHub and GitLab organisations, file systems, S3 and GCS buckets, Docker images and several SaaS platforms. Truffle Security also sells an enterprise version; the scanner itself is AGPL-licensed.

Key features

  • Hundreds of service-specific credential detectors
  • Live verification of many credential types
  • Git, cloud storage, Docker and SaaS sources
  • Credential analysis of permissions for some key types
  • Pre-commit and CI integration

Licence

AGPL-3.0-only · GNU AGPL v3 · Open source

Checked by ThreatWire against the repository's licence file on 2026-10-20. GitHub detects: AGPL-3.0.

Security of TruffleHog itself

2 published advisories for TruffleHog in GitHub repository advisories and OSV.dev. Keep the tool updated: security tools often run with broad access.

Sources: GitHub repository advisories, OSV.dev · checked 2026-10-20.

Categories and tags

Secrets detection#secrets#verification#git#go#secret#trufflehog#credentials#security#devsecops#dynamic-analysis

Related tools

  • Gitleaks

    Secret scanner for Git repositories and files

    Fast secret scanner for Git history, directories and stdin, with regex and entropy rules for API keys, tokens and passwords.

    Stars
    30k
    Forks
    2.4k
    Last commit
    2 months ago
    MITOpen sourceSecrets detection
    Alternative toGitGuardian
  • Trivy

    All-in-one scanner for images, code, IaC and clusters

    Scanner from Aqua Security that finds vulnerabilities, misconfigurations, secrets and licences in container images, file systems, repositories and Kubernetes.

    Stars
    39k
    Forks
    776
    Last commit
    today
    Alternative toSnykPrisma Cloud+1
  • Infisical

    Secrets, certificates and access management platform

    Open-core platform to manage application secrets and environment variables across teams and infrastructure, with SDKs, a CLI and secret scanning.

    Stars
    30k
    Forks
    2.4k
    Last commit
    today
    Alternative toHashiCorp Vault
  • Checkov

    Static analysis for infrastructure as code

    Policy-as-code scanner for Terraform, CloudFormation, Kubernetes, Helm, Dockerfiles and more, with graph-based checks across resources.

    Stars
    9.1k
    Forks
    1.4k
    Last commit
    6 days ago
    Apache-2.0Open sourceCloud and IaC security
    Alternative toPrisma CloudWiz+1
Share on X@threatwire_https://www.threatwire.tech/tools/trufflehog