From 61513d67727331bae2d687d5a7589f58d3cb5e24 Mon Sep 17 00:00:00 2001 From: Samuel Mortenson Date: Thu, 17 Aug 2023 10:41:14 -0700 Subject: [PATCH] Add entropy check to plaid client/secret ID rules (#1213) --- config/gitleaks.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/gitleaks.toml b/config/gitleaks.toml index 4b76f7d3..f3ff0b37 100644 --- a/config/gitleaks.toml +++ b/config/gitleaks.toml @@ -2412,6 +2412,7 @@ description = "Plaid Client ID" id = "plaid-client-id" regex = '''(?i)(?:plaid)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{24})(?:['|\"|\n|\r|\s|\x60|;]|$)''' secretGroup = 1 +entropy = 3.5 keywords = [ "plaid", ] @@ -2421,6 +2422,7 @@ description = "Plaid Secret key" id = "plaid-secret-key" regex = '''(?i)(?:plaid)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{30})(?:['|\"|\n|\r|\s|\x60|;]|$)''' secretGroup = 1 +entropy = 3.5 keywords = [ "plaid", ]