vetkit.rust.crypto.weak-rsa-key
An RSA key shorter than 2048 bits is generated; such keys can be factored with modest resources.
Last updated:
Suite: Security
rust
An RSA key shorter than 2048 bits is generated; such keys can be factored with modest resources.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Generate keys of at least 2048 bits (3072 for long-lived keys) or use Ed25519 / ECDSA P-256.
References
Source: packages/engine/rules/sast/rust.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.