High severityPythonCryptographyMEDIUM confidence
Weak Cipher DES ECB
Use of a weak cipher (DES/3DES/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 = DES.new(key, DES.MODE_ECB)Passes - the safe pattern
cipher = AES.new(key, AES.MODE_GCM, nonce=nonce)Why it matters & how to fix it
Use of a weak cipher (DES/3DES/RC4/Blowfish) or ECB mode (CWE-327/CWE-326). ECB leaks plaintext structure; DES/RC4 are broken. Use AES-256 in an authenticated mode (GCM) with a random nonce.
References
Rule ID integsec-python-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 Hash MD5 SHA1
- Java - CryptographyHardcoded Crypto Key IV