All rules →
Rules / Dart
SHIELD-DART-012

Insecure random for security tokens

mediumDartCWE-338CVSS 6.5

What it detects

The default Random() is not cryptographically secure and must not generate tokens or secrets.

How to fix

Use Random.secure() for any security-sensitive random value.

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