/universe:threat-model [feature-or-module]from universe
Generates structured threat models using STRIDE methodology for features or modules. Identifies assets, attack surfaces, threats, and mitigations to find vulnerabilities before shipping.
Ships in universe. 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.
Read when SKILL.md points to them.
Generate a structured threat model for a feature or module using the STRIDE methodology. Identifies assets, threat actors, attack surfaces, potential attacks, and mitigations.
Threat modeling BEFORE building is cheaper than finding vulnerabilities AFTER shipping. This skill provides the security thinking that most development skips.
Read the target feature or module. If a specific file/directory was provided, focus there. Otherwise, ask what feature or system to model.
Understand:
With shieldkit-mcp (preferred): Call shieldkit_surface to get structured attack surface
mapping — all endpoints with auth status, env file coverage, and external boundaries.
Use this as the foundation for the attack surface map.
Without shieldkit-mcp: Discover manually by reading route files and handler directories.
Identify every point where external input enters the system:
For each entry point, note: what data comes in, who can send it, and what validation exists.
For each entry point, systematically check six threat categories:
| Threat | Question | Example |
|---|---|---|
| Spoofing | Can someone pretend to be someone else? | Forged auth token, session hijack |
| Tampering | Can someone modify data they shouldn't? | SQL injection, parameter manipulation |
| Repudiation | Can someone deny they did something? | Missing audit logs, unsigned actions |
| Information Disclosure | Can someone access data they shouldn't? | IDOR, error messages, logs |
| Denial of Service | Can someone make this unavailable? | No rate limiting, resource exhaustion |
| Elevation of Privilege | Can someone gain unauthorized access? | Mass assignment, role escalation |
Not every threat applies to every entry point. Skip categories that genuinely don't apply and note why.
For each identified threat, assess:
Priority Matrix (Likelihood x Impact):
| Impact: Critical | Impact: High | Impact: Medium | Impact: Low | |
|---|---|---|---|---|
| Likelihood: High | P0 | P0 | P1 | P2 |
| Likelihood: Medium | P0 | P1 | P2 | P3 |
| Likelihood: Low | P1 | P2 | P3 | P3 |
Documenting skipped categories: For each STRIDE category that does NOT apply to a given entry point, include a one-line note explaining why. Example:
| - | Repudiation | N/A -- read-only endpoint, no state mutations to log | /api/health | - | - | - |
This prevents reviewers from wondering whether a category was overlooked vs. intentionally skipped.
For each threat, provide a specific mitigation:
Report format:
## Threat Model — {feature/module name}
### Overview
{What this feature does and why it matters from a security perspective}
### Assets
{What data/resources need protecting}
### Trust Boundaries
{Where trusted meets untrusted — diagram if helpful}
### Attack Surface
{Entry points enumerated}
### Threats
| # | Category | Threat | Entry Point | Likelihood | Impact | Priority |
|---|----------|--------|-------------|------------|--------|----------|
| 1 | Tampering | SQL injection via search | /api/search?q= | High | Critical | P0 |
| 2 | Spoofing | Session fixation | /auth/login | Medium | High | P1 |
| ... |
### Mitigations
1. **T1: SQL injection** — Use parameterized queries for search endpoint.
Status: NOT MITIGATED — current code uses string interpolation.
2. **T2: Session fixation** — Regenerate session after login.
Status: MITIGATED — auth library handles this automatically.
### Summary
{n} threats identified: {critical} P0, {high} P1, {medium} P2, {low} P3
{n} already mitigated, {n} need implementation
/scan — Use to verify whether identified threats have corresponding vulnerabilities in code/security-review — Use on the highest-risk code identified by the threat modelreferences/stride-guide.md — Detailed STRIDE methodology with examples for each
category and common patterns by application typeWhat SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/check-rulesThis skill should be used when the user asks to "check adherence", "check rule adherence", "are my rules being followed", "is Claude following my instructions", "how effective is my CLAUDE.md", "rule compliance", "instruction effectiveness", "how are my rules performing", "which rules are being violated", "audit my rules", "check my CLAUDE.md", mentions "/check-rules", or wants to know whether their coding agent instruction rules are actually being followed across Claude Code sessions./discoverUse when the user wants to infer reusable project conventions from existing code and turn them into instruction rules: "discover conventions", "infer rules from code", "what rules should I add", "generate rules from this codebase", or "/discover". This is for convention mining, not for checking rule adherence or explaining how a specific module works./npx claudepluginhub mbwsims/claude-universe --plugin universeOther plugins' skills for the same job