Creating a Threat Model

Creating a Threat Model

Start a model by describing your system to the assistant or by uploading an existing model, then save it.

Every threat model starts from New model in the sidebar, or from Create model on an empty list. You get an unsaved model called "Untitled", with the New model dialog open on top of an empty diagram.

Choose How to Start

The New model dialog

The New model dialog

  1. Project: the project folder the model belongs to. Default means no project. Choosing a project fills in its risk templates and risk modifiers for you.
  2. Project type: the kind of system, such as Web.
  3. Choose Ask Assistant to describe your system, or Upload model to start from a file.
  4. Describe the system in as much detail as you can: its parts, how data flows between them, and what is exposed to whom. The assistant can work from a sentence, but more detail gives a better model.
  5. Attach files adds diagrams, documents or infrastructure code for the assistant to read (see Working with the assistant).
  6. Risk templates: the threat libraries this model draws from, such as OWASP Top 10, STRIDE or PCI DSS. Search the list, or use Select all and Clear. At least one template stays selected.
  7. Risk modifiers: Payment data, Personal data, Health data, Mission critical and Internet facing. Pick the ones that apply.
  8. Continue sends your description to the assistant.

Every setting applies as you change it, and you can change them all later in Model Settings (see Manage your models). Cancel just closes the dialog: you keep an empty model to draw by hand.

Upload an Existing Model

Upload model selected in the New model dialog

Upload model selected in the New model dialog

  1. Drop a file here, or click to browse. ThreatCanvas reads ThreatCanvas JSON files, including ones from the previous version of ThreatCanvas, and OWASP Threat Dragon models. Continue imports it.

If the file can't be read or converted, ThreatCanvas says why and leaves the model empty. Any parts of a model it had to adjust while converting are listed in a notice.

The First Draft

The assistant reads your description, draws the diagram and replies in the chat.

The assistant's first draft beside its reply

The assistant's first draft beside its reply

  1. The assistant's reply: what it drew, and often questions about what it needs to know. Answer them in the chat to refine the model.
  2. The draft diagram: components, data flows and trust boundaries, each component carrying the threats the assistant found.

The draft is an ordinary diagram: change anything by hand (see Editing the diagram), or keep asking the assistant.

Save the Model

Nothing is stored until you save. Choose Save in the header, next to Model actions (▾).

The Save dialog for a new model

The Save dialog for a new model

  1. Name: required.
  2. Project: where the model is filed. This is the only time you can choose it.
  3. Tags: optional keywords. Press space, comma, Enter or Tab to finish each tag. Tags are searchable from All models.

Save before you leave. A new model exists only in your browser tab until its first save. Reloading the tab brings it back, with the New model dialog closed. Closing the tab loses it, so your browser asks first.

Once saved, the model appears in your lists, and sharing, comments and version history become available.