Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.crypto.ecb-mode

A block cipher is used in ECB mode. Identical plaintext blocks produce identical ciphertext blocks, which leaks the structure of the data.

Last updated:

Suite: Security

csharp

A block cipher is used in ECB mode. Identical plaintext blocks produce identical ciphertext blocks, which leaks the structure of the data.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use an authenticated mode (AesGcm) or at least CBC with a random IV plus an HMAC.

References

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