# Threat modeling

> Threat modeling is an open-source agent skill for security. Builds an AWS service threat model using STRIDE, with controls mapped to threats. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/aws-solutions/konductor/tree/main/skills/threat-modeling
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** threat-modeling
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through producing a full threat model for an AWS service or design. It runs a nine-step workflow that covers clarifying scope, gathering architecture documents, documenting components and trust boundaries, identifying threats across the six STRIDE categories, and defining mitigations and a security testing strategy. The output is a structured threat model document with introduction, architecture, threat analysis, mitigations and residual risk sections.

The skill is strict about evidence. It asks the user to confirm scope and components, traces credentials and secrets through the flow, and rates each threat's likelihood and impact. It also has a fallback for runs where no questions can be asked: the agent records its assumptions in a table instead. A change-only mode models just the new or altered parts of an existing design, and a quality gate lists critical, important and suggested fixes before the document is finished.

It works from design documents, optional reference threat models and an optional team template, all supplied as text or URLs. No scripts are included; the skill is a single instruction file.

## When your agent uses it

> Generates AWS service threat models using STRIDE methodology. Use when asked for a threat model or STRIDE analysis, the security risks of a design, or prep for a security review. Covers architecture analysis, threats, and security controls.

## What it can access

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

- [Instructions only, no scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/threat-modeling)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/threat-modeling)

## Features

- **STRIDE threat analysis:** Evaluates each component against spoofing, tampering, repudiation, disclosure, denial of service and privilege elevation.
- **Nine-step workflow:** Walks through scope, design review, architecture, threat identification, mitigations and final document.
- **Mitigation mapping:** Links each threat to concrete controls with implementation status and at least one mitigation.
- **Security testing strategy:** Produces a table of test IDs, inputs, expected results and the threats each test covers.
- **Change-only models:** Limits analysis to new routes, trust boundaries and altered behavior when modeling a change.
- **Quality gate review:** Grades findings as critical, important or suggestion before the document is finalized.

## Good for

- Create a STRIDE threat model for a new AWS service design
- Prepare materials for an upcoming security review
- List the security risks of a proposed architecture
- Document security controls for a compliance review
- Model only the threats introduced by a change to an existing design

## Install

### Claude Code

This skill ships in the `konductor` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

Or copy only this skill to `~/.claude/skills/threat-modeling`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/threat-modeling &&
cp -R "$tmp/skills/threat-modeling" ~/.claude/skills/threat-modeling &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/threat-modeling &&
cp -R "$tmp/skills/threat-modeling" ~/.agents/skills/threat-modeling &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/threat-modeling &&
cp -R "$tmp/skills/threat-modeling" ~/.cursor/skills/threat-modeling &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/threat-modeling` 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/aws-solutions/konductor.git --path skills/threat-modeling
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/threat-modeling &&
cp -R "$tmp/skills/threat-modeling" ~/.copilot/skills/threat-modeling &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

Then copy `konductor/skills/threat-modeling` into your agent's skills folder as `threat-modeling`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs the service name and scope, plus optional design documents, reference threat models or a team template given as URLs or text.

### What does Threat modeling produce?

A structured threat model document with introduction, architecture, threat table, mitigations, testing strategy and residual risk sections.

### Can Threat modeling run without asking the user questions?

Yes. When questions are not allowed, it makes the smallest reasonable assumptions and records them in an assumptions table.

### Does Threat modeling include scripts?

No. The skill consists of a single SKILL.md instruction file with no scripts or reference files.

### How do I install Threat modeling in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/threat-modeling to use it in all your projects, or to .claude/skills/threat-modeling in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.

### Does Threat modeling 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 Threat modeling?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Threat modeling?

The closest alternatives to Threat modeling are Threat model, Sh threat model, Security threat model, Threat model analyst and Security reasoning.

## Where this comes from

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

## Alternatives

- [Threat model](https://ai-powered.com/skills/threat-model-ajyadav013): Threat model is an open-source agent skill for security.
- [Sh threat model](https://ai-powered.com/skills/sh-threat-model): Sh threat model is an open-source agent skill for security.
- [Security threat model](https://ai-powered.com/skills/security-threat-model-mtarcure): Security threat model 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 reasoning](https://ai-powered.com/skills/security-reasoning): Security reasoning is an open-source agent skill for security.
- [Security and hardening](https://ai-powered.com/skills/security-and-hardening): Security and hardening 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.
- [Security threat model](https://ai-powered.com/skills/security-threat-model): Security threat model is a free agent skill for security.

---
Source: https://ai-powered.com/skills/threat-modeling
