remove secretgroup from default config (#1288)

* remove secretgroup from default config

* update test data and AWS

* leave secretgroup
This commit is contained in:
Zachary Rice authored and GitHub committed 2023-11-10 12:53:07 -06:00
1 parent 20fcf5009f
commit e63b657bcf
93 files changed
+146 -284

No files matched your search

-1
View File
@@ -11,7 +11,6 @@ func AdafruitAPIKey() *config.Rule {
Description: "Adafruit API Key",
RuleID: "adafruit-api-key",
Regex: generateSemiGenericRegex([]string{"adafruit"}, alphaNumericExtendedShort("32"), true),
SecretGroup: 1,
Keywords: []string{"adafruit"},
}
-1
View File
@@ -11,7 +11,6 @@ func AdobeClientID() *config.Rule {
Description: "Adobe Client ID (OAuth Web)",
RuleID: "adobe-client-id",
Regex: generateSemiGenericRegex([]string{"adobe"}, hex("32"), true),
SecretGroup: 1,
Keywords: []string{"adobe"},
}
-1
View File
@@ -11,7 +11,6 @@ func Airtable() *config.Rule {
Description: "Airtable API Key",
RuleID: "airtable-api-key",
Regex: generateSemiGenericRegex([]string{"airtable"}, alphaNumeric("17"), true),
SecretGroup: 1,
Keywords: []string{"airtable"},
}
+2 -2
View File
@@ -29,8 +29,8 @@ func AlibabaSecretKey() *config.Rule {
RuleID: "alibaba-secret-key",
Regex: generateSemiGenericRegex([]string{"alibaba"},
alphaNumeric("30"), true),
SecretGroup: 1,
Keywords: []string{"alibaba"},
Keywords: []string{"alibaba"},
}
// validate
+2 -3
View File
@@ -11,7 +11,6 @@ func AsanaClientID() *config.Rule {
Description: "Asana Client ID",
RuleID: "asana-client-id",
Regex: generateSemiGenericRegex([]string{"asana"}, numeric("16"), true),
SecretGroup: 1,
Keywords: []string{"asana"},
}
@@ -28,8 +27,8 @@ func AsanaClientSecret() *config.Rule {
Description: "Asana Client Secret",
RuleID: "asana-client-secret",
Regex: generateSemiGenericRegex([]string{"asana"}, alphaNumeric("32"), true),
SecretGroup: 1,
Keywords: []string{"asana"},
Keywords: []string{"asana"},
}
// validate
+1 -2
View File
@@ -12,8 +12,7 @@ func Atlassian() *config.Rule {
RuleID: "atlassian-api-token",
Regex: generateSemiGenericRegex([]string{
"atlassian", "confluence", "jira"}, alphaNumeric("24"), true),
SecretGroup: 1,
Keywords: []string{"atlassian", "confluence", "jira"},
Keywords: []string{"atlassian", "confluence", "jira"},
}
// validate
-1
View File
@@ -13,7 +13,6 @@ func Authress() *config.Rule {
r := config.Rule{
Description: "Authress Service Client Access Key",
RuleID: "authress-service-client-access-key",
SecretGroup: 1,
Regex: generateUniqueTokenRegex(`(?:sc|ext|scauth|authress)_[a-z0-9]{5,30}\.[a-z0-9]{4,6}\.acc[_-][a-z0-9-]{10,32}\.[a-z0-9+/_=-]{30,120}`, true),
Keywords: []string{"sc_", "ext_", "scauth_", "authress_"},
}
+1 -1
View File
@@ -12,7 +12,7 @@ func AWS() *config.Rule {
Description: "AWS",
RuleID: "aws-access-token",
Regex: regexp.MustCompile(
"(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}"),
"(?:A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}"),
Keywords: []string{
"AKIA",
"AGPA",
-1
View File
@@ -10,7 +10,6 @@ func Beamer() *config.Rule {
r := config.Rule{
Description: "Beamer API token",
RuleID: "beamer-api-token",
SecretGroup: 1,
Regex: generateSemiGenericRegex([]string{"beamer"},
`b_[a-z0-9=_\-]{44}`, true),
Keywords: []string{"beamer"},
+2 -3
View File
@@ -11,7 +11,6 @@ func BitBucketClientID() *config.Rule {
Description: "Bitbucket Client ID",
RuleID: "bitbucket-client-id",
Regex: generateSemiGenericRegex([]string{"bitbucket"}, alphaNumeric("32"), true),
SecretGroup: 1,
Keywords: []string{"bitbucket"},
}
@@ -28,8 +27,8 @@ func BitBucketClientSecret() *config.Rule {
Description: "Bitbucket Client Secret",
RuleID: "bitbucket-client-secret",
Regex: generateSemiGenericRegex([]string{"bitbucket"}, alphaNumericExtended("64"), true),
SecretGroup: 1,
Keywords: []string{"bitbucket"},
Keywords: []string{"bitbucket"},
}
// validate
+2 -3
View File
@@ -11,7 +11,6 @@ func BittrexAccessKey() *config.Rule {
Description: "Bittrex Access Key",
RuleID: "bittrex-access-key",
Regex: generateSemiGenericRegex([]string{"bittrex"}, alphaNumeric("32"), true),
SecretGroup: 1,
Keywords: []string{"bittrex"},
}
@@ -28,8 +27,8 @@ func BittrexSecretKey() *config.Rule {
Description: "Bittrex Secret Key",
RuleID: "bittrex-secret-key",
Regex: generateSemiGenericRegex([]string{"bittrex"}, alphaNumeric("32"), true),
SecretGroup: 1,
Keywords: []string{"bittrex"},
Keywords: []string{"bittrex"},
}
// validate
-1
View File
@@ -11,7 +11,6 @@ func CodecovAccessToken() *config.Rule {
RuleID: "codecov-access-token",
Description: "Codecov Access Token",
Regex: generateSemiGenericRegex([]string{"codecov"}, alphaNumeric("32"), true),
SecretGroup: 1,
Keywords: []string{
"codecov",
},
-1
View File
@@ -12,7 +12,6 @@ func CoinbaseAccessToken() *config.Rule {
Description: "Coinbase Access Token",
Regex: generateSemiGenericRegex([]string{"coinbase"},
alphaNumericExtendedShort("64"), true),
SecretGroup: 1,
Keywords: []string{
"coinbase",
},
+1 -2
View File
@@ -11,7 +11,6 @@ func ConfluentSecretKey() *config.Rule {
RuleID: "confluent-secret-key",
Description: "Confluent Secret Key",
Regex: generateSemiGenericRegex([]string{"confluent"}, alphaNumeric("64"), true),
SecretGroup: 1,
Keywords: []string{
"confluent",
},
@@ -30,7 +29,7 @@ func ConfluentAccessToken() *config.Rule {
RuleID: "confluent-access-token",
Description: "Confluent Access Token",
Regex: generateSemiGenericRegex([]string{"confluent"}, alphaNumeric("16"), true),
SecretGroup: 1,
Keywords: []string{
"confluent",
},
+1 -2
View File
@@ -12,8 +12,7 @@ func Contentful() *config.Rule {
RuleID: "contentful-delivery-api-token",
Regex: generateSemiGenericRegex([]string{"contentful"},
alphaNumericExtended("43"), true),
SecretGroup: 1,
Keywords: []string{"contentful"},
Keywords: []string{"contentful"},
}
// validate
-1
View File
@@ -12,7 +12,6 @@ func DatadogtokenAccessToken() *config.Rule {
Description: "Datadog Access Token",
Regex: generateSemiGenericRegex([]string{"datadog"},
alphaNumeric("40"), true),
SecretGroup: 1,
Keywords: []string{
"datadog",
},
@@ -14,9 +14,6 @@ func DefinedNetworkingAPIToken() *config.Rule {
// Unique ID for the rule
RuleID: "defined-networking-api-token",
// Regex capture group for the actual secret
SecretGroup: 1,
// Regex used for detecting secrets. See regex section below for more details
Regex: generateSemiGenericRegex([]string{"dnkey"}, `dnkey-[a-z0-9=_\-]{26}-[a-z0-9=_\-]{52}`, true),
+6 -7
View File
@@ -9,7 +9,6 @@ func DigitalOceanPAT() *config.Rule {
r := config.Rule{
Description: "DigitalOcean Personal Access Token",
RuleID: "digitalocean-pat",
SecretGroup: 1,
Regex: generateUniqueTokenRegex(`dop_v1_[a-f0-9]{64}`, true),
Keywords: []string{"dop_v1_"},
}
@@ -24,9 +23,9 @@ func DigitalOceanOAuthToken() *config.Rule {
r := config.Rule{
Description: "DigitalOcean OAuth Access Token",
RuleID: "digitalocean-access-token",
SecretGroup: 1,
Regex: generateUniqueTokenRegex(`doo_v1_[a-f0-9]{64}`, true),
Keywords: []string{"doo_v1_"},
Regex: generateUniqueTokenRegex(`doo_v1_[a-f0-9]{64}`, true),
Keywords: []string{"doo_v1_"},
}
tps := []string{
@@ -39,9 +38,9 @@ func DigitalOceanRefreshToken() *config.Rule {
r := config.Rule{
Description: "DigitalOcean OAuth Refresh Token",
RuleID: "digitalocean-refresh-token",
SecretGroup: 1,
Regex: generateUniqueTokenRegex(`dor_v1_[a-f0-9]{64}`, true),
Keywords: []string{"dor_v1_"},
Regex: generateUniqueTokenRegex(`dor_v1_[a-f0-9]{64}`, true),
Keywords: []string{"dor_v1_"},
}
tps := []string{
-3
View File
@@ -11,7 +11,6 @@ func DiscordAPIToken() *config.Rule {
Description: "Discord API key",
RuleID: "discord-api-token",
Regex: generateSemiGenericRegex([]string{"discord"}, hex("64"), true),
SecretGroup: 1,
Keywords: []string{"discord"},
}
@@ -28,7 +27,6 @@ func DiscordClientID() *config.Rule {
Description: "Discord client ID",
RuleID: "discord-client-id",
Regex: generateSemiGenericRegex([]string{"discord"}, numeric("18"), true),
SecretGroup: 1,
Keywords: []string{"discord"},
}
@@ -45,7 +43,6 @@ func DiscordClientSecret() *config.Rule {
Description: "Discord client secret",
RuleID: "discord-client-secret",
Regex: generateSemiGenericRegex([]string{"discord"}, alphaNumericExtended("32"), true),
SecretGroup: 1,
Keywords: []string{"discord"},
}
+1 -1
View File
@@ -11,7 +11,7 @@ func DroneciAccessToken() *config.Rule {
RuleID: "droneci-access-token",
Description: "Droneci Access Token",
Regex: generateSemiGenericRegex([]string{"droneci"}, alphaNumeric("32"), true),
SecretGroup: 1,
Keywords: []string{
"droneci",
},
+2 -2
View File
@@ -11,8 +11,8 @@ func DropBoxAPISecret() *config.Rule {
Description: "Dropbox API secret",
RuleID: "dropbox-api-token",
Regex: generateSemiGenericRegex([]string{"dropbox"}, alphaNumeric("15"), true),
SecretGroup: 1,
Keywords: []string{"dropbox"},
Keywords: []string{"dropbox"},
}
// validate
+1 -1
View File
@@ -11,7 +11,7 @@ func EtsyAccessToken() *config.Rule {
RuleID: "etsy-access-token",
Description: "Etsy Access Token",
Regex: generateSemiGenericRegex([]string{"etsy"}, alphaNumeric("24"), true),
SecretGroup: 1,
Keywords: []string{
"etsy",
},
+2 -2
View File
@@ -11,8 +11,8 @@ func Facebook() *config.Rule {
Description: "Facebook Access Token",
RuleID: "facebook",
Regex: generateSemiGenericRegex([]string{"facebook"}, hex("32"), true),
SecretGroup: 1,
Keywords: []string{"facebook"},
Keywords: []string{"facebook"},
}
// validate
+2 -2
View File
@@ -11,8 +11,8 @@ func FastlyAPIToken() *config.Rule {
Description: "Fastly API key",
RuleID: "fastly-api-token",
Regex: generateSemiGenericRegex([]string{"fastly"}, alphaNumericExtended("32"), true),
SecretGroup: 1,
Keywords: []string{"fastly"},
Keywords: []string{"fastly"},
}
// validate
+4 -4
View File
@@ -11,8 +11,8 @@ func FinicityClientSecret() *config.Rule {
Description: "Finicity Client Secret",
RuleID: "finicity-client-secret",
Regex: generateSemiGenericRegex([]string{"finicity"}, alphaNumeric("20"), true),
SecretGroup: 1,
Keywords: []string{"finicity"},
Keywords: []string{"finicity"},
}
// validate
@@ -28,8 +28,8 @@ func FinicityAPIToken() *config.Rule {
Description: "Finicity API token",
RuleID: "finicity-api-token",
Regex: generateSemiGenericRegex([]string{"finicity"}, hex("32"), true),
SecretGroup: 1,
Keywords: []string{"finicity"},
Keywords: []string{"finicity"},
}
// validate
+1 -1
View File
@@ -11,7 +11,7 @@ func FinnhubAccessToken() *config.Rule {
RuleID: "finnhub-access-token",
Description: "Finnhub Access Token",
Regex: generateSemiGenericRegex([]string{"finnhub"}, alphaNumeric("20"), true),
SecretGroup: 1,
Keywords: []string{
"finnhub",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func FlickrAccessToken() *config.Rule {
RuleID: "flickr-access-token",
Description: "Flickr Access Token",
Regex: generateSemiGenericRegex([]string{"flickr"}, alphaNumeric("32"), true),
SecretGroup: 1,
Keywords: []string{
"flickr",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func FreshbooksAccessToken() *config.Rule {
RuleID: "freshbooks-access-token",
Description: "Freshbooks Access Token",
Regex: generateSemiGenericRegex([]string{"freshbooks"}, alphaNumeric("64"), true),
SecretGroup: 1,
Keywords: []string{
"freshbooks",
},
+1 -1
View File
@@ -30,7 +30,7 @@ func GCPAPIKey() *config.Rule {
RuleID: "gcp-api-key",
Description: "GCP API key",
Regex: generateUniqueTokenRegex(`AIza[0-9A-Za-z\\-_]{35}`, true),
SecretGroup: 1,
Keywords: []string{
"AIza",
},
-1
View File
@@ -20,7 +20,6 @@ func GenericCredential() *config.Rule {
"auth",
"access",
}, `[0-9a-z\-_.=]{10,150}`, true),
SecretGroup: 1,
Keywords: []string{
"key",
"api",
+1 -1
View File
@@ -12,7 +12,7 @@ func GitterAccessToken() *config.Rule {
Description: "Gitter Access Token",
Regex: generateSemiGenericRegex([]string{"gitter"},
alphaNumericExtendedShort("40"), true),
SecretGroup: 1,
Keywords: []string{
"gitter",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func GoCardless() *config.Rule {
RuleID: "gocardless-api-token",
Description: "GoCardless API token",
Regex: generateSemiGenericRegex([]string{"gocardless"}, `live_(?i)[a-z0-9\-_=]{40}`, true),
SecretGroup: 1,
Keywords: []string{
"live_",
"gocardless",
+9 -9
View File
@@ -10,9 +10,9 @@ func GrafanaApiKey() *config.Rule {
r := config.Rule{
Description: "Grafana api key (or Grafana cloud api key)",
RuleID: "grafana-api-key",
SecretGroup: 1,
Regex: generateUniqueTokenRegex(`eyJrIjoi[A-Za-z0-9]{70,400}={0,2}`, true),
Keywords: []string{"eyJrIjoi"},
Regex: generateUniqueTokenRegex(`eyJrIjoi[A-Za-z0-9]{70,400}={0,2}`, true),
Keywords: []string{"eyJrIjoi"},
}
// validate
@@ -29,9 +29,9 @@ func GrafanaCloudApiToken() *config.Rule {
r := config.Rule{
Description: "Grafana cloud api token",
RuleID: "grafana-cloud-api-token",
SecretGroup: 1,
Regex: generateUniqueTokenRegex(`glc_[A-Za-z0-9+/]{32,400}={0,2}`, true),
Keywords: []string{"glc_"},
Regex: generateUniqueTokenRegex(`glc_[A-Za-z0-9+/]{32,400}={0,2}`, true),
Keywords: []string{"glc_"},
}
// validate
@@ -48,9 +48,9 @@ func GrafanaServiceAccountToken() *config.Rule {
r := config.Rule{
Description: "Grafana service account token",
RuleID: "grafana-service-account-token",
SecretGroup: 1,
Regex: generateUniqueTokenRegex(`glsa_[A-Za-z0-9]{32}_[A-Fa-f0-9]{8}`, true),
Keywords: []string{"glsa_"},
Regex: generateUniqueTokenRegex(`glsa_[A-Za-z0-9]{32}_[A-Fa-f0-9]{8}`, true),
Keywords: []string{"glsa_"},
}
// validate
+2 -2
View File
@@ -10,8 +10,8 @@ func Heroku() *config.Rule {
Description: "Heroku API Key",
RuleID: "heroku-api-key",
Regex: generateSemiGenericRegex([]string{"heroku"}, hex8_4_4_4_12(), true),
SecretGroup: 1,
Keywords: []string{"heroku"},
Keywords: []string{"heroku"},
}
// validate
+2 -2
View File
@@ -11,8 +11,8 @@ func HubSpot() *config.Rule {
RuleID: "hubspot-api-key",
Regex: generateSemiGenericRegex([]string{"hubspot"},
`[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}`, true),
SecretGroup: 1,
Keywords: []string{"hubspot"},
Keywords: []string{"hubspot"},
}
// validate
+4 -4
View File
@@ -18,8 +18,8 @@ func HuggingFaceAccessToken() *config.Rule {
RuleID: "huggingface-access-token",
Description: "Hugging Face Access token",
Regex: regexp.MustCompile(`(?:^|[\\'"` + "`" + ` >=:])(hf_[a-zA-Z]{34})(?:$|[\\'"` + "`" + ` <])`),
SecretGroup: 1,
Entropy: 1,
Entropy: 1,
Keywords: []string{
"hf_",
},
@@ -73,8 +73,8 @@ func HuggingFaceOrganizationApiToken() *config.Rule {
RuleID: "huggingface-organization-api-token",
Description: "Hugging Face Organization API token",
Regex: regexp.MustCompile(`(?:^|[\\'"` + "`" + ` >=:\(,)])(api_org_[a-zA-Z]{34})(?:$|[\\'"` + "`" + ` <\),])`),
SecretGroup: 1,
Entropy: 2,
Entropy: 2,
Keywords: []string{
"api_org_",
},
-1
View File
@@ -15,7 +15,6 @@ func InfracostAPIToken() *config.Rule {
RuleID: "infracost-api-token",
// Regex capture group for the actual secret
SecretGroup: 1,
// Regex used for detecting secrets. See regex section below for more details
Regex: generateUniqueTokenRegex(`ico-[a-zA-Z0-9]{32}`, true),
+2 -2
View File
@@ -11,8 +11,8 @@ func Intercom() *config.Rule {
Description: "Intercom API Token",
RuleID: "intercom-api-key",
Regex: generateSemiGenericRegex([]string{"intercom"}, alphaNumericExtended("60"), true),
SecretGroup: 1,
Keywords: []string{"intercom"},
Keywords: []string{"intercom"},
}
// validate
-2
View File
@@ -19,7 +19,6 @@ func JFrogAPIKey() *config.Rule {
RuleID: "jfrog-api-key",
// Regex capture group for the actual secret
SecretGroup: 1,
// Regex used for detecting secrets. See regex section below for more details
Regex: generateSemiGenericRegex(keywords, alphaNumeric("73"), true),
@@ -46,7 +45,6 @@ func JFrogIdentityToken() *config.Rule {
RuleID: "jfrog-identity-token",
// Regex capture group for the actual secret
SecretGroup: 1,
// Regex used for detecting secrets. See regex section below for more details
Regex: generateSemiGenericRegex(keywords, alphaNumeric("64"), true),
+5 -5
View File
@@ -24,7 +24,7 @@ func JWT() *config.Rule {
`https://dai2-playlistserver.aws.syncbak.com/cpl/20980038/dai2v5/1.0/7b2264657669636554797065223a387d/master.m3u8?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkdyYXkyMDE2MDgyOSJ9.eyJtaWQiOiIyMDk4MDAzOCIsImNpZCI6MjE5MDMsInNpZCI6MTU4LCJtZDUiOiIwN2QxMmRjNjAwOTM2MGI0MmY3NjNkNTRiMWIwZjI1NCIsImlhdCI6MTY2MDkxMzU2MCwiZXhwIjoxNjkyNDQ5NTYwLCJpc3MiOiJTeW5jYmFrIChURykifQ.JrWVgwzIn_RcNuWhkzIjr1i4qjXU1v4n0KFrSzoTQvQ`, // gitleaks:allow `
`"SessionToken": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiI2TjJCQUxYN0VMTzgyN0RYUzNHSyIsImFjciI6IjAiLCJhdWQiOiJhY2NvdW50IiwiYXV0aF90aW1lIjoxNTY5OTEwNTUyLCJhenAiOiJhY2NvdW50IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJleHAiOjE1Njk5MTQ1NTQsImlhdCI6MTU2OTkxMDk1NCwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgxL2F1dGgvcmVhbG1zL2RlbW8iLCJqdGkiOiJkOTk4YTBlZS01NDk2LTQ4OWYtYWJlMi00Z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at":"2021-02-14T20:41:01Z"}`, // gitleaks:allow
`curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiQVBJIl0sImV4cCI6MTYxMzMzNTI2MSwianRpIjoiYzBrb2gxZmNkcnBjaHNzMGZwZmciLCJuYmYiOjE2MTMzMzQ2MzEsInBlcm1pc3Npb25zIjpbIioiXSwic3ViIjoiYUJ0SHUwMHNBUmxzZ29yeEtLQ1pZZWVqSTRKVTlXbThHSGNiVWtWVmc1TT0iLCJ1c2VybmFtZSI6ImFkbWluIn0.WiyqvUF-92zCr--y4Q_sxn-tPnISFzGZd_exsG-K7ME" "http://127.0.0.1:8080/api/v2/dumpdata?output-data=1"`, // gitleaks:allow
`"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiZ3Vlc3QiLCJzdWIiOiJZV3hwWTJVPSIsIm5iZiI6MTUxNDg1MTEzOSwiZXhwIjoxNjQxMDgxNTM5fQ.K5DnnbbIOspRbpCr2IKXE9cPVatGOCBrBQobQmBmaeU"`, // gitleaks:allow
{"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiQVBJIl0sImV4cCI6MTYxMzMzNTI2MSwianRpIjoiYzBrb2gxZmNkcnBjaHNzMGZwZmciLCJuYmYiOjE2MTMzMzQ2MzEsInBlcm1pc3Npb25zIjpbIioiXSwic3ViIjoiYUJ0SHUwMHNBUmxzZ29yeEtLQ1pZZWVqSTRKVTlXbThHSGNiVWtWVmc1TT0iLCJ1c2VybmFtZSI6ImFkbWluIn0.WiyqvUF-92zCr--y4Q_sxn-tPnISFzGZd_exsG-K7ME","expires_at":"2021-02-14T20:41:01Z"}`, // gitleaks:allow
`curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiQVBJIl0sImV4cCI6MTYxMzMzNTI2MSwianRpIjoiYzBrb2gxZmNkcnBjaHNzMGZwZmciLCJuYmYiOjE2MTMzMzQ2MzEsInBlcm1pc3Npb25zIjpbIioiXSwic3ViIjoiYUJ0SHUwMHNBUmxzZ29yeEtLQ1pZZWVqSTRKVTlXbThHSGNiVWtWVmc1TT0iLCJ1c2VybmFtZSI6ImFkbWluIn0.WiyqvUF-92zCr--y4Q_sxn-tPnISFzGZd_exsG-K7ME" "http://127.0.0.1:8080/api/v2/dumpdata?output-data=1"`, // gitleaks:allow
`"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiZ3Vlc3QiLCJzdWIiOiJZV3hwWTJVPSIsIm5iZiI6MTUxNDg1MTEzOSwiZXhwIjoxNjQxMDgxNTM5fQ.K5DnnbbIOspRbpCr2IKXE9cPVatGOCBrBQobQmBmaeU"`, // gitleaks:allow
`{"signatures": [ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlcyI6W3sibmFtZSI6Ii5tYW5pZmVzdCIsImhhc2giOiJjMjEzMTU0NGM3MTZhMjVhNWUzMWY1MDQzMDBmNTI0MGU4MjM1Y2FkYjlhNTdmMGJkMWI2ZjRiZDc0YjI2NjEyIiwiYWxnb3JpdGhtIjoiU0hBMjU2In0seyJuYW1lIjoicm9sZXMvYmluZGluZ3MvZGF0YS5qc29uIiwiaGFzaCI6IjQyY2ZlNjc2OGI1N2JiNWY3NTAzYzE2NWMyOGRkMDdhYzViODEzNTU0ZWJjODUwZjJjYzM1ODQzZTcxMzdiMWQifV0sImlhdCI6MTU5MjI0ODAyNywiaXNzIjoiSldUU2VydmljZSIsImtleWlkIjoibXlQdWJsaWNLZXkiLCJzY29wZSI6IndyaXRlIn0.ZjtUgXC6USwmhv4XP9gFH6MzZwpZrGpAL_2sTK1P-mg"]}`, // gitleaks:allow
`"id_token": "eyJ4NXQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJraWQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJQb0VnWFA2dVZPNDVJc0VOUm5nRFhqNUF1NVlhIiwiYXpwIjoiUG9FZ1hQNnVWTzQ1SXNFTlJuZ0RYajVBdTVZYSIsImlzcyI6Imh0dHBzOlwvXC9sb2NhbGhvc3Q6OTQ0M1wvb2F1dGgyXC90b2tlbiIsImV4cCI6MTUzNDg5MTc3OCwiaWF0IjoxNTM0ODg4MTc4LCJqdGkiOiIxODQ0MzI5Yy1kNjVhLTQ4YTMtODIyOC05ZGY3M2ZlODNkNTYifQ.ELZ8ujk2Xp9xTGgMqnCa5ehuimaAPXWlSCW5QeBbTJIT4M5OB_2XEVIV6p89kftjUdKu50oiYe4SbfrxmLm6NGSGd2qxkjzJK3SRKqsrmVWEn19juj8fz1neKtUdXVHuSZu6ws_bMDy4f_9hN2Jv9dFnkoyeNT54r4jSTJ4A2FzN2rkiURheVVsc8qlm8O7g64Az-5h4UGryyXU4zsnjDCBKYk9jdbEpcUskrFMYhuUlj1RWSASiGhHHHDU5dTRqHkVLIItfG48k_fb-ehU60T7EFWH1JBdNjOxM9oN_yb0hGwOjLUyCUJO_Y7xcd5F4dZzrBg8LffFmvJ09wzHNtQ",`, // gitleaks:allow
` # The following default key is generated by the local Supabase start and doesn't change
@@ -51,7 +51,7 @@ func JWT() *config.Rule {
target="_blank"
href="https://demo.kuboard.cn/dashboard?k8sToken=eyJhbGciOiJSUzI1NiIsImtpZCI6InZ6SzVqZFNJOXZFMmxQSkhXamNBcFY4RU9FR0RvSUR5bzJIY0NwVG1zODQifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt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ZSI6WyJUZXN0Il0sIm1haWwiOlsiVGVzdEBleGFtcGxlLmNvbSJdLCJvcmdhbml6YXRpb24iOlsiWC1YeHh4eHguMTIzNCJdLCJsb2NhdGlvbiI6WyIxMjMyMSJdLCJ1bml0IjpbIjEwMyJdLCJjb3VudHJ5IjpbIkNOIl0sInVzZXJUeXBlIjoiZW1wbG95ZWUifSwiaWRlbnRpdHktaWQiOiJNb2NrIn0.EK5TbwsIgde3mT3n7NK2W7TCvpgQQLzshvPPANRQeUmKOv2AWbo_7vNEDTSkwUlaHRN3-dknv8F95p5MsGTzH6Uva8aOPJG6JdBIoYX_ud3aBN-hY1i2Xpf8pqjeINfY3_gDNAB9gdMznEej2uqhPwUXmZtcuWPdUCCeNqPJbRUAJeVXxLr_JtQzO2jmuwNY_YYp7KaEIANZwG1spvLuIGZ0HA03u8ye9c2lfqYcjgfIkjMrwgWPamR7joZOZPdQSO2EHrF7bUWMjRNY-FF5V7tOjEijkknE_nDq5THcEvx1seHYFdFNwy9LSSGGPVmZMKTKQ3UUlZZyBMXcOpOA9w`, // gitleaks:allow
// TODO: Detect newlines or escapes (\)?
// https://github.com/mongodb/mongo/blob/1960b792ade4e179ddc6113a3cd400e9492ca11d/src/mongo/crypto/README.JWT.md?plain=1#L115-L117
+1 -1
View File
@@ -12,7 +12,7 @@ func KrakenAccessToken() *config.Rule {
Description: "Kraken Access Token",
Regex: generateSemiGenericRegex([]string{"kraken"},
alphaNumericExtendedLong("80,90"), true),
SecretGroup: 1,
Keywords: []string{
"kraken",
},
+2 -2
View File
@@ -11,7 +11,7 @@ func KucoinAccessToken() *config.Rule {
RuleID: "kucoin-access-token",
Description: "Kucoin Access Token",
Regex: generateSemiGenericRegex([]string{"kucoin"}, hex("24"), true),
SecretGroup: 1,
Keywords: []string{
"kucoin",
},
@@ -30,7 +30,7 @@ func KucoinSecretKey() *config.Rule {
RuleID: "kucoin-secret-key",
Description: "Kucoin Secret Key",
Regex: generateSemiGenericRegex([]string{"kucoin"}, hex8_4_4_4_12(), true),
SecretGroup: 1,
Keywords: []string{
"kucoin",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func LaunchDarklyAccessToken() *config.Rule {
RuleID: "launchdarkly-access-token",
Description: "Launchdarkly Access Token",
Regex: generateSemiGenericRegex([]string{"launchdarkly"}, alphaNumericExtended("40"), true),
SecretGroup: 1,
Keywords: []string{
"launchdarkly",
},
-1
View File
@@ -30,7 +30,6 @@ func LinearClientSecret() *config.Rule {
RuleID: "linear-client-secret",
Regex: generateSemiGenericRegex([]string{"linear"}, hex("32"), true),
Keywords: []string{"linear"},
SecretGroup: 1,
}
// validate
+2 -2
View File
@@ -14,7 +14,7 @@ func LinkedinClientSecret() *config.Rule {
"linkedin",
"linked-in",
}, alphaNumeric("16"), true),
SecretGroup: 1,
Keywords: []string{
"linkedin",
"linked-in",
@@ -37,7 +37,7 @@ func LinkedinClientID() *config.Rule {
"linkedin",
"linked-in",
}, alphaNumeric("14"), true),
SecretGroup: 1,
Keywords: []string{
"linkedin",
"linked-in",
+1 -2
View File
@@ -11,7 +11,7 @@ func LobPubAPIToken() *config.Rule {
Description: "Lob Publishable API Key",
RuleID: "lob-pub-api-key",
Regex: generateSemiGenericRegex([]string{"lob"}, `(test|live)_pub_[a-f0-9]{31}`, true),
SecretGroup: 1,
Keywords: []string{
"test_pub",
"live_pub",
@@ -36,7 +36,6 @@ func LobAPIToken() *config.Rule {
"test_",
"live_",
},
SecretGroup: 1,
}
// validate
+1 -1
View File
@@ -11,7 +11,7 @@ func MailChimp() *config.Rule {
RuleID: "mailchimp-api-key",
Description: "Mailchimp API key",
Regex: generateSemiGenericRegex([]string{"mailchimp"}, `[a-f0-9]{32}-us20`, true),
SecretGroup: 1,
Keywords: []string{
"mailchimp",
},
+3 -3
View File
@@ -11,7 +11,7 @@ func MailGunPrivateAPIToken() *config.Rule {
RuleID: "mailgun-private-api-token",
Description: "Mailgun private API token",
Regex: generateSemiGenericRegex([]string{"mailgun"}, `key-[a-f0-9]{32}`, true),
SecretGroup: 1,
Keywords: []string{
"mailgun",
},
@@ -30,7 +30,7 @@ func MailGunPubAPIToken() *config.Rule {
RuleID: "mailgun-pub-key",
Description: "Mailgun public validation key",
Regex: generateSemiGenericRegex([]string{"mailgun"}, `pubkey-[a-f0-9]{32}`, true),
SecretGroup: 1,
Keywords: []string{
"mailgun",
},
@@ -49,7 +49,7 @@ func MailGunSigningKey() *config.Rule {
RuleID: "mailgun-signing-key",
Description: "Mailgun webhook signing key",
Regex: generateSemiGenericRegex([]string{"mailgun"}, `[a-h0-9]{32}-[a-h0-9]{8}-[a-h0-9]{8}`, true),
SecretGroup: 1,
Keywords: []string{
"mailgun",
},
+2 -2
View File
@@ -11,8 +11,8 @@ func MapBox() *config.Rule {
Description: "MapBox API token",
RuleID: "mapbox-api-token",
Regex: generateSemiGenericRegex([]string{"mapbox"}, `pk\.[a-z0-9]{60}\.[a-z0-9]{22}`, true),
SecretGroup: 1,
Keywords: []string{"mapbox"},
Keywords: []string{"mapbox"},
}
// validate
+1 -1
View File
@@ -11,7 +11,7 @@ func MattermostAccessToken() *config.Rule {
RuleID: "mattermost-access-token",
Description: "Mattermost Access Token",
Regex: generateSemiGenericRegex([]string{"mattermost"}, alphaNumeric("26"), true),
SecretGroup: 1,
Keywords: []string{
"mattermost",
},
+2 -2
View File
@@ -15,7 +15,7 @@ func MessageBirdAPIToken() *config.Rule {
"message-bird",
"message_bird",
}, alphaNumeric("25"), true),
SecretGroup: 1,
Keywords: []string{
"messagebird",
"message-bird",
@@ -42,7 +42,7 @@ func MessageBirdClientID() *config.Rule {
"message-bird",
"message_bird",
}, hex8_4_4_4_12(), true),
SecretGroup: 1,
Keywords: []string{
"messagebird",
"message-bird",
+1 -1
View File
@@ -12,7 +12,7 @@ func NetlifyAccessToken() *config.Rule {
Description: "Netlify Access Token",
Regex: generateSemiGenericRegex([]string{"netlify"},
alphaNumericExtended("40,46"), true),
SecretGroup: 1,
Keywords: []string{
"netlify",
},
+3 -3
View File
@@ -15,7 +15,7 @@ func NewRelicUserID() *config.Rule {
"newrelic",
"new_relic",
}, `NRAK-[a-z0-9]{27}`, true),
SecretGroup: 1,
Keywords: []string{
"NRAK",
},
@@ -38,7 +38,7 @@ func NewRelicUserKey() *config.Rule {
"newrelic",
"new_relic",
}, alphaNumeric("64"), true),
SecretGroup: 1,
Keywords: []string{
"new-relic",
"newrelic",
@@ -63,7 +63,7 @@ func NewRelicBrowserAPIKey() *config.Rule {
"newrelic",
"new_relic",
}, `NRJS-[a-f0-9]{19}`, true),
SecretGroup: 1,
Keywords: []string{
"NRJS-",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func NPM() *config.Rule {
RuleID: "npm-access-token",
Description: "npm access token",
Regex: generateUniqueTokenRegex(`npm_[a-z0-9]{36}`, true),
SecretGroup: 1,
Keywords: []string{
"npm_",
},
+1 -1
View File
@@ -13,7 +13,7 @@ func NytimesAccessToken() *config.Rule {
Regex: generateSemiGenericRegex([]string{
"nytimes", "new-york-times,", "newyorktimes"},
alphaNumericExtended("32"), true),
SecretGroup: 1,
Keywords: []string{
"nytimes",
"new-york-times",
+1 -1
View File
@@ -12,7 +12,7 @@ func OktaAccessToken() *config.Rule {
Description: "Okta Access Token",
Regex: generateSemiGenericRegex([]string{"okta"},
alphaNumericExtended("42"), true),
SecretGroup: 1,
Keywords: []string{
"okta",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func OpenAI() *config.Rule {
RuleID: "openai-api-key",
Description: "OpenAI API Key",
Regex: generateUniqueTokenRegex(`sk-[a-zA-Z0-9]{20}T3BlbkFJ[a-zA-Z0-9]{20}`, true),
SecretGroup: 1,
Keywords: []string{
"T3BlbkFJ",
},
+5 -5
View File
@@ -13,8 +13,8 @@ func PlaidAccessID() *config.Rule {
RuleID: "plaid-client-id",
Description: "Plaid Client ID",
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("24"), true),
SecretGroup: 1,
Entropy: 3.5,
Entropy: 3.5,
Keywords: []string{
"plaid",
},
@@ -33,8 +33,8 @@ func PlaidSecretKey() *config.Rule {
RuleID: "plaid-secret-key",
Description: "Plaid Secret key",
Regex: generateSemiGenericRegex([]string{"plaid"}, alphaNumeric("30"), true),
SecretGroup: 1,
Entropy: 3.5,
Entropy: 3.5,
Keywords: []string{
"plaid",
},
@@ -54,7 +54,7 @@ func PlaidAccessToken() *config.Rule {
Description: "Plaid API Token",
Regex: generateSemiGenericRegex([]string{"plaid"},
fmt.Sprintf("access-(?:sandbox|development|production)-%s", hex8_4_4_4_12()), true),
SecretGroup: 1,
Keywords: []string{
"plaid",
},
+3 -3
View File
@@ -11,7 +11,7 @@ func PlanetScalePassword() *config.Rule {
RuleID: "planetscale-password",
Description: "PlanetScale password",
Regex: generateUniqueTokenRegex(`pscale_pw_(?i)[a-z0-9=\-_\.]{32,64}`, true),
SecretGroup: 1,
Keywords: []string{
"pscale_pw_",
},
@@ -32,7 +32,7 @@ func PlanetScaleAPIToken() *config.Rule {
RuleID: "planetscale-api-token",
Description: "PlanetScale API token",
Regex: generateUniqueTokenRegex(`pscale_tkn_(?i)[a-z0-9=\-_\.]{32,64}`, true),
SecretGroup: 1,
Keywords: []string{
"pscale_tkn_",
},
@@ -53,7 +53,7 @@ func PlanetScaleOAuthToken() *config.Rule {
RuleID: "planetscale-oauth-token",
Description: "PlanetScale OAuth token",
Regex: generateUniqueTokenRegex(`pscale_oauth_(?i)[a-z0-9=\-_\.]{32,64}`, true),
SecretGroup: 1,
Keywords: []string{
"pscale_oauth_",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func PostManAPI() *config.Rule {
RuleID: "postman-api-token",
Description: "Postman API token",
Regex: generateUniqueTokenRegex(`PMAK-(?i)[a-f0-9]{24}\-[a-f0-9]{34}`, true),
SecretGroup: 1,
Keywords: []string{
"PMAK-",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func Prefect() *config.Rule {
RuleID: "prefect-api-token",
Description: "Prefect API token",
Regex: generateUniqueTokenRegex(`pnu_[a-z0-9]{36}`, true),
SecretGroup: 1,
Keywords: []string{
"pnu_",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func PulumiAPIToken() *config.Rule {
RuleID: "pulumi-api-token",
Description: "Pulumi API token",
Regex: generateUniqueTokenRegex(`pul-[a-f0-9]{40}`, true),
SecretGroup: 1,
Keywords: []string{
"pul-",
},
+1 -1
View File
@@ -12,7 +12,7 @@ func RapidAPIAccessToken() *config.Rule {
Description: "RapidAPI Access Token",
Regex: generateSemiGenericRegex([]string{"rapidapi"},
alphaNumericExtendedShort("50"), true),
SecretGroup: 1,
Keywords: []string{
"rapidapi",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func ReadMe() *config.Rule {
RuleID: "readme-api-token",
Description: "Readme API token",
Regex: generateUniqueTokenRegex(`rdme_[a-z0-9]{70}`, true),
SecretGroup: 1,
Keywords: []string{
"rdme_",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func RubyGemsAPIToken() *config.Rule {
RuleID: "rubygems-api-token",
Description: "Rubygem API token",
Regex: generateUniqueTokenRegex(`rubygems_[a-f0-9]{48}`, true),
SecretGroup: 1,
Keywords: []string{
"rubygems_",
},
+2 -2
View File
@@ -11,7 +11,7 @@ func SendbirdAccessToken() *config.Rule {
RuleID: "sendbird-access-token",
Description: "Sendbird Access Token",
Regex: generateSemiGenericRegex([]string{"sendbird"}, hex("40"), true),
SecretGroup: 1,
Keywords: []string{
"sendbird",
},
@@ -30,7 +30,7 @@ func SendbirdAccessID() *config.Rule {
RuleID: "sendbird-access-id",
Description: "Sendbird Access ID",
Regex: generateSemiGenericRegex([]string{"sendbird"}, hex8_4_4_4_12(), true),
SecretGroup: 1,
Keywords: []string{
"sendbird",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func SendGridAPIToken() *config.Rule {
RuleID: "sendgrid-api-token",
Description: "SendGrid API token",
Regex: generateUniqueTokenRegex(`SG\.(?i)[a-z0-9=_\-\.]{66}`, true),
SecretGroup: 1,
Keywords: []string{
"SG.",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func SendInBlueAPIToken() *config.Rule {
RuleID: "sendinblue-api-token",
Description: "Sendinblue API token",
Regex: generateUniqueTokenRegex(`xkeysib-[a-f0-9]{64}\-(?i)[a-z0-9]{16}`, true),
SecretGroup: 1,
Keywords: []string{
"xkeysib-",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func SentryAccessToken() *config.Rule {
RuleID: "sentry-access-token",
Description: "Sentry Access Token",
Regex: generateSemiGenericRegex([]string{"sentry"}, hex("64"), true),
SecretGroup: 1,
Keywords: []string{
"sentry",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func ShippoAPIToken() *config.Rule {
RuleID: "shippo-api-token",
Description: "Shippo API token",
Regex: generateUniqueTokenRegex(`shippo_(live|test)_[a-f0-9]{40}`, true),
SecretGroup: 1,
Keywords: []string{
"shippo_",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func SidekiqSecret() *config.Rule {
r := config.Rule{
Description: "Sidekiq Secret",
RuleID: "sidekiq-secret",
SecretGroup: 1,
Regex: generateSemiGenericRegex([]string{"BUNDLE_ENTERPRISE__CONTRIBSYS__COM", "BUNDLE_GEMS__CONTRIBSYS__COM"},
`[a-f0-9]{8}:[a-f0-9]{8}`, true),
Keywords: []string{"BUNDLE_ENTERPRISE__CONTRIBSYS__COM", "BUNDLE_GEMS__CONTRIBSYS__COM"},
+3 -3
View File
@@ -18,9 +18,9 @@ func Snyk() *config.Rule {
r := config.Rule{
Description: "Snyk API token",
RuleID: "snyk-api-token",
SecretGroup: 1,
Regex: generateSemiGenericRegex(keywords, hex8_4_4_4_12(), true),
Keywords: keywords,
Regex: generateSemiGenericRegex(keywords, hex8_4_4_4_12(), true),
Keywords: keywords,
}
// validate
+1 -1
View File
@@ -11,7 +11,7 @@ func SquareSpaceAccessToken() *config.Rule {
RuleID: "squarespace-access-token",
Description: "Squarespace Access Token",
Regex: generateSemiGenericRegex([]string{"squarespace"}, hex8_4_4_4_12(), true),
SecretGroup: 1,
Keywords: []string{
"squarespace",
},
+4 -4
View File
@@ -15,8 +15,8 @@ func SumoLogicAccessID() *config.Rule {
// TODO: Make 'su' case-sensitive.
Regex: generateSemiGenericRegex([]string{"sumo"},
"su[a-zA-Z0-9]{12}", false),
SecretGroup: 1,
Entropy: 3,
Entropy: 3,
Keywords: []string{
"sumo",
},
@@ -57,8 +57,8 @@ func SumoLogicAccessToken() *config.Rule {
Description: "SumoLogic Access Token",
Regex: generateSemiGenericRegex([]string{"sumo"},
alphaNumeric("64"), true),
SecretGroup: 1,
Entropy: 3,
Entropy: 3,
Keywords: []string{
"sumo",
},
+2 -2
View File
@@ -12,8 +12,8 @@ func TelegramBotToken() *config.Rule {
r := config.Rule{
Description: "Telegram Bot API Token",
RuleID: "telegram-bot-api-token",
SecretGroup: 1,
Regex: regexp.MustCompile(`(?i)(?:^|[^0-9])([0-9]{5,16}:A[a-zA-Z0-9_\-]{34})(?:$|[^a-zA-Z0-9_\-])`),
Regex: regexp.MustCompile(`(?i)(?:^|[^0-9])([0-9]{5,16}:A[a-zA-Z0-9_\-]{34})(?:$|[^a-zA-Z0-9_\-])`),
Keywords: []string{
"telegram",
"api",
+1 -1
View File
@@ -11,7 +11,7 @@ func TravisCIAccessToken() *config.Rule {
RuleID: "travisci-access-token",
Description: "Travis CI Access Token",
Regex: generateSemiGenericRegex([]string{"travis"}, alphaNumeric("22"), true),
SecretGroup: 1,
Keywords: []string{
"travis",
},
+1 -1
View File
@@ -11,7 +11,7 @@ func TrelloAccessToken() *config.Rule {
RuleID: "trello-access-token",
Description: "Trello Access Token",
Regex: generateSemiGenericRegex([]string{"trello"}, `[a-zA-Z-0-9]{32}`, true),
SecretGroup: 1,
Keywords: []string{
"trello",
},
-1
View File
@@ -11,7 +11,6 @@ func TwitchAPIToken() *config.Rule {
RuleID: "twitch-api-token",
Description: "Twitch API token",
Regex: generateSemiGenericRegex([]string{"twitch"}, alphaNumeric("30"), true),
SecretGroup: 1,
Keywords: []string{
"twitch",
},
+2 -6
View File
@@ -11,7 +11,6 @@ func TwitterAPIKey() *config.Rule {
Description: "Twitter API Key",
RuleID: "twitter-api-key",
Regex: generateSemiGenericRegex([]string{"twitter"}, alphaNumeric("25"), true),
SecretGroup: 1,
Keywords: []string{"twitter"},
}
@@ -28,7 +27,6 @@ func TwitterAPISecret() *config.Rule {
Description: "Twitter API Secret",
RuleID: "twitter-api-secret",
Regex: generateSemiGenericRegex([]string{"twitter"}, alphaNumeric("50"), true),
SecretGroup: 1,
Keywords: []string{"twitter"},
}
@@ -45,8 +43,8 @@ func TwitterBearerToken() *config.Rule {
Description: "Twitter Bearer Token",
RuleID: "twitter-bearer-token",
Regex: generateSemiGenericRegex([]string{"twitter"}, "A{22}[a-zA-Z0-9%]{80,100}", true),
SecretGroup: 1,
Keywords: []string{"twitter"},
Keywords: []string{"twitter"},
}
// validate
@@ -62,7 +60,6 @@ func TwitterAccessToken() *config.Rule {
Description: "Twitter Access Token",
RuleID: "twitter-access-token",
Regex: generateSemiGenericRegex([]string{"twitter"}, "[0-9]{15,25}-[a-zA-Z0-9]{20,40}", true),
SecretGroup: 1,
Keywords: []string{"twitter"},
}
@@ -79,7 +76,6 @@ func TwitterAccessSecret() *config.Rule {
Description: "Twitter Access Secret",
RuleID: "twitter-access-secret",
Regex: generateSemiGenericRegex([]string{"twitter"}, alphaNumeric("45"), true),
SecretGroup: 1,
Keywords: []string{"twitter"},
}
-1
View File
@@ -12,7 +12,6 @@ func Typeform() *config.Rule {
Description: "Typeform API token",
Regex: generateSemiGenericRegex([]string{"typeform"},
`tfp_[a-z0-9\-_\.=]{59}`, true),
SecretGroup: 1,
Keywords: []string{
"tfp_",
},
+2 -3
View File
@@ -12,7 +12,6 @@ func YandexAWSAccessToken() *config.Rule {
Description: "Yandex AWS Access Token",
Regex: generateSemiGenericRegex([]string{"yandex"},
`YC[a-zA-Z0-9_\-]{38}`, true),
SecretGroup: 1,
Keywords: []string{
"yandex",
},
@@ -33,7 +32,7 @@ func YandexAPIKey() *config.Rule {
Description: "Yandex API Key",
Regex: generateSemiGenericRegex([]string{"yandex"},
`AQVN[A-Za-z0-9_\-]{35,38}`, true),
SecretGroup: 1,
Keywords: []string{
"yandex",
},
@@ -54,7 +53,7 @@ func YandexAccessToken() *config.Rule {
Description: "Yandex Access Token",
Regex: generateSemiGenericRegex([]string{"yandex"},
`t1\.[A-Z0-9a-z_-]+[=]{0,2}\.[A-Z0-9a-z_-]{86}[=]{0,2}`, true),
SecretGroup: 1,
Keywords: []string{
"yandex",
},
-1
View File
@@ -11,7 +11,6 @@ func ZendeskSecretKey() *config.Rule {
RuleID: "zendesk-secret-key",
Description: "Zendesk Secret Key",
Regex: generateSemiGenericRegex([]string{"zendesk"}, alphaNumeric("40"), true),
SecretGroup: 1,
Keywords: []string{
"zendesk",
},