securesauce/precli

Java Rule for PBEKeySpec where iterations less than 1000

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.

PBEKeySpec - use at least 1000 iterations to generate secure random keys

Describe the solution you'd like
Detect case where Java crypto class PBEKeySpec is used with iterations less than 1000.

Describe alternatives you've considered
n/a

Additional context

https://docs.oracle.com/en/java/javase/21/docs/api/java.base/javax/crypto/spec/PBEKeySpec.html#%3Cinit%3E(char%5B%5D,byte%5B%5D,int)

Love this idea? Give it a 👍. We prioritize fulfilling features with the most 👍.