vetkit.go.crypto.hardcoded-key
A cipher, MAC or session-cookie key is a string literal compiled into the program.
Last updated:
Suite: Security
go
A cipher, MAC or session-cookie key is a string literal compiled into the program.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Load the key from the environment or a secret manager, and rotate the value that was committed.
References
Source: packages/engine/rules/sast/go.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.