Skip to content
vetkitChecksChangelogDocumentation

vetkit.rust.crypto.ecb-mode

A block cipher is used in ECB mode; equal plaintext blocks produce equal ciphertext blocks, which leaks data patterns.

Last updated:

Suite: Security

rust

A block cipher is used in ECB mode; equal plaintext blocks produce equal ciphertext blocks, which leaks data patterns.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use an authenticated mode such as AES-GCM (aes-gcm crate or Cipher::aes_256_gcm()) with a fresh nonce per message.

References

Source: packages/engine/rules/sast/rust.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.