vetkit.py.crypto.ecb-mode
A block cipher is used in ECB mode, which leaks patterns of the plaintext (identical blocks encrypt identically).
Last updated:
Suite: Security
python
A block cipher is used in ECB mode, which leaks patterns of the plaintext (identical blocks encrypt identically).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use an authenticated mode such as AES-GCM (or AES-CBC/CTR with an HMAC) and a random IV/nonce.
References
Source: packages/engine/rules/sast/python.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.