All rules →
Rules / Python
SHIELD-PY-014

Insecure random number for security purposes

mediumPythonCWE-338CVSS 5.3

What it detects

random.random() and random module are not cryptographically secure.

How to fix

Use secrets module (secrets.token_bytes, secrets.choice) for security-sensitive randomness.

Scan your repo freeFull documentation
Back to all rules
SHIELD-PY-014: Insecure random number for security purposes — Zennoxa Shield