Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.crypto.hardcoded-key

An encryption key is a literal in source code. Anyone with the code (or a leaked copy) can decrypt or forge the protected data.

Last updated:

Suite: Security

python

An encryption key is a literal in source code. Anyone with the code (or a leaked copy) can decrypt or forge the protected data.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Load keys from a secret manager or environment variable and rotate the committed key.

References

Source: packages/engine/rules/sast/python.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.