Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.crypto.weak-rsa-key

An RSA or DSA key smaller than 2048 bits is generated. Such keys are below current minimums and within reach of well-funded factoring attacks.

Last updated:

Suite: Security

csharp

An RSA or DSA key smaller than 2048 bits is generated. Such keys are below current minimums and within reach of well-funded factoring attacks.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use at least 2048-bit RSA (3072 for keys that must last beyond 2030) or switch to ECDSA P-256.

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.