feat(rules): make case insensitivity optional (#1215)

This commit is contained in:
Richard Gomez authored and GitHub committed 2023-08-24 10:41:52 -05:00
1 parent 9fb36b242d
commit 18283bb48e
85 files changed
+151 -136

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@ func PlaidAccessID() *config.Rule {
r := config.Rule{
RuleID: "plaid-client-id",
Description: "Plaid Client ID",
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("24")),
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("24"), true),
SecretGroup: 1,
Entropy: 3.5,
Keywords: []string{
@@ -32,7 +32,7 @@ func PlaidSecretKey() *config.Rule {
r := config.Rule{
RuleID: "plaid-secret-key",
Description: "Plaid Secret key",
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("30")),
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("30"), true),
SecretGroup: 1,
Entropy: 3.5,
Keywords: []string{
@@ -53,7 +53,7 @@ func PlaidAccessToken() *config.Rule {
RuleID: "plaid-api-token",
Description: "Plaid API Token",
Regex: generateSemiGenericRegex([]string{"plaid"},
fmt.Sprintf("access-(?:sandbox|development|production)-%s", hex8_4_4_4_12())),
fmt.Sprintf("access-(?:sandbox|development|production)-%s", hex8_4_4_4_12()), true),
SecretGroup: 1,
Keywords: []string{
"plaid",