Skip to content

Commit

Permalink
Add entropy check to plaid client/secret ID rules (gitleaks#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenson authored Aug 17, 2023
1 parent f0dcd4d commit 61513d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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",
]
Expand Down

0 comments on commit 61513d6

Please sign in to comment.