freshbooks.go 674 B

12345678910111213141516171819202122232425
  1. package rules
  2. import (
  3. "github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
  4. "github.com/zricethezav/gitleaks/v8/config"
  5. )
  6. func FreshbooksAccessToken() *config.Rule {
  7. // define rule
  8. r := config.Rule{
  9. RuleID: "freshbooks-access-token",
  10. Description: "Discovered a Freshbooks Access Token, posing a risk to accounting software access and sensitive financial data exposure.",
  11. Regex: generateSemiGenericRegex([]string{"freshbooks"}, alphaNumeric("64"), true),
  12. Keywords: []string{
  13. "freshbooks",
  14. },
  15. }
  16. // validate
  17. tps := []string{
  18. generateSampleSecret("freshbooks", secrets.NewSecret(alphaNumeric("64"))),
  19. }
  20. return validate(r, tps, nil)
  21. }