mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
fix: age rule id with dashes (#1349)
This commit is contained in:
1 parent
247a5e7214
commit
6c52f878cc
2 files changed
+2
-2
No files matched your search
@@ -10,7 +10,7 @@ func AgeSecretKey() *config.Rule {
|
|||||||
// define rule
|
// define rule
|
||||||
r := config.Rule{
|
r := config.Rule{
|
||||||
Description: "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information.",
|
Description: "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information.",
|
||||||
RuleID: "age secret key",
|
RuleID: "age-secret-key",
|
||||||
Regex: regexp.MustCompile(`AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}`),
|
Regex: regexp.MustCompile(`AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}`),
|
||||||
Keywords: []string{"AGE-SECRET-KEY-1"},
|
Keywords: []string{"AGE-SECRET-KEY-1"},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ keywords = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[[rules]]
|
[[rules]]
|
||||||
id = "age secret key"
|
id = "age-secret-key"
|
||||||
description = "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information."
|
description = "Discovered a potential Age encryption tool secret key, risking data decryption and unauthorized access to sensitive information."
|
||||||
regex = '''AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}'''
|
regex = '''AGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}'''
|
||||||
keywords = [
|
keywords = [
|
||||||
|
|||||||
Reference in new issue
Block a user