vetkit.java.crypto.insecure-random-token
A security-sensitive value (token, password, session id, nonce, salt) is generated with a predictable random number generator.
Last updated:
Suite: Security
java
A security-sensitive value (token, password, session id, nonce, salt) is generated with a predictable random number generator.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use java.security.SecureRandom (e.g. 32 random bytes, Base64url-encoded) for secrets and tokens.
References
Source: packages/engine/rules/sast/java.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.