security-audit
Validate security requirements and assess vulnerabilities across code, dependencies, infrastructure, and configuration, with OWASP/CWE compliance and STRIDE threat modeling. Use to security-review an SDD project or its implementation.
What this skill does
# security-audit
## Purpose
Ensure security requirements are properly defined, implemented, and tested, and
identify vulnerabilities across code, dependencies, infrastructure, and
configuration. Validates compliance against recognized standards (OWASP Top 10,
CWE, GDPR/HIPAA/SOC 2/PCI DSS where relevant) and performs STRIDE threat
modeling. Security requirements trace from SPEC (Layer 6) and the EARS/ADR
security topics upstream of it.
## When to Use
Use `security-audit` when:
- Reviewing the security posture of an SDD project or its implementation.
- Validating that security requirements in SPEC (and upstream EARS/ADR) are
complete and testable.
- Scanning code, dependencies, infrastructure, or configuration for
vulnerabilities, secrets, or compliance gaps.
- Performing threat modeling on a component or system.
Do **not** use it for general (non-security) artifact quality (use
`../quality-advisor/SKILL.md`) or traceability validation (use
`../doc-validator/SKILL.md`).
## Behavior
The audit runs as a pipeline, producing a single report:
1. **Requirements validation** — check security requirements (sourced from SPEC
and upstream EARS/ADR) for completeness: authn/authz, data protection,
encryption, key management; flag missing or vague requirements.
2. **Code scanning** — SAST (bandit, semgrep), dependency CVEs (safety,
pip-audit), secret detection (detect-secrets, gitleaks), and pattern checks
for injection, XSS, and CSRF. Critical findings block deployment.
3. **Infrastructure scanning** — IaC (checkov, tfsec), containers (trivy,
grype), Kubernetes, and cloud/network configuration.
4. **Dependency assessment** — known CVEs, CVSS scoring, outdated and transitive
packages, and license-compliance issues.
5. **Compliance check** — OWASP Top 10 (2021) coverage and CWE mapping, plus any
applicable regulatory frameworks.
6. **Threat modeling** — STRIDE analysis, attack-surface and trust-boundary
mapping, with mitigation status per threat.
7. **Report** — overall security score, findings grouped by severity
(critical/high/medium/low) with file:line, CWE/CVE, CVSS, and fix, plus
compliance status and prioritized remediation. Critical issues are marked as
deployment blockers.
**Targets**: zero critical vulnerabilities, no secrets in the repository, 100%
coverage of MUST security requirements, OWASP Top 10 fully covered.
**Limitations**: cannot detect all business-logic flaws, may produce false
positives requiring manual review, and depends on current tool vulnerability
databases.
## Related Resources
- SPEC layer: `${CLAUDE_PLUGIN_ROOT}/framework/layers/06_SPEC/README.md` ·
`${CLAUDE_PLUGIN_ROOT}/framework/layers/06_SPEC/SPEC-TEMPLATE.yaml`
- Upstream security topics: `${CLAUDE_PLUGIN_ROOT}/framework/layers/03_EARS/README.md` ·
`${CLAUDE_PLUGIN_ROOT}/framework/layers/05_ADR/README.md`
- Governance: `${CLAUDE_PLUGIN_ROOT}/framework/governance/` (ID, tagging, traceability standards)
- Related skills: `../quality-advisor/SKILL.md` · `../doc-validator/SKILL.md` ·
`../doc-spec/SKILL.md`
- References: OWASP Top 10 (2021), CWE, OWASP ASVS
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations — diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.