2021-05-29 09:16:00 +00:00
|
|
|
id: private-key
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Private Key Detect
|
|
|
|
author: gaurang
|
|
|
|
severity: high
|
2021-06-09 17:29:13 +00:00
|
|
|
tags: token,file
|
2021-05-29 09:16:00 +00:00
|
|
|
|
|
|
|
file:
|
|
|
|
- extensions:
|
|
|
|
- all
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "\"BEGIN OPENSSH PRIVATE KEY\""
|
|
|
|
- "\"BEGIN PRIVATE KEY\""
|
|
|
|
- "\"BEGIN RSA PRIVATE KEY\""
|
|
|
|
- "\"BEGIN DSA PRIVATE KEY\""
|
|
|
|
- "\"BEGIN EC PRIVATE KEY\""
|
|
|
|
- "\"BEGIN PGP PRIVATE KEY BLOCK\""
|
|
|
|
- "\"ssh-rsa\""
|