mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
16 lines
455 B
YAML
16 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|;]|$)"
|