karamonjie/karamotech-agent-suite/threat-model

Claude Code and agent skill by karamonjie/karamotech-agent-suite

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

STRIDE + MITRE ATT&CK threat modeling — generate prioritized risk registers, DFDs, and control recommendations for any system

Install

npx vskill@latest install karamonjie/karamotech-agent-suite/threat-model

SKILL.md

The same SKILL.md was published earlier as karamonjie/karamotech-agent-suite/threat-model.

Threat Modeling Skill

Structured threat modeling using STRIDE analysis mapped to MITRE ATT&CK, producing a prioritized risk register with mitigations.

References

  • references/stride-reference.md — STRIDE threat categories with examples
  • references/mitre-tactics.md — ATT&CK tactics/techniques quick lookup
  • references/risk-scoring.md — DREAD and likelihood/impact scoring
  • references/controls-library.md — Common mitigations by threat category

When to Use

Trigger when the user:

  • Wants to threat-model a system, service, or new feature
  • Asks "what could go wrong" about an architecture
  • Needs to map risks to MITRE ATT&CK
  • Wants a structured pre-launch security review
  • Needs a risk register for compliance or audit

Quick Start

bash
# Generate a threat model for a system described inline
python scripts/gen_threat_model.py --system "REST API with JWT auth, PostgreSQL DB, Redis cache" --output threat-model.md
# From an architecture description file
python scripts/gen_threat_model.py --input architecture.txt --output threat-model.md

Procedure

Step 1 — Build the System Description

Gather (or infer from context):

System name:
Components: [list all services, databases, queues, external APIs]
Trust boundaries: [where data crosses network zones, auth domains]
Data flows: [what data moves between which components]
External actors: [users, admins, third-party services, IoT devices]
Auth model: [JWT / session / API key / mTLS / SSO]
Deployment: [cloud provider, container, on-prem, hybrid]
Crown jewels: [most valuable assets to protect / most damaging to lose]
Step 2 — Draw the Trust Boundary Map (Text DFD)
[Internet] → [CDN / WAF] → [Load Balancer]
↓
[User Browser] ──────────→ [API Gateway] ──→ [Auth Service] ──→ [User DB]
↓
[App Server] ──→ [Cache (Redis)]
↓
[Database] ←── [Admin Portal]
↑
[Admin User] ← [VPN boundary]

Mark each arrow with the data type and trust level.

Step 3 — STRIDE Analysis Per Component

For each component and each trust boundary crossing, enumerate:

ThreatQuestion to askATT&CK tactic
SpoofingCan an attacker impersonate a user/service?Initial Access, Defense Evasion
TamperingCan data be modified in transit or at rest?Impact, Execution
RepudiationCan malicious actions be denied/untraceable?Defense Evasion
Information DisclosureCan sensitive data leak?Collection, Exfiltration
Denial of ServiceCan availability be disrupted?Impact
Elevation of PrivilegeCan an attacker gain higher access?Privilege Escalation
Step 4 — Risk Scoring

Score each finding with DREAD (0–3 each):

D — Damage potential (0=none, 1=individual, 2=significant, 3=catastrophic)
R — Reproducibility (0=impossible, 1=difficult, 2=easy, 3=trivial)
E — Exploitability (0=expert required, 1=skilled, 2=some skill, 3=no skill)
A — Affected users (0=none, 1=some, 2=many, 3=all)
D — Discoverability (0=unknown, 1=deep inspection, 2=obvious, 3=published)
Total: sum / 15 × 10 → score out of 10
Step 5 — Risk Register Output
markdown
| # | Component | Threat | STRIDE | ATT&CK | DREAD | Priority | Control Gap | Mitigation |
|---|-----------|--------|--------|--------|-------|----------|-------------|------------|
| 1 | API Gateway | JWT alg:none bypass | Spoofing | T1550 | 8.0 | CRITICAL | No alg whitelist | Enforce RS256 only |
| 2 | Redis cache | Unauthenticated access | Info Disclosure | T1005 | 6.0 | HIGH | No auth on Redis | Enable requirepass |
Step 6 — Mitigations by Priority

CRITICAL (DREAD ≥ 8)

  • Immediate fix required before production
  • Break-glass escalation to security team

HIGH (DREAD 6–7.9)

  • Fix in next sprint
  • Compensating control in place immediately

MEDIUM (DREAD 4–5.9)

  • Fix in current quarter
  • Document and track

LOW/INFO (DREAD < 4)

  • Backlog item
  • Annual review

Environment-Specific Additions

Web / API systems — additionally check: SSRF toward internal services, JWT validation, CORS policy, CSP headers, clickjacking, open redirect Active Directory — additionally check: Kerberos delegation, ACL on sensitive objects, AdminSDHolder, GPO inheritance, trust relationships Cloud — additionally check: IMDSv1 access, public S3/blob policies, overprivileged IAM, cross-account roles, CloudTrail disabled Kubernetes — additionally check: default service account permissions, hostPID/hostNetwork, privileged containers, etcd exposure, admission controllers

Pitfalls

  • Model the privileged insider explicitly — most threat models ignore it
  • Don't skip "Repudiation" — logging gaps enable attackers to erase their tracks
  • Low-severity findings chain together — a MEDIUM info-disclosure + LOW auth weakness = CRITICAL combined
  • Model API-to-API trust, not just user-to-system — service accounts are high-value targets

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/karamonjie/karamotech-agent-suite/threat-model/badge)](https://verified-skill.com/skills/karamonjie/karamotech-agent-suite/threat-model)

Something wrong with this skill or its page? Tell us.