jwt
Skill0 starsChanged 6 days agoMITView on GitHub
Focused hunt for JSON Web Token vulnerabilities: algorithm confusion, weak secrets, missing expiration validation, jku/x5u/kid header injection, claim tampering. Use when the target uses JWTs for auth/session and the focus is token forgery or tampering. Not for the full OAuth flow (use oauth) or general account takeover (use ato).
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- mahumadad/quarrytheir own version, first seen Nov 8, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
- ScaleDockHQ/scaledock-skillstheir own version, first seen Oct 2, 2026
- emre-guler/websectheir own version, first seen Aug 27, 2026
- anurag-azure/skillstheir own version, first seen Jun 27, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- G1Joshi/Agent-Skills★ 15same name
- Ghost7802/awesome-api-skills★ 13same name
- sunilgentyala/OmniRed★ 5same name
- emre-guler/websec★ 2same name
- Sorcha-Platform/Sorcha★ 2same name
- ScaleDockHQ/scaledock-skills★ 1same name
- anurag-azure/skills★ 0same name
- mahumadad/quarry★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- access-controlSkill
- atoSkill
- business-logicSkill
- cloudSkill
- cmd-injectionSkill
- fuzzingSkill
- graphqlSkill
- huntSkill
- info-leakSkill
- known-cvesSkill
- llm-securitySkill
- oauthSkill
- open-redirectSkill
- osintSkill
- param-pollutionSkill
- raceSkill
- reconSkill
- reportSkill
- request-smugglingSkill
- sqliSkill
- ssrfSkill
- sstiSkill
- upload-traversalSkill
- xssSkill
- xxeSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Remove claims: exp removed and still valid?
- Very specific: line 47
If HS256: try common secret lists (jwt wordlists if installed, else top ~100 candidates manually via python).
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
JWT Attacks
When to use
- "Test the JWTs of X", "can I forge a token on X"
- Target uses JWTs (bearer tokens, session cookies starting
eyJ)
When NOT to use
- OAuth/OIDC flow issues (use
oauth) - Non-JWT session bugs (use
ato)
Inputs
- Target + one valid JWT (decode it first:
python3 -c "import jwt,sys; print(jwt.decode(sys.argv[1], options={'verify_signature':False}))", or base64-decode the parts manually)
Rationalizations to reject
- "The header says RS256, so it's safe" — the header is attacker-controlled; the question is what the verifier does.
- "Token looks long, secret must be strong" — test the secret, don't assume.
- "Tampered token got a 200" — confirm the tampered claim actually mattered (different user/data), not that the endpoint ignored it.
Methodology
1. Map the token
Decode header and payload. Record: algorithm, key IDs, issuer/audience claims, expiry fields, role/user claims, where the token lives (cookie/header/localStorage), how it's refreshed.
2. Algorithm attacks
alg: none: strip signature, keepalgasnone/None/nOnE, empty signature segment.- RS256→HS256 confusion: re-sign with the public key (fetch via JWKS endpoint) as HMAC secret.
jkuheader: point to your own JWKS URL (key you control), keepkidmatching.x5u/x5cheader injection: same idea with certs.kidinjection: path traversal (kid: "../../dev/null"with empty secret), SQL in kid (old stacks).
3. Claim validation
- Remove claims:
expremoved and still valid?aud/issremoved? - Swap
sub/user_id/emailto another test user's value. - Escalate role claims:
role: admin,isAdmin: true,scopewidening. - Negative/expired times,
nbfin the future,expfar past (some verifiers only check one direction).
4. Secret strength
If HS256: try common secret lists (jwt wordlists if installed, else top ~100 candidates manually via python). A small, quick run only — then report "weak secret space" as a lead if exhausted.
5. Transport and lifecycle
- Token in URL (logs/referrer leak), token long-lived (30d+ with no revocation), token not invalidated on logout/password change — cross-report to
atoas leads.
Reporting
findings/jwt-<date>.md, format per family convention. Severity: forged token for another user = high/critical; alg confusion proven = high; missing expiry = medium.
Focus discipline
OAuth-specific flows (code, state, redirect_uri) belong to oauth. Session-cookie management to ato.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

