# Threat Modeling — STRIDE, Data Flow Diagrams, Abuse Cases

> Design-time threat modeling: DFD with trust boundaries, STRIDE per element, every threat mapped to a control and a test.

Threat Modeling — STRIDE, Data Flow Diagrams, Abuse Cases is a free AI agent skill on Agensi by Cristhian Zanforlin Lousa, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Cristhian Zanforlin Lousa](https://www.agensi.io/creators/cristhian-zanforlin-lousa)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/threat-modeling-stride-data-flow-diagrams-abuse-cases
- Tags: security, code-review, threat-modeling, stride, appsec, data-flow-diagram, abuse-cases, secure-design

## About this skill

Most security bugs are design flaws: a trust boundary nobody drew, an authorization check that only exists on the client, a webhook nobody verifies. Code review rarely catches them. This skill makes your agent find them while the design is still cheap to change.

It follows Adam Shostack's Four Question Framework:

1. **What are we working on?** List the assets, build a Data Flow Diagram (external entities, processes, data stores, data flows) and mark every trust boundary. Scope it to one feature or service.
2. **What can go wrong?** Apply STRIDE per element (only the categories that apply to each element type) and add abuse cases and attacker personas.
3. **What are we going to do about it?** Every threat gets a response (mitigate, eliminate, transfer, accept). Every mitigation names a concrete control and a test that would fail if the control regressed. Accepted risks name who accepted them.
4. **Did we do a good job?** Check coverage, date the model, and redo it when a new data flow, boundary, third party, auth path or category of PII appears.

**Reference files:**
- `stride.md`: the six categories, the property each violates, example threats and mitigations, and the STRIDE-per-element table.
- `dfd-and-scope.md`: DFD element types, where to draw trust boundaries, how to scope, and a worked password-reset example.
- `methodologies-and-risk.md`: when to use PASTA, Attack Trees, LINDDUN (privacy), VAST or OCTAVE; likelihood × impact ranking, and the problems with DREAD and CVSS for design-time threats.

It triggers on requests like "threat model this", "run STRIDE", "what could go wrong with this feature", "map the attack surface" or "draw a data flow diagram". A `learnings/` folder stores project-specific assets, personas and accepted risks, and those notes override the defaults.

What sets it apart: a threat list counts as unfinished until each item maps to a control and a test.

Free and MIT-licensed, part of the claude-skills-czl collection.

**Source on GitHub:** [this skill](https://github.com/Cristhianzl/claude-skills-czl/tree/main/configs/agnostic/skills/threat-modeling) · [full repository](https://github.com/Cristhianzl/claude-skills-czl)

## Known limitations

A design-time analysis returned in the conversation; it does not scan or change code. Its quality depends on the architecture details you provide, and accepted risks remain your decision.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Threat Modeling — STRIDE, Data Flow Diagrams, Abuse Cases skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it work outside Claude Code?

Yes. It is a standard SKILL.md folder with plain Markdown references, so any agent that loads SKILL.md skills can use it. It was built and tested mostly on Claude Code.

### Does it change my code or run anything?

No. It produces a threat model in the conversation: assets, a DFD, a STRIDE table, and threat → control → test mappings. The only file it may write is a short note in its own `learnings/` folder.

### How is it triggered?

Ask for a threat model, a STRIDE pass, an attack-surface map, abuse cases, trust boundaries, or "what could go wrong with this feature?". In Claude Code you can also invoke it by name.

### How is this different from a security code review?

A code review checks code that already exists. This skill runs before the code is written and looks for design flaws, such as missing boundaries and unverified assumptions. Pair it with `security-review` to cover the implementation.

### How do I install it?

Unzip it into `~/.claude/skills/` (all projects) or into your project's `.claude/skills/` (that project only), so the path is `.../skills/threat-modeling/SKILL.md`.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
