Editing the Diagram and Its Components

Editing the Diagram and Its Components

Add and connect components, style data flows, group nodes into trust boundaries, and annotate the diagram.

The Diagram tab is where you draw the system. Components are nodes, data flows are links between them, and trust boundaries are the dashed regions that group them.

Every node is one of four kinds, each with its own shape and colour:

  • Entity: something outside your control that talks to the system, such as a user, a browser or a partner.
  • Process: code that runs, such as a service, a job or a function.
  • Data store: where data rests, such as a database, a queue or a bucket.
  • Business logic: rules and decisions, such as a fraud engine or a pricing policy.

Each node shows its label, its component, and coloured risk chips counting its threats by rating: H for High, M for Moderate, L for Low.

Drag the canvas to pan, and scroll or pinch to zoom.

The Tool Rail

The tool rail on the left of the canvas

The tool rail on the left of the canvas

  1. Add entity
  2. Add process
  3. Add data store
  4. Add business logic
  5. Connect nodes switches to connect mode: drag from one node to another to link them. Click it again, or press Esc, to go back to moving nodes.
  6. Add a sticky note
  7. Add a comment (see Manage Access)
  8. Undo
  9. Redo
  10. Fit View frames the whole diagram. The buttons above it zoom in and out.

A new node appears in the visible part of the canvas, selected, with its details open on the right. Rename a node by clicking its label, typing, and pressing Enter. Drag a node to move it, or select it and nudge it with the arrow keys (hold Shift for bigger steps).

Work With a Selected Node

Click a node to select it. A small toolbar appears above it, and its details open in the right sidebar (see Managing Threats and Controls).

A selected node with its toolbar

A selected node with its toolbar

  1. Delete node removes the node with its links and its threats. Delete or Backspace does the same.

To link two nodes, use Connect nodes on the tool rail.

Every delete asks first, saying what goes with it; Undo still brings everything back.

Style a Data Flow

Click a link, or its label, to select it.

A selected link with its toolbar

A selected link with its toolbar

  1. Edit link label names the flow, such as "Card details · HTTPS".
  2. Link colour: eleven colours, Default, or + for any colour.
  3. Link width: Thin, Medium or Thick.
  4. Link line style: Solid, Dashed or Dotted.
  5. Reverse link direction swaps its ends.
  6. Toggle two-way link puts an arrow at both ends.
  7. Delete link

A one-way link has a circle at its source and an arrow at its target. Use colour and style to tell kinds of flow apart, for example sensitive data in red or asynchronous events dashed.

Trust Boundaries

A trust boundary marks where the level of trust changes: a network, a cloud account, a PCI scope. You set a node's boundary from its details, not by dragging it into a region.

The trust boundary list in the node details

The trust boundary list in the node details

  1. None takes the node out of every boundary.
  2. Pick a boundary to move the node into it. Boundaries can sit inside one another.

To create a boundary, type a new name in the list's search box and press Enter: the node moves into it. To rename a boundary, click its label on the canvas. To nest one boundary in another, click the boundary's border or label and choose its parent in the details. To delete one, select it and use the trash button on its toolbar: its nodes and inner boundaries move up to its parent. A boundary with no nodes is not drawn, but stays in the list until you delete it there.

Technology Icons

Give a node the icon of the technology it uses: about 1,000 cloud services and software brands.

The icon picker searching for "queue"

  1. Search by name or by what it is ("queue", "CDN", "AWS"). The search is fuzzy. Your recent icons are listed first, and Clear removes the icon.

Sticky Notes

Sticky notes hold questions and reminders on the canvas. They are not part of the model: they carry no threats and count nowhere.

A sticky note on the diagram

A sticky note on the diagram

  1. Choose Add a sticky note on the rail, then click where the note goes. Type its text and press Enter. Shift+Enter starts a new line. Drag the note to move it, or drag its edges to resize it.
  2. Note colour: eleven colours, or + for any colour.
  3. Delete note

A large system is easier to model in parts. A node can stand for a whole other model: for example, a "Customer identity service" node linked to the identity team's own model.

The details of a node linked to another model

The details of a node linked to another model

  1. The linked model's name.
  2. Open linked model goes to it.
  3. Link model picks the model to link, or another one to relink. Click a model in the list to link it.
  4. Node actions (⋯) has Unlink and Delete.

A linked node shows a Linked badge on the canvas instead of risk chips. Its own threats are left out of the Threats tab and the Summary, because they belong to the linked model. Unlink brings them back unchanged.

Out-of-Scope Nodes

Mark a node out of scope when it belongs in the picture but not in this assessment, such as a partner's system or a legacy platform owned by another team.

An out-of-scope node and its details

An out-of-scope node and its details

  1. The In scope / Out of scope switch.
  2. An out-of-scope node is drawn dashed and faded, with no risk chips.

Its threats leave the Threats tab, the Summary and the report's risk tables. The report still lists the node, marked out of scope. Switch it back to bring everything back.

Undo, Redo and Saving

Undo and Redo cover every change to the model, on every tab: the diagram, threats, stages, settings and the assistant's changes. That is up to 100 steps, back past your last save. The history is cleared when you leave the model or reload the page.

All edits are kept in your browser tab until you choose Save in the header.

Keyboard Shortcuts

Everything on the canvas can also be reached with Tab and selected with Enter or Space. Every shortcut is listed in Keyboard shortcuts.