High severityC#CryptographyHIGH confidence
Weak Cipher
A weak/legacy block cipher (DES, Triple-DES, or RC2) is used.
Standards mapping
- OWASP Top 10
- A02:2021 - Cryptographic Failures
- OWASP ASVS
- V6.2.2 (L2)
Vulnerable vs. safe
Flagged by this check
using var des = DES.Create();Passes - the safe pattern
using var aes = Aes.Create();Why it matters & how to fix it
A weak/legacy block cipher (DES, Triple-DES, or RC2) is used. These have small block/key sizes and are not collision- or brute-force-resistant by modern standards (CWE-327). Use AES (AES-GCM for authenticated encryption) with a 256-bit key instead.
References
Rule ID integsec.csharp.crypto.weak-cipher - 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