jwt-security-review
Installation
SKILL.md
JWT Security Review
Review JWT-based authentication end to end.
Review Areas
Algorithm Handling
- Pin the expected algorithm server-side; reject
alg: noneoutright - RS256→HS256 confusion: if the server verifies HMAC using the public key as the secret, an attacker can forge tokens. Confirm verification uses the correct key type per algorithm
- Watch for
jku/x5uheader injection where the server fetches keys from an attacker-controllable URL kidinjection: path traversal or SQL/Command injection in key lookup
Key and Secret Strength
- HS256 secrets: ≥32 bytes of entropy, not from wordlists (
jwt-toolscrack mode) - Keys rotated; old keys revoked rather than just unused