/phoenix-security-review:tm-security-reviewfrom phoenix-security-review
Builds a full STRIDE threat model, then runs a triple-pass (HUNT→JUDGE→VERIFY) adversarial zero-day exploit review across the entire codebase. Validates the model against code and produces a runnable PoC per confirmed finding. Designed for agentic/LLM/MCP codebases where design risk exceeds pattern bugs.
Ships in phoenix-security-review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Model first, hunt second. A bare hunt enumerates source→sink flows but never asks "is this source actually lower-trust than its sink?" — so it over-rates operator-controlled inputs (CLI flags, config, a JAR on the classpath) as HIGH and misses the real design risk (e.g. an indirect-prompt-injection → auto-exec chain). The threat model supplies that missing trust-direction check. This skill builds the model, then runs the sophisticated zeroday exploit hunt against it.
This is the deep, comprehensive, whole-repo review with a threat model as input — the heavier of
the two tiers. When you only need a quick pass over the changes on a branch/worktree, use
tm-quick-security-assessment instead (and optionally hand its finding surface here for the deep
follow-up).
It composes two sibling skills:
threat-modeling (../threat-modeling/SKILL.md) — STRIDE/DREAD, DFD, trust boundaries.0day-scanner (../0day-scanner/SKILL.md) — the LLM exploit engine, run in deep mode, steered by the model's KEY threats. Its on-disk fallback (security-reviewer/languages/* + 8-point check) applies when the MCP tool is unreachable.[ASSUMPTION])*-threat-model.md), ingest it as Phase 0 — do not regenerate.threat-modeling skill)Produce, or ingest, a STRIDE-per-trust-boundary model. Beyond that skill's default output, require:
TBn, and a | ID | Boundary | Crosses | Primary risk | table.[CONFIRMED] / [REFUTED] / [ASSUMPTION] / [QUESTION].[QUESTION]/[ASSUMPTION] items that change severity and ask the user; if away, take the conservative default and mark it.Before any threat keeps a HIGH: is the source genuinely lower-trust than the sink it reaches?
Take the KEY / High threats that passed the gate. Drive 0day-scanner (deep mode) plus your own
code reading / grep / graph tracing at each one. Enumerate the concrete source → sink path per
threat. Narrate reasoning as you go.
One table, exactly these columns:
| ID | Vulnerability | File | Line(s) | Severity | Sink |
IDs V-01…; severity CRITICAL / HIGH / MEDIUM / LOW. Apply the trust-direction gate to every
row — a flow whose source ≥ sink trust is demoted/refuted with a reason, never listed HIGH.
For each confirmed exploit:
[[path:line]].V-01…V-N: severity label, [[path:line]] citations, residual rating, PoC.[CONFIRMED]): parameterized queries, safe deserialisation, correct secret handling — call them out.| Action | Owner/ETA | Trade-off |. Lead with the real critical (usually the design chain), not the demoted CLI bugs.Save to ~/security-reviews/<target>-security-review.md (models & reviews live outside the reviewed
repo; never modify source). State the path. If no Semgrep/OpenGrep pass was run, recommend it as a
pattern-level backstop for classic injection/secret/subprocess bugs — not for the LLM-architecture
design risks.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
threat-modeling, zero-day, security-review, stride, exploit-hunt, poc-generation
npx claudepluginhub security-phoenix-demo/security-skills-claude-code --plugin phoenix-security-review6 skills in this plugin
/0day-scannerLLM-powered zero-day vulnerability analysis of code changes — a commit, a pull request, a file or a branch — in light, standard or deep mode, with cost budgeting and knowledge-graph linking. Use whenever someone asks to scan for vulnerabilities, check for security issues, mentions 0-day or zero-day, or wants a specific commit, PR, diff or branch reviewed for security. Prefers the `analyze_for_zero_day_vulnerabilities` MCP tool and falls back to the per-language reference packs plus the 8-point check scoped to the diff. For a whole-repo pass use `security-assessment`.
/security-assessmentComprehensive OWASP Top 10 2025 and ASVS Level 1 security assessment across a whole codebase, with cost budgeting, knowledge-graph linking and automated test generation. Use whenever someone asks to run a security assessment, a security audit, a security check or a vulnerability assessment; mentions OWASP Top 10 or ASVS; or wants a full security pass before a release. Prefers the `run_security_assessment` MCP tool and falls back to the bundled OWASP/ASVS checklists and per-language reference packs when MCP is unreachable. For a diff-scoped pass use `0day-scanner`; for design risk use `threat-modeling`; for a threat-model-driven review use `tm-security-review`.
/security-reviewerMulti-language security review for web apps, APIs, and CLIs. Use whenever code is added or modified — new endpoints, auth/RBAC changes, template or DOM rendering, outbound HTTP, dependency updates, IaC/config changes, or end-of-feature reviews. Covers Python, JavaScript, TypeScript, Go, Rust, Java/Kotlin, Ruby, C#/.NET, plus shared OWASP Top 10 and ASVS L1 logic. Triggers on phrases like "security review", "review this for security", "audit this code", "is this safe", "AppSec check", "threat-model this change", "supply chain risk", "before I merge", or whenever a senior engineer would pause to ask "what could go wrong here". Pairs with the `security-reviewer` subagent and the session-start / pre-bash / post-edit hooks shipped alongside it./threat-modelingAutomated STRIDE and DREAD threat modelling from code analysis. Extracts architecture, data flows, entry points and trust boundaries, then produces ranked threats, attack scenarios, mitigations and compliance-ready documentation. Use for security assessment, architecture review, compliance documentation and attack-scenario planning, or whenever someone says threat model this, STRIDE, DREAD, attack surface, data flow diagram or trust boundaries. Runs as Phase 0 of `tm-security-review`.
/tm-quick-security-assessmentThe QUICK tier. Scope to a git worktree/branch and assess only what changed against a base — a fast, threat-model-aware pre-merge security pass (attack-surface delta + OWASP Top 10 on changed files) with the trust-direction gate applied. Composes the security-assessment + 0day-scanner (light) skills. Use for "quick security assessment on this branch", pre-merge review of a worktree/diff, or a fast posture check. For a comprehensive whole-repo review with a full threat model as input, use tm-security-review.Other plugins' skills for the same job