Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.crypto.weak-hash

MD5 or SHA-1 is used. Both are broken for collision resistance and must not protect integrity, signatures or passwords.

Last updated:

Suite: Security

csharp

MD5 or SHA-1 is used. Both are broken for collision resistance and must not protect integrity, signatures or passwords.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Use SHA-256 or stronger; for passwords use a password hasher (ASP.NET Core Identity's PasswordHasher, PBKDF2 with a high iteration count, Argon2, 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.