К основному содержанию
скилл CX Codex

performing-threat-modeling-with-owasp-threat-dragon — скилл

Скилл performing-threat-modeling-with-owasp-threat-dragon для Claude Code помогает собрать модель угроз приложения в OWASP Threat Dragon — от схемы потоков данных до оценки угроз и PDF-отчёта.

Apache-2.0 334 установок ★ 36 511 обновлён 2026-08-31

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-threat-modeling-with-owasp-threat-dragon -a claude-code
Открыть на GitHub

Что делает performing-threat-modeling-with-owasp-threat-dragon

Скилл проводит через создание модели угроз в OWASP Threat Dragon. Он помогает описать процессы, хранилища данных, внешние системы и границы доверия на диаграмме потоков данных, затем разобрать угрозы по STRIDE, LINDDUN, CIA, DIE или PLOT4ai. Правила Threat Dragon предлагают угрозы по типу элемента диаграммы, а открытым угрозам можно назначить приоритет и владельца.

Для работы нужны приложение или веб-экземпляр Threat Dragon, документация архитектуры и понимание нотации DFD; для классификации также пригодится знакомство со STRIDE или LINDDUN. Скилл помогает зафиксировать меры защиты и подготовить PDF-отчёт с диаграммами, перечнем угроз и статусом мер. Без установленного Threat Dragon и описания архитектуры этот процесс не на чем строить.

Какие задачи решает

  • составить диаграмму потоков данных приложения
  • классифицировать угрозы по STRIDE или LINDDUN
  • назначить приоритет и владельца открытым угрозам
  • описать меры защиты для найденных угроз
  • сформировать PDF-отчёт модели угроз

Примеры запросов агенту

  • Составь модель угроз для этой архитектуры в OWASP Threat Dragon и добавь потоки данных и границы доверия.
  • Проверь диаграмму по STRIDE и выдели открытые угрозы с приоритетами и владельцами.
  • Подготовь меры защиты и PDF-отчёт по модели угроз для ревью архитектуры.

Как установить performing-threat-modeling-with-owasp-threat-dragon

1Через Skills CLI (Vercel)

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-threat-modeling-with-owasp-threat-dragon -a claude-code

2Вручную: положить файлы

~/.claude/skills/performing-threat-modeling-with-owasp-threat-dragon/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/performing-threat-modeling-with-owasp-threat-dragon/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о performing-threat-modeling-with-owasp-threat-dragon

Как установить performing-threat-modeling-with-owasp-threat-dragon в Claude Code?

Выполните npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-threat-modeling-with-owasp-threat-dragon -a claude-code. Файл скилла появится по пути ~/.claude/skills/performing-threat-modeling-with-owasp-threat-dragon/SKILL.md.

Что делает performing-threat-modeling-with-owasp-threat-dragon?

Помогает создать диаграмму потоков данных, разобрать угрозы с помощью методик Threat Dragon и задокументировать меры защиты. Результат можно оформить в PDF-отчёт.

Что нужно для работы скилла?

Нужен OWASP Threat Dragon в виде настольного приложения или веб-экземпляра, а также документация архитектуры и понимание нотации DFD. Для классификации угроз пригодится знакомство со STRIDE или LINDDUN.

Исходный текст

SKILL.md · Apache-2.0
---
name: performing-threat-modeling-with-owasp-threat-dragon
description: >-
  Uses OWASP Threat Dragon (web or desktop) to build data flow diagrams,
  identify threats with STRIDE, LINDDUN, CIA, DIE, or PLOT4ai methodologies
  via its auto-generation rule engine, and produce PDF threat model reports.
  Use during secure design review of an application architecture to build a
  formal threat model and document mitigations for GRC compliance.
domain: cybersecurity
subdomain: devsecops
tags:
- threat-modeling
- owasp
- threat-dragon
- stride
- linddun
- secure-design
- dfd
- data-flow
version: '1.0'
author: mahipal
license: Apache-2.0
nist_ai_rmf:
- MEASURE-2.7
- MAP-5.1
- MANAGE-2.4
atlas_techniques:
- AML.T0070
- AML.T0066
- AML.T0082
nist_csf:
- PR.PS-01
- GV.SC-07
- ID.IM-04
- PR.PS-04
mitre_attack:
- T1195
- T1554
- T1059.004
---

# Performing Threat Modeling with OWASP Threat Dragon

## Overview

OWASP Threat Dragon is an open-source threat modeling tool that enables security teams and developers to create threat model diagrams, identify threats using established methodologies (STRIDE, LINDDUN, CIA, DIE, PLOT4ai), and generate comprehensive reports. Threat Dragon runs as both a web application and desktop application (Windows, macOS, Linux), supporting distributed teams working collaboratively on threat models. Version 2.x provides drag-and-drop diagram creation, an auto-generation rule engine for threats and mitigations, and PDF report output for documentation and GRC compliance.


## When to Use

- When conducting security assessments that involve performing threat modeling with owasp threat dragon
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing

## Prerequisites

- OWASP Threat Dragon desktop application or web instance
- Understanding of data flow diagram (DFD) notation
- Familiarity with STRIDE or LINDDUN threat classification
- Application architecture documentation and network diagrams
- Stakeholder access for design review sessions

## Threat Modeling Methodologies

### STRIDE

| Category | Threat Type | Description | Example |
|----------|-------------|-------------|---------|
| S | Spoofing | Impersonating a user or system | Stolen session tokens |
| T | Tampering | Modifying data in transit or at rest | SQL injection altering records |
| R | Repudiation | Denying an action occurred | Missing audit logs |
| I | Information Disclosure | Exposing sensitive data | API returning excessive fields |
| D | Denial of Service | Making a service unavailable | Resource exhaustion attack |
| E | Elevation of Privilege | Gaining unauthorized access | Broken access control |

### LINDDUN (Privacy-Focused)

| Category | Threat Type | Description |
|----------|-------------|-------------|
| L | Linkability | Associating data items across contexts |
| I | Identifiability | Identifying an individual from data |
| N | Non-repudiation | Inability to deny an action (privacy risk) |
| D | Detectability | Determining if data about a subject exists |
| D | Disclosure | Exposing personal information |
| U | Unawareness | User unaware of data collection |
| N | Non-compliance | Violating privacy regulations |

## Workflow

### Step 1 --- Install Threat Dragon

**Desktop Application:**
Download the installer from the [OWASP Threat Dragon releases](https://github.com/OWASP/threat-dragon/releases) page for Windows (.exe), macOS (.dmg), or Linux (.AppImage/.deb/.rpm).

**Web Application (Docker):**
```bash
docker run -p 3000:3000 \
  -e ENCRYPTION_JWT_SIGNING_KEY=$(openssl rand -hex 32) \
  -e ENCRYPTION_JWT_REFRESH_SIGNING_KEY=$(openssl rand -hex 32) \
  -e ENCRYPTION_KEYS='[{"isPrimary":true,"id":0,"value":"'$(openssl rand -hex 16)'"}]' \
  -e NODE_ENV=production \
  owasp/threat-dragon:latest
```

### Step 2 --- Define the Scope

Before creating diagrams, document the scope:
- System name and description
- Assets being protected (user data, credentials, payment info)
- External dependencies (third-party APIs, cloud services)
- Compliance requirements (GDPR, HIPAA, PCI DSS)
- Trust boundaries (network segments, authentication zones)

### Step 3 --- Create Data Flow Diagrams

In Threat Dragon, create a new threat model and add diagrams using the following DFD elements:

**Processes**: Applications, microservices, API endpoints that transform data. Represented as circles/rounded rectangles.

**Data Stores**: Databases, file systems, caches, message queues that persist data. Represented as parallel lines.

**External Entities**: Users, external systems, third-party services outside the trust boundary. Represented as rectangles.

**Data Flows**: Communication channels between elements showing data direction. Represented as arrows with labels describing the data.

**Trust Boundaries**: Dashed lines separating zones of different trust levels (internet/DMZ/internal network, user/admin).

### Step 4 --- Identify Threats

For each DFD element, apply the STRIDE methodology:

| Element Type | Applicable STRIDE Categories |
|-------------|------------------------------|
| External Entity | Spoofing, Repudiation |
| Process | Spoofing, Tampering, Repudiation, Information Disclosure, DoS, Elevation of Privilege |
| Data Store | Tampering, Information Disclosure, DoS |
| Data Flow | Tampering, Information Disclosure, DoS |

Threat Dragon's rule engine automatically suggests threats based on element types. Review each suggestion and mark as:
- **Mitigated**: Existing controls address the threat
- **Not Applicable**: Threat does not apply to this context
- **Open**: Threat needs to be addressed (assign priority and owner)

### Step 5 --- Define Mitigations

For each open threat, document:
- Mitigation strategy (prevent, detect, respond, transfer)
- Specific technical controls (encryption, authentication, rate limiting)
- Owner responsible for implementation
- Priority and timeline for remediation

### Step 6 --- Generate Reports

Threat Dragon produces PDF reports containing:
- Executive summary of the threat model
- Data flow diagrams with annotations
- Threat inventory with severity ratings
- Mitigation status and recommendations
- Compliance mapping where applicable

### Step 7 --- Integrate into SDLC

- Conduct threat modeling during the design phase of new features
- Update threat models when architecture changes occur
- Review threat models during security design reviews
- Store threat model files in version control alongside code
- Reference threat model findings in security acceptance criteria

## Threat Model File Format

Threat Dragon uses JSON format for threat models, enabling version control and programmatic manipulation:

```json
{
  "version": "2.2.0",
  "summary": {
    "title": "E-Commerce Application",
    "owner": "Security Team",
    "description": "Threat model for the checkout flow"
  },
  "detail": {
    "contributors": [
      {"name": "Security Architect"}
    ],
    "diagrams": [
      {
        "id": 0,
        "title": "Checkout Flow",
        "diagramType": "STRIDE",
        "cells": []
      }
    ]
  }
}
```

## CycloneDX TMBOM Integration

Threat Dragon participates in the CycloneDX Threat Model Bill of Materials (TMBOM) effort, enabling export to a common format that can be consumed by other threat modeling tools and GRC platforms, preventing vendor lock-in.

## Best Practices

1. **Start simple**: Begin with high-level DFDs (Level 0) before decomposing into detailed diagrams
2. **Involve developers**: Include development team members in threat modeling sessions for realistic threat assessment
3. **Time-box sessions**: Limit initial sessions to 90 minutes; iterate in follow-up sessions
4. **Prioritize by risk**: Use severity ratings (Critical, High, Medium, Low) to prioritize mitigations
5. **Living documents**: Treat threat models as living documents that evolve with the system
6. **Automate where possible**: Use the rule engine for initial threat generation, then refine manually

## References

- [OWASP Threat Dragon](https://owasp.org/www-project-threat-dragon/)
- [Threat Dragon GitHub Repository](https://github.com/OWASP/threat-dragon)
- [OWASP Threat Modeling Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html)
- [STRIDE Threat Model](https://learn.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats)
- [LINDDUN Privacy Threat Modeling](https://www.linddun.org/)

© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills

Похожие скиллы

Все скиллы по теме «Безопасность» →
threat-modeling devops-skills Скилл threat-modeling помогает разобрать архитектуру сервиса по методологии STRIDE, найти угрозы на границах доверия и составить план защитных мер. CX Codex +1 396установок stride-threat-modeling securityskills Скилл stride-threat-modeling проводит сессию моделирования угроз по методике STRIDE во время проектирования архитектуры. Он строит схему доверенных границ, выявляет риски и превращает их в задачи для бэклога. CX Codex +1 4 300установок threat-modeling-with-aws-security-agent aws Скилл threat-modeling-with-aws-security-agent запускает моделирование угроз по методологии STRIDE через AWS Security Agent, сравнивая проектную документацию с исходным кодом. CX Codex +1 1 700установок threat-modeling-expert davila7 Скилл threat-modeling-expert для разбора архитектуры на угрозы: строит деревья атак, считает риски и вытаскивает требования по безопасности. CX Codex +1 73установок threat-model haabe Скилл threat-model проводит моделирование угроз по методологии STRIDE для систем, LLM-сервисов и плагинов. Помогает найти уязвимости ещё на этапе проектирования архитектуры. CX Codex +1 ★ 54звёзд репо create_stride_threat_model danielmiessler Промпт create_stride_threat_model анализирует архитектурные документы и строит модель угроз по методологии STRIDE с таблицей рисков, границами доверия и мерами защиты. GP ChatGPT ★ 44 690звёзд репо

Из того же набора152

Весь набор →
analyzing-persistence-mechanisms-in-linux Скилл analyzing-persistence-mechanisms-in-linux ищет следы закрепления злоумышленника в Linux через cron, службы systemd, LD_PRELOAD и SSH-ключи, сопоставляя находки с auditd. CX Codex +1 339установок testing-for-xxe-injection-vulnerabilities Скилл testing-for-xxe-injection-vulnerabilities ведёт агента по шагам проверки XXE-инъекций: чтение файлов сервера, SSRF и вынос данных при авторизованном пентесте. CX Codex +1 338установок bypassing-authentication-with-forced-browsing Скилл bypassing-authentication-with-forced-browsing для пентеста веб-приложений: ищет незакрытые страницы, API и админки перебором URL и проверяет, где аутентификация не enforced. CX Codex +1 337установок exploiting-api-injection-vulnerabilities Скилл exploiting-api-injection-vulnerabilities находит инъекции в параметрах, заголовках и телах запросов к API. Пригодится при оценке защищённости эндпоинтов и проверке правил валидации пользовательских значений. CX Codex +1 335установок testing-for-xss-vulnerabilities-with-burpsuite Скилл testing-for-xss-vulnerabilities-with-burpsuite ведёт агента по шагам поиска и подтверждения XSS в веб-приложении: от карты сайта до обхода CSP. Нужен на авторизованном пентесте. CX Codex +1 333установок analyzing-mft-for-deleted-file-recovery Скилл analyzing-mft-for-deleted-file-recovery для криминалистического анализа NTFS: разбирает $MFT, $LogFile, $UsnJrnl и slack space, чтобы восстановить метаданные и содержимое удалённых файлов. CX Codex +1 333установок analyzing-pdf-malware-with-pdfid Скилл analyzing-pdf-malware-with-pdfid разбирает подозрительный PDF по структуре: находит встроенный JavaScript, шеллкод и эксплойты, не открывая документ. CX Codex +1 328установок analyzing-memory-forensics-with-lime-and-volatility Скилл analyzing-memory-forensics-with-lime-and-volatility для Claude Code помогает снимать дамп памяти Linux через LiME и анализировать его в Volatility 3 при расследовании инцидентов. CX Codex +1 328установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой