Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.crypto.ecb-mode

A block cipher is used in ECB mode (explicitly or as the "AES" default), which leaks plaintext patterns.

Last updated:

Suite: Security

java

A block cipher is used in ECB mode (explicitly or as the "AES" default), which leaks plaintext patterns.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use an authenticated mode such as AES/GCM/NoPadding with a unique random IV per message.

References

Source: packages/engine/rules/sast/java.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.