jwt-attacks

Test JSON Web Token implementations for security vulnerabilities.

2.9k|469|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/SnailSploit/Claude-Red --skill jwt-attacks-snailsploit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jwt-attacks
Source: https://github.com/SnailSploit/Claude-Red/tree/main/Skills/offensive-jwt
Command: npx skills add https://github.com/SnailSploit/Claude-Red --skill jwt-attacks-snailsploit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps security professionals identify and exploit vulnerabilities in JSON Web Token (JWT) implementations, preventing unauthorized access and data breaches.

Core Features & Use Cases

  • Comprehensive Attack Vectors: Covers algorithm confusion, weak secret brute-forcing, header injection, and more.
  • Methodology & Tools: Provides step-by-step testing procedures and lists essential tools for thorough analysis.
  • Use Case: When testing a web application that uses JWT for authentication, use this Skill to systematically probe for weaknesses like alg: none or predictable secrets, potentially leading to account takeover.

Quick Start

Use the jwt-attacks skill to test the provided JWT token for common vulnerabilities.

Frequently Asked Questions about jwt-attacks

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

FAQPage Schema
How do I test JWT authentication for security vulnerabilities?

To test JWT authentication vulnerabilities, follow a comprehensive methodology covering algorithm confusion, weak secret brute-force, header injection, and missing signature validation. This includes step-by-step manual testing procedures and tool recommendations for thorough analysis.

What is a JWT algorithm confusion attack and how does it work?

A JWT algorithm confusion attack exploits flawed implementations by manipulating the token header to alter signature verification logic, such as switching to `alg: none` or symmetric keys. Testing this involves probing the application to see if it validates tokens using insecure algorithm configurations.

Can I brute force a weak JWT secret to gain unauthorized access?

You can brute force a weak JWT secret by systematically guessing predictable token signing keys. This security testing approach uses recommended tools to analyze provided tokens, potentially allowing account takeover if the application relies on weak or default secrets.

How do I test JWT header injection vulnerabilities like kid, jku, and x5u?

Testing JWT header injection vulnerabilities like kid, jku, and x5u involves manipulating these specific header parameters during penetration testing. The methodology covers probing these parameters to detect if the application fetches keys from untrusted sources, leading to unauthorized access.

What is the best way to check for missing JWT signature validation in an API?

The best way to check for missing JWT signature validation in API security is to submit modified tokens with altered payloads or stripped signatures. This manual testing step identifies whether the application processes unsigned or tampered tokens, exposing critical authentication bypass vulnerabilities.