mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
* Enhance secret descriptions in gitleaks.toml * adjust the rule configuration descriptions * missing spaces in gitleaks.toml
28 lines
678 B
Go
28 lines
678 B
Go
package rules
|
|
|
|
import (
|
|
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
|
|
"github.com/zricethezav/gitleaks/v8/config"
|
|
)
|
|
|
|
func KrakenAccessToken() *config.Rule {
|
|
// define rule
|
|
r := config.Rule{
|
|
RuleID: "kraken-access-token",
|
|
Description: "Identified a Kraken Access Token, potentially compromising cryptocurrency trading accounts and financial security.",
|
|
Regex: generateSemiGenericRegex([]string{"kraken"},
|
|
alphaNumericExtendedLong("80,90"), true),
|
|
|
|
Keywords: []string{
|
|
"kraken",
|
|
},
|
|
}
|
|
|
|
// validate
|
|
tps := []string{
|
|
generateSampleSecret("kraken",
|
|
secrets.NewSecret(alphaNumericExtendedLong("80,90"))),
|
|
}
|
|
return validate(r, tps, nil)
|
|
}
|