Find hardcoded initialization vectors

Proprietary

Finds 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.FindHardcodedIv
mod run . --recipe=org.openrewrite.java.security.search.FindHardcodedIv

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