By josemlopez
AI-powered threat modeling toolkit with STRIDE/PASTA framework support. Analyze architecture, discover threats, verify controls, and generate comprehensive security reports.
Map threats and controls to compliance frameworks like OWASP Top 10, SOC2, PCI-DSS, HIPAA, GDPR. Generates compliance reports with coverage percentages and gaps. Use when checking compliance status, mapping to security frameworks, or generating audit documentation.
Detect changes in the threat model since the last baseline snapshot. Identifies new assets, changed flows, new threats, and control status changes. Use when comparing threat model versions, tracking security drift, monitoring for new risks, or validating changes after updates.
Run the complete threat modeling workflow from initialization through reporting. Orchestrates all other skills in sequence. Use when performing full threat model analysis, running complete security assessment, or generating comprehensive threat documentation.
Initialize a threat modeling project by analyzing architecture documentation. Creates threat model structure with asset inventory, data flows, trust boundaries, and attack surface mapping. Use when starting new threat modeling work, setting up threat model for a project, or creating initial security assessment.
Generate comprehensive prioritized risk reports with executive summaries, threat details, gap analysis, and recommendations. Use when creating security reports, generating executive summaries, documenting risk assessments, or preparing audit documentation.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Threat modeling inside your developer tools. No new UI. No external platform.
In Claude Code, run these two commands:
/plugin marketplace add josemlopez/threat-modeling-toolkit
/plugin install threat-modeling-toolkit@josemlopez
That's it. All 9 skills are now available.
Verify it worked:
/tm-status
Try the toolkit on an included test project.
git clone https://github.com/josemlopez/threat-modeling-toolkit.git
cd threat-modeling-toolkit/TEST/simple-app
In Claude Code:
/tm-full --docs ./docs --compliance owasp,soc2
.threatmodel/
├── state/
│ ├── assets.json # 5 assets discovered
│ ├── threats.json # 15 threats identified
│ ├── controls.json # 5 implemented, 7 missing
│ └── gaps.json # 10 security gaps
├── diagrams/
│ └── architecture.mmd # Mermaid diagram
└── reports/
├── risk-report.md # Full findings
└── compliance-report.md # OWASP 52%, SOC2 48%
Let's walk through each skill using the TEST/simple-app project (a React + Express + PostgreSQL task manager with intentional security gaps).
/tm-init --docs ./docs
What it does: Reads your architecture documentation and extracts assets, data flows, trust boundaries, and attack surface.
Output:
Threat Model Initialized
========================
Project: TaskFlow
Framework: STRIDE
Discovered:
- 5 assets (1 client, 1 service, 1 data-store, 1 identity, 1 integration)
- 8 data flows (8 cross trust boundaries)
- 4 trust boundaries
- 8 attack surface entries
Created:
.threatmodel/config.yaml
.threatmodel/state/assets.json
.threatmodel/state/dataflows.json
.threatmodel/diagrams/architecture.mmd
Next Steps:
Run /tm-threats to analyze threats
Files created:
assets.json — React Frontend, Express API, PostgreSQL, JWT Auth, SendGridattack-surface.json — All API endpoints with auth requirementsarchitecture.mmd — Mermaid diagram ready to render/tm-threats
What it does: Applies STRIDE analysis to every asset and data flow. Generates attack trees for critical threats.
Output:
Threat Analysis Complete
========================
Framework: STRIDE
Assets Analyzed: 5
Threats Identified:
Critical: 4
High: 7
Medium: 4
Total: 15
Top Critical Threats:
1. [THREAT-001] Credential Stuffing Attack (Risk: 16)
2. [THREAT-003] BOLA - Task Update (Risk: 16)
3. [THREAT-004] BOLA - Task Delete (Risk: 16)
4. [THREAT-013] Missing MFA (Risk: 16)
Files Updated:
.threatmodel/state/threats.json
.threatmodel/state/attack-trees.json
.threatmodel/state/risk-register.json
Next Steps:
Run /tm-verify to check control implementations
What you'll find in threats.json:
Each threat includes category, target, risk score, MITRE ATT&CK mapping, CWE references, and recommended countermeasures.
/tm-verify
What it does: Searches your codebase to verify security controls actually exist. Provides file:line evidence.
Output:
Control Verification Complete
=============================
Controls Analyzed: 15
Verification Results:
✓ Implemented: 5 (33%)
⚠ Partial: 3 (20%)
✗ Missing: 7 (47%)
Gaps Identified:
Critical: 3
High: 5
Medium: 2
Files Updated:
.threatmodel/state/controls.json
.threatmodel/state/gaps.json
Next Steps:
Run /tm-compliance to map to frameworks
Evidence found:
| Control | Status | Evidence |
|---|---|---|
| Password Hashing | ✓ | src/routes/auth.js:20 - bcrypt cost 10 |
| JWT Authentication | ✓ | src/middleware/auth.js:16 |
| Rate Limiting (login) | ✓ | src/middleware/rateLimiter.js:4-10 |
| BOLA Protection | ✗ | Missing in src/routes/tasks.js:44 |
| MFA | ✗ | Not found |
/tm-compliance --framework owasp,soc2
What it does: Maps your threats and controls to OWASP Top 10, SOC2, PCI-DSS.
Output:
Compliance Mapping Complete
===========================
npx claudepluginhub josemlopez/threat-modeling-toolkitAutomated threat modeling for Claude Code. Runs security assessments via subagents when you approve implementation plans.
Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling. Do not trigger for general architecture summaries, code review, or non-security design work. Originally from OpenAI's curated skills catalog.
Comprehensive threat modeling toolkit using STRIDE, attack trees, data flow analysis, and risk scoring. Model threats, analyze attack surfaces, assess organizational risk, and map trust boundaries.
Security skills for vibe coding — pre-coding security assessment, code vulnerability review, and threat modeling. Works without any MCP server or Jira/Confluence setup.
AI-powered whitebox penetration testing plugin for Claude Code. 9 languages, 27 skills, 8 autonomous agents. STRIDE threat modeling, hotspot-aware findings, SARIF output, and polyglot monorepo support.
Check OWASP Top 10 compliance
Open-source cybersecurity analysis agent. Scans any local project for vulnerabilities: code security (SAST), dependency CVEs (SCA), secret leaks, authentication/authorization flaws, cryptographic weaknesses, misconfigurations, supply chain risks, and CI/CD security. Covers all OWASP 2025 Top 10 and CWE Top 25 categories. Generates prioritized reports with remediation guidance. Invoke with /cyber-neo [path].