High severityRubyCryptographyHIGH confidence
Weak Cipher DES ECB
A weak or ECB-mode cipher (DES/RC4/Blowfish or any *-ecb) is used.
Standards mapping
- OWASP Top 10
- A02:2021 - Cryptographic Failures
- OWASP ASVS
- V6.2.2 (L2)
Vulnerable vs. safe
Flagged by this check
cipher = OpenSSL::Cipher.new("des-ecb")Passes - the safe pattern
cipher = OpenSSL::Cipher.new("aes-256-gcm")Why it matters & how to fix it
A weak or ECB-mode cipher (DES/RC4/Blowfish or any *-ecb) is used. These are insecure: DES/RC4 are broken and ECB leaks plaintext structure (CWE-327). Use AES-256 in an authenticated mode (GCM) with a random IV.
References
Rule ID integsec-ruby-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