Working With the Assistant

Working With the Assistant

Ask the ThreatCanvas assistant to draw, change and explain your model, and to analyze a single component.

The ThreatCanvas assistant drafts models from a description, changes the diagram when you ask, answers questions about the model, and finds threats for a single component.

Open the Chat

On a model's Diagram tab, click the round ThreatCanvas assistant button at the bottom right of the canvas. The chat opens in the right sidebar.

The assistant's chat beside a diagram

The assistant's chat beside a diagram

  1. The conversation, oldest first. Replies can use bold, lists and code.
  2. Type your message. Enter sends it. Shift+Enter starts a new line.
  3. Attach files adds files to your next message.
  4. Close chat hides it. The conversation comes back when you reopen the chat on this model, until you reload the page or open another model.

The chat and the details panel share the right sidebar: opening a component's details closes the chat, and opening the chat closes the details.

Ask for Changes

Ask for what you want in plain words: "Add a WAF in front of the API", "Split the order service into its own trust boundary", "What threats does the payment flow face?".

The diagram after asking for a web application firewall

The diagram after asking for a web application firewall

  1. When a reply changes the diagram, the change is applied straight away.
  2. A change from the assistant is a single step on Undo, however large. Edits you made while waiting for the reply are replaced, and Undo brings them back.

Like every edit, the assistant's changes are kept only when you save.

Example Prompts

  • A new application: "Model a web application which is hosted on an Azure Kubernetes cluster to store data in a PostgreSQL database, uploaded by users."
  • A new feature: "Add a new feature which allows users to download their stored data and request their data to be deleted."
  • Advice: "What other information can I add to improve this model?"

These are also in Help, in your user menu.

Attachments

Attach an image or a diagram of an existing system, an export from another threat modeling tool, or infrastructure as code. Any other file is read as text. You can also paste an image, such as a screenshot, straight into the message.

KindExtensions
Images.png .jpg .jpeg .gif .webp .svg
PDF.pdf
draw.io.drawio
Visio.vsdx
IriusRisk.xml
OWASP Threat Dragon.json
Terraform.tf

To open an existing ThreatCanvas or Threat Dragon model rather than have the assistant read it, use Upload model instead (see Create a threat model).

Analyze One Component

To find threats for a single component, select it on the diagram.

The node panel with Analyze node

The node panel with Analyze node

  1. Analyze node asks the assistant for the threats and controls that apply to this component, from your organization's threat library.

The new threats are added to the component, and the assistant may also set its component type. Nothing is removed, and the whole analysis is one Undo step. You can keep working while it runs. A message tells you how many threats were added. Analyze node is not offered on a node linked to another model.