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

+2 -2
View File
@@ -10,7 +10,7 @@ func AdobeClientID() *config.Rule {
r := config.Rule{
Description: "Adobe Client ID (OAuth Web)",
RuleID: "adobe-client-id",
Regex: generateSemiGenericRegex([]string{"adobe"}, hex("32")),
Regex: generateSemiGenericRegex([]string{"adobe"}, hex("32"), true),
SecretGroup: 1,
Keywords: []string{"adobe"},
}
@@ -27,7 +27,7 @@ func AdobeClientSecret() *config.Rule {
r := config.Rule{
Description: "Adobe Client Secret",
RuleID: "adobe-client-secret",
Regex: generateUniqueTokenRegex(`(p8e-)(?i)[a-z0-9]{32}`),
Regex: generateUniqueTokenRegex(`(p8e-)(?i)[a-z0-9]{32}`, true),
Keywords: []string{"p8e-"},
}