vetkit.go.crypto.ecb-mode
A block cipher encrypts data block by block in a loop (ECB mode). Equal plaintext blocks produce equal ciphertext blocks, which leaks the structure of the data.
Last updated:
Suite: Security
go
A block cipher encrypts data block by block in a loop (ECB mode). Equal plaintext blocks produce equal ciphertext blocks, which leaks the structure of the data.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use an authenticated mode such as cipher.NewGCM with a random nonce per message.
References
Source: packages/engine/rules/sast/go.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.