Detect insecure JWT (JSON Web Token) implementations in a codebase using a two-phase approach: first map all JWT issuance and verification sites to understand the token lifecycle and signing configuration, then check each verification site for exploitable weaknesses such as algorithm confusion, missing signature verification, weak secrets, header injection, and missing claim validation. Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/jwt-results.md. If no JWT usage is found in Phase 1, Phase 2 is skipped. Use when asked to find JWT, token forgery, or authentication bypass bugs.
$npx -y skills add utkusen/sast-skills --skill sast-jwtInstalls into the current project.
Run `npx skills use "https://github.com/utkusen/sast-skills" --skill "utkusen/sast-skills/sast-jwt"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/utkusen/sast-skills" that are relevant to the current task. Run `npx skills add "https://github.com/utkusen/sast-skills"` and select the relevant skills, then follow their instructions.