All rules →
Rules / PHP
SHIELD-PHP-014

Hardcoded credentials in source

highPHPCWE-798CVSS 8.2

What it detects

A password or secret is assigned or defined as a literal string constant in code.

How to fix

Load credentials from environment variables or a secrets manager, not from source.

Scan your repo freeFull documentation
Back to all rules
SHIELD-PHP-014: Hardcoded credentials in source — Zennoxa Shield