Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for Trufflehog V3 #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JulianGR
Copy link

The new-ish Trufflehog V3 needs rules in YAML format as specified here: https://docs.trufflesecurity.com/docs/configuration/detectors/

Just as a note, this is a sample new rules file:

detectors:
- name: generic-api-key
  keywords:
  - key
  - api
  - token
  - secret
  - client
  - passwd
  - password
  - auth
  - access
  regex:
    generic-api-key: "(?i)([sample regex]?:]|$)"

I updated the convert-rules.py so that it now accepts trufflehogV2, gitleaks and the new trufflehogV3. Those rules can now be used with the latest release of trufflehog just using the flag --config /path/to/config.yml, being the config.yml the file that the convert-rules.py script outputs.

I also updated the readme for clarification (the current readme has the usage commands in LaTeX format somehow...) and because the old --type trufflehog is now separated in --type trufflehogv2 and --type trufflehogv3 respectively.

Keep up the good work =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant