Jwt weaknesses

From zakirkun/ice-tea · View interactive version

Jwt weaknesses is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects insecure JWT implementations including none-algorithm acceptance, hardcoded signing secrets, and disabled verification. Use when reviewing authentication code, token signing, or JWT validation logic.

How to use this skill

Skill file

JSON Web Token (JWT) Weaknesses

Scans for insecure JWT patterns across common libraries (PyJWT, jsonwebtoken, java-jwt, go-jwt). See patterns.yaml for detection rules.

Detection Workflow

  1. Find JWT usage — search for jwt.sign, jwt.verify, jwt.decode, Jwts.parser
  2. Check algorithm — flag algorithms: ['none'] or SigningMethodNone
  3. Check secrets — flag hardcoded string literals passed as signing keys
  4. Check verification — flag verify_signature=False or missing verification

Vulnerable

jwt.verify(token, 'hardcoded-secret');
jwt.decode(token, { algorithms: ['none'] });
jwt.decode(token, options={"verify_signature": False})

Safe

jwt.verify(token, process.env.JWT_SECRET, { algorithms: ['RS256'] });
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.