Skip to main content

Find secrets in your codebase.

Project description

Package Version Python Version Build Status Code Coverage Downloads Known Vulnerabilities

truffleHog3

This is an enhanced version of truffleHog scanner

New

  • Python 3.6
  • flake8 compliant code
  • output to file option
  • option to disable Git history checks - scan simple files/folders
  • option to exclude files/directories
  • config file support with automatic detection of trufflehog.json config in source code directory

Installation

Package is available on PyPI

pip install truffleHog3

Customizing

List of regexes was moved into repository, see regexes.json

Help

usage: trufflehog3 [options] source

Find secrets in your codebase.

positional arguments:
  source              URL or local path for secret searching

optional arguments:
  -h, --help          show this help message and exit
  -c, --config        path to config file
  -r, --rules         ignore default regexes and source from json
  -o, --output        write report to file
  -b, --branch        name of the branch to be scanned
  -m, --max-depth     max commit depth for searching
  -s, --since-commit  scan starting from a given commit hash
  --json              output in JSON
  --exclude           exclude paths from scan
  --whitelist         skip matching strings
  --no-regex          disable high signal regex checks
  --no-entropy        disable entropy checks
  --no-history        disable commit history check

Thanks

Special thanks to Dylan Ayrey (@dxa4481), developer of the original truffleHog scanner

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

truffleHog3-1.0.10.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

truffleHog3-1.0.10-py2.py3-none-any.whl (15.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page