All rules →
Rules / JavaScript / TypeScript
SHIELD-JS-011

Hardcoded password or secret

highJavaScript / TypeScriptCWE-798CVSS 7.5

What it detects

Hardcoded credentials in source code can be extracted by attackers.

How to fix

Store secrets in environment variables or a secrets manager. Never hardcode credentials.

Scan your repo freeFull documentation
Back to all rules
SHIELD-JS-011: Hardcoded password or secret — Zennoxa Shield