Skip to content
vetkitChecksChangelogDocumentation

vetkit.rust.jwt.hardcoded-secret

A JWT signing / verification secret is a string literal compiled into the program.

Last updated:

Suite: Security

rust

A JWT signing / verification secret is a string literal compiled into the program.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Read the secret from the environment or a secret manager at startup and rotate the exposed value.

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.