Find weak password encoder strength

Proprietary

Finds Spring Security BCryptPasswordEncoder instantiations with a strength (work factor) below 10. The default and OWASP-recommended minimum is 10; lower values make stolen password hashes substantially cheaper to brute-force.

org.openrewrite.java.security.search.FindWeakPasswordEncoderStrength
mod run . --recipe=org.openrewrite.java.security.search.FindWeakPasswordEncoderStrength

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