/threat-modeling-toolkit:tm-statusfrom threat-modeling-toolkit
Displays current threat model status including asset counts, threat distribution, control verification, gaps, and compliance coverage with text or JSON output.
Ships in threat-modeling-toolkit. 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.
Display a comprehensive overview of the current threat model state:
/tm-status [--format text|json] [--section <name>]
Arguments:
--format: Output format (default: text)--section: Show specific section only (discovery, threats, controls, compliance)═══════════════════════════════════════════════════════════════
THREAT MODEL STATUS
═══════════════════════════════════════════════════════════════
Project: My Application v1.0.0
Framework: STRIDE
Last Updated: 2025-01-20 14:30:00
Baseline: 2025-01-15 (5 days ago)
───────────────────────────────────────────────────────────────
DISCOVERY
───────────────────────────────────────────────────────────────
Assets: 14 total
├── Data Stores: 3 ████████████░░░░░░░░ 21%
├── Services: 6 ████████████████████░ 43%
├── Clients: 3 ████████████░░░░░░░░ 21%
└── Integrations: 2 ████████░░░░░░░░░░░░ 14%
Data Flows: 22 total
└── Crossing trust boundaries: 8 (36%)
Trust Boundaries: 5
├── Network: 2
├── Privilege: 2
└── Environment: 1
Attack Surface: 12 entries
├── Public: 5 ████████████████░░░░ 42%
├── Internal: 5 ████████████████░░░░ 42%
└── Restricted: 2 ██████░░░░░░░░░░░░░░ 17%
───────────────────────────────────────────────────────────────
THREATS
───────────────────────────────────────────────────────────────
Total: 47 threats
By Severity:
├── Critical: 5 ██████░░░░░░░░░░░░░░ 11%
├── High: 12 ████████████░░░░░░░░ 26%
├── Medium: 18 ██████████████████░░ 38%
└── Low: 12 ████████████░░░░░░░░ 26%
By STRIDE Category:
├── Spoofing: 8
├── Tampering: 10
├── Repudiation: 4
├── Information Disclosure: 9
├── Denial of Service: 7
└── Elevation of Privilege: 9
Unmitigated Critical Threats: 3
1. THREAT-001: Credential Stuffing (8.5)
2. THREAT-002: SQL Injection (8.2)
3. THREAT-003: JWT Token Theft (8.0)
───────────────────────────────────────────────────────────────
CONTROLS
───────────────────────────────────────────────────────────────
Total Required: 29
Implementation Status:
├── Implemented: 18 ████████████████████░ 62%
├── Partial: 7 ████████░░░░░░░░░░░░ 24%
└── Missing: 4 █████░░░░░░░░░░░░░░░ 14%
Verification Status:
├── Verified: 18 ████████████████████░ 62%
├── Unverified: 7 ████████░░░░░░░░░░░░ 24%
└── Failed: 4 █████░░░░░░░░░░░░░░░ 14%
───────────────────────────────────────────────────────────────
GAPS
───────────────────────────────────────────────────────────────
Total: 11 gaps
By Severity:
├── Critical: 2 ████░░░░░░░░░░░░░░░░ 18%
├── High: 4 ████████░░░░░░░░░░░░ 36%
├── Medium: 3 ██████░░░░░░░░░░░░░░ 27%
└── Low: 2 ████░░░░░░░░░░░░░░░░ 18%
Top Priority Gaps:
1. [CRITICAL] GAP-001: MFA not enforced
2. [CRITICAL] GAP-002: SQL injection in legacy
3. [HIGH] GAP-003: Rate limiting missing
4. [HIGH] GAP-004: Session fixation
───────────────────────────────────────────────────────────────
COMPLIANCE
───────────────────────────────────────────────────────────────
OWASP Top 10 2021:
Overall: 82%
├── A01 Access Control: 85% █████████░░░
├── A02 Crypto Failures: 100% ████████████
├── A03 Injection: 70% ████████░░░░
├── A04 Insecure Design: 55% ██████░░░░░░
└── ...
SOC2:
Overall: 88%
├── CC6.1 Access: 90% ███████████░
├── CC6.2 Auth: 80% ██████████░░
└── ...
───────────────────────────────────────────────────────────────
RECOMMENDATIONS
───────────────────────────────────────────────────────────────
Immediate Actions:
1. [CRITICAL] Implement MFA enforcement
2. [CRITICAL] Fix SQL injection in legacy module
3. [HIGH] Add rate limiting to password reset
4. [HIGH] Fix session fixation vulnerability
───────────────────────────────────────────────────────────────
QUICK ACTIONS
───────────────────────────────────────────────────────────────
/tm-threats --focus asset-015 Analyze new assets
/tm-verify --thorough Deep verification
/tm-report Generate full report
/tm-drift --create-baseline Create new baseline
═══════════════════════════════════════════════════════════════
{
"project": {
"name": "My Application",
"version": "1.0.0",
"framework": "STRIDE",
"last_updated": "2025-01-20T14:30:00Z"
},
"discovery": {
"assets": {
"total": 14,
"by_type": {
"data-store": 3,
"service": 6,
"client": 3,
"integration": 2
}
},
"dataflows": {
"total": 22,
"crossing_boundaries": 8
},
"trust_boundaries": 5,
"attack_surface": {
"total": 12,
"by_exposure": {
"public": 5,
"internal": 5,
"restricted": 2
}
}
},
"threats": {
"total": 47,
"by_severity": {
"critical": 5,
"high": 12,
"medium": 18,
"low": 12
},
"by_category": {
"spoofing": 8,
"tampering": 10,
"repudiation": 4,
"information-disclosure": 9,
"denial-of-service": 7,
"elevation-of-privilege": 9
},
"unmitigated_critical": 3
},
"controls": {
"total": 29,
"by_status": {
"implemented": 18,
"partial": 7,
"missing": 4
},
"verification": {
"verified": 18,
"unverified": 7,
"failed": 4
}
},
"gaps": {
"total": 11,
"by_severity": {
"critical": 2,
"high": 4,
"medium": 3,
"low": 2
}
},
"compliance": {
"owasp": {
"overall": 82,
"gaps": 5
},
"soc2": {
"overall": 88,
"gaps": 3
}
},
"baseline": {
"date": "2025-01-15",
"days_ago": 5,
"changes_since": {
"assets_added": 2,
"threats_added": 5,
"controls_changed": 2
}
}
}
When executing this skill:
Check for threat model:
.threatmodel/ directory/tm-initLoad all state files:
Calculate statistics:
Format output:
Provide recommendations:
Display status:
[Display formatted status output as shown above]
═══════════════════════════════════════════════════════════════
THREAT MODEL STATUS
═══════════════════════════════════════════════════════════════
No threat model found in current directory.
───────────────────────────────────────────────────────────────
GETTING STARTED
───────────────────────────────────────────────────────────────
OPTION 1: Run everything at once (recommended)
/tm-full --docs ./path/to/docs
OPTION 2: Run step by step
1. /tm-init --docs ./path/to/docs Initialize & discover assets
2. /tm-threats Analyze threats (STRIDE)
3. /tm-verify Check controls in code
4. /tm-compliance --framework owasp Map to compliance frameworks
5. /tm-report Generate reports
───────────────────────────────────────────────────────────────
WHAT IS --docs?
───────────────────────────────────────────────────────────────
Point --docs to a folder containing your architecture documentation:
- README.md with system overview
- Architecture diagrams or descriptions
- API specifications (OpenAPI, GraphQL schemas)
- Infrastructure-as-code (Terraform, CloudFormation)
- Database schemas
- Any markdown files describing your system
Examples:
/tm-init --docs ./docs
/tm-init --docs ./architecture
/tm-init --docs ./design
The toolkit will read these files to understand your system
and automatically discover assets, data flows, and trust boundaries.
═══════════════════════════════════════════════════════════════
═══════════════════════════════════════════════════════════════
THREAT MODEL STATUS
═══════════════════════════════════════════════════════════════
Warning: Incomplete threat model
───────────────────────────────────────────────────────────────
COMPLETED
───────────────────────────────────────────────────────────────
✓ assets.json: 14 assets
✓ dataflows.json: 22 flows
───────────────────────────────────────────────────────────────
NOT YET RUN
───────────────────────────────────────────────────────────────
✗ threats.json → Run /tm-threats
✗ controls.json → Run /tm-verify
✗ compliance.json → Run /tm-compliance
───────────────────────────────────────────────────────────────
NEXT STEP
───────────────────────────────────────────────────────────────
Run the next phase:
/tm-threats
Or run everything remaining:
/tm-full --continue
═══════════════════════════════════════════════════════════════
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
9 skills in this plugin
/tm-complianceMap 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./tm-driftDetect 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./tm-fullRun 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.npx claudepluginhub josemlopez/threat-modeling-toolkit --plugin threat-modeling-toolkit