Преглед изворни кода

Update asymmetric private key regex

Peter Gallagher пре 6 година
родитељ
комит
77f2fdd09a
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      config/default.go

+ 3 - 3
config/default.go

@@ -62,9 +62,9 @@ title = "gitleaks config"
 	tags = ["key", "Slack"]
 
 [[rules]]
-	description = "EC"
-	regex = '''-----BEGIN EC PRIVATE KEY-----'''
-	tags = ["key", "EC"]
+	description = "Asymmetric Private Key"
+	regex = '''-----BEGIN (EC|PGP|DSA|RSA|OPENSSH) PRIVATE KEY( BLOCK)?-----'''
+	tags = ["key", "AsymmetricPrivateKey"]
 
 [[rules]]
 	description = "Generic Credential"