SPARTA Standalone libraries
flowchart LR
sparta-analysis --> sparta-core
sparta-ci --> sparta-cli
sparta-cli --> sparta-core
sparta-cli --> sparta-io
sparta-core --> sparta-model
sparta-io --> sparta-core
sparta-io --> sparta-analysis
Library Documentation
Below, each of the standalone sparta libraries are explained in more detail.
sparta-model
The sparta-model library contains the necessary concepts for working with SPARTA DFD models.
sparta-core
The sparta-core library contains the core SPARTA engine to enable security and privacy threat elicitation in a standalone context and the supporting classes for representing the resulting threats.
sparta-analysis
The sparta-analysis library contains some supporting classes to perform analyses on collections of threats resulting from a threat elicitation run.
Different types of aggregate analyses are supporting leveraging the risk matrices contained in the elicited threats.
Examples of supported analyses are:
- Threat counts
Different types of aggregations such as the total threat count, the threat count per element, the threat counter per element type, etc.
- Element counts
The threat list can also be used get an indication about the size of the original dfd model. This cannot take into account elements that are not involved in any threat context whatsoever.
- Potential risk
The potential risk per element type or threat type.
- Residual or actual risk
The residual risk per element type or threat type.
sparta-io
The sparta-io library provides support for exporting the threat analysis results to various output formats such as: csv, json, xlsx, txt, etc.
sparta-cli
Command line interface for running SPARTA.
sparta-ci
CI variant of sparta-cli which automatically reads a local configuration file in a repository to perform the threat analysis in the context of a continuous integration pipeline.