truffleHog

TruffleHog

TruffleHog is an open source tool for finding secrets and passwords that have been committed to git repositories. It scans git histories for high entropy strings and secrets, letting developers and security teams find and revoke credentials that have been accidentally committed.
truffleHog image
secrets passwords credentials git

TruffleHog: Open Source Secret Scanner

Discover hidden secrets and passwords in your git repositories with TruffleHog, an open source tool for identifying high entropy strings and credentials.

What is TruffleHog?

TruffleHog is an open source command line tool written in Python that helps developers find secrets and passwords that have accidentally been committed to git repositories. It scans the full commit history of a git repo to find high entropy strings that look like passwords, API keys, tokens, and other secrets.

By scanning git histories, TruffleHog lets developers and security teams identify credentials that have been committed in the past even if they have now been removed from the codebase. This allows revoked credentials to be fully invalidated across an organization to prevent account compromises or unauthorized API access.

Some key features and benefits of TruffleHog include:

  • Scans git repos for secrets and keys that match known patterns for credentials
  • Identifies high entropy strings likely to be passwords or secrets
  • Integration with services like AWS Key Management to validate findings
  • Command line usage for easy automation in CI/CD pipelines
  • Customizable ignores and whitelists to reduce false positives
  • Detailed output with commit info to pinpoint where secrets were committed

TruffleHog brings visibility into accidentally committed secrets, letting developers revoke compromised credentials before they can be used maliciously. Its ease of use and automation make it a valuable tool for securing git repositories.

TruffleHog Features

Features

  1. Scans git repositories for secrets
  2. Identifies high entropy strings that could be passwords/keys
  3. Integrates with GitHub, Bitbucket, GitLab, Azure DevOps
  4. Command line interface and Python API available
  5. Supports regexes to customize secret detection
  6. Generates reports of findings

Pricing

  • Open Source

Pros

Open source and free to use

Easy to install and run

Fast scanning of large codebases

Highly customizable via plugins and regexes

Available as CLI and library for integration

Cons

May generate some false positives

Requires some configuration for best results

Only scans git history, not live codebases


The Best TruffleHog Alternatives

Top Security & Privacy and Secret Scanning and other similar apps like TruffleHog


Gitleaks icon

Gitleaks

Gitleaks is an open source command line tool for detecting hardcoded secrets like passwords, API keys, and tokens in git repositories. It is used to find exposed credentials that were committed accidentally before they are exploited by outside actors.Gitleaks scans git commit history, branches, and commit messages to detect secrets....
Gitleaks image
GitGuardian icon

GitGuardian

GitGuardian is a cybersecurity software designed to help developers keep their code repositories secure. It detects secrets like API keys, database credentials, certificates, etc. that may have been unintentionally committed to public or private code repositories.GitGuardian works by scanning committed source code, pull requests, and public repositories across platforms like...
GitGuardian image
Gitrob icon

Gitrob

Gitrob is an open source command line application used to scan GitHub repositories for sensitive information. It was created by security researcher Michael Henriksen as a way to automate the process of finding misconfigured GitHub repos that leak API keys, authentication credentials, personally identifiable information (PII), and other sensitive data.Here's...
Gitrob image
Repo-security-scanner icon

Repo-security-scanner

repo-security-scanner is an open-source static analysis security vulnerability scanner designed for source code repositories. It enables developers to easily scan their codebases to identify security issues early in the development process.repo-security-scanner scans source code for vulnerabilities including injection attacks, insecure authentication, access control weaknesses, insecure configuration, cross-site scripting flaws, and...
Repo-security-scanner image
Repo-supervisor icon

Repo-supervisor

Repo-supervisor is an open-source repository management and monitoring tool. It provides teams with greater visibility and control over their software repositories hosted on GitHub, GitLab, Bitbucket, and other platforms.Key features of Repo-supervisor include:Centralized dashboard showing recent activity across all connected repositoriesConfigurable notifications when new commits, pulls requests, issues, milestones etc....
Repo-supervisor image
Yara4pentesters icon

Yara4pentesters

yara4pentesters is an open source tool for writing rules and scanning malware using Yara. Yara is a pattern matching tool for analyzing malware. yara4pentesters builds on top of Yara to provide additional functionality useful for penetration testers and malware analysts.Some key features of yara4pentesters include:Comes with over 100 predefined Yara...
Yara4pentesters image