Remediate OWASP A04:2025 Cryptographic failures
ProprietaryOWASP 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. Owasp2025A04mod run . --recipe= org. openrewrite. java. security. Owasp2025A04Install 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.
- Remediate OWASP A02:2021 Cryptographic failures
- Find weak cryptographic algorithms
- Find insecure cipher modes and padding schemes
- Find weak password hashing
- Find RSA encryption without OAEP padding
- Find inadequate cryptographic key sizes
- Upgrade inadequate cryptographic key sizes
- Find hardcoded initialization vectors
- Find predictable cryptographic salts
- Secure random
- Fix CWE-338 with
SecureRandom - Find secrets