Replies: 1 comment
-
Hello @asankov Created #6802 Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The secret detector would not detect a JWT unless there is the word "JWT" somewhere on the line.
For example, this file:
would yield no findings, but this one:
will.
This is due to the
jwt
being set in theKeywords
in the jwt matcher - https://github.com/aquasecurity/trivy/blob/main/pkg/fanal/secret/builtin-rules.go#L591Desired Behavior
JWT token is detected regardless of other context.
Actual Behavior
JWT token is detected only if
jwt
is present on the lineReproduction Steps
Target
Filesystem
Scanner
Secret
Output Format
None
Mode
None
Debug Output
Operating System
macOS
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions