Skills
mk:vulnerability-scanner
Attacker-minded analysis of application code for OWASP Top 10 and supply-chain vulnerabilities.
| Source | .claude/skills/vulnerability-scanner/SKILL.md |
| Owner | security |
| Runtime | claude-code |
| Risk | high |
What it does
mk:vulnerability-scanner audits a project or module for vulnerabilities. Use it before shipping code that handles auth, payments or user data, when asked to scan for vulnerabilities, or when mk:cso delegates a scanning task. It reads and searches the code and changes nothing.
When not to use it
For a full security audit covering secrets, dependencies, CI/CD, OWASP and STRIDE, use mk:cso.
Steps
- Map the attack surface: entry points, data flows, trust boundaries and assets. Ask what you are protecting, who would attack, how, and with what impact.
- Read
references/scanning-methodology.md, which covers the OWASP Top 10, supply chain, code patterns, risk prioritisation and the report format. - Identify the technology stack, entry points and data flows.
- Discover: review configuration, analyse dependencies and search for code patterns.
- Validate findings, remove false positives and score the risk.
- Report each finding with what, where, why, impact and how to fix it.
The principles are assume breach, zero trust, defence in depth, least privilege and fail secure.
Scripts
| Script | Use |
|---|---|
.claude/skills/lint-and-validate/scripts/security-scan.py | Security pattern scan, run as node .claude/hooks/lib/skill-python.cjs <script path> |
.claude/hooks/lib/injection-audit.cjs | Prompt-injection detection |
Gotchas
- Intentionally insecure test fixtures trigger findings. Exclude
test/fixtures/and mock folders. - The scanner checks known CVEs but not typosquatted package names. Compare package names against typosquat lists.