jwt-security-hardener
SkillSecurityAudits JSON Web Token implementations for algorithm confusion attacks, key rotation, expiration, and replay defense.',
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the jwt-security-hardener skill
What this skill tells your AI
The instructions your AI receives, as published by codebygarv/ai-skills in skills/security/jwt-security-hardener/SKILL.md and read by ahel’s review.
Purpose
Audit and harden JSON Web Token (JWT) authentication, signing, and verification pipelines to eliminate critical vulnerabilities: algorithm confusion (alg: none, HMAC vs RSA/ECDSA confusion), weak signing secrets, missing claim validations, and lack of revocation mechanisms.
When to Use
- Implementing or reviewing JWT authentication for APIs, single sign-on, or microservices.
- Passing security audits and penetration tests on token validation logic.
- Setting up token rotation, refresh token revocation, and asymmetric key pairs (JWKS).
What to Analyze
- Algorithm Whitelisting: Explicitly enforcing expected algorithms (e.g.
algorithms: ['RS256']) preventingnoneor public-key-as-HMAC attacks. - Mandatory Standard Claims: Enforcing
exp(short expiration, max 15m),iat,nbf,iss(issuer validation), andaud(audience validation). - Storage Security: Storing tokens in
HttpOnly,Secure,SameSite=Laxcookies vs vulnerablelocalStorage. - Token Revocation & Blacklisting: Redis blocklist for revoked
jti(token IDs) upon logout or permission change. - Asymmetric Key Rotation: Fetching public verification keys via standard JWKS endpoints with key caching.
Output Format
- Security Vulnerability Assessment: Critical / High risks found in current JWT setup.
- Hardened Verification Code: Drop-in secure token validation middleware.
- JWKS Key Rotation Specification: Standard asymmetric key management flow.
Avoid
- Storing sensitive user permissions in long-lived access tokens without revocation capabilities.
- Trusting the
algheader from untrusted incoming tokens without backend whitelisting.
Signals
- GitHub stars
- 25
- Forks
- 1
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
jwt-security-hardener- Source
- github.com/codebygarv/ai-skills