scanner-cli icon indicating copy to clipboard operation
scanner-cli copied to clipboard

file-secrets module - configurable regex patterns

Open willgarcia opened this issue 5 years ago • 1 comments

Issue Template

Description

Secrets have different forms in code depending on the language or on custom configurations.

It would be good to be able to supply a list of patterns to use during secret detection in replacement or addition to the existing default patterns found in:

https://github.com/hawkeyesec/scanner-cli/blob/master/lib/modules/files-secrets/data.js

Feature Template

As a developer I want to customise the patterns used for secret detection via CLI option or plugin customisation in the .hawkeyerc file So that I can exclude default patterns, or add patterns that are relevant to my code base.

willgarcia avatar Jun 26 '19 09:06 willgarcia

i really like this idea of people being able to bring their own definitions. also, it would tremendously improve the usefulness of this module.

felixhammerl avatar Jun 26 '19 14:06 felixhammerl