SPARTA Interface

SPARTA is built on the Eclipse workbench. When you start the SPARTA product, it opens the SPARTA perspective, which arranges the workbench in four main areas, as shown in the screenshot below:

  • The Project Explorer (left)

  • The editor area (in the middle - empty for now), where the graphical, table and tree editors open

  • The Properties view (bottom), stacked with the Problems view, which lists diagram validation results

  • The ThreatAnalysis view (right), stacked with the PatternSupport view

SPARTA screenshot

The SPARTA interface

If you closed or moved views, Window ‣ Perspective ‣ Reset Perspective… restores this layout. A workspace that you used with an earlier SPARTA release keeps the layout it stored, without the PatternSupport view. To add only that view, select Window ‣ Show View ‣ Other… and then Pattern Support ‣ PatternSupport; resetting the perspective also adds it, but undoes all your other changes to the layout. If you installed the SPARTA plug-ins into your own Eclipse IDE instead (see Installing SPARTA), open the perspective with Window ‣ Perspective ‣ Open Perspective ‣ Other… and select SPARTA. In an Eclipse IDE, the ThreatAnalysis view is also added to the Java perspective.

The menu bar is the standard Eclipse one, with an additional SPARTA menu that contains the analysis commands (see ThreatAnalysis View), a Diagram menu while a diagram is active and a SpartaModel Editor menu while the tree editor is active. The same analysis commands are also buttons in the main toolbar, the row of buttons below the menu bar, and in the toolbar of the ThreatAnalysis view.

Welcome Screen

The first time you start the SPARTA application with a workspace, the Welcome to SPARTA screen covers the workbench. Click Go to the workbench at the bottom to close it, and select Help ‣ Welcome to open it again. It contains the following parts:

Getting started

The steps of a typical threat modeling session (see Introduction), and the link Guided tutorial (see Guided tutorial).

Create your first project

The links New Modeling Project and New SPARTA Model, which open the wizards described in Creating a Project and Creating SPARTA model files.

Start from an example

The links Contoso, Social Network and WebRTC, which open the wizard of the corresponding example project (see Example projects).

Documentation, Developers and Resources

Links that open in your web browser, for example to this documentation, the source code on GitHub and the threat type catalogs.

What’s new in the 2026 release line

A summary of the changes in each release of the 2026 line.

The welcome screen belongs to the SPARTA application. In an Eclipse IDE with the SPARTA plug-ins, Help ‣ Welcome shows the Eclipse welcome screen, but the example projects and the guided tutorial are available from the menus described below.

Added in version 2026.3: The welcome screen, the example projects and the guided tutorial.

Example projects

The SPARTA application and the SPARTA plug-ins come with example projects that you can add to your workspace. Select File ‣ New ‣ Example…, open the category SPARTA, select an example and click Finish:

Contoso (STRIDE, security solutions)

Creates the project contoso: the Contoso DFD model with the STRIDE-per-interaction threat type catalog, loss estimates and applied security solutions.

Social Network (LINDDUN privacy)

Creates the project socialnetwork: a social network DFD model with the LINDDUN PRO threat type catalog.

WebRTC (STRIDE and LINDDUN)

Creates the project webrtc: a WebRTC DFD model with the STRIDE-per-interaction and LINDDUN PRO threat type catalogs and applied security solutions.

Guided Tutorial Starter Project

Creates the project sparta-tutorial: a modeling project without a DFD model, with the threat type catalog stride-per-interaction - Shostack.sparta and the solution catalog SecurityPatternCatalog.sparta, for the guided tutorial.

Each example is a modeling project with its own copy of the catalogs it uses, so you can change and analyze it freely. After you add Contoso, Social Network or WebRTC, SPARTA opens the overview of the project’s representations.aird, with the models and the representations of the project. To open the diagram, expand Data Flow Diagram under DataFlowDiagram in Representations and double-click the diagram. These three projects are based on the online example cases.

Guided tutorial

The guided tutorial “Create and analyze your first model” is a short version of the first tutorial in Tutorials. It opens as a cheat sheet next to the workbench. Each step explains what to do; a step with a Click to perform link carries out the step for you, for example by opening a wizard, showing a view or running the analysis.

To start it, click Guided tutorial on the welcome screen and then Start the guided tutorial, or select Help ‣ Cheat Sheets… and then SPARTA ‣ Create and analyze your first model.

Note

In SPARTA 2026.3, after you start the tutorial from the welcome screen, the Welcome view keeps showing the tutorial: Restore Welcome does nothing, the Home button is disabled, and Help ‣ Welcome shows the tutorial again. To see the welcome screen again, restart SPARTA with File ‣ Restart.

Note

In SPARTA 2026.3, the step Mitigate threats with a security solution does not say which tool to use to add the solution. Use Apply Solution (see Palette): a solution created with createSolution has no role bindings, so Assign Role has no role square to start from. Apply Solution only offers the solution types of the catalogs in the Resource property of the DFD model, so make sure that the step Attach the threat catalog to the model also added SecurityPatternCatalog.sparta.

Project Explorer

All the modeling and analyses in SPARTA happen in the context of a concrete project. Before any activity is started, a project first will need to be created.

Creating a Project

In order to start creating a model, first a modeling project needs to be created. In the SPARTA perspective, use File ‣ New ‣ Modeling Project, or click Create a Modeling project in the empty Project Explorer. The same wizard is also available as File ‣ New ‣ Project… and then Sirius ‣ Modeling Project, and as the link New Modeling Project on the welcome screen. Enter a project name in the New Modeling Project wizard and click Finish.

The creation of the modeling project will also create a file representations.aird, which contains the graphical views (diagrams) of the models that can be created in the next steps. To start from a complete model instead, add one of the Example projects.

Create project screenshot

Creating a new modeling project

Creating SPARTA model files

A model is stored in a .sparta file. Before any modeling activity can be performed, such a file must first be created. A single modeling project can contain as many .sparta files as needed. While it is possible to link multiple .sparta files together to create larger models (see Linking resources to a DFD model), this is not necessary, so a .sparta file can also be used for a fully self-contained DFD.

To create a new file, use one of the following:

  • In the Project Explorer, right-click the project (or a folder in it) and select New ‣ SPARTA Model.

  • In the SPARTA perspective, select File ‣ New ‣ SPARTA Model.

  • Select File ‣ New ‣ Other… and pick SPARTA Model Creation Wizards ‣ SPARTA Model.

  • On the welcome screen, click New SPARTA Model.

This launches the wizard, which has two pages:

  1. On the SPARTA Model page, select the parent folder and enter the file name. The default name is model.sparta. The wizard accepts the extensions .sparta and .spartamodel; use .sparta, because only .sparta files can be shown in a Data Flow Diagram.

  2. On the next page, select the Model Object and, if needed, the XML Encoding (default UTF-8), and click Finish.

The model object is the main element of the .sparta file that contains all the other model elements. The list offers every model element type, but only a few are useful as the root of a file:

  • DFD Model: a data flow diagram model, the model you analyze.

  • Threat Type Catalog: threat types and their threat patterns (see Creating threat type catalogs).

  • Solution Type Catalog: reusable security and privacy solutions.

  • Attacker Model: attacker profiles.

  • Data Model: data types, personal data types and data subject types.

While you can create separate files for every element, the most convenient element is the DFD Model element, so that you can create all the model elements in a single .sparta file. After Finish, the new file opens in the tree editor (see Tree Editor).

Create model screenshot

Creating a new model

Linking resources to a DFD model

Catalogs and attacker models are usually kept in their own files, for example the threat type catalogs that you import into your project. A DFD model only uses such a file when the model refers to it, normally through the model’s Resource property. This property is a list and accepts DFD Models, Threat Type Catalogs, Solution Type Catalogs, Threat Specification Catalogs, Attacker Models and Data Models.

Linking is required: when you analyze a model, SPARTA reads the model’s own file plus the files that the model references directly. Threat types, attacker profiles and solution types in files that are not referenced are ignored. Elements that you create inside the DFD Model itself (for example a Threat Type Catalog created as a child of the DFD Model) are always considered during analysis.

To link a file in the tree editor:

  1. Open the DFD model’s .sparta file in the tree editor.

  2. Select SpartaModel Editor ‣ Load Resource… (also in the context menu of the tree), click Browse Workspace…, select the .sparta file to link and click OK. The file now appears as an additional root in the tree editor.

  3. Select the DFD Model element, and in the Properties view click the … button of the Resource property.

  4. In the dialog, select the catalog or attacker model, click Add and then OK.

  5. Save the file.

SpartaModel Editor menu with the Load Resource action

Loading another file into the tree editor

In the graphical editor, linking takes fewer steps, because the dialog of the Resource property also lists the other .sparta files of the modeling project:

  1. Click the diagram background, so that the DFD Model is selected.

  2. On the Main tab of the Properties view, click the … button of the Resource property.

  3. In the dialog, select the catalog or attacker model, click Add and then OK.

  4. Save the diagram.

Tutorials shows these steps for a threat type catalog, an attacker model and a solution catalog.

Graphical Editor

SPARTA provides a graphical modeler based on Eclipse Sirius. Before being able to graphically model a DFD, a diagram (a Sirius representation) must be created for a DFD model. The diagrams are stored in representations.aird; the model itself stays in the .sparta file.

Creating a Data Flow Diagram

Create a diagram in one of the following ways:

  • Right-click the modeling project and select Create Representation. In the wizard, select Data Flow Diagram under the viewpoint DataFlowDiagram and click Next. Then select the DFD Model element of your .sparta file, click Finish, and confirm the diagram name.

  • Expand the .sparta file in the Project Explorer, right-click the DFD Model element and select New Representation. For the first diagram of a project, the menu only contains Other…, which opens the same wizard for this DFD Model: select Data Flow Diagram, click Finish, and confirm the diagram name. After that, the menu lists the entry new DataFlowDiagram <name> directly.

The default diagram name is new DataFlowDiagram <name>, where <name> is the name of the DFD model. After that, the diagram is opened in the graphical modeler. To reopen it later, expand the DFD Model element in the Project Explorer and double-click the diagram.

SPARTA interface with an example project imported

SPARTA interface with an example project imported

The diagram uses the following notation:

  • External entity: a rectangle with a bold label.

  • Process: a circle.

  • Data store: two horizontal lines.

  • Trust boundary: a red dashed, rounded box. Its label is shown in upper case; the tooltip shows the actual name.

  • Data flow: a black arrow from sender to recipient, labeled with its name.

The tooltip of an external entity, a process, a data store or a data flow shows its name, followed by [insider threat] if an attacker profile lists the element as Insider, and by [loss estimated] if the element has an entry in Estimates or Loss Magnitude. [insider threat] only takes into account the attacker models in the DFD model’s Resource property. A data flow whose sender and recipient are in different containers, for example on different sides of a trust boundary, has no such tooltip. For the tooltips of solutions, see Layers.

Palette

The right-hand side of the diagram editor contains the Palette with the tools to create the model. Select a tool and click in the diagram (or, for a flow, click the sender and then the recipient).

The DFD Elements section contains:

Tool

Creates

Default name

createExternalEntity

an external entity

ExternalEntity 1, ExternalEntity 2, …

createProcess

a process

Process 1, …

createDataStore

a data store

DataStore 1, …

createTrustBoundary

a trust boundary

Container 1, …

createDataFlow

a data flow

Flow 1, …

The Security Tools section is used to apply security and privacy solutions to the model (see Concepts used in SPARTA for the concepts). It is only shown while the SecurityView layer is active (see Layers).

Apply Solution

Click in the diagram to open the dialog Select solution to apply. In the group Available Solutions, select a Solution; the dialog shows its Name and Number of Roles. OK creates a solution named after the solution type, with one role binding for each role of the solution type. The dialog offers the solution types contained in the DFD model and those in the Solution Type Catalogs listed in the DFD Model’s Resource property, so link a solution catalog first. This is the recommended way to apply a solution.

createSolution

Creates an empty solution. Set its Securitypattern property to the solution type to be instantiated, and add role bindings with createRole.

createRole

Click a solution to add an empty role binding to it. Set the role binding’s Binds property to the role of the solution type.

Assign Role

Connects a role binding to a DFD element that plays the role: drag from the small role square on the border of the solution to a process, data store, external entity or data flow. The connection is only allowed when the type of the target is one of the role’s Binding Types. This adds the target to the role binding’s Binds To property, and a gray line connects the role square to the target. To bind several elements to the same role, for example all data flows that are sent over the same secure channel, use Assign Role again from the same role square for each further element.

To remove an element from a role binding, select the gray line between the role square and the element, and press Delete. This removes only that element from the role binding’s Binds To property; the role binding stays. You can also select the role square (or the role binding in the tree editor), select the element in the Binds To list of the Properties view, and click the red remove button next to the list.

Pressing Delete on a role square depends on the state of the role binding:

  • If it is bound to at least one element, it is unassigned: its Binds To property is emptied, and the role square stays (in light orange, see Layers).

  • If it is not bound, the role binding is removed from the solution.

Changed in version 2026.3: Deleting a bound role square unassigns the role binding instead of removing it.

Editing the diagram

  • To rename an element, select it and press F2, or click its label. This also works for the role squares of a solution: it changes the Name of the role binding, while the tree editor keeps labeling the role binding with the name of its role (see Tree Editor).

  • To move a process, data store, external entity or trust boundary into or out of a trust boundary, drag it to its new place. This also changes the element that contains it in the model.

  • To change the sender or recipient of a data flow, drag the corresponding end of the arrow to another element.

Layers

The Layers drop-down in the diagram toolbar shows three optional layers. They are active in a diagram that you create, but not in the diagrams of the example projects or in diagrams created with an earlier SPARTA release: there, select them in the Layers drop-down to see the solutions and the loss estimates.

SecurityView

Shows the solutions as boxes, with their role bindings as small squares on the border. A role binding that is bound is gray, and a gray line connects it to each element or flow it is bound to. A role binding that is not bound to any element is light orange, with the tooltip unassigned role: <name>. The countermeasures of the solution’s solution type are shown as light green squares on the border, with the tooltip Countermeasure: <name> - mitigates N threat type(s). The tooltip of a solution box reads Mitigates N threat type(s); X of Y role(s) bound: N counts the threat types that the countermeasures of the solution type mitigate, and X of the solution’s Y role bindings are bound. The layer also provides the Security Tools palette section. Disable the layer to hide all solutions from the diagram.

Mark Flows Crossing TrustBoundary

Draws data flows whose sender and recipient are in different containers, for example on different sides of a trust boundary, in dark red and appends (!) to their label (Flow 1(!)). Disable the layer to draw these flows as normal black arrows.

Loss Estimates

Marks the external entities, processes and data stores that have an entry in Estimates or Loss Magnitude (see Estimates): their label shows the probable loss as <name> [loss <probable>], for example Database [loss 5000.0], and external entities and processes get a red border. The value is the Probable value of the first entry in Estimates, or, if that list is empty, of the estimate of the first Loss Magnitude entry. Entries in Loss Magnitude By ID are not taken into account.

Added in version 2026.3: The Loss Estimates layer, and the countermeasure squares and tooltips of the SecurityView layer.

Decomposition

Processes, data stores and external entities can be refined into a more detailed DFD. In the tree editor, right-click the element and use New Child to add a Data Flow, External Entity, Process, Data Store, Trust Boundary Container, Sender Specification or Recipient Specification.

  • Once an element contains child elements, the Data Flow Diagram draws it as a rounded container with its children inside. You can then use the palette tools inside it.

  • A SenderSpecification or RecipientSpecification states which inner element actually sends or receives a data flow that enters or leaves the decomposed element. They are shown as small light-gray dots on the border of the decomposed element.

  • When you draw a data flow with createDataFlow to or from an element inside a decomposed element, the flow is connected to the outer element, and SPARTA creates the specifications Recipient specification for <flow> or Sender specification for <flow> automatically.

For a decomposed element you can also create a DecompositionDiagram representation (default name <name> decomposition diagram), in the same way as a Data Flow Diagram but on a process, data store or external entity. It shows the element as a container with its child elements, the elements it communicates with, and the specification dots. Its palette contains no creation tools; use it to inspect a decomposition.

Validation

To check a diagram for modeling mistakes, right-click the diagram background and select Validate diagram. The results are listed in the Problems view (next to the Properties view). The rules check the following:

  • Errors:

    • <Name> is disconnected.: a process, data store or external entity has no data flows.

    • <Sender> cannot directly move data to <Recipient>: a data flow connects two data stores.

    • <Name> is empty.: a trust boundary contains no elements.

    • <name>'s specialization is incomplete.: a decomposed element lacks a sender or recipient specification for one of its data flows.

    • <name> lacks specification of receiving entity. and <name> lacks specification of sending entity.: a data flow to or from a decomposed element has no recipient or sender specification.

  • Warnings:

    • <Name> only sends but doesn't receive any data.

    • <Name> is a data sink. Who uses this data?

    • External entity: <Name> is inside the trust boundary.

  • Information:

    • Duplicate TrustBoundary: <Name> has no elements inside with the exception of other trust boundaries.

    • In a DecompositionDiagram: <name> is inside a trustboundary. Refer to the DFD view to see which elements are inside or outside of that trust boundary.

Validation does not affect the threat analysis: you can analyze a model with validation problems.

Table editors

Next to diagrams, SPARTA has two table editors: one for the attacker profiles of an attacker model, and one for the threat types of a threat type catalog. They show the values of all attacker profiles or threat types side by side, and you can edit the values in the cells.

Attacker Profiles

For an Attacker Model element (default name Attacker profiles). The table has one row per attacker profile, with the columns Name and Enabled, followed by the minimum, probable, maximum and confidence values of the profile’s threat capability, probability of action and contact frequency (columns Threat cap. (min) to Contact freq. (conf.)).

Threat Type Catalog

For a Threat Type Catalog element (default name Threat type catalog). The table has one row for every threat type and threat type group in the catalog, at any depth, with the columns Name, ID, Title, Enabled and Description.

Create a table in the same way as a Data Flow Diagram (see Creating a Data Flow Diagram), but select Attacker Profiles or Threat Type Catalog under the viewpoint DataFlowDiagram, and then the Attacker Model or Threat Type Catalog element. Like diagrams, the tables are stored in representations.aird. Double-click a cell to edit its value; the Enabled column shows a checkbox. In the Attacker Profiles table, this does not work for the cells of an estimate that a profile does not have: they are empty and cannot be edited, so add the estimate in the tree editor first. The tables have no tools to add rows: create attacker profiles and threat types in the tree editor. A tree editor of the same .sparta file shows your changes only after you save the table.

The Enabled column has no effect on threats from threat patterns and on attacker profiles (see Analysis results and exports, “What is analyzed”).

Added in version 2026.3: The Attacker Profiles and Threat Type Catalog tables.

Tree Editor

SPARTA files can also be opened and edited using a tree editor, the SPARTA Model Editor, by double-clicking the file in the Project Explorer. The tree editor shows every element of the model, including those that have no graphical notation, such as estimates, annotations, catalogs, attacker profiles and data types.

SPARTA tree editor

SPARTA interface with tree editor opened

  • Right-click an element and use New Child or New Sibling to add elements. The menu lists different entries depending on the selected element, for example:

    • for a DFD Model, among others: Process, Data Store, External Entity, Data Flow, Trust Boundary Container, Solution and the catalog and model types;

    • for a process, data store, external entity or data flow: Estimate, Threat Type To Estimate Map, Threat Type ID To Estimate Map, Model Element Annotation and KV Model Element Annotation;

    • for a data type: the same estimate entries;

    • for a countermeasure: Estimate, which sets its difficulty;

    • for a Solution: the names of the roles of its solution type that do not have a role binding in the solution yet; each entry creates a role binding for that role.

  • The SpartaModel Editor menu (and the context menu) also contains Validate, Control…, Load Resource…, Refresh and Show Properties View.

  • The tabs at the bottom of the editor (Selection, Parent, List, Tree, Table, Tree with Columns) show the same model in different layouts.

Some labels in the tree are composed from several properties, for example <name> (<sender> -> <recipient>) for a data flow. A role binding is labeled Binds '<role>' role to '<element>' when it is bound to one element, Binds '<role>' role to multiple assets when it is bound to several elements, and Binds '<role>' role to ? when it is not bound yet.

Data models (data types, personal data types, data subject types) can only be edited in the tree editor; link a data type to a DFD element with the element’s Dfdelementannotation property.

To edit the VQL text of a threat pattern with syntax highlighting, right-click the threat pattern and select Edit VQL Pattern… (see Editing the VQL text).

Properties View

When an element is selected in the graphical modeler or the tree editor, the properties of that element are displayed in the Properties view, and they can be manually modified. In the graphical modeler, the model properties are on the Main tab; the other tabs are standard Sirius tabs (for example Semantic, Style and Appearance).

Every element has a Name, a Description and an Id. The Id should be unique within a file; catalogs use it to identify threat types (for example stride.tampering). Properties that hold a list of references, such as Resource, have a … button that opens a selection dialog. See Advanced concepts in SPARTA for the properties of each element type.

The following properties hold longer text and are edited as multi-line text, so they can contain line breaks:

  • Description of every element;

  • Title, Additional Info and Comments of threat types, threat type groups and conditions;

  • Long Description and Patterns of threat patterns;

  • Imports and Helper Patterns of threat type catalogs.

In the Properties view of the tree editor, such a value is shown on a single line: click the … button at the end of the value to edit it in a dialog with a multi-line text box. For a property that holds a list of text values, such as Patterns, the dialog lists the values under Feature; select a value to edit it under Value, and use Add, Remove, Up and Down to change the list. On the Main tab of the graphical modeler, Description is a text area in which Enter starts a new line.

Element properties in graphical model editor

Modifying an element’s properties in the graphical model editor.

Element properties in tree model editor

Modifying an element’s properties in the tree model editor.

ThreatAnalysis View

After constructing a model, it can be automatically analyzed with SPARTA to elicit security or privacy threats and estimate their risk. The ThreatAnalysis view shows a summary of the risk (threat count and total, mitigated and residual annualized risk) above a table with one row per threat. The analysis commands are in the SPARTA menu, in the main toolbar below the menu bar, and in the toolbar at the top-right side of the view. In the view toolbar, their names appear as tooltips:

analyse Load and Analyze Model (Ctrl+Alt+A, on macOS Cmd+Alt+A)

Analyzes the model of the active editor: for a diagram, its DFD model; for the tree editor, the model of the selected element. In the tree editor, first select an element of the DFD model (not of a loaded catalog). Loading a model replaces the previous analysis. The analysis runs in the background.

clear Clear Analysis Engine

Clears the threat analysis results and the summary above the table.

export Export Threats to CSV

Exports the threats to threats.csv in the root of the project that contains the analyzed model, overwriting an existing file.

export Export Threats to XLSX

Exports the threats to the Excel workbook threats.xlsx in the root of that project, overwriting an existing file.

report Export Threat Report

Exports the threats as a LaTeX report, including a data flow diagram of the model, to the folder report in the root of that project.

The SPARTA menu and the main toolbar also work while the ThreatAnalysis view is closed. In the main toolbar, the CSV and XLSX exports have the same icon; their tooltips are Export threats to CSV and Export threats to XLSX.

The exports are only enabled while analysis results exist, and no export asks for a file name. After an export, a dialog shows where SPARTA wrote the file or folder, and the Project Explorer shows the new files. If an export fails, an error dialog shows the reason. Click a column header to sort the table, and double-click a row to see the details of a threat. Analysis results and exports describes the analysis, the columns, the summary, the colors and the exports in detail.

If the analysis view is hidden, it can be revealed through Window ‣ Show View ‣ Other… and then ThreatAnalysis ‣ ThreatAnalysis. It also shows the results of an analysis that ran while it was closed.

When editing a model after an analysis has been run, SPARTA automatically recalculates the risk of any threats that are affected by the edits (see Analysis results and exports).

SPARTA analysis results

Analysis results for an example project.

PatternSupport View

The PatternSupport view helps you write threat patterns for your own threat type catalogs (see Writing threat type patterns and Editing the VQL text). It lists the problems found while parsing the threat patterns of the catalogs in the analysis, with the columns ThreatType, Pattern and Issue. Each row is one parse error and is shown with a red background; double-click a row to see the full issue text.

In the SPARTA perspective, the PatternSupport view is a tab next to the ThreatAnalysis view. If it is hidden, open it with Window ‣ Show View ‣ Other… and then Pattern Support ‣ PatternSupport. The view is filled each time you run analyse Load and Analyze Model. Problems in the helper patterns of a catalog are not listed in this view.

Note

In SPARTA 2026.3, the PatternSupport view only lists the problems of an analysis that finished while the view was open. If you open the view, or click its tab for the first time, after an analysis, it stays empty until you run Load and Analyze Model again. Clear Analysis Engine does not empty the view.