Threat Model Generator

Generate feature-grounded threat scenarios and executable security test cases with prioritized risk rationale.

10 stars 6 forksSecurity

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add 1ikeadragon/awesome-offsec-claude --skill threat-model-generator
Manual install
git clone --depth 1 https://github.com/1ikeadragon/awesome-offsec-claude.git /tmp/awesome-offsec-claude
mkdir -p ~/.claude/skills
cp -r /tmp/awesome-offsec-claude/threat-model-generator ~/.claude/skills/threat-model-generator

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Threat Model Generator

## Purpose
Translate architecture and feature behavior into an actionable security test backlog.

## Inputs
- `system_description`
- `feature_inventory`
- `data_flows`
- `roles_permissions`
- `deployment_context` (optional)

## Modeling Workflow
### Phase 1: Asset and Boundary Mapping
1. Identify sensitive assets and trust boundaries.
2. Map data ingress, processing, and egress points.
3. Identify privileged operations and administrative paths.

### Phase 2: Threat Enumeration
1. Enumerate attacker objectives per feature.
2. Enumerate abuse primitives per parameter and state transition.
3. Enumerate systemic risks from shared components.

### Phase 3: Scenario Construction
1. Build concrete scenario with attacker preconditions.
2. Define target operation and exploit mechanism.
3. Define success signal and defensive expectation.

### Phase 4: Prioritization
1. Score by likelihood, impact, and detectability.
2. Tag fast-win vs deep-investigation cases.
3. Highlight assumptions and missing architecture details.

## Mandatory Coverage Areas
- authentication and session handling
- authorization and object access
- injection and parser abuse
- workflow/state manipulation
- file and data handling
- configuration and deployment weaknesses

## Output Contract
```json
{
  "threat_scenarios": [],
  "test_cases": [],
  "risk_priorities": [],
  "assumptions": [],
  "unknowns": []
}
```

## Constraints
- Ground scenarios in provided architecture.
Read the full skill on GitHub

Details

Skill name
threat-model-generator
Path
threat-model-generator/SKILL.md
Repo updated
19 March 2026

FAQ

What does the Threat Model Generator skill do?

Generate feature-grounded threat scenarios and executable security test cases with prioritized risk rationale.

How do I install the Threat Model Generator skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add 1ikeadragon/awesome-offsec-claude --skill threat-model-generator. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Threat Model Generator popular?

It lives in 1ikeadragon/awesome-offsec-claude, which has 10 GitHub stars and 6 forks.

Related skills

Browse the most popular Claude skills, all security skills, or write your own with the skills generator.