23 lines
472 B
YAML
23 lines
472 B
YAML
|
id: private-key
|
||
|
|
||
|
info:
|
||
|
name: Private Key Detect
|
||
|
author: gaurang
|
||
|
severity: high
|
||
|
tags: keys,file
|
||
|
|
||
|
file:
|
||
|
- extensions:
|
||
|
- all
|
||
|
- txt
|
||
|
|
||
|
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\""
|