Skills for Real Engineers. Straight from my .agents directory.
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
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)
1## Overview23Comprehensive 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.45## Quick Reference: Misconfigurations to Check67- Algorithm set to `none` — signature verification bypassed entirely8- 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 validation11- Expired or tampered tokens accepted by server12- Sensitive data stored unencrypted in payload1314Useful tool: [JWT Tool](https://github.com/ticarpi/jwt_tool)1516## Mechanisms1718JWTs (RFC 7519) consist of three Base64URL-encoded parts: `header.payload.signature`.1920**Signing algorithms:**2122| 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 |3031**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` collisions34- Token binding (DPoP, mTLS): incorrectly implemented allows replay from other clients35…
Excerpt shown under the repository's MIT license.
More skills in Claude-Red
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
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
Production-grade engineering skills for AI coding agents.
