securesauce / precli

Precaution CLI - command line static application security testing tool
https://precli.readthedocs.io/
Other
22 stars 3 forks source link

Add rule to check for improper random generator usage #394

Closed ericwb closed 7 months ago

ericwb commented 7 months ago

Specifically in the hashlib module, it specifies that secure alternatives to the random module should be used for crypto functions.

This rule checks various hashlib functions where a salt is provided via an insecure random function such as random.randbytes() or ssl.RAND_bytes()

Closes #229