mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
feat(gcp): increase rule entropy (#1840)
This commit is contained in:
1 parent
9bc725786d
commit
f6193bc92c
2 files changed
+3
-5
No files matched your search
@@ -30,10 +30,8 @@ func GCPAPIKey() *config.Rule {
|
|||||||
RuleID: "gcp-api-key",
|
RuleID: "gcp-api-key",
|
||||||
Description: "Uncovered a GCP API key, which could lead to unauthorized access to Google Cloud services and data breaches.",
|
Description: "Uncovered a GCP API key, which could lead to unauthorized access to Google Cloud services and data breaches.",
|
||||||
Regex: utils.GenerateUniqueTokenRegex(`AIza[\w-]{35}`, false),
|
Regex: utils.GenerateUniqueTokenRegex(`AIza[\w-]{35}`, false),
|
||||||
Entropy: 3.0,
|
Entropy: 4,
|
||||||
Keywords: []string{
|
Keywords: []string{"AIza"},
|
||||||
"AIza",
|
|
||||||
},
|
|
||||||
Allowlists: []*config.Allowlist{
|
Allowlists: []*config.Allowlist{
|
||||||
{
|
{
|
||||||
Regexes: []*regexp.Regexp{
|
Regexes: []*regexp.Regexp{
|
||||||
|
|||||||
@@ -552,7 +552,7 @@ keywords = ["freshbooks"]
|
|||||||
id = "gcp-api-key"
|
id = "gcp-api-key"
|
||||||
description = "Uncovered a GCP API key, which could lead to unauthorized access to Google Cloud services and data breaches."
|
description = "Uncovered a GCP API key, which could lead to unauthorized access to Google Cloud services and data breaches."
|
||||||
regex = '''\b(AIza[\w-]{35})(?:[\x60'"\s;]|\\[nr]|$)'''
|
regex = '''\b(AIza[\w-]{35})(?:[\x60'"\s;]|\\[nr]|$)'''
|
||||||
entropy = 3
|
entropy = 4
|
||||||
keywords = ["aiza"]
|
keywords = ["aiza"]
|
||||||
[[rules.allowlists]]
|
[[rules.allowlists]]
|
||||||
regexes = [
|
regexes = [
|
||||||
|
|||||||
Reference in new issue
Block a user