vetkit.rust.crypto.insecure-random-token
A security-sensitive value is generated with a non-cryptographic or fixed-seed random number generator.
Last updated:
Suite: Security
rust
A security-sensitive value is generated with a non-cryptographic or fixed-seed random number generator.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use rand::rngs::OsRng, rand::thread_rng() / rand::rng() or getrandom for tokens, keys, salts and nonces.
References
Source: packages/engine/rules/sast/rust.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.