/mcp-security-review:threat-model [feature description or ticket link]from mcp-security-review
Builds a developer-focused threat model for features, components, or systems. Identifies attack scenarios, assesses likelihood, and provides concrete mitigations. Use when designing features involving auth, payments, file handling, multi-tenancy, external APIs, agents, MCP servers, or sensitive data.
Ships in mcp-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.
Build a threat model for:
$ARGUMENTS
If nothing was given, ask what is being built, the tech stack, and whether there are code, data flows or architecture notes to look at. If it is a ticket or page link, fetch it first with the matching MCP server you have connected. If earlier threat models or design pages exist in a wiki or docs tool you have connected, fetch them too.
Write threats as concrete attack scenarios a developer would recognise, each tied to evidence in the description, code or architecture.
The plugin's sec-review MCP server provides these tools. Use them when they are available.
general_lightweight_security_review with the description to get the component menu, and pick the 2 to 5 ids the feature adds or directly modifies (reuse them if a pre-coding review already picked them).threatmodel_perform_threat_model with title, description, components, and whatever you have: data_flows, tech_stack, architecture_notes, data_handled, and previous_models_json (a JSON array of earlier models you fetched). It starts the model from the library's known threats and countermeasures for those components.threatmodel_update_threat_model_file (it writes threat-model.md, appending or replacing as the user prefers).If a tool returns "success": false, follow the error's hint.
Identify the components, data, trust boundaries and actors yourself. For each component, walk through spoofing, tampering, repudiation, information disclosure, denial of service and elevation of privilege, and keep only the threats that fit this feature. Write the file yourself if the user wants it saved.
## Threat Model: <feature>
**Created:** <YYYY-MM-DD>
**Components:** ...
**Data it touches:** be specific (for example "password hashes in the users table")
### What can go wrong
#### TM-1: <plain-language threat>
- **Impact:** <business consequence>
- **Likelihood:** high | medium | low
- **Data affected:** ...
- **Mitigation:** <specific fix: library, setting or code pattern>
- **Evidence:** <what in the description or code makes this credible>
- **Status:** open
### Summary
<overall risk, the most critical threats, and which mitigations come first>
After presenting it, ask whether to save it to threat-model.md, and whether to append or replace if the file exists.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/security-reviewPre-coding security review for a development task: which parts of the system it touches, the threats to guard against, and the countermeasures to build in. Use before coding a feature, or when the user asks about security requirements, risks, or how to build something safely (login, payments, file upload, APIs, agents, MCP servers, and so on).
/verify-codeSecurity review of code that was just written or changed. Use after generating code, or when the user asks whether code is secure, to check for vulnerabilities, or to audit a file before shipping (especially auth, APIs, file handling, database queries, agents or anything that handles user input).
npx claudepluginhub srajangpt1/ai-security-crew --plugin mcp-security-reviewOther plugins' skills for the same job