Import From Another Tool
Import From Another Tool reads a file you already have into a draft of a new model. Every zone, element and connection it finds is marked as a suggestion, with where in the file it came from, until you confirm it. Nothing becomes a revision until you save the draft. Authors, administrators and the central team can import.
No AI is used. The file is read by the application itself, so this works for every classification, including the ones where the assistant is switched off.
What Can Be Imported
Section titled “What Can Be Imported”| File | What is read |
|---|---|
Visio Drawing (.vsdx, Visio 2013 or later) |
Shapes become elements, typed from their text and stencil. A container, or any box drawn around other shapes, becomes a zone. Connectors become connections, glued or not; arrowheads give the direction. One page at a time. |
draw.io Diagram (.drawio, or its .xml) |
The same, from groups, swimlanes, containers and edges. Compressed diagrams are read too. |
Microsoft Threat Modeling Tool Model (.tm7) |
Stencils, box trust boundaries and data flows, and the threats the file holds, each with its STRIDE category, its state and its priority. |
Terraform Plan (the JSON that terraform show -json prints) |
Networks and subnets as nested zones; compute, databases, storage and gateways as elements; security group rules as the connections they allow. AWS in depth; Azure and Google Cloud for what is where and what is open to the Internet. |
| CloudFormation Template (JSON or YAML, SAM included) | The same as a Terraform plan, for AWS. |
| Kubernetes Manifests (YAML or JSON) | Namespaces as zones in one cluster; workloads as elements; an Ingress or a LoadBalancer Service as a way in; a NetworkPolicy as the connections it admits. |
| Open Threat Model (JSON or YAML, version 0.2.0) | Trust zones as zones, components as elements (a gateway or firewall on its zone’s edge), dataflows as connections, and the threats placed on components and dataflows, each with its STRIDE category, its state and the names of its mitigations. A file another tool writes in Open Threat Model reads this way, and so does one exported from NetBlueprint Forge. |
A file is read as what it is, whatever it is called. The largest file is 10 MB.
Three things people try that are not read, and what to do instead:
- Terraform configuration (
.tf): import the plan, where every module and variable is already worked out. Runterraform plan -out plan.out, thenterraform show -json plan.out > plan.json, and chooseplan.json. - A Helm chart: render it first with
helm template, and choose the result. - The older Visio formats (
.vsd,.vdx): open the drawing in Visio, save it as a Visio Drawing (.vsdx), and choose that.
- On the models list, choose Import From Another Tool. The dialog goes step by step: File, System, Name and Classification, Who Can See It, then Review.
- File: choose the file.
- System: choose the system the model describes, or Create a New System.
- Name and Classification: the model’s name starts as the file’s name; change it if you like. Choose the classification. Every level is offered.
- Who Can See It: Open or Restricted.
- Review, then Import.
The draft opens. Only you can see it, like any draft.
Confirm What Was Read
Section titled “Confirm What Was Read”The panel Read From {file name} says what was read and lists every element of the draft.
- Questions Only You Can Answer: what the file cannot say. A drawing does not say who starts a connection, how the caller proves who it is, or what data it carries. Infrastructure code says a path is allowed, not that it is used.
- What the File Held That Is Not Drawn: what was counted and left out, such as text boxes, connectors with a loose end, or identity resources in infrastructure code.
- Zones, Boundary Devices, Elements, Connections, Threats and Controls: each row shows Suggested or Confirmed, and where in the file it came from.
To work through the list:
- Confirm All confirms everything.
- Tick rows, then Confirm Selected or Remove Selected. Removing an element also removes its connections, and a threat that pointed only at what was removed. A zone can be removed once it is empty.
- For an element whose type was guessed wrong, choose the right one in its Type menu. An element the file gave no clue about is Generic.
A change is kept only if the engine still accepts the model. If it would not, nothing changes and the reason is shown.
Below the panel, edit the draft by hand: add what the file left out, move elements between zones, and change labels, types and details, with no AI. Where the assistant is on for the classification, you can instead ask it to answer the questions or make those changes, as on any draft.
When it is right, choose Save As Revision.
What to Know
Section titled “What to Know”- A draft can be saved with suggestions still in it. It is then a model like any other, and its page marks what is not confirmed. The strict check that a pipeline runs fails while any element is still a suggestion, so an unconfirmed import cannot pass for a reviewed model.
- Secrets are not copied. A Terraform plan or a manifest can hold passwords and keys. Only names, tags, address ranges, ports and the settings that make something public are read. Where a manifest writes a secret in the clear, the import says so and does not copy its value.
- The file is not kept. It is read once, in a part of the application that can only read: it cannot write, connect to anything or start a program. What is kept is the draft and the report of what was read, sealed with your organization’s key like any draft.
- A file is treated as untrusted. A file that declares an XML document type, uses YAML aliases, or unpacks to far more than its size is refused, with a sentence that says why.
- Reading is a first draft, not a finished model. A type is guessed from a shape’s text and stencil. A firewall drawn between two things becomes a boundary device on the zone it guards when the drawing allows that reading, and is left as an element with a question when it does not. A threat from a
.tm7file carries a likelihood and impact set from the file’s priority, because the file has no other rating: judge both. - Several pages. The first page with shapes is read, and the panel names the others.