From 77f2fdd09a0478d95483c3564ef599e3038f46dd Mon Sep 17 00:00:00 2001 From: Peter Gallagher Date: Mon, 25 Nov 2019 15:59:40 +0000 Subject: [PATCH] Update asymmetric private key regex --- config/default.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/default.go b/config/default.go index 614b1b88..4647edd6 100644 --- a/config/default.go +++ b/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"