Find hardcoded initialization vectors
ProprietaryFinds IvParameterSpec constructed with hardcoded byte arrays or string literals. A static IV makes CBC and other modes deterministic, enabling chosen-plaintext attacks. IVs should be generated randomly using SecureRandom for each encryption operation.
org. openrewrite. java. security. search. FindHardcodedIvmod run . --recipe= org. openrewrite. java. security. search. FindHardcodedIvInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.