Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.crypto.static-iv

A cipher is given a constant initialization vector. Reusing an IV with the same key leaks plaintext relationships (and breaks GCM/CTR completely).

Last updated:

Suite: Security

ruby

A cipher is given a constant initialization vector. Reusing an IV with the same key leaks plaintext relationships (and breaks GCM/CTR completely).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use cipher.random_iv for every message and store the IV next to the ciphertext.

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.