Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Jwt?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-jwt)
---
name: jwt
description: "JSON Web Token attacks — alg:none, accept-arbitrary-signature, weak-HMAC-secret cracking, JWK/JKU/KID header injection, kid path-traversal/SQLi, RS256→HS256 algorithm confusion (with automation), ECDSA psychic-signatures (CVE-2022-21449), and claim-logic abuse. Tier 1. Payloads: payloads/auth-jwt.md. Use whenever JWTs are present."
---
# JWT Attacks
Decode every JWT (header.payload.signature); attack the crypto and the claim logic. Payloads in `${CLAUDE_PLUGIN_ROOT}/payloads/auth-jwt.md`.
## Trigger phrases
`jwt, json web token, alg none, algorithm confusion, jku, jwk, kid injection, weak jwt secret, psychic signature`
## Attacks
- **alg:none** — set `alg` to `none`/`None`/`nOnE`, strip signature (keep trailing dot); if accepted, forge any claims.
- **Accept-arbitrary-signature** — server decodes but doesn't verify; tamper claims, keep any signature.
- **Weak HMAC secret** — crack HS256 offline (`hashcat -m 16500`, jwt_tool, jwt-secrets wordlist) → forge.
- **Algorithm confusion RS256→HS256 [NEW/RARE]** — sign with the public key as the HMAC secret. Automate recovery of the public key from two tokens with `rsa_sign2n`/`sig2n` when `/jwks.json` isn't exposed.
- **JWK header injection** — embed attacker public key in the token header.
- **JKU / X5U header injection** — point to attacker-hosted JWKS (test SSRF/allowlist bypass on the fetch).
- **KID injection** — path traversal (`kid:../../dev/null` → predictable key), SQLi, or command injection in `kid`.
- **Psychic signatures — CVE-2022-21449 [NEW/RARE]** — ECDSA (ES256) implementations (vulnerable Java 15-18) accept a (0,0) signature as valid → forge any token.
- **Claim-logic** — missing/expired `exp` accepted, `aud`/`iss` unchecked (token from another app accepted), `sub` swap for IDOR.
## Verify each forged token actually authenticates as the target identity.
## Backend
Use the preferred Kali path (native Kali / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or a headless browser for client-side steps; Windows-local only as last resort. See `zazy-orchestrator`.
## Verification (background, before reporting)
Re-confirm every candidate independently (second account/session, replay, or OAST) before marking CONFIRMED. Report true positives only; hold back anything not reproduced.
## Evidence
The decoded token, the manipulation applied, and the forged token authenticating as a higher-priv/victim identity.