Weak jwt algorithm

From zakirkun/ice-tea · View interactive version

Weak jwt algorithm is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects JWT usage with weak or insecure signing algorithms including HS256 with short secrets, RS256 key confusion, and algorithm downgrade.

How to use this skill

Skill file

Weak JWT Algorithm

Overview

JWT algorithm issues include:

  1. HS256 with short key: HS256 keys shorter than 256 bits are brute-forceable
  2. Algorithm confusion (RS256 → HS256): Public key used as HMAC secret when server accepts both
  3. Explicit none algorithm: No signature required
  4. Embedded JWK in header: Attacker provides their own public key

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.