Offensive JWT Attack Checklist
Paste the following prompt into your AI chat to install this skill:
Please install @user_3c6cb52e/offensive-jwt-lr-trtm according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
JWT failures are not only about a misconfigured secret; they often come from how the server validates signature algorithms, header parameters, token lifecycle, and payload contents. During authorized security testing, manually tweaking captured fields can miss risks such as alg=none, RSA/HMAC confusion, or unvalidated kid, jku, jwk, and x5u parameters. This skill organizes those checks into an actionable checklist you can apply to the current target context.
How It Works
The skill is built around the RFC 7519 header.payload.signature structure. Its focus is not generic JWT generation, but negative validation of server-side acceptance behavior. Key steps include confirming whether none signatures are accepted, attempting algorithm switching between RSA and HMAC, assessing whether a weak HMAC secret is guessable, checking whether kid, jku, jwk, or x5u are accepted without validation, testing whether expired or tampered tokens are still processed, and checking whether sensitive data is stored unencrypted in the payload. The material also mentions using JWT Tool for encoding, decoding, and algorithm experiments, which helps reduce ad hoc commands into a repeatable workflow.
Boundaries And Notes
This is intended for offensive security engagements and should only be used against authorized targets. The checklist emphasizes ordered execution and tracking completed items, so a single successful test should not be treated as the full conclusion. If the target has additional gateways, signature policies, key rotation, or business risk controls, revalidate each finding in context rather than relying on one technique alone.
Use Cases
- Run an authorized JWT check against API login, refresh, and authorization endpoints.
- Determine whether a gateway accepts `alg=none`, RSA/HMAC confusion, or unvalidated `kid` and `jku` parameters.
- Test whether expired, tampered, or weakly signed JWTs are still processed by the server.
- Inspect payload fields for plaintext user identities, scopes, or internal identifiers.
Best For
- Security engineers performing API penetration tests who need a repeatable JWT risk checklist.
- Ops engineers reviewing legacy services who need to confirm signature bypass exposure.
- Backend engineers in authentication reviews who need to validate gateway JWT rules.
- Red team testers who need to track JWT attack checklist completion step by step.
Related Skills
Analyzes network captures from Wireshark, tcpdump, Fiddler, and Charles, then pinpoints TCP, HTTP, DNS, and TLS issues with filter expressions and remediation steps.
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
Sets up a baseline Dynamo router, enables KV-aware routing when appropriate, and smoke tests the frontend endpoint locally or on Kubernetes.
CTF cryptography quick reference for engineers covering classic, modern, RSA, ECC, stream, PRNG, and lattice attacks.