| 1234567891011121314151617181920212223242526 |
- package rules
- import (
- "github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils"
- "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
- "github.com/zricethezav/gitleaks/v8/config"
- )
- func FreshbooksAccessToken() *config.Rule {
- // define rule
- r := config.Rule{
- RuleID: "freshbooks-access-token",
- Description: "Discovered a Freshbooks Access Token, posing a risk to accounting software access and sensitive financial data exposure.",
- Regex: utils.GenerateSemiGenericRegex([]string{"freshbooks"}, utils.AlphaNumeric("64"), true),
- Keywords: []string{
- "freshbooks",
- },
- }
- // validate
- tps := []string{
- utils.GenerateSampleSecret("freshbooks", secrets.NewSecret(utils.AlphaNumeric("64"))),
- }
- return utils.Validate(r, tps, nil)
- }
|