vankhangfet

Threat Model Skills — Security skill for Claude Code

Security community

Agent Skills that draft STRIDE threat models for OWASP Threat Dragon, turn them into security requirements, and check PRs against them.

How to install Threat Model Skills

This entry records only its repository, not the path inside it, so there is no exact command to give. Open vankhangfet/threat-model-skills and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Threat Model Skills does

Agent Skills that draft STRIDE threat models for OWASP Threat Dragon, turn them into security requirements, and check PRs against them. Works with Claude Code, Codex, Copilot, Cline, OpenCode, Kiro, Pi.topi

Alternatives in Security

  • Security Threat Model — Generate repo-specific threat models identifying trust boundaries 14.6k ★
  • Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
  • Skill Coverage Audit — Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs 2.8k ★

README

Threat modeling skills for coding agents (Threat Dragon)

A set of three skills that follow the open **Agent Skills** standard (`SKILL.md` + YAML frontmatter). They work with Claude Code, OpenCode, Cline, Codex, Cursor, GitHub Copilot, and other agents that support skills.

Skill What it does Output
threat-model-draft Reads the design and code, then drafts a STRIDE threat model (DFD, trust boundaries, threats) threat-model/.json (open in Threat Dragon), .review.md, .draft-log.json
threat-to-requirements Turns a reviewed threat model into security requirements with IDs, rules for coding agents, and a backlog SECURITY-REQUIREMENTS.md, a block in AGENTS.md/CLAUDE.md, backlog.csv (optional)
threat-check Compares a diff (MR/PR/branch) against the threat model and requirements: coverage, regression, drift Markdown report (for local use or CI)

Table of contents

  1. Workflow
  2. Example in Threat Dragon
  3. Why it works with many agents
  4. Quick start
  5. Installer reference
  6. Configuration (optional)
  7. How to invoke
  8. Using threat-check in CI
  9. tdtool.py: manual use
  10. About OWASP Threat Dragon
  11. Notes on Threat Dragon
  12. License

Workflow

Design ─► [threat-model-draft] ─► Review in Threat Dragon (a human decides)
                                            │
                                            ▼
                               [threat-to-requirements] ─► SECURITY-REQUIREMENTS.md + AGENTS.md
                                            │
                                            ▼
                     Coding agent writes code per SRs ─► [threat-check] on the MR ─► update threat status
`