gitleaks VS trufflehog

Compare gitleaks vs trufflehog and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
gitleaks trufflehog
35 25
15,225 13,863
2.8% 2.7%
8.2 9.9
7 days ago 3 days ago
Go Go
MIT License GNU Affero General Public License v3.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

gitleaks

Posts with mentions or reviews of gitleaks. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-11.
  • How to use Lefthooks in your node project?
    4 projects | dev.to | 11 Apr 2024
    install gitleaks in your machine gitleaks
  • I Analyzed StackOverflow for Secrets
    1 project | news.ycombinator.com | 17 Nov 2023
    > gitleaks : fatal error: runtime: out of memory

    Should be fixed now: https://github.com/gitleaks/gitleaks/pull/1292. Thanks for highlighting this simple change I've been putting off :)

  • [Help Needed] Securing Customized Gitleaks and Backend Communication?
    1 project | /r/cybersecurity | 16 Nov 2023
    I work in IT and we're enhancing our 'Shift Left Security' approach to prevent sensitive data leaks in our GitHub repositories. We've customized Gitleaks to send git-related information (like remote repository, author details, commit hash etc.) to our backend after each commit. This setup helps us monitor Gitleaks usage among our developers. (gitleaks)
  • Go Security Scanner
    2 projects | /r/golang | 8 Jun 2023
    Cool. What features/capabilities are different compared to gitleaks?
  • My boss keeps committing his creds into git
    6 projects | /r/devops | 24 May 2023
    To add my anecdote, testing out Trufflehog versus Gitleaks and detect-secrets the other tools seemed superior on detection rate and easier to work with.
  • Tools for very basic security audits
    1 project | /r/msp | 4 May 2023
    Some tools to consider: Gitleaks - open-source secret scanner for git repositories, files, and directories. Retire.js - dependency check tool for client JS code. Censys - It’s a search engine that you can use, for example, to scan any IP address and check open ports, software versions, location of the servers, etc. If you want to check more tools, you can download this free ebook with a list of recommended security tools: https://brightinventions.pl/blog/app-security-free-ebook/ The listed tools are free or offer free trials.
  • About secret scanning
    1 project | /r/opensourcesecurity | 25 Apr 2023
    bonuses: - https://github.com/trufflesecurity/trufflehog - https://github.com/gitleaks/gitleaks
  • Someone has access to my private repos = I lost 140k
    1 project | /r/github | 19 Apr 2023
    I GET IT I need to follow best practice and not upload any sensitive information, even if its a private repo. But through my 10 yeras of coding it happened twice. However these keys only lived in 2 areas: my laptop and GITHUB. My laptop is pretty secured, and the timing of the above events just make me really think someone internally at Github is running https://github.com/gitleaks/gitleaks on private repos he / she has access to.
  • any open source that checks security vulnerabilities in code?
    3 projects | /r/golang | 8 Mar 2023
    Maybe https://github.com/gitleaks/gitleaks is what you are looking for
  • Securing the software supply chain in the cloud
    9 projects | dev.to | 10 Dec 2022
    Gitleaks

trufflehog

Posts with mentions or reviews of trufflehog. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-27.
  • Seeking help to identify vulnerabilities and secrets in a website backup file
    1 project | /r/HowToHack | 3 Jul 2023
    Trufflehog
  • 1 in 10 developers leaked an API-key in 2022
    3 projects | news.ycombinator.com | 27 May 2023
    Frankly, I think it will take years to replace API-keys (if it will ever happen). Developers are much better-off using CLI tools that prevent leaking secrets by blocking commits to git (e.g., https://github.com/Infisical/infisical or https://github.com/trufflesecurity/trufflehog)
  • My boss keeps committing his creds into git
    6 projects | /r/devops | 24 May 2023
    Trufflehog also offers pre-commit hooks. You can have it report on PRs too.
  • Introducing DeepSecrets: a better appsec tool for secrets scanning
    4 projects | /r/netsec | 27 Apr 2023
  • Nosey Parker: a new scanner to find misplaced secrets in textual data and Git history
    4 projects | /r/netsec | 8 Dec 2022
    Is this not just a another https://github.com/trufflesecurity/trufflehog?
  • Security scanning
    3 projects | /r/devops | 7 Nov 2022
    I agree that code scanning is really important, the best way to convince others is to identify high-risk threats in source code and present them to the decision-makers. For example, scanning Secrets is great for showing how repositories can be a massive vulnerability and identifying some low-hanging fruit, especially in the git history. Attackers are really after git repository access for this reason and there are plenty of open-source or free tools that you can use to illustrate the problem. Git-Secrets, Truffle Hog. These aren't great for a long-term commercial solution, something like GitGuardian is a better commercial tool but if the goal is just to illustrate the problem then finding some high-value secrets with free tools is a good way to convince the security personnel to invest in some solutions. Then the door is open to having more conversations as you have already proven the risk.
  • Thinking Like a Hacker: AWS Keys in Private Repos
    3 projects | dev.to | 26 Oct 2022
    It’s easy to think that it’s only important to scan for secrets in your public-facing repositories, but this real-world data breach proves that you need to treat all code the same from a security perspective. Malicious hackers can use open-source tools like Gitleaks and TruffleHog to quickly detect secrets in massive amounts of code*, without leaving a trace. As a defender, **it’s extremely important to have secret scans tightly integrated into your SDLC* (software development lifecycle) to reduce the risks of exposing them. GitGuardian offers secret scanning for private repositories in their Free, Business, and Enterprise plans.
  • Toyota Accidently Exposed a Secret Key Publicly on GitHub for Five Years
    10 projects | news.ycombinator.com | 13 Oct 2022
    There are software like Trufflehog ( https://github.com/trufflesecurity/trufflehog ), that finds secrets. We are using it at organizational level, but there's always some delay from finding something and getting it reported. I've been meaning to add it both to our CI so our team can notice right away, and even to Git push hooks, to catch these cases early.
  • What are the best tools for Advanced Security Scans similar to GitHub Enterprise
    2 projects | /r/devops | 15 Aug 2022
    https://github.com/trufflesecurity/trufflehog And https://github.com/Yelp/detect-secrets
  • Searching GITHUB
    2 projects | /r/cybersecurity | 17 Jul 2022
    Have you tried trufflehog or gitrob? gitrob trufflehog

What are some alternatives?

When comparing gitleaks and trufflehog you can also consider the following projects:

trivy - Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

git-secrets - Prevents you from committing secrets and credentials into git repositories

detect-secrets - An enterprise friendly way of detecting and preventing secrets in code.

pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.

talisman - Using a pre-commit hook, Talisman validates the outgoing changeset for things that look suspicious — such as tokens, passwords, and private keys.

husky - git hooks made easy

shhgit - Ah shhgit! Find secrets in your code. Secrets detection for your GitHub, GitLab and Bitbucket repositories.

semgrep - Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

roadmap - GitHub public roadmap

sops - Simple and flexible tool for managing secrets

git-filter-repo - Quickly rewrite git repository history (filter-branch replacement)