truffle Hog v3.13 releases: Searches through git repositories for secrets, digging deep into commit history and branches
Searches through git repositories for secrets, digging deep into commit history and branches. This is effective at finding secrets accidentally committed.
Trufflehog previously functioned by running entropy checks on git diffs. This functionality still exists, but high signal regex checks have been added, and the ability to suppress entropy checking has also been added.
These features help cut down on noise and makes the tool easier to shove into a devops pipeline.
truffleHog –regex –entropy=False https://github.com/dxa4481/truffleHog.git
How it works
This module will go through the entire commit history of each branch, and check each diff from each commit, and check for secrets. This is both by regex and by entropy. For entropy checks, trufflehog will evaluate the Shannon entropy for both the base64 charset and hexadecimal charset for every blob of text greater than 20 characters comprised of those character sets in each diff. If at any point a high entropy string >20 characters is detected, it will print to the screen.
- Bump cloud.google.com/go/secretmanager from 1.5.0 to 1.7.0 by @dependabot in #820
- [OC-103] – Add Gemini detector by @ahrav in #800
- Show clone path for git repos by @dustin-decker in #823
- 403 on listing user gist should not fail org scan by @dustin-decker in #822
pip install truffleHog
Custom regexes can be added to the following file:
Things like subdomain enumeration, s3 bucket detection, and other useful regexes highly custom to the situation can be added.
Feel free to also contribute high signal regexes upstream that you think will benefit the community. Things like Azure keys, Twilio keys, Google Compute keys, are welcome, provided a high signal regex can be constructed.
Copyright (C) 2017 dxa4481