offensive-jwt

Identify and exploit JWT weaknesses in authentication systems.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/RideMatch1/a.e.g.i.s --skill offensive-jwt-ridematch1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: offensive-jwt
Source: https://github.com/RideMatch1/a.e.g.i.s/tree/main/packages/skills/skills/offensive/snailsploit-fork/jwt
Command: npx skills add https://github.com/RideMatch1/a.e.g.i.s --skill offensive-jwt-ridematch1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

JWT authentication implementations frequently suffer from weak validation, misconfigurations, and exposure of keys, enabling token hijacking, replay, and privilege escalation. This Skill provides a structured methodology to identify and exploit common JWT weaknesses in web and mobile apps for security testing.

Core Features & Use Cases

  • Algorithm misconfigurations testing (alg none, RS256→HS256 confusion) and header parameter checks
  • Header/JWKS vulnerabilities (kid, jku, jwk, x5u) and potential cache-poisoning scenarios
  • Token misuse and storage (JWS/JWE confusion, DPoP binding issues, mobile storage exposure)
  • Remediation guidance and practical exploitation workflows for security assessments

Quick Start

Provide a JWT token, select an attack mode, and follow the steps in the checklist to assess token security and report findings.

Frequently Asked Questions about offensive-jwt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test JWT authentication for algorithm confusion vulnerabilities?

To test JWT authentication for algorithm confusion vulnerabilities, you simulate attacks by altering the token header from RS256 to HS256 to exploit key mismatch. This Skill automates algorithm confusion detection alongside weak HMAC secret cracking to verify token validation logic flaws.

What JWT header parameter injection attacks can I use for security testing?

JWT header parameter injection attacks target the kid, jku, jwk, and x5u parameters to manipulate key resolution or inject cache-poisoning payloads. This Skill systematically tests these header vectors to assess whether your token validation implementation trusts attacker-controlled key references.

How do I exploit weak HMAC secrets in JWT tokens?

Exploiting weak HMAC secrets in JWT tokens involves brute-forcing or dictionary-attacking the signature to recover the signing key. This Skill performs weak HMAC secret detection to verify if your application accepts tokens signed with easily guessable keys.

Can I test mobile app JWT storage exposure during a pentest?

Yes, you can test mobile app JWT storage exposure during a pentest. This Skill assesses how tokens are stored on mobile platforms and verifies if they are accessible to unauthorized applications, simulating real-world attacker scenarios for token theft.

Does this Skill work with JWKS endpoint vulnerabilities like jku and x5u?

Yes, this Skill works with JWKS endpoint vulnerabilities by testing jku, x5u, and jwk header parameters. It verifies whether token validation logic fetches keys from attacker-controlled URLs, enabling cache-poisoning and key-injection attack simulations.

What is the best way to generate remediation guidance after finding JWT weaknesses?

The best way to generate remediation guidance after finding JWT weaknesses is to validate configuration correctness and assess token validation logic. This Skill outputs actionable remediation steps based on the specific algorithm confusion or storage exposure vulnerabilities discovered.