credential-audit
Auditing secret leakage, password policies, and credential exposure.
SKILL.mdskills/security/credential-audit/SKILL.md
GitHubCredential Auditing
Overview
This skill focuses on searching for leaked API keys, tokens, hardcoded passwords, and weak system credential policies.
Methodology (9-Phase Sequence)
- Recon: Map host filesystems, git repositories, and credential storage endpoints. Log targets via
security_inventory. - Enumeration: Search for config filenames containing secrets (
.env,credentials.xml,config.json). - Collection: Extract files containing suspected keys/tokens, and read system password policies.
- Evidence: Validate leaked secret signatures (metadata only, no raw secrets) and record findings as Evidence via
security_evidence. - Analysis: Trace where credentials are used and map credential-to-host links in the InfrastructureGraph.
- Prioritization: Execute
security_riskto grade key exposures based on scope of access and system criticality. - Recommendation: Formulate key rotation instructions, environment variable updates, and password policy hardening actions.
- Verification: Verify that configuration files are purged, keys are rotated, and old keys return authorization errors.
- Report: Document leaked keys, credential mappings, and revocation proofs in a report via
security_report.