A software security skill that integrates with Project CodeGuard to help AI coding agents write secure code and prevent common vulnerabilities. Use this skill when writing, reviewing, or modifying code to ensure secure-by-default practices are followed.
rule_id: codeguard-1-hardcoded-credentials
NEVER store secrets, passwords, API keys, tokens or any other credentials directly in source code.
Treat your codebase as public and untrusted. Any credential that appears in source code is compromised and must be handled through secure alternatives.
Passwords and Authentication:
Common Secret Formats You Must NEVER Hardcode:
AKIA, AGPA, AIDA, AROA, AIPA, ANPA, ANVA, ASIAsk_live_, pk_live_, sk_test_, pk_test_AIza followed by 35 charactersghp_, gho_, ghu_, ghs_, ghr_eyJ-----BEGIN and -----END PRIVATE KEY-----mongodb://user:pass@hostWarning Signs in Your Code:
password, secret, key, token, authYou must always explain how this rule was applied and why it was applied.
tessl i cisco/software-security@1.2.5evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
rules