# Security threat model

> Security threat model is an open-source agent skill for security. Guides the agent through a bounded STRIDE threat model of a system before design or review. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/security-threat-model
- **Repository:** https://github.com/mtarcure/claude-vibe-squad
- **GitHub stars:** 227
- **License:** MIT
- **Skill name:** security-threat-model
- **Collection:** https://github.com/mtarcure/claude-vibe-squad
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill walks the agent through building a threat model that is scoped to a stated asset and adversary rather than growing without limit. The agent first names what is worth protecting and what losing it would cost, then describes the adversary's capability, position and motivation, and draws the system as trust zones with the flows that cross between them.

The core work happens at each trust-zone crossing, where the agent enumerates spoofing, tampering, repudiation, disclosure, denial and elevation threats and keeps only those the stated adversary can reach. For each retained threat it records the existing control and whether that control was observed working or only assumed, treating assumed controls as gaps. Residual risks are ranked by asset loss and adversary reach, with each one given an explicit decision: mitigate, bound, remove or accept with a rationale and revisit condition.

The skill is written for specialists and expects the agent to reference a separate review-severity-ladder skill for ranking. Assumptions are kept as their own section of the output, and the model is meant to stop at a reporting floor agreed in advance. No scripts or extra files are included.

## When your agent uses it

> Use before designing or reviewing a system whose assets, adversary, trust zones, and residual risks are not yet explicit: enumerate reachable STRIDE threats at each boundary, distinguish observed controls from assumptions, and terminate at a declared reporting floor.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/security-threat-model)
- [License: MIT](https://github.com/mtarcure/claude-vibe-squad/tree/HEAD/.agents/skills/security-threat-model)

## Features

- **Asset and adversary framing:** Requires naming the protected asset, its loss cost, and a bounded adversary before any threats are listed.
- **STRIDE threat enumeration:** Walks each trust-zone crossing through the six STRIDE categories and filters to reachable threats.
- **Observed versus assumed controls:** Marks every existing control as observed working or assumed, and treats assumed controls as gaps.
- **Residual risk decisions:** Requires each residual to be mitigated, bounded, removed or accepted with rationale and a revisit condition.
- **Explicit assumptions section:** Records assumptions as first-class output so reviewers know what to challenge.
- **Bounded termination:** Stops enumeration at a declared reporting floor so the model does not expand indefinitely.

## Good for

- Threat model a new service before it is designed
- Review an existing system's trust boundaries for STRIDE threats
- Identify which security controls are assumed rather than verified
- Decide whether to mitigate, bound, remove or accept each residual risk
- Document assumptions for a security design review

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/security-threat-model` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/security-threat-model &&
cp -R "$tmp/.agents/skills/security-threat-model" ~/.claude/skills/security-threat-model &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/security-threat-model` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/security-threat-model` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/security-threat-model &&
cp -R "$tmp/.agents/skills/security-threat-model" ~/.agents/skills/security-threat-model &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/security-threat-model` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/security-threat-model` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/security-threat-model &&
cp -R "$tmp/.agents/skills/security-threat-model" ~/.cursor/skills/security-threat-model &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/security-threat-model` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mtarcure/claude-vibe-squad.git --path .agents/skills/security-threat-model
```

Or copy the folder to `~/.gemini/skills/security-threat-model` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/security-threat-model`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/security-threat-model &&
cp -R "$tmp/.agents/skills/security-threat-model" ~/.copilot/skills/security-threat-model &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/security-threat-model` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad.git
```

Then copy `claude-vibe-squad/.agents/skills/security-threat-model` into your agent's skills folder as `security-threat-model`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It has no scripts and no extra files. It refers to a review-severity-ladder skill for ranking residual risk, so that skill is needed for the ranking step.

### When does Security threat model trigger?

It is meant for use before designing or reviewing a system whose assets, adversary, trust zones and residual risks are not yet explicit.

### What does Security threat model produce?

A threat model covering assets, adversary, trust-zone crossings, threats per crossing, control status, ranked residual risks with decisions, and a list of assumptions.

### Does Security threat model stop once every threat is covered?

No. It is designed to terminate at a stated reporting floor, and it advises against chasing airtight controls on a mechanism that keeps producing unmitigable criticals.

### How do I install Security threat model in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/security-threat-model to use it in all your projects, or to .claude/skills/security-threat-model in one project.

### Does Security threat model run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Security threat model?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Security threat model?

The closest alternatives to Security threat model are Security reasoning, Threat model analyst, Security model, Security threat model and Agent security hardening.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Security reasoning](https://ai-powered.com/skills/security-reasoning): Security reasoning is an open-source agent skill for security.
- [Threat model analyst](https://ai-powered.com/skills/threat-model-analyst): Threat model analyst is an open-source agent skill for security.
- [Security model](https://ai-powered.com/skills/security-model): Security model is an open-source agent skill for security.
- [Security threat model](https://ai-powered.com/skills/security-threat-model): Security threat model is a free agent skill for security.
- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [Agentic safety audit](https://ai-powered.com/skills/agentic-safety-audit): Agentic safety audit is an open-source agent skill for security.
- [Pre audit threat model](https://ai-powered.com/skills/pre-audit-threat-model): Pre audit threat model is an open-source agent skill for security.
- [Tm7 threat model](https://ai-powered.com/skills/tm7-threat-model): Tm7 threat model is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/security-threat-model-mtarcure
