Skip to content

Inadequate Encryption Strength

Description

DES is considered a weak cipher for modern applications. Currently, NIST recommends the usage of AES block ciphers instead of DES.

Examples

Insecure Code

scala
javax.crypto.Cipher.getInstance("DES")

Secure Code

scala
javax.crypto.Cipher.getInstance("AES")

Remediation

Replace DES with a stronger encryption algorithm like AES.

Rule Details

FieldValue
IDCODE-0018
CategoryCrypto
SeverityMEDIUM
CWECWE-326
ConfidenceHIGH
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityEASY
Tagsinsecure-cipher, weak-encryption
OWASPN/A