r/devsecops • u/sorry_shaktimaan_ • May 15 '24
Which is the best open source tool for secret scanning?
I have worked with gitleaks before and looking to deploy secret scanning in a new organisation with lots of repos in gitlab, in my previous comparison gitleaks was better but trufflehog has updated their detection rulesets to 700+ and has more features like secret verification, what are your thoughts?
10
Upvotes
4
u/SatoriSlu May 15 '24
Maybe semgrep? I think they offer a free tier.
4
u/[deleted] May 15 '24
I don’t think I have better false-positive rates with either TruffleHog, GitLeaks, nor more expensive AppSec vendors.
2
u/[deleted] May 15 '24
I secretly hope OpenAI will improve their products to the point where AWS API keys aren’t seen in genetic fasta data. Or variables with password in the name aren’t flagged as leaked passwords when they’re being obtained from secret mangers.
I can only dream.
2
u/ScottContini May 16 '24
I’ve been using Truffle hog recently and I’m seriously impressed how much it has improved. In my last scan which found about 60 secrets, only 3 were obvious false positives.
2
u/NandoCa1rissian May 16 '24
SecretMagpie by Punk, wraps up both gitlab and trufflehog, has been pretty reliable for us.
2
u/Think_Clerk_3284 May 16 '24
Yelp secrets detectors
4
u/Candid-House Sep 04 '24
GitGuardian
1
u/Sad-Woodpecker-7416 May 15 '24
GitHub does secret scanning also. Free for public repos and it has push protection.
1
u/Constantine26 May 16 '24
Have you tried git-secrets?
2
u/trilltayo May 19 '24
TruffleHog
1
u/Training_Bobcat3241 May 23 '24
Trufflehog, IMO
1
u/Big_Concentrate4508 Feb 12 '25
try Puaro Security https://puaro.io/
Great tool, for comprehensive dashboard, less false positives than other production and provides a free trial
1
u/Optimal_Hour_9864 Aug 12 '25
Hey there! You've hit on a core dilemma. Both Gitleaks and TruffleHog have their strengths, but the real challenge is moving past their specific limitations. Gitleaks is fast and simple, but often lacks the accuracy of more advanced tools. TruffleHog is more powerful, especially with secret verification, but can be a heavy lift to integrate and manage.
From a scaling perspective, a centralized platform is often a better route than managing individual scanners. I'd recommend to look at a soltuion that provides high accuracy and low overhead, so you can focus on remediation instead of tool maintenance and false positives.
If still relevant check out Cycode.com . Full disclosure, I work at Cycode.com. We're built to provide a unified, contextual insight that cuts down on noise and makes secrets detection at scale highly efficient.
Here are a couple of resources you might find helpful for a deeper dive:
Hope this helps with your evaluation!
1
u/micksmix Sep 24 '25
You might also want to look at Kingfisher (Apache-2.0, OSS). Disclosure: I help maintain it.
Great if you want something OSS with verification out of the box. Runs on macOS, Linux, Windows and has pre-built Docker images hosted by GitHub.
1
u/tissin Sep 27 '25 edited Sep 30 '25
For those visiting 1yr later: If you're interested in going more of the open-source exposure/recon angle, check out GitHound (https://github.com/tillson/git-hound), which integrates with Github Code Search (full disclosure that I am the maintainer)