Skip to main content
skill CX Codex

jwt-security-review — Claude Code skill: what it does, how to install

Audits JWT implementations for key confusion, weak secrets, and token lifecycle flaws. Handy when checking API authorization code.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add securityskills/skills --skill jwt-security-review -a claude-code
Open on GitHub

What jwt-security-review does

This skill guides your coding agent through an end-to-end inspection of token verification logic. The assistant flags critical issues like RS256 to HS256 algorithm confusion, header injections via kid or jku, and missed signature checks where code calls jwt.decode instead of verification functions.

Token lifecycles undergo strict scrutiny. The review checks whether access tokens expire within 15 minutes, refresh tokens detect replay attempts, and storage avoids localStorage whenever XSS exposure exists. Any HS256 secret with entropy below 32 bytes breaks security baselines immediately.

Every finding includes redacted token payloads, affected file paths, and explicit remediation steps.

What it helps with

  • detect RS256 to HS256 key confusion in verification logic
  • verify that exp, iss, and aud claims are strictly enforced
  • identify refresh token reuse flaws during session rotation
  • spot insecure token persistence inside localStorage

Example prompts for the agent

  • Run a JWT security audit on our auth controller in server/auth.ts
  • Check our token validation middleware for algorithm confusion and kid injection vulnerabilities
  • Review how we handle refresh token rotation and token expiration in the API

How to install jwt-security-review

1Skills CLI (Vercel)

npx skills add securityskills/skills --skill jwt-security-review -a claude-code

2Manually: put the files in place

~/.claude/skills/jwt-security-review/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/jwt-security-review/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about jwt-security-review

How do I install jwt-security-review in Claude Code?

Run npx skills add securityskills/skills --skill jwt-security-review -a claude-code. The file will be saved to ~/.claude/skills/jwt-security-review/SKILL.md.

What does jwt-security-review do?

It directs your agent to inspect authentication logic, looking for weak HMAC secrets, unpinned algorithms, and improper session lifecycle handling.

Which test cases does this skill evaluate?

The agent reviews scenarios like rejecting alg: none, swapping public keys into HS256 signatures, using expired timestamps, and replaying invalidated refresh tokens.

Similar skills

All skills for Security →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor