Find JWT misuse

Proprietary

Hard-coded JJWT signing keys, signWith(NONE) patterns that produce unsigned tokens, and literal "alg":"none" strings that show up in headers and test fixtures alike.

org.openrewrite.kotlin.security.FindJwtMisuse$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindJwtMisuse$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find JwtBuilder.setSigningKey("literal".toByteArray()) patterns
  2. Find JwtBuilder.signWith(SignatureAlgorithm.NONE, ...) patterns
  3. Find "alg":"none" literal strings