瀏覽代碼

Merge pull request #296 from petegallagher/private-key

Update asymmetric private key regex
Zachary Rice 6 年之前
父節點
當前提交
ac6bde9996
共有 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"