Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.crypto.static-iv

A cipher is initialised with a constant IV/nonce. Reusing an IV/nonce with the same key breaks confidentiality (and integrity for GCM/CTR).

Last updated:

Suite: Security

python

A cipher is initialised with a constant IV/nonce. Reusing an IV/nonce with the same key breaks confidentiality (and integrity for GCM/CTR).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Generate a fresh IV/nonce per message with os.urandom() / secrets.token_bytes() and store it with the ciphertext.

References

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