talira

TruffleHog

Find, verify, and analyze leaked credentials

open coreAGPL-3.0-onlyself-hostablefree

TruffleHog finds leaked credentials and checks whether they still work: it classifies over 800 secret types and, for each one it can classify, logs in to the service to confirm the secret is live, so results can be limited to verified ones. It scans git repositories and their history, GitHub and GitLab organisations, S3 and GCS buckets, Docker images, filesystems, Postman, Jenkins, Elasticsearch, Hugging Face and stdin, and runs in CI, as a GitHub Action or as a pre-commit hook. It's AGPL-3.0; Truffle Security sells TruffleHog Enterprise for continuous monitoring of Slack, Jira, Confluence and more.

Ways to install

Problems it solves

  • find out whether the API keys leaked in our git history are still valid
  • scan every repo in our GitHub organisation for live credentials
  • fail the CI build when a pull request adds a working secret
  • check our S3 buckets and Docker images for credentials someone left in them
  • too many false positives from our secret scanner: only show secrets that actually work
  • find out what a leaked key can access and who owns it
  • scan deleted commits and forks of our public repo for exposed keys
  • block commits containing credentials before they leave a developer's laptop

Features

  • classifies over 800 secret types
  • verifies secrets live against their APIs
  • deeper analysis of permissions for common credential types
  • scans git, GitHub, GitLab, S3, GCS, Docker images, filesystems, Postman, Jenkins, Elasticsearch and Hugging Face
  • JSON output and CI mode with --fail
  • GitHub Action, GitLab CI and pre-commit hook
  • signed release artifacts

Ways to run it

TruffleHog

You run it, AGPL-3.0-only

free3

Self-hosting docs

TruffleHog Enterprise

Hosted by Truffle Security

Price not published4

Only in this edition

  • continuous monitoring of Slack, Jira, Confluence, Teams, SharePoint, Google Drive and more
  • routing findings to owners with rotation instructions

Pricing

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what TruffleHog does.

  1. Gitleaks Find secrets with Gitleaks
  2. GitGuardian Detect and validate hardcoded secrets across your SDLC
  3. GitHub Secret Protection Secret scanning and push protection for private repositories, per active committer
  4. Kingfisher Detect secrets. Validate them live. Map blast radius. Revoke fast.
  5. detect-secrets An enterprise friendly way of detecting and preventing secrets in code.
  6. Snyk Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations

Compare TruffleHog with the top 3