yaklang avatar

Api Auth And Jwt Abuse

Focused playbook for breaking API auth through JWT manipulation and header spoofing. Walk through token triage looking at algorithm confusion (alg:none, RS256 to HS256), kid injection, and remote key fetch trust issues, then pivot to mass assignment field hunting and rate limit bypasses using X-Forwarded-For tricks. The quick attack table is handy for initial probes, and the batch abuse section covers GraphQL mutation flooding and bulk enumeration patterns. Routes you cleanly to deeper OAuth and OIDC skills when you hit SSO flows or need full token attack depth. Good first touch when you spot Bearer tokens or API keys and want systematic coverage without overthinking it.

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

Install

$ npx -y skills add yaklang/hack-skills --skill api-auth-and-jwt-abuse --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: API Auth and JWT Abuse — Token Trust, Header Tricks, and Rate Limits

AI LOAD INSTRUCTION: Use this skill when APIs rely on JWT, bearer tokens, API keys, or weak request identity signals. Focus on token trust boundaries, claim misuse, header spoofing, and rate-limit bypass.

1. TOKEN TRIAGE

Inspect:

  • alg, kid, jku, x5u
  • role, org, tenant, scope, or privilege claims
  • issuer and audience mismatches
  • reuse of mobile and web tokens across products

2. QUICK ATTACK PICKS

PatternFirst Test
alg:none acceptanceunsigned token with trailing dot
RS256 confusionswitch to HS256 using public key as secret
kid lookup trustpath traversal or injection in kid
remote key fetch trustattacker-controlled jku or x5u
weak secretoffline crack with targeted wordlists

3. HIDDEN FIELDS AND BATCH ABUSE

Mass assignment field picks

role
isAdmin
admin
verified
plan
tier
permissions
org
owner

Rate limit and batch abuse picks

X-Forwarded-For: 1.2.3.4
X-Real-IP: 5.6.7.8
Forwarded: for=9.9.9.9

GraphQL or JSON batch abuse candidates:

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Backend & APIs, Testing & QA, Security
First seen
May 16, 2026

More from yaklang/hack-skills

All 102
1anthropics avatarbuild-zoom-rest-api-appanthropics/knowledge-work-pluginsReference skill for Zoom REST API. Use after choosing an API-based workflow when you need endpoint selection, resource-management patterns, OAuth requirements, 2.2Kskills.sh installs
2nvidia avatarcuopt-server-api-pythonnvidia/skillscuOpt REST server — start server, endpoints, Python/curl client examples. Use when the user is deploying or calling the REST API.2.2Kskills.sh installs
3mindrally avatarrest-api-djangomindrally/skillsComprehensive guidelines for Django REST API development covering project structure, views, models, serializers, authentication, performance, and error handling741skills.sh installs
4jezweb avatardrizzle-orm-d1jezweb/claude-skillsBuild type-safe D1 databases with Drizzle ORM. Includes schema definition, migrations with Drizzle Kit, relations, and D1 batch API patterns. Prevents 18 errors640skills.sh installs
5secondsky avatarapi-authenticationsecondsky/claude-skillsSecure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations, service-to-service communication, or encounte549skills.sh installs
6aj-geddes avatarapi-gateway-configurationaj-geddes/useful-ai-promptsConfigure API gateways for routing, authentication, rate limiting, and request/response transformation. Use when deploying microservices, setting up reverse pro508skills.sh installs