vetkit.js.crypto.hardcoded-key
An encryption or HMAC key is a constant in the source code. Anyone with access to the code (or a leaked build) can decrypt the data or forge MACs.
Last updated:
Suite: Security
javascript, typescript
An encryption or HMAC key is a constant in the source code. Anyone with access to the code (or a leaked build) can decrypt the data or forge MACs.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Load keys from a secret manager / KMS or the environment, and rotate the key that was committed.
References
Source: packages/engine/rules/sast/javascript.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.