security.cryptography

Avoid weak key-generation strength

Key-generation helpers should use current minimum strengths for RSA, AES, and HMAC keys.

#Metadata

#Why it matters

Weak modulus or key lengths make brute-force and cryptanalytic attacks more practical, even when the API itself is correct.

#Remediation

Use at least 2048-bit RSA keys and at least 128-bit AES or HMAC keys unless a clearly documented compatibility boundary requires otherwise.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.security.weak-key-strength.rule.yaml.