| name | config-secrets-audit |
| compatibility | ["github-copilot-cli"] |
| description | Config and secret exposure audit skill for repository and IaC config files. USE FOR: scanning Azure Key Vault references, hardcoded connection strings, GitHub Actions env secrets, .env/YAML/Bicep/Terraform parameter secrets, severity scoring, and SARIF output generation. DO NOT USE FOR: runtime penetration testing, live incident response, or deploying remediation changes. |
| category | security |
| metadata | {"category":"security","maturity":"stable","audience":["developer"]} |
| allowed-tools | [] |
Config Secrets Audit Skill
Use this skill to identify likely secrets exposure in configuration surfaces and produce CI-ingestable findings.
Core Coverage
- Azure Key Vault reference usage checks
- Hardcoded connection string detection
- GitHub Actions workflow
env: secret exposure checks
- Base64-like secret token detection
- YAML and
.env configuration scanning
- Bicep/Terraform parameter secret checks
- Severity classification (
critical, high, medium, low)
- SARIF output for code-scanning ingestion
- Exclusion and custom-regex extensibility
- Summary report grouped by category and severity
Scripts
Recommended Workflow
- Run scanner in repo root and review summary findings.
- Triage by severity:
critical: direct credential material or production secret literals
high: probable secret exposure in workflows or config
medium: risky patterns needing review
low: informational or potentially safe references
- Re-run with exclusions for known-safe patterns.
- Export SARIF and upload to code scanning in CI.
Example Commands
pwsh skills/config-secrets-audit/scripts/audit-config-secrets.ps1 -RootPath . -SarifPath .\artifacts\config-secrets.sarif
pwsh skills/config-secrets-audit/scripts/audit-config-secrets.ps1 -RootPath . -ExclusionFile .\config\secret-audit-exclusions.txt
pwsh skills/config-secrets-audit/scripts/audit-config-secrets.ps1 -RootPath . -CustomPatternFile .\config\secret-patterns.json
Integration Notes
- For Azure policy and compliance rollups, forward SARIF + summary output into your policy reporting pipeline.
- Use with
github-security-posture, security-analyst, or devops-audit for remediation planning.