Skip to content

Commit bf64003

Browse files
authored
fix(secret): use .eyJ keyword for JWT secret (#7410)
1 parent 3a5d091 commit bf64003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/fanal/secret/builtin-rules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ var builtinRules = []Rule{
604604
Title: "JWT token",
605605
Severity: "MEDIUM",
606606
Regex: MustCompile(`ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9\/\\_-]{17,}\.(?:[a-zA-Z0-9\/\\_-]{10,}={0,2})?`),
607-
Keywords: []string{"jwt"},
607+
Keywords: []string{".eyJ"},
608608
},
609609
{
610610
ID: "linear-api-token",

0 commit comments

Comments
 (0)