vetkit.csharp.crypto.weak-pbkdf2-iterations
PBKDF2 (Rfc2898DeriveBytes) is used with fewer than 100,000 iterations (the two-argument constructors default to 1,000 iterations of SHA-1). Derived keys and password hashes are cheap to brute-force.
Last updated:
Suite: Security
csharp
PBKDF2 (Rfc2898DeriveBytes) is used with fewer than 100,000 iterations (the two-argument constructors default to 1,000 iterations of SHA-1). Derived keys and password hashes are cheap to brute-force.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use Rfc2898DeriveBytes.Pbkdf2(password, salt, 600_000, HashAlgorithmName.SHA256, 32) (OWASP 2023 guidance) or Argon2id.
References
Source: packages/engine/rules/sast/csharp.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.