performing-jwt-none-algorithm-attack

Forge and test JWT none-algorithm tokens to detect signature verification bypass vulnerabilities.

4|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/braydos-h/BreachPilot --skill performing-jwt-none-algorithm-attack-braydos-h
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performing-jwt-none-algorithm-attack
Source: https://github.com/braydos-h/BreachPilot/tree/main/skills/performing-jwt-none-algorithm-attack
Command: npx skills add https://github.com/braydos-h/BreachPilot --skill performing-jwt-none-algorithm-attack-braydos-h

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve? Security testers need to verify whether an application's JWT implementation accepts tokens with the alg header set to none, which would allow attackers to forge tokens with arbitrary claims such as admin roles or impersonated users. This Skill automates crafting and testing those forged tokens against authorized targets. ## Core Features & Use Cases - JWT Decoding and Analysis: Decode any JWT to inspect its header, payload, and vulnerability indicators such as missing expiry or none algorithm usage. - Forged Token Generation: Create none-algorithm token variants (none, None, NONE, nOnE, empty signature) with modified claims for privilege escalation and user impersonation testing. - Algorithm Confusion Testing: Test RS256-to-HS256 downgrade attacks using a server's public key as an HMAC secret. - Use Case: During an authorized API security assessment, intercept a session JWT, run the test command against the target endpoint, and receive a CRITICAL finding if any forged variant is accepted, proving the server skips signature verification. ## Quick Start Run the agent script in test mode with your target API URL and a captured JWT to check whether the server accepts none-algorithm forged tokens.

Frequently Asked Questions about performing-jwt-none-algorithm-attack

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

FAQPage Schema
How do I test for JWT none algorithm vulnerability?▼

Capture a valid JWT from the target application, then use the forge command to generate none-algorithm variants with modified claims. Send each forged token to a protected endpoint and check whether any variant returns a 200 status, which indicates the server skips signature verification.

What is the JWT none algorithm attack?▼

The none algorithm attack exploits JWT libraries that accept tokens with the alg header set to none, treating them as valid without verifying any signature. Attackers can forge tokens with arbitrary claims like admin roles or other users' identities.

What tools do I need for JWT token manipulation testing?▼

You need Python 3.8+ with the standard base64, json, and hmac libraries, plus the requests package for live endpoint testing. Burp Suite or mitmproxy is recommended for intercepting the original token from HTTP traffic.

Can this test RS256 to HS256 algorithm confusion attacks?▼

Yes, the confuse command tests algorithm confusion by re-signing the token with HS256 using the server's RSA public key as the HMAC secret. You must supply the public key file, which is often publicly available from JWKS endpoints.

Why does the none algorithm attack fail against some servers?▼

Properly configured JWT libraries reject none-algorithm tokens when verification specifies an explicit algorithm allowlist, such as algorithms=["HS256"] in PyJWT. Case-variant bypasses also fail when libraries normalize and strictly validate the alg header.

Is it legal to run JWT none algorithm tests?▼

Only on systems you own or have explicit written authorization to test. The skill includes a legal notice stating that unauthorized use against systems without permission is illegal and may violate computer fraud laws.