Skip to content

Build a Model With the Assistant

The assistant builds a threat model in conversation with you. You say what you want shown and threat modelled, it writes a draft and checks it with the engine, and you tell it what to change. Nothing becomes a revision until you save it.

You can use it if you may add models, your organization has switched the assistant on, and the model’s classification is one an AI may see. Administrators decide both in the AI settings.

  1. Choose Build With the Assistant: on the models list, under Create, or in the command palette.

    The Build with the assistant dialog

    The dialog goes step by step: What to Model, System, Name and Classification, Who Can See It, then Review. Choose Next after each.

  2. What to Model: in What Do You Want to Model?, describe the system in your own words, or pick one of the examples under Start From an Example and change it.

  3. System: choose the system, or Create a New System.

  4. Name and Classification: a Model Name and the Classification. Only the classifications an AI may see are offered, and the dialog names the ones left out. The classification is set now, so the rule holds from the first word.

  5. Who Can See It: Open or Restricted.

  6. Review: check your words and the rest. Change beside a part goes back to its step.

  7. Choose Start.

The draft opens and your words go to the assistant as its first message.

To revise a model you already have, see Revise with the assistant.

The draft’s page has the conversation on the left and the model’s page on the right.

  1. Type in the message box and press Enter, or choose Send. Shift+Enter starts a new line.
  2. The assistant answers as it writes. Between its words, short lines say what it did, such as “Wrote the model”, “Checked the rules: 1 suggestion” or “Kept a record of the conversation for the next draft”.
  3. The page on the right updates when the draft passes the engine’s check. While it does not, the right side lists the errors and warnings; ask the assistant to fix them.
  4. Stop ends an answer early. What it wrote so far stays.

Two Stages: Structure, Then Threat Analysis

Section titled “Two Stages: Structure, Then Threat Analysis”

The assistant works on a draft in two tiers, and the draft’s header says which one it is on: Routine Tier or Deep Tier. Rest the pointer on it to see the model and the effort.

  1. The structure, on the Routine tier. The assistant interviews you and builds the zones, nodes and flows, with their authentication, and the walkthrough. When it has, it asks you to confirm the structure.
  2. The threat analysis, on the Deep tier. Once you confirm, the assistant moves the draft to the Deep tier by itself, and the conversation shows Switched to the Deep tier for threat analysis. where it happened. Its first step there is to check the structure for what an assessor would find missing (perimeter and shared services, dependencies, your organization’s environment and library items, trust boundaries a flow crosses without inspection), and it asks you about each gap or proposes it as a suggestion. Then it writes the threats, attack paths and risk ratings.

The draft moves once, and never back. It also moves when the assistant writes a threat, an attack path or a risk rating before you confirmed the structure, at the end of that answer.

Switch to Deep Analysis, at the top of the conversation while the draft is empty and on the Routine tier, switches the draft’s assistant to the Deep tier now, before the first message: for a system you know is complex. Once the draft has a model, Run Threat Analysis does the same as it starts. Nothing runs until your next message, and a draft never switches back. The ? beside it says what it does. Pressed while the assistant is answering, it takes effect from the assistant’s next step.

Your administrators choose the models of the two tiers in the AI settings. Find Gaps, in an assessor’s review, always runs on the Deep tier.

Between the messages and the message box, a row headed Next Steps offers the one step that fits the draft best now, and More Steps beside it lists all seven. A step that does not fit yet is listed but cannot be chosen, with a line that says why. Each says Uses AI or No AI. The row is hidden while the draft is empty, while the assistant is answering (Stop is the one thing to press then), and when no step fits.

A step that uses AI sends a message at once, written out in the conversation as yours, so the conversation stays the record of what was asked. It counts toward your organization’s use of the assistant like any message, and in the demo toward the day’s limits. A step with no AI leaves a line in the conversation that says what it did, which the assistant reads too.

The row suggests them in this order, the first that fits:

Step When It Fits What It Does
Answer Open Questions (Uses AI) A connection has no authentication or no data classification The assistant asks you for what is missing, one or two questions at a time, and fills in each answer.
Confirm Suggested Elements (No AI) Something is marked suggested A dialog lists every suggested element by kind. Choose Keep or Remove for each, then Save Choices, or Keep All. The engine checks the result, as for a change by hand.
Run Threat Analysis (Uses AI) The draft is valid, with zones and connections, and has no threats yet Switches the draft to the Deep tier if it is on the Routine tier, with the line Switched to the Deep tier for threat analysis., then asks the assistant for the threat analysis: STRIDE for every connection and element, each threat rated, with the controls that treat it.
Suggest Threats by Rule (No AI) The draft has connections The engine’s own rules add the threats they find, each marked suggested, and the engine rates them. The line says how many, such as Added 3 threats from the engine’s rules, marked suggested. Choosing it again adds only what is new. Once the rules have run on the draft, it stays in More Steps and the step after it is suggested.
Build Attack Paths and Plan Controls (Uses AI) The draft has threats, and some have no control or there are no attack paths On the Deep tier, the assistant chains the threats into attack paths and plans a control for each threat that has none.
Find Gaps (Uses AI) The draft has threats On the Deep tier, the assistant checks the draft as an assessor would: against the engine’s rules, your Organization Environment and the assessor’s checklist, and asks you about each gap or proposes what is missing, marked suggested. It is the same check as Find Gaps in a review, done in the draft’s conversation.
Check Layout (No AI) The draft is valid The engine measures the diagram. The line says whether it is clear, how many lines cross, and names each fault, such as a line through a box or over text. Ask the assistant to fix what it names.

More Steps works from the keyboard: Enter or Space opens it, the arrow keys move through the steps, Enter chooses one and Escape closes it. A screen reader reads each step’s line, and for one that does not fit, why.

Where the classification keeps AI away from the draft, there is no conversation: the three steps with no AI stand in the same row above the form to edit by hand, and what each did is said in a notice.

In the public demo, Find Gaps and the three steps with no AI are listed but switched off, as editing by hand is.

  1. Choose Save As Revision.
  2. Add a Note (optional) for the people who read it later.
  3. Choose Save As Revision.

A draft of a new model becomes revision 1 of a new model. A draft of an existing model becomes its next revision. The engine checks it again, as for an upload, and the draft and its whole conversation are deleted at that moment.

If someone saved a newer revision of the model after you started the draft, the dialog warns you that the draft does not have their changes. Save Anyway puts the draft on top as the newest revision; Cancel lets you look first.

When the assistant has kept a record of the conversation, the dialog shows it under Context Kept for the Next Draft. Saving keeps it on the model (below).

Saving a draft deletes its conversation. So that the next draft of the model does not start from nothing, the assistant keeps a short record of what the conversation settled: the decisions made, the answers you gave, and the points still open. It writes the record as it goes, and you can see it in the save dialog.

  • When the draft is saved, the record is kept on the model, under the discussion, as Context for the Next Draft, with who kept it and when.
  • When the next draft of the model starts, the assistant reads it first, so it does not ask again what is already answered. It treats it as a record, not as instructions.
  • Anyone who can see the model can read it. Anyone who may add a revision can change it: choose Change (or Write It while there is none), edit, then Save. Empty words remove it. It is up to 4,000 characters.
  • If someone changes it while you are editing, the box says so at once and shows theirs; your words stay in the box, and Save Anyway puts them in its place. If they saved before it could tell you, saving says the same.
  • If someone changed it after the assistant read it, saving the draft warns you. Save Anyway puts the draft’s record in its place.
  • A draft in which the assistant kept nothing leaves the model’s context as it is.
  • Where AI may not see the model, because of its classification, the context stays readable by people and no AI reads it.
  • It is sealed with your organization’s own key, and every change is recorded in the activity log as Model context changed, never with the words.

Discard, then Discard the Draft, deletes the draft and its conversation. It cannot be undone. A model you started from stays as it was.

  • Only you can see a draft. Not administrators, not the central team.
  • Drafts are sealed with your organization’s own key, conversation included. The badge beside the draft’s name says which version, for example Encrypted, Organization Key v2.
  • A draft nobody touches for 30 days is deleted with its conversation.
  • The activity log records that the assistant was used: who, when, which AI vendor and model, which tier, and how much. Never the words.
  • Where your words go. The assistant sends the draft and the conversation to the AI vendor your organization’s administrators chose. See AI settings.
Message What to Do
“This month’s allowance for the assistant is used up.” It starts again next month, or an administrator can switch to your organization’s own AI account.
“The AI service did not answer as it should.” Try again in a moment.
“The AI declined to answer this.” Put the request another way.
“The assistant reached a limit before it finished.” Send another message to carry on.
“The assistant is not available right now.” It may have been switched off. Ask an administrator.
“You are not allowed to do that.” An administrator may have closed this classification to AI since you started. The draft can still be saved, downloaded or discarded.