QUANTUM HERO Get the toolkit ↗
← FIELD GUIDERULE VERSION 3

PQC-013

A JWT issuer chooses a classical signature

What triggers this rule?

The Python detector finds selected calls to jwt.encode, including recognized import aliases, with algorithm set to a literal RS256, RS384, RS512, PS256, PS384 or PS512. The keyword may also reference a preceding, singly assigned module-level string literal. Literal header dictionaries can include metadata such as kid. A header named alg, a header key the scanner cannot resolve to a literal string, unpacked arguments or a runtime algorithm leaves the selection unresolved. Verification calls fall outside this detector.

What to review

Identify the installed JWT library, then trace one token from the issuer to each service that accepts it. Ask the owner how long existing download links must keep working.

How to verify

For an approved migration, test each supported verifier with an unexpired old token and a newly issued token. Both should work during the agreed overlap. A changed payload, expired token or unsupported algorithm should be rejected.