18 lines
623 B
JSON
18 lines
623 B
JSON
{
|
|
"id": "stellaops.secrets.private-key-generic",
|
|
"version": "1.0.0",
|
|
"name": "Generic Private Key",
|
|
"description": "Detects generic private keys in PEM format (PKCS#8)",
|
|
"type": "regex",
|
|
"pattern": "-----BEGIN PRIVATE KEY-----[\\s\\S]{100,}-----END PRIVATE KEY-----",
|
|
"severity": "critical",
|
|
"confidence": "high",
|
|
"keywords": ["BEGIN PRIVATE KEY", "END PRIVATE KEY"],
|
|
"filePatterns": ["*.pem", "*.key", "*.txt", "*.env", "*.yml", "*.yaml", "*.json", "*.config"],
|
|
"enabled": true,
|
|
"tags": ["cryptography", "private-key", "pkcs8"],
|
|
"references": [
|
|
"https://www.rfc-editor.org/rfc/rfc5958"
|
|
]
|
|
}
|