mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
995eb64d38
* wip examples folder * Rename examples.md to README.md
15 lines
455 B
YAML
15 lines
455 B
YAML
detectors:
|
|
- name: generic-api-key
|
|
keywords:
|
|
- key
|
|
- api
|
|
- token
|
|
- secret
|
|
- client
|
|
- passwd
|
|
- password
|
|
- auth
|
|
- access
|
|
regex:
|
|
# borrowing the gitleaks generic-api-key regex
|
|
generic-api-key: "(?i)(?:key|api|token|secret|client|passwd|password|auth|access)(?:[0-9a-z\\-_\\t .]{0,20})(?:[\\s|']|[\\s|\"]){0,3}(?:=|>|:{1,3}=|\\|\\|:|<=|=>|:|\\?=)(?:'|\"|\\s|=|\\x60){0,5}([0-9a-z\\-_.=]{10,150})(?:['|\"|\\n|\\r|\\s|\\x60|;]|$)"
|