Tooluck logoTooluck
SKILL.md

offensive-jwt

Agent skill fromSnailSploit/Claude-Red

JWT attack methodology for penetration testers. Covers algorithm confusion (alg:none, RS256→HS256), weak HMAC secret brute force, kid parameter injection (SQLi, path traversal), jku/x5u/jwk header injection, JWKS cache poisoning, JWS/JWE confusion, timing attacks, and mobile JWT storage extraction. Use when testing JWT-based authentication, hunting auth bypass via token manipulation, or evaluating JWT implementation security in web or mobile apps.

How to install offensive-jwt

install offensive-jwt
# install the Claude-Red pack with the skills CLI
npx skills add SnailSploit/Claude-Red

# or add only this skill to Claude Code: copy the folder

Skills/auth/offensive-jwt/

# into

~/.claude/skills/offensive-jwt/ (all projects)

.claude/skills/offensive-jwt/ (one project)

Skills/auth/offensive-jwt/SKILL.md

MITFull file
1## Overview
2
3Comprehensive JWT attack checklist for offensive security engagements. Follow steps in order; apply each technique to the current target context and track which items have been completed.
4
5## Quick Reference: Misconfigurations to Check
6
7- Algorithm set to `none` — signature verification bypassed entirely
8- Algorithm switching between `RSA` and `HMAC` (confusion attack)
9- Weak or guessable HMAC secret (brute-forceable)
10- `kid`, `jku`, `jwk`, `x5u` header parameters accepted without validation
11- Expired or tampered tokens accepted by server
12- Sensitive data stored unencrypted in payload
13
14Useful tool: [JWT Tool](https://github.com/ticarpi/jwt_tool)
15
16## Mechanisms
17
18JWTs (RFC 7519) consist of three Base64URL-encoded parts: `header.payload.signature`.
19
20**Signing algorithms:**
21
22| Algorithm | Type | Notes |
23|-----------|------|-------|
24| HS256/384/512 | Symmetric HMAC | Shared secret; confusion target |
25| RS256/384/512 | Asymmetric RSA | Public key can be misused as HMAC secret |
26| ES256/384/512 | Asymmetric ECDSA | |
27| PS256/384/512 | RSASSA-PSS | |
28| EdDSA (Ed25519/Ed448) | Asymmetric | |
29| none | Unsigned | Critically insecure |
30
31**Additional pitfalls:**
32- JWS/JWE confusion: server accepts encrypted token (JWE) where signed (JWS) is expected, or fails open on unexpected `typ`/`cty`
33- JWKS retrieval: SSRF via `jku`/`x5u`, insecure TLS, poisoned key caching, `kid` collisions
34- Token binding (DPoP, mTLS): incorrectly implemented allows replay from other clients
35…

Excerpt shown under the repository's MIT license.

More skills in Claude-Red

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates