# security-threat-model

security-threat-model guides threat modeling across system components using STRIDE methodology, trust boundary maps, and defense-in-depth principles before audits or releases.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 109 installs · ★ 203 repo stars
- Author: lyndonkl
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lyndonkl/claude/tree/HEAD/skills/security-threat-model/SKILL.md
- Updated: 2026-09-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/lyndonkl-security-threat-model

## What it does

This skill guides security analysis for services processing personal, medical, or payment records. It walks through a structured five-step path: mapping system diagrams, tracing cross-zone data movement, identifying compliance mandates, and cataloging potential exploits.

The workflow evaluates six standard threat classes, including identity spoofing, payload tampering, repudiation, information disclosure, service degradation, and unauthorized privilege escalation. It provides architectural blueprints for database-backed web apps, OAuth handshakes, and microservice meshes.

Evaluation relies on a rubric with a minimum average threshold of 3.5. Without clear definitions of data paths and boundary crossings, the resulting assessment will miss critical entry points.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill security-threat-model -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/security-threat-model/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/security-threat-model/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill security-threat-model -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/security-threat-model/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill security-threat-model -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/security-threat-model/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lyndonkl/claude skills/security-threat-model
```

2. **Manually: put the files in place**
- File: `.github/skills/security-threat-model/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill security-threat-model -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lyndonkl/claude --path skills/security-threat-model
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/security-threat-model/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill security-threat-model -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lyndonkl/claude/tree/HEAD/skills/security-threat-model/SKILL.md

## When to use it
- Map data flows and trust boundaries across system components
- Identify attack vectors using the STRIDE framework
- Categorize data sensitivity for GDPR, HIPAA, or PCI DSS audits
- Plan mitigations against privilege escalation and token hijacking

## Example prompts
- Run a STRIDE threat model on our user authentication and OAuth flow.
- Map the trust boundaries and data leaks for this file upload handler.
- Evaluate our microservices network policies against lateral movement.

## Similar
- [threat-model-analyst](https://affpapa.org/en/nevibecode/skills/threat-model-analyst.md) — skill · 1500 installs
- [threat-model](https://affpapa.org/en/nevibecode/skills/anthropics-threat-model.md) — skill · 1300 installs
- [threat-model-generator](https://affpapa.org/en/nevibecode/skills/threat-model-generator.md) — skill · 270 installs
- [tm7-threat-model](https://affpapa.org/en/nevibecode/skills/tm7-threat-model.md) — skill · 29 installs
- [create_stride_threat_model](https://affpapa.org/en/nevibecode/prompts/create-stride-threat-model.md) — prompt · ★ 44690 repo stars
- [threat-modeling-with-aws-security-agent](https://affpapa.org/en/nevibecode/skills/threat-modeling-with-aws-security-agent.md) — skill · 1700 installs

## Other versions with the same name
- [security-threat-model · tech-leads-club](https://affpapa.org/en/nevibecode/skills/githubcomopenaiskills-security-threat-model.md) — ★ 7191 repo stars
- [security-threat-model · dotslashsimran](https://affpapa.org/en/nevibecode/skills/dotslashsimran-security-threat-model.md) — ★ 541 repo stars

From the same set: [lyndonkl/claude](https://affpapa.org/en/nevibecode/by/lyndonkl/claude.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
