Skip to main content

Find secrets in your codebase

Project description

Package Version Python Version Downloads Tests Code Coverage

trufflehog3

This is an enhanced version of the truffleHog scanner

report preview dekstop report preview mobile

Installation

Package is available on PyPI

pip install trufflehog3

Usage

Full API documentation is available at feeltheajf.github.io/trufflehog3.

You can always check available options by running

trufflehog3 --help

Here are some basic examples to get you started

# clone remote Git repository, scan 10 latest commits and output to stdout
$ trufflehog3 --max-depth 10 https://github.com/feeltheajf/trufflehog3

# disable Git history search, scan current directory and save report as JSON
$ trufflehog3 --no-history --format json --output report.json

# render HTML report from JSON
$ trufflehog3 -R report.json --output report.html

New

v3 was heavily updated both under the hood and from API perspective. See below for more details on new features.

Automatic Config Detection

.trufflehog3.yml is automatically detected in the root of the scanned directory. However, you can still specify custom path using -c/--config CLI argument. Do not forget to check out the updated .trufflehog3.yml config file format.

HTML Reports

HTML reports are now much prettier and more useful than ever. You can filter out specific rules or paths on the fly without fiddling with raw data. Have a look at a sample HTML report and try it on your own.

Inline Exclude

Inline nosecret comments are now supported for excluding false positives

# skip all rules
password = ""  # nosecret

# only skip rule with specific id
password = ""  # nosecret: generic.password

If for some reason you would like to avoid such behavior, there is a new --ignore-nosecret CLI flag which will tell trufflehog3 to ignore all inline comments.

Incremental Scan

You can now run an incremental scan by specifying the path to the baseline JSON report as -i/--incremental CLI argument. In this case, only the new issues compared to the baseline will be reported.

Multiprocessing

Multiprocessing support allows for much faster scans. You can alter the number of processes using -p/--processes CLI argument.

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-3.0.3.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trufflehog3-3.0.3-py2.py3-none-any.whl (34.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file trufflehog3-3.0.3.tar.gz.

File metadata

  • Download URL: trufflehog3-3.0.3.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.6

File hashes

Hashes for trufflehog3-3.0.3.tar.gz
Algorithm Hash digest
SHA256 533d89c069d4f88f97f609ba42f60a4c2ee6234b096725f50896714993cef8ff
MD5 870d38e1ee93c73a5f202b3e4b578fcb
BLAKE2b-256 ab161f2071e12f6017087803150bff415ce038aff09ed0d5f3d1f78bb02887f7

See more details on using hashes here.

File details

Details for the file trufflehog3-3.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: trufflehog3-3.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.6

File hashes

Hashes for trufflehog3-3.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0285029c291ed794df0cc1f05a6c1743e5b7a27e8a6901ccc99cc27b8fd17dcd
MD5 a4cee0657dc0b0cecd63073094a4c376
BLAKE2b-256 076d6250dd2e11f0c776a29f1f0faefd446fc14de4e35a7bbc14d333b6044917

See more details on using hashes here.

Supported by

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