Find predictable cryptographic salts
ProprietaryFinds PBEParameterSpec and PBEKeySpec constructed with hardcoded or too-short salt byte arrays. A predictable salt undermines the purpose of salting, making rainbow table and precomputation attacks feasible; a salt shorter than 16 bytes is below the minimum strength recommended by NIST SP 800-132. Salts should be generated randomly using SecureRandom and at least 16 bytes long.
org. openrewrite. java. security. search. FindPredictableSaltmod run . --recipe= org. openrewrite. java. security. search. FindPredictableSaltInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.