mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
More rule fixes (#1586)
* feat: tweak more rules * fix(curl): update pattern & ignore more stuff * chore: update .gitleaksignore
This commit is contained in:
1 parent
5407c44e0c
commit
455ae0aab7
47 files changed
+531
-374
No files matched your search
@@ -11,9 +11,10 @@ import (
|
||||
func ShopifySharedSecret() *config.Rule {
|
||||
// define rule
|
||||
r := config.Rule{
|
||||
Description: "Found a Shopify shared secret, posing a risk to application authentication and e-commerce platform security.",
|
||||
RuleID: "shopify-shared-secret",
|
||||
Description: "Found a Shopify shared secret, posing a risk to application authentication and e-commerce platform security.",
|
||||
Regex: regexp.MustCompile(`shpss_[a-fA-F0-9]{32}`),
|
||||
Entropy: 2,
|
||||
Keywords: []string{"shpss_"},
|
||||
}
|
||||
|
||||
@@ -25,9 +26,10 @@ func ShopifySharedSecret() *config.Rule {
|
||||
func ShopifyAccessToken() *config.Rule {
|
||||
// define rule
|
||||
r := config.Rule{
|
||||
Description: "Uncovered a Shopify access token, which could lead to unauthorized e-commerce platform access and data breaches.",
|
||||
RuleID: "shopify-access-token",
|
||||
Description: "Uncovered a Shopify access token, which could lead to unauthorized e-commerce platform access and data breaches.",
|
||||
Regex: regexp.MustCompile(`shpat_[a-fA-F0-9]{32}`),
|
||||
Entropy: 2,
|
||||
Keywords: []string{"shpat_"},
|
||||
}
|
||||
|
||||
@@ -39,9 +41,10 @@ func ShopifyAccessToken() *config.Rule {
|
||||
func ShopifyCustomAccessToken() *config.Rule {
|
||||
// define rule
|
||||
r := config.Rule{
|
||||
Description: "Detected a Shopify custom access token, potentially compromising custom app integrations and e-commerce data security.",
|
||||
RuleID: "shopify-custom-access-token",
|
||||
Description: "Detected a Shopify custom access token, potentially compromising custom app integrations and e-commerce data security.",
|
||||
Regex: regexp.MustCompile(`shpca_[a-fA-F0-9]{32}`),
|
||||
Entropy: 2,
|
||||
Keywords: []string{"shpca_"},
|
||||
}
|
||||
|
||||
@@ -53,9 +56,10 @@ func ShopifyCustomAccessToken() *config.Rule {
|
||||
func ShopifyPrivateAppAccessToken() *config.Rule {
|
||||
// define rule
|
||||
r := config.Rule{
|
||||
Description: "Identified a Shopify private app access token, risking unauthorized access to private app data and store operations.",
|
||||
RuleID: "shopify-private-app-access-token",
|
||||
Description: "Identified a Shopify private app access token, risking unauthorized access to private app data and store operations.",
|
||||
Regex: regexp.MustCompile(`shppa_[a-fA-F0-9]{32}`),
|
||||
Entropy: 2,
|
||||
Keywords: []string{"shppa_"},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user