Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.crypto.weak-cipher

A broken cipher or ECB mode is used (DES, 3DES, RC2, RC4, Blowfish, *-ECB). ECB leaks plaintext patterns and the others are breakable.

Last updated:

Suite: Security

ruby

A broken cipher or ECB mode is used (DES, 3DES, RC2, RC4, Blowfish, *-ECB). ECB leaks plaintext patterns and the others are breakable.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use an AEAD cipher such as aes-256-gcm (or RbNaCl / ActiveSupport::MessageEncryptor) with a random IV per message.

References

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