• Stars
    star
    915
  • Rank 49,917 (Top 1.0 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An open source threat modeling tool from OWASP

Threat Dragon Logo

Build Deploy GitHub license

OWASP Threat Dragon

OWASP Threat Dragon is a free, open-source, cross-platform threat modeling application. It is used to draw threat modeling diagrams and to list threats for elements in the diagram. Mike Goodwin created Threat Dragon as an open source community project that provides an intuitive and accessible way to model threats.

Threat Dragon is designed to be accessible for various types of teams, with an emphasis on flexibility and simplicity. It is an OWASP Lab Project and follows the values and principles of the threat modeling manifesto.

Try Threat Dragon

You can access the the latest version of Threat Dragon on our website and look through the documentation pages.

Also well worth watching the video provided by the OWASP Spotlight series.

The github release area contains Threat Dragon from version 1.3 to the latest versions 2.x. Previous releases are from Mike Goodwin's original repository.

About Threat Dragon

There is a good overview of threat modeling and risk assessment from OWASP, and this expands on what the Threat Dragon project aims for:

  • ease of use and accessible
  • designing a data flow diagram
  • suggesting threats
  • entering mitigations and counter measures

Mike Goodwin is the founder and creator of this project, and this repository has been migrated from Mike Goodwin's original which has the issues and pull requests from October 2015 up to June 2020.

Threat Dragon is primarily a web application, with threat model files stored in GitHub. Over time other storage methods will become available.

There are desktop versions of Threat Dragon which store the threat model files on the local filesystem rather than in a repository. You can download installers for Windows, MacOS and Linux.

End user help is available for both the latest version 2.x and the previous version 1.x.

Version 1.x maintenance mode

Threat Dragon was originally written using AngularJS version 1.x, and this version of Angular has reached end of life. This means that versions 1.x of Threat Dragon are no longer actively maintained and versions 2.x have been re-written to use Vue.js.

For more information on building/running version 1.x, please see the legacy-v1.x branch.

Building version 2.x

Install git and node.js which includes the node package manager npm

Clone the repository using: git clone https://github.com/owasp/threat-dragon.git

This downloads the code into a threat-dragon directory and the application code is in two sub-folders, one for the back-end application (td.server) and one for the front-end (td.vue).

Install from the top directory of the project using : npm install

Environment variables for web application

The web application variant of Threat Dragon requires some environment variables; follow the documentation on how to set these variables.

The Threat Dragon web application uses GitHub to store threat models, so you need to go to your GitHub account and register it as a GitHub application. There is a step by step guide on how to do this. Github Enterprise is also supported.

If running the web application locally then the front-end to server communication will probably need to be HTTP rather than HTTPS. Specify this using environment variable SERVER_API_PROTOCOL=http in the dotenv file or the command line.

Run the application

When running on Windows, and during development, the front-end and back-end can be started separately in "watch" mode using commands : npm run dev:server and npm run dev:vue. Alternatively, if running on Linux or MacOS, start both the back-end server and the front-end application from the top directory using : npm start.

With both front and back end running, access with a browser at http://localhost:8080/

Stop the application

If using npm start, stop both the back-end server and the front-end application from the top directory with command npm stop. Otherwise break out of both the server and vue front-end.

Docker (local build)

To run Threat Dragon in a docker container, first configure your environment using dotenv and run from the top directory of the project:

  • docker build -t owasp-threat-dragon:dev .
  • docker run -it --rm -p 8080:3000 -v $(pwd)/.env:/app/.env owasp-threat-dragon:dev
  • or if using Windows:
  • docker run -it --rm -p 8080:3000 -v %CD%/.env:/app/.env owasp-threat-dragon:dev

Using http port 8080 and accessing Threat Dragon on http://localhost:8080/.

Docker (from dockerhub)

Threat Dragon maintains docker images within the OWASP organisation area on Dockerhub. Each release is tagged as v{major}.{minor}.{patch}, eg v1.6.0:

  • docker pull owasp/threat-dragon:v2.0.0

The latest tag (which is the default) may well be a development version so use the stable tag, which will always be the latest official release:

  • docker pull threatdragon/owasp-threat-dragon:stable
  • For MacOS and Linux:
  • docker run -it --rm -p 8080:3000 -v $(pwd)/.env:/app/.env threatdragon/owasp-threat-dragon:v2.0.0
  • For Windows:
  • docker run -it --rm -p 8080:3000 -v %CD%/.env:/app/.env threatdragon/owasp-threat-dragon:v2.0.0

Assuming that you are using http port 8080 and accessing Threat Dragon on http://localhost:8080/.

Contributing

Pull requests, feature requests, bug reports and feedback of any kind are very welcome, please refer to the page for contributors.

There are some developer notes to help get started with this project. We are trying to keep the test coverage relatively high so include tests in your pull requests.

The easiest way to get in contact with the Threat Dragon community is via the OWASP Slack #project-threat-dragon project channel (you may need to subscribe first).

Vulnerability disclosure

If you find a vulnerability in this project please let us know ASAP and we will fix it as a priority. For secure disclosure, please see the security policy.

Project leaders

Threat Dragon: making threat modeling less threatening

More Repositories

1

CheatSheetSeries

The OWASP Cheat Sheet Series was created to provide a concise collection of high value information on specific application security topics.
Python
27,397
star
2

owasp-mastg

The Mobile Application Security Testing Guide (MASTG) is a comprehensive manual for mobile app security testing and reverse engineering. It describes the technical processes for verifying the controls listed in the OWASP Mobile Application Security Verification Standard (MASVS).
Python
11,723
star
3

Amass

In-depth Attack Surface Mapping and Asset Discovery
Go
7,941
star
4

wstg

The Web Security Testing Guide is a comprehensive Open Source guide to testing the security of web applications and web services.
Dockerfile
7,242
star
5

Go-SCP

Golang Secure Coding Practices guide
Go
4,841
star
6

Top10

Official OWASP Top 10 Document Repository
HTML
4,262
star
7

Nettacker

Automated Penetration Testing Framework - Open-Source Vulnerability Scanner - Vulnerability Management
Python
3,374
star
8

ASVS

Application Security Verification Standard
HTML
2,720
star
9

API-Security

OWASP API Security Project
Dockerfile
2,050
star
10

owasp-masvs

The OWASP MASVS (Mobile Application Security Verification Standard) is the industry standard for mobile app security.
Python
2,045
star
11

DevGuide

The OWASP Guide
2,011
star
12

NodeGoat

The OWASP NodeGoat project provides an environment to learn how OWASP Top 10 security risks apply to web applications developed using Node.js and how to effectively address them.
HTML
1,857
star
13

QRLJacking

QRLJacking or Quick Response Code Login Jacking is a simple-but-nasty attack vector affecting all the applications that relays on “Login with QR code” feature as a secure way to login into accounts which aims for hijacking users session by attackers.
Python
1,346
star
14

SecurityShepherd

Web and mobile application security training platform
Java
1,338
star
15

wrongsecrets

Vulnerable app with examples showing how to not use secrets
Java
1,196
star
16

crAPI

completely ridiculous API (crAPI)
Java
1,100
star
17

www-project-top-ten

OWASP Foundation Web Respository
HTML
1,098
star
18

www-community

OWASP Community Pages are a place where OWASP can accept community contributions for security-related content.
HTML
1,078
star
19

joomscan

OWASP Joomla Vulnerability Scanner Project https://www.secologist.com/
Raku
1,062
star
20

railsgoat

A vulnerable version of Rails that follows the OWASP Top 10
HTML
859
star
21

java-html-sanitizer

Takes third-party HTML and produces HTML that is safe to embed in your web application. Fast and easy to configure.
Java
788
star
22

OWASP-VWAD

The OWASP Vulnerable Web Applications Directory project (VWAD) is a comprehensive and well maintained registry of all known vulnerable web applications currently available.
749
star
23

DevSecOpsGuideline

The OWASP DevSecOps Guideline can help us to embedding security as a part of the development pipeline.
Python
705
star
24

IoTGoat

IoTGoat is a deliberately insecure firmware created to educate software developers and security professionals with testing commonly found vulnerabilities in IoT devices.
C
689
star
25

ZSC

OWASP ZSC - Shellcode/Obfuscate Code Generator https://www.secologist.com/
Python
645
star
26

Docker-Security

Getting a handle on container security
Dockerfile
630
star
27

OWASP-WebScarab

OWASP WebScarab
Java
582
star
28

MASTG-Hacking-Playground

Java
574
star
29

www-project-kubernetes-top-ten

OWASP Foundation Web Respository
HTML
554
star
30

SecureCodingDojo

The Secure Coding Dojo is a platform for delivering secure coding knowledge.
PHP
536
star
31

DVSA

a Damn Vulnerable Serverless Application
JavaScript
532
star
32

glue

Application Security Automation
Ruby
522
star
33

www-project-top-10-for-large-language-model-applications

OWASP Foundation Web Respository
TeX
514
star
34

owasp-java-encoder

The OWASP Java Encoder is a Java 1.5+ simple-to-use drop-in high-performance encoder class with no dependencies and little baggage. This project will help Java web developers defend against Cross Site Scripting!
Java
488
star
35

OFFAT

The OWASP OFFAT tool autonomously assesses your API for prevalent vulnerabilities, though full compatibility with OAS v3 is pending. The project remains a work in progress, continuously evolving towards completion.
Python
457
star
36

Python-Honeypot

OWASP Honeypot, Automated Deception Framework.
Python
429
star
37

www-project-web-security-testing-guide

The Web Security Testing Guide (WSTG) Project produces the premier cybersecurity testing resource for web application developers and security professionals.
HTML
429
star
38

rbac

PHP-RBAC is an authorization library for PHP. It provides developers with NIST Level 2 Standard Role Based Access Control and more, in the fastest implementation yet.
PHP
423
star
39

owasp.github.io

OWASP Foundation main site repository
HTML
423
star
40

iGoat-Swift

OWASP iGoat (Swift) - A Damn Vulnerable Swift Application for iOS
C
406
star
41

samm

SAMM stands for Software Assurance Maturity Model.
JavaScript
397
star
42

threat-model-cookbook

This project is about creating and publishing threat model examples.
Python
373
star
43

igoat

OWASP iGoat - A Learning Tool for iOS App Pentesting and Security by Swaroop Yermalkar
C
368
star
44

Vulnerable-Web-Application

OWASP Vulnerable Web Application Project https://github.com/hummingbirdscyber
PHP
345
star
45

O-Saft

O-Saft - OWASP SSL advanced forensic tool
Perl
344
star
46

vbscan

OWASP VBScan is a Black Box vBulletin Vulnerability Scanner
Perl
323
star
47

Serverless-Goat

OWASP ServerlessGoat: a serverless application demonstrating common serverless security flaws
Python
312
star
48

SecureTea-Project

The OWASP SecureTea Project provides a one-stop security solution for various devices (personal computers / servers / IoT devices)
JavaScript
285
star
49

RiskAssessmentFramework

The Secure Coding Framework
TypeScript
245
star
50

D4N155

OWASP D4N155 - Intelligent and dynamic wordlist using OSINT
Shell
223
star
51

Serverless-Top-10-Project

OWASP Serverless Top 10
210
star
52

pysap

pysap is an open source Python library that provides modules for crafting and sending packets using SAP's NI, Diag, Enqueue, Router, MS, SNC, IGS, RFC and HDB protocols.
Python
205
star
53

www-project-ai-security-and-privacy-guide

OWASP Foundation Web Respository
HTML
202
star
54

www-chapter-japan

OWASP Foundation Web Respository
HTML
198
star
55

phpsec

OWASP PHP Security Project - THIS PROJECT IS INACTIVE AND MAY CONTAIN SECURITY FLAWS
197
star
56

json-sanitizer

Given JSON-like content, The JSON Sanitizer converts it to valid JSON.
Java
190
star
57

Maturity-Models

Node application to help managing Maturity Models like the ones created by BSIMM and OpenSAMM
JavaScript
184
star
58

passfault

OWASP Passfault evaluates passwords and enforces password policy in a completely different way.
JavaScript
169
star
59

ASST

OWASP ASST (Automated Software Security Toolkit) | A Novel Open Source Web Security Scanner.
JavaScript
152
star
60

IoT-Security-Verification-Standard-ISVS

OWASP IoT Security Verification Standard (ISVS)
TeX
133
star
61

Software-Component-Verification-Standard

Software Component Verification Standard (SCVS)
Python
133
star
62

owasp-summit-2017

Content for OWASP Summit 2017 site
CSS
128
star
63

BLT

OWASP BLT is a bug logging tool to report issues and get points, companies are held accountable.
HTML
124
star
64

www-project-secure-headers

The OWASP Secure Headers Project
Python
122
star
65

www-project-proactive-controls

OWASP Foundation Web Respository
Shell
122
star
66

www-project-code-review-guide

OWASP Code Review Guide Web Repository
HTML
119
star
67

SEDATED

SEDATED® Project (Sensitive Enterprise Data Analyzer To Eliminate Disclosure)
Shell
109
star
68

sonarqube

OWASP SonarQube Project
Dockerfile
109
star
69

raider

OWASP Raider: a novel framework for manipulating the HTTP processes of persistent sessions
Python
103
star
70

OWASP-Testing-Guide

OWASP Testing Guide
103
star
71

OWASPWebGoatPHP

A deliberately vulnerable web application for learning web application security.
PHP
99
star
72

user-security-stories

Repo to hold mapping of user-security-stories
99
star
73

KubeLight

OWASP Kubernetes security and compliance tool [WIP]
Python
97
star
74

owasp-istg

The IoT Security Testing Guide (ISTG) provides a comprehensive methodology for penetration tests in the IoT field, offering flexibility to adapt innovations, and developments in the IoT market while still ensuring comparability of test results.
Python
89
star
75

www-project-mobile-top-10

HTML
83
star
76

www-project-webgoat

OWASP Foundation Web Respository
HTML
81
star
77

Honeypot-Project

Python
79
star
78

NINJA-PingU

Python
77
star
79

threat-dragon-desktop

Desktop variant of OWASP Threat Dragon
77
star
80

OpenCRE

Python
77
star
81

www-project-developer-guide

OWASP Project Developer Guide - Document and Project Web pages
HTML
77
star
82

www-project-csrfguard

The aim of this project is to protect Java applications against CSRF attacks with the use of Synchronizer Tokens
Java
77
star
83

www-project-machine-learning-security-top-10

OWASP Machine Learning Security Top 10 Project
HTML
73
star
84

www-project-zap

OWASP Zed Attack Proxy project landing page.
HTML
72
star
85

www-project-threat-dragon

OWASP Foundation Threat Dragon Project Web Repository
HTML
70
star
86

SSO_Project

OWASP Single Sign-On allows a secure-by-default self-hosted SSO experience, including phishing-proof two-factor authentication, using state-of-the-art security mechanisms.
JavaScript
68
star
87

www-project-application-security-verification-standard

OWASP Foundation Web Respository
HTML
67
star
88

PHP-ESAPI

Migrated from code.google.com to a more active public repository.
PHP
65
star
89

www-project-security-knowledge-framework

OWASP Foundation Web Respository
HTML
64
star
90

wpBullet

Python
63
star
91

www-project-secure-coding-practices-quick-reference-guide

OWASP Foundation Project Web Repository for Secure Coding Practices Quick-reference Guide
HTML
63
star
92

www-project-top-10-low-code-no-code-security-risks

OWASP Low-Code/No-Code Top 10
HTML
62
star
93

www-project-top-10-ci-cd-security-risks

OWASP Foundation Web Respository
HTML
58
star
94

Container-Security-Verification-Standard

Container Security Verification Standard
Python
57
star
95

www-project-devsecops-guideline

The OWASP DevSecOps Guideline explains how we can implement a secure pipeline and use best practices and introduce tools that we can use in this matter. Also, the project is trying to help us promote the shift-left security culture in our development process.
HTML
49
star
96

www-project-devsecops-maturity-model

OWASP Foundation Web Respository
HTML
48
star
97

www-project-juice-shop

OWASP Foundation Web Respository
HTML
48
star
98

packman

A documentation and tracking project with the goal of making package management systems more secure.
48
star
99

www-project-api-security

OWASP Foundation Web Repository
HTML
47
star
100

WebGoat

This is a defunct code base. The project is located at: https://github.com/WebGoat
HTML
47
star