.claude/skills/security-scan/SKILL.md
Security scan workflow — dependency audit, OWASP checklist, secrets scan, vulnerability report. Applies software-engineer role with security focus. Use standalone or as part of code review.
npx skillsauth add avav25/ai-assets security-scanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automated security audit for the project. Checks dependencies for known vulnerabilities, scans for hardcoded secrets, and reviews code against OWASP guidelines.
Read CLAUDE.md and project config to determine:
Run the project's dependency vulnerability scanner:
| Stack | Command |
|---|---|
| Node.js (npm) | npm audit |
| Node.js (pnpm) | pnpm audit |
| Node.js (yarn) | yarn audit |
| Python (pip) | pip-audit or safety check |
| Python (poetry) | poetry audit or pip-audit |
| Java (Maven) | mvn org.owasp:dependency-check-maven:check |
| Java (Gradle) | gradle dependencyCheckAnalyze |
| Go | govulncheck ./... |
| .NET | dotnet list package --vulnerable |
| Docker | trivy image <image-name> or docker scout cves |
Classify findings by severity:
| Severity | Action | |---|---| | Critical / High | Must fix before merge. Upgrade dependency or apply workaround | | Medium | Should fix. Schedule if no immediate upgrade available | | Low | Track. Fix in next maintenance cycle |
Scan the codebase for hardcoded secrets:
// turbo
git log --diff-filter=A --name-only --pretty=format: | sort -u
Check for common secret patterns in source files:
Tools (if available):
gitleaks detect --source .trufflehog filesystem .detect-secrets scanManual code review against OWASP Top 10 (2021):
| # | Risk | What to Check | |---|---|---| | A01 | Broken Access Control | Authorization checks on every endpoint, CORS policy, directory traversal | | A02 | Cryptographic Failures | TLS enforcement, password hashing, data encryption, no weak algorithms | | A03 | Injection | SQL/NoSQL/OS command injection, parameterized queries, input validation | | A04 | Insecure Design | Threat model, rate limiting, business logic flaws | | A05 | Security Misconfiguration | Default credentials, debug mode, unnecessary features, error messages | | A06 | Vulnerable Components | Dependency audit results (Step 2) | | A07 | Auth Failures | Brute force protection, session management, MFA | | A08 | Data Integrity Failures | CI/CD pipeline security, deserialization, update verification | | A09 | Logging Failures | Security event logging, no PII in logs, monitoring | | A10 | SSRF | Server-side request validation, allowlists for external calls |
Use code-review skill's security-checklist.md for detailed checks.
latest tag — pinned versions.tf files## Security Scan Report
### Summary
- **Risk level**: LOW / MEDIUM / HIGH / CRITICAL
- **Scan date**: [date]
- **Scope**: [what was scanned]
### Dependency Vulnerabilities
| Package | Current | Fixed In | Severity | CVE |
|---------|---------|----------|----------|-----|
| [pkg] | [ver] | [ver] | [sev] | [id]|
### Secrets Found
- [ ] [file:line] — [type of secret] — **ACTION: Remove and rotate**
### OWASP Findings
| Risk | Status | Details |
|------|--------|---------|
| A01 Access Control | ✅/❌ | [details] |
| A02 Crypto | ✅/❌ | [details] |
| ... | ... | ... |
### Infrastructure
- Docker: [pass/fail/N/A]
- Kubernetes: [pass/fail/N/A]
- Terraform: [pass/fail/N/A]
### Recommended Actions
1. **Critical**: [action] — [deadline]
2. **High**: [action] — [deadline]
3. **Medium**: [action] — [schedule]
/code-review (security layer), /pre-commit (optional)Agent(software-engineer) (security focus), Agent(devops-engineer) (infra scan), Agent(devops-architect) (supply chain security, GHAS, SBOM/SLSA)code-review skill (security checklist)development
Use this skill when running the recurring (daily) knowledge-base rescan for a repo that already has knowledge/.knowledge-sync.yml — the main-thread dispatcher that reads the config, computes the git delta since last_scanned_sha, maps changed paths to affected doc areas, early-exits cheaply when nothing changed, then fans out one Agent(content-writer) per affected area, applies the propose/direct update policy, advances the baseline only on success, and writes an L4 run log — all with the G1 untrusted-content choke-point, secret-scan, deny-list, and budget controls woven in. For first-time setup use /knowledge-sync-init.
development
Use this skill when bootstrapping scheduled knowledge-base sync for a repo that has no knowledge/.knowledge-sync.yml yet — to run one-time setup that detects the knowledge_root from CLAUDE.md/AGENTS.md, maps doc areas to source globs, records opt-in external sources (Linear/Notion/WebFetch, all disabled by default), captures a baseline last_scanned_sha, sets the per-area update policy, generates or seeds knowledge/CONVENTIONS.md, provisions the L4 memory dir, and offers to register the daily routine. Routes ongoing recurring sync operations to /knowledge-sync.
tools
Use this skill when bootstrapping a target repository to be ai-skills-aware — on the first run of any ai-skills workflow in a fresh repo, when adopting the ai-skills plugin in an existing repo, or after upgrading to a plugin version that adds new memory paths or templates, including when the user does not say "init" but asks to "set up" or "onboard" the repo — to detect codebase type, create CLAUDE.md + AGENTS.md scaffolding, initialize the .ai-skills-memory/ directory tree from L1 templates, and configure .gitignore. Idempotent — safe to re-run. Accepts `--codebase-type <type>` and `--overwrite`. Not for re-initializing only memory — use `/memory-init` instead.
tools
Use this skill when extending, repairing, or improving plugin assets, when ingesting a `/feedback` report as a fix-cycle backlog, or when you do not remember which lower-level command is right for the job — the umbrella workflow for ai-skills plugin-asset authoring and maintenance: creating, auditing, fixing, improving, refactoring, and migrating skills, agents, rules, hooks, prompts, schemas, and rubrics inside the plugin. Auto-classifies the request, loads the right knowledge skills (`@prompt-engineering`, `@context-engineering`, `@team-protocols`), and spawns the right subagents (`prompt-engineer`, `system-architect`, `python-engineer`, `software-engineer`, `qa-engineer`, `eval-judge`) via the `Agent` tool.