Remediate OWASP A04:2025 Cryptographic failures

Proprietary

OWASP A04:2025 describes failures related to cryptography (or lack thereof), which often lead to exposure of sensitive data. Previously A02:2021.

org.openrewrite.java.security.Owasp2025A04
mod run . --recipe=org.openrewrite.java.security.Owasp2025A04

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

Recipe list

It runs these recipes, in this order.

  1. Remediate OWASP A02:2021 Cryptographic failures
  2. Find weak cryptographic algorithms
  3. Find insecure cipher modes and padding schemes
  4. Find weak password hashing
  5. Find RSA encryption without OAEP padding
  6. Find inadequate cryptographic key sizes
  7. Upgrade inadequate cryptographic key sizes
  8. Find hardcoded initialization vectors
  9. Find predictable cryptographic salts
  10. Secure random
  11. Fix CWE-338 with SecureRandom
  12. Find secrets