|
@@ -11,7 +11,7 @@ func PrivateKey() *config.Rule {
|
|
|
r := config.Rule{
|
|
r := config.Rule{
|
|
|
Description: "Private Key",
|
|
Description: "Private Key",
|
|
|
RuleID: "private-key",
|
|
RuleID: "private-key",
|
|
|
- Regex: regexp.MustCompile(`(?i)-----BEGIN[ A-Z0-9_-]{0,100}PRIVATE KEY-----[\s\S-]*KEY----`),
|
|
|
|
|
|
|
+ Regex: regexp.MustCompile(`(?i)-----BEGIN[ A-Z0-9_-]{0,100}PRIVATE KEY( BLOCK)?-----[\s\S-]*KEY----`),
|
|
|
Keywords: []string{"-----BEGIN"},
|
|
Keywords: []string{"-----BEGIN"},
|
|
|
}
|
|
}
|
|
|
|
|
|