All rules →
Rules / Kotlin
SHIELD-KOTLIN-013

Insecure random used for security tokens

mediumKotlinCWE-338CVSS 5.3

What it detects

java.util.Random or kotlin.random.Random is predictable and must not be used to generate tokens, keys, or nonces.

How to fix

Use java.security.SecureRandom for any security-sensitive random values.

Scan your repo freeFull documentation
Back to all rules
SHIELD-KOTLIN-013: Insecure random used for security tokens — Zennoxa Shield