vetkit.csharp.jwt.hardcoded-signing-key
A JWT signing key is created from a string literal in source code. Anyone with access to the code (or a decompiled binary) can mint valid tokens.
Last updated:
Suite: Security
csharp
A JWT signing key is created from a string literal in source code. Anyone with access to the code (or a decompiled binary) can mint valid tokens.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Load the key from configuration backed by a secret store (Key Vault, environment, user-secrets) and rotate the exposed value.
References
Source: packages/engine/rules/sast/csharp.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.