| name | security-scanning |
| description | Automated security scanning pipeline covering SAST (Semgrep), SCA (OWASP dependency-check), SBOM generation (Syft), vulnerability scanning (Grype), and secrets detection (detect-secrets). Invoked by security-architect for pre-commit gates, CI integration, and finding triage. |
| version | 1.0.0 |
| category | security |
| agents | ["security-architect","devops","qa"] |
| tools | ["Bash","Read","Write","Grep"] |
| source | builtin |
| trust_score | 100 |
| provenance_sha | c6195cf3c263847d |
Security Scanning Skill
Automated security scanning pipeline: SAST, SCA, SBOM, and secrets detection.
Tools
| Tool | Purpose | Install |
|---|
| Semgrep | SAST โ static analysis | pip install semgrep |
| OWASP dependency-check | SCA โ known CVEs in deps | brew install dependency-check |
| Syft | SBOM generation | brew install anchore/syft/syft |
| Grype | Vulnerability scanner (uses SBOM) | brew install anchore/grype/grype |
| detect-secrets | Secrets detection | pip install detect-secrets |
Phase 1: SAST โ Static Analysis (Semgrep)
semgrep --config auto .
semgrep --config p/security-audit .
semgrep --config p/owasp-top-ten .
semgrep --config auto --json --output semgrep-results.json .
semgrep --config auto --severity ERROR .
Recommended rulesets:
p/security-audit โ broad security audit
p/owasp-top-ten โ OWASP Top 10 coverage
p/javascript โ JS/TS patterns (injection, XSS, prototype pollution)
p/python โ Python patterns (SQL injection, insecure deserialization)
p/secrets โ hardcoded credential detection
Phase 2: SCA โ Software Composition Analysis (OWASP dependency-check)
dependency-check --project myapp --scan . --format JSON --out dependency-check-report
dependency-check --project myapp --scan . \
--nvdApiKey "$NVD_API_KEY" \
--format HTML --out reports/
dependency-check --project myapp --scan . \
--failOnCVSS 7 \
--format JSON --out reports/
dependency-check --project myapp --scan . \
--suppression suppressions.xml