1---2name: mk-vulnerability-scanner3description: Advanced vulnerability analysis principles. OWASP Top 10 baseline + current threat landscape awareness, Supply Chain Security, attack surface mapping, risk prioritization. Use when performing security audits, threat modeling, or OWASP reviews. NOT for STRIDE/CSO-mode infrastructure audits (see mk:cso).4---56<!-- Split for progressive disclosure (checklist #11, #14): 278 → ~55 lines -->78# Vulnerability Scanner910> Think like an attacker, defend like an expert.1112## When to Use1314- Security audit of a project or module15- Before shipping code that handles auth, payments, or user data16- When asked to "scan for vulnerabilities", "security check", "audit security"17- When mk:cso delegates specific scanning tasks1819## Core Principles2021| Principle | Application |22| -------------------- | ------------------------------------ |23| **Assume Breach** | Design as if attacker already inside |24| **Zero Trust** | Never trust, always verify |25| **Defense in Depth** | Multiple layers, no single point |26| **Least Privilege** | Minimum required access only |27| **Fail Secure** | On error, deny access |2829## Process30311. **Map attack surface** — entry points, data flows, trust boundaries, assets322. **Load scanning methodology** — read `references/scanning-methodology.md`333. **Reconnaissance** — understand technology stack, entry points, data flows344. **Discovery** — configuration review, dependency analysis, code pattern search355. **Analysis** — validate findings, eliminate false positives, score risks366. **Report** — each finding: What, Where, Why, Impact, How to fix3738## Threat Modeling Questions3940Before scanning, ask: What are we protecting? Who would attack? How? What's the impact?4142## References4344| Reference | When to load | Content |45| ------------------------------------------------------------------- | ----------------------- | -------------------------------------------------------------------------------- |46| **[scanning-methodology.md](./references/scanning-methodology.md)** | Step 2 — executing scan | OWASP Top 10, supply chain, code patterns, risk prioritization, reporting format |4748## Runtime Scripts4950| Script | Purpose | Usage |51| -------------------- | -------------------------- | --------------------------------------------------------------------- |52| `security-scan.py` | Security pattern scanning | `.claude/skills/.venv/bin/python3 .claude/scripts/security-scan.py` |53| `injection-audit.py` | Prompt injection detection | `.claude/skills/.venv/bin/python3 .claude/scripts/injection-audit.py` |5455## Gotchas5657- **False positives in test fixtures**: Security scan flags intentionally insecure test data → Exclude test/fixtures/ and **mocks**/ from vulnerability scans58- **Dependency confusion attacks missed**: Scanner checks known CVEs but not package name typosquatting → Cross-reference package names against known typosquat databases