Introduction

This user guide explains how to use the SPARTA application. The SPARTA application is a dedicated Eclipse-based product, but the same functionality can also be installed into an existing Eclipse IDE.

Contents of the user guide

Installing SPARTA

How to download and start SPARTA, how to install the SPARTA plug-ins into an existing Eclipse IDE, and how to keep SPARTA up to date.

Concepts used in SPARTA

The key modeling concepts used to express a system and its security and privacy solutions: DFD elements, solutions, data, threat types, attacker profiles and estimates, and how SPARTA computes risk.

SPARTA Interface

The different elements of the user interface: the SPARTA perspective, the Project Explorer, the graphical diagram editor and the tree editor, the Properties view, and the views that show the analysis results.

Analysis results and exports

The ThreatAnalysis view in detail, and how to export the threats to a CSV file or a LaTeX report.

Tutorials

Step-by-step tutorials that cover all steps from the creation of an initial model to the analysis, as well as the creation of solution catalogs, attacker profiles and threat types.

Writing threat type patterns

Reference for writing the VIATRA (VQL) patterns of threat types in a threat type catalog: how SPARTA processes a catalog, the pattern parameters and placeholders, examples from the published catalogs, debugging, and the legacy key-based threat types.

If you want to build extensions on top of SPARTA or run the analysis outside of Eclipse, see the developer guide.

Typical workflow

A typical threat modeling session in SPARTA consists of the following steps. The Tutorials walk you through these steps.

  1. Create a modeling project and a DFD model (a .sparta file) in it, and draw the DFD of your system in the diagram editor.

  2. Add a threat type catalog to the project and link it to the DFD model.

  3. With the DFD model open in an editor, click Load and Analyze Model in the ThreatAnalysis view to get the initial list of threats and their risk. Sort the list by risk to prioritize the threats.

  4. Refine the model: add estimates for the assets, link a catalog of solutions and apply solutions to the DFD elements, and optionally link a model with attacker profiles.

  5. Analyze the model again to see how the solutions reduce the risk. Click Load and Analyze Model again after changing the model, because SPARTA does not recompute the risk values of the threats it already lists.

  6. Export the threats to a CSV file or a LaTeX report.

Example models and threat type catalogs

To get started, you do not need to create everything from scratch. The following repositories are available online:

Example SPARTA models

Complete example cases, each an Eclipse project with a DFD model, its diagrams and the catalogs it uses: contoso (STRIDE threats and security solutions), socialnetwork (LINDDUN privacy threats) and webrtc (STRIDE and LINDDUN).

Threat type catalogs

Ready-to-use threat type catalogs for STRIDE (STRIDE-per-element and STRIDE-per-interaction) and for LINDDUN (LINDDUN PRO). The catalogs are available under the MIT License. In SPARTA 2026.0, the STRIDE-per-element catalog works in the ThreatAnalysis view, but the exports of its threats are incomplete (see Analysis results and exports).

The tutorial also provides a small running example with basic threat and solution catalogs. Installing SPARTA explains how to add the examples and catalogs to your workspace.