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 welcome screen with the example projects and the guided tutorial, the Project Explorer, the graphical diagram editor, the table editors for attacker profiles and threat types, and the tree editor, the Properties view, and the views that show the analysis results.
- Analysis results and exports
How SPARTA analyzes a model and updates the results, the ThreatAnalysis view in detail, and how to export the threats to a CSV file, an Excel workbook (XLSX) 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, and the guided tutorial in the SPARTA application shows a short version of them next to the workbench (see Guided tutorial).
Create a modeling project and a DFD model (a
.spartafile) in it, and draw the DFD of your system in the diagram editor.Add a threat type catalog to the project and link it to the DFD model.
With the DFD model open in an editor, select to get the initial list of threats and their risk. Sort the list by risk to prioritize the threats.
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. SPARTA recalculates the risk of the threats that your edits affect, so you see right away how the solutions reduce the risk.
Export the threats to a CSV file, an Excel workbook (XLSX) or a LaTeX report.
Example models and threat type catalogs
To get started, you do not need to create everything from scratch. The SPARTA application and the SPARTA plug-ins come with the example projects Contoso, Social Network and WebRTC, which you add to your workspace with (see Example projects). 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) andwebrtc(STRIDE and LINDDUN). The example projects that come with the SPARTA application and plug-ins are based on them.- 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.
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.