mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
Add entropy check to plaid client/secret ID rules (#1213)
This commit is contained in:
1 parent
f0dcd4d9cf
commit
61513d6772
1 file changed
+2
@@ -2412,6 +2412,7 @@ description = "Plaid Client ID"
|
|||||||
id = "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|;]|$)'''
|
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
|
secretGroup = 1
|
||||||
|
entropy = 3.5
|
||||||
keywords = [
|
keywords = [
|
||||||
"plaid",
|
"plaid",
|
||||||
]
|
]
|
||||||
@@ -2421,6 +2422,7 @@ description = "Plaid Secret key"
|
|||||||
id = "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|;]|$)'''
|
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
|
secretGroup = 1
|
||||||
|
entropy = 3.5
|
||||||
keywords = [
|
keywords = [
|
||||||
"plaid",
|
"plaid",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user