Find Cipher.getInstance("AES/ECB/...") calls

Proprietary

ECB mode encrypts identical plaintext blocks to identical ciphertext blocks, leaking structure (the famous "ECB penguin"). Use AES/GCM/NoPadding or AES/CBC/PKCS5Padding with a random IV per message.

org.openrewrite.kotlin.security.FindCipherEcbMode$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.security.FindCipherEcbMode$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.