yaklang avatar

Jwt Oauth Token Attacks

This is a comprehensive attack playbook for JWT and OAuth token security testing. It walks through the classic cryptographic bypasses like algorithm confusion (RS256 to HS256), the alg:none trick, and HMAC secret cracking with hashcat. You also get OAuth flow attacks like state CSRF, redirect_uri bypasses, and implicit flow token leakage via Referer headers. The kid injection section covers SQL injection and path traversal variants, plus jku header abuse for JWKS poisoning. Use this when you're auditing authentication flows and need specific payloads and tooling commands ready to go. It's thorough enough that you won't miss the obvious attacks but stays practical with curl snippets and jwt_tool examples.

skills.sh installs
4K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill jwt-oauth-token-attacks --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: JWT and OAuth 2.0 Token Attacks — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert authentication token attacks. Covers JWT cryptographic attacks (alg:none, RS256→HS256, secret crack, kid/jku injection), OAuth flow attacks (CSRF, open redirect, token theft, implicit flow abuse), PKCE bypass, and token leakage via Referer/logs. This is critical for modern web applications.

0. RELATED ROUTING

Use this file for token-centric attacks and flow abuse. Also load:


1. JWT ANATOMY

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Category
Security
First seen
May 16, 2026

More from yaklang/hack-skills

All 102

Recommended

More Security
1affaan-m avatarsecurity-bounty-hunteraffaan-m/everything-claude-codesecurity bounty hunter3.7Kskills.sh installs
2elastic avatarelasticsearch-security-troubleshootingelastic/agent-skillsDiagnose and resolve Elasticsearch security errors: 401/403 failures, TLS problems, expired API keys, role mapping mismatches, and Kibana login issues. Use when2.9Kskills.sh installs
3sickn33 avatarcc-skill-security-reviewsickn33/antigravity-awesome-skillssecurity review1.8Kskills.sh installs
4affaan-m avatarquarkus-securityaffaan-m/everything-claude-codequarkus security1.6Kskills.sh installs
5sickn33 avatarcc-skill-security-reviewsickn33/antigravity-awesome-skillscc skill security review1.5Kskills.sh installs
6alirezarezvani avatarsenior-securityalirezarezvani/claude-skillsUse when the user asks for STRIDE threat modeling, DREAD risk scoring, data-flow-diagram threat analysis, or a quick secret scan — or when a security request ne1.3Kskills.sh installs