agentsclimarketplace

Threat modeling

Skill sairam0424/MindForge/.mindforge/skills/threat-modeling

MindForge: The Enterprise Agentic Framework for Claude Code & Antigravity. High-performance autonomous execution, wave-parallelism, and multi-tier governance for production-grade AI engineering.

Install
npx -y skills add sairam0424/MindForge --skill threat-modeling

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.1 KB, as published. Nobody here has run it

Skill — Threat Modeling

When this skill activates

When analyzing security threats to a system, component, or feature. When constructing attack trees, identifying trust boundaries, or scoring risks using structured methodologies.

Mandatory actions when this skill is active

Before threat modeling

  1. Switch to threat-modeler persona.
  2. Identify the scope — what system/component are we modeling?
  3. Gather the system's data flow — how does data move through it?
  4. Identify all trust boundaries — where does trust level change?

STRIDE Methodology

Apply STRIDE to each trust boundary crossing:

ThreatQuestionExample
SpoofingCan an attacker pretend to be someone else?Forged auth tokens, session hijacking
TamperingCan data be modified in transit or at rest?Man-in-the-middle, DB manipulation
RepudiationCan actions be denied without proof?Missing audit logs, unsigned transactions
Information DisclosureCan sensitive data leak?Error messages with stack traces, verbose APIs
Denial of ServiceCan the system be overwhelmed?Unbounded queries, missing rate limits
Elevation of PrivilegeCan a user gain unauthorized access?Missing authz checks, IDOR, path traversal

DREAD Scoring

Score each identified threat (1-10 for each dimension):

Dimension1 (Low)5 (Medium)10 (High)
DamageMinor inconvenienceData loss for some usersFull system compromise
ReproducibilityRequires rare conditionsRequires specific setupAnyone can reproduce
ExploitabilityRequires deep expertiseRequires some skillScript kiddie level
Affected UsersSingle userSubset of usersAll users
DiscoverabilityHidden, requires sourceFindable with effortObvious, publicly known

Risk Score = (D + R + E + A + D) / 5

  • Score 1-3: Low risk (monitor)
  • Score 4-6: Medium risk (mitigate within sprint)
  • Score 7-10: High/Critical risk (mitigate IMMEDIATELY)

Attack Tree Construction

For high-scoring threats, build an attack tree:

[Goal: Unauthorized admin access]
├── [OR] Steal admin credentials
│   ├── [AND] Phish admin user
│   │   ├── Send convincing email
│   │   └── Capture credentials on fake page
│   └── [AND] Exploit password reset
│       ├── Enumerate valid emails
│       └── Intercept reset token
└── [OR] Escalate from regular user
    ├── [AND] Exploit IDOR
    │   ├── Find predictable resource IDs
    │   └── Access admin endpoints directly
    └── [AND] Exploit role assignment bug

Output Format

Write to .planning/THREAT-MODEL-[component]-[timestamp].md:

# Threat Model: [Component]
Date: [timestamp]
Scope: [what was analyzed]

## Data Flow Diagram
[ASCII or description of data flow with trust boundaries marked]

## Trust Boundaries
1. [boundary]: [what crosses it]

## Identified Threats
| # | Category | Threat | DREAD Score | Mitigation | Status |
|---|----------|--------|-------------|-----------|--------|

## Attack Trees (for High/Critical threats)
[Trees for any threat scoring 7+]

## Recommendations
[Prioritized list of mitigations]

After threat modeling

  • Review all High/Critical findings with security-reviewer persona
  • Create action items for each unmitigated threat
  • Log threat model in AUDIT with finding counts by severity

Self-check before task completion

  • Did I apply STRIDE to ALL trust boundary crossings (not just obvious ones)?
  • Did I score every identified threat with DREAD?
  • Did I build attack trees for all threats scoring 7+?
  • Did I write the threat model to .planning/THREAT-MODEL-[component].md?

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.