vetkit.py.crypto.insecure-random-token
The random module is used to generate a security-sensitive value. It is predictable.
Last updated:
Suite: Security
python
The random module is used to generate a security-sensitive value. It is predictable.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use the secrets module (secrets.token_urlsafe, secrets.token_hex).
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.