mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
Restrict Etsy keywords (#1491)
* feat(etsy): tweak keywords * fix(etsy): make identifiers case sensitive The prior commit didn't work because the identifiers are made intentionally case insensitive. See: https://github.com/gitleaks/gitleaks/blob/4e43d1109303568509596ef5ef576fbdc0509891/cmd/generate/config/utils/generate.go#L35-L37
This commit is contained in:
1 parent
db782603f7
commit
9e06824372
2 files changed
+14
-4
No files matched your search
@@ -390,7 +390,8 @@ keywords = [
|
||||
[[rules]]
|
||||
id = "etsy-access-token"
|
||||
description = "Found an Etsy Access Token, potentially compromising Etsy shop management and customer data."
|
||||
regex = '''(?i)(?:etsy)(?:[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)(?:(?-i:ETSY|etsy|Etsy))(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{24})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"etsy",
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user