High severityJavaCryptographyHIGH confidence
Weak Cipher DES ECB
Use of a broken cipher (DES/3DES/RC2/RC4/Blowfish) or ECB mode (CWE-327/CWE-326).
Standards mapping
- OWASP Top 10
- A02:2021 - Cryptographic Failures
- OWASP ASVS
- V6.2.2 (L2)
Vulnerable vs. safe
Flagged by this check
Cipher c = Cipher.getInstance("DES");Passes - the safe pattern
Cipher strong = Cipher.getInstance("AES/GCM/NoPadding");Why it matters & how to fix it
Use of a broken cipher (DES/3DES/RC2/RC4/Blowfish) or ECB mode (CWE-327/CWE-326). ECB reveals plaintext structure and these ciphers are insecure. Use AES-256 in an authenticated mode such as GCM ("AES/GCM/NoPadding") with a random per-message nonce.
References
Rule ID integsec-java-weak-cipher-des-ecb - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - CryptographyInsecure Randomness For Secrets
- JavaScript / TypeScript - CryptographyWeak Cipher Algorithm
- JavaScript / TypeScript - CryptographyWeak Hash Algorithm
- Python - CryptographyInsecure Random Token
- Python - CryptographyWeak Cipher DES ECB
- Python - CryptographyWeak Hash MD5 SHA1