vetkit.go.crypto.insecure-random-token
math/rand is used to produce a security-sensitive value; it is predictable.
Last updated:
Suite: Security
go
math/rand is used to produce a security-sensitive value; it is predictable.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use crypto/rand (rand.Read, rand.Text) for tokens, keys and nonces.
References
Source: packages/engine/rules/sast/go.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.