Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.crypto.weak-password-hash

A password is hashed with a single fast hash (MD5, SHA-1 or SHA-2). Fast unsalted hashes are cracked offline at billions of guesses per second.

Last updated:

Suite: Security

csharp

A password is hashed with a single fast hash (MD5, SHA-1 or SHA-2). Fast unsalted hashes are cracked offline at billions of guesses per second.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use ASP.NET Core Identity's PasswordHasher<T>, Rfc2898DeriveBytes.Pbkdf2 with ≥ 600,000 SHA-256 iterations and a random salt, or Argon2id / bcrypt.

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.