A knowledge-graph-driven TARA workflow for connected and embedded systems.
TARAflow builds a knowledge graph from your DFD, its assets and the relationships between them. Hazard items can sit inside the same relationship chains, giving you a traceable cause-and-effect path from a hazard, through threats and risks, to mitigation.
Three principles the tool is built around
DFD, assets and their relationships
The DFD and its assets aren't modeled as flat lists. Asset-to-asset and asset-to-DFD relationships are captured explicitly, forming a knowledge graph that the rest of the analysis is derived from.
Safety annotations on relationships
Relationships can carry safety information directly — Impact (reversible / irreversible, each minor or major, and fatal) and Relevance (direct / indirect) — so hazard potential per ISO 12100 comes from the same graph, not a second document.
General → DFD → Assets → Threats → Risks
The process is always the same: General → Hazards → DFD → Assets → Threats → optional Attack Trees → Risks → Documentation. Without safety enabled, the Hazards step is simply hidden.
EN 50742 for both roles: machine and component
EN 50742 asks how far a cyber attack can reach a safety function. TARAflow 0.20 covers both roles of a machine part: Approach A for the machine — a security-related safety level (SRSL) for every risk that can reach a safety function — and Approach B for a component — the IEC 62443-4-2 requirements of Table 4 for its safety functions.
Which part of the model the standard is about is decided by the model as well. Mark a trust boundary as safety zone: every flow crossing its border and every interface such a flow passes is relevant. Without a zone, the interfaces and flows on a path to a safety function are. Everything else is rated as usual.
Approach A — the machine
The relevant risks get exposure level, attacker capability and window of opportunity, and an SRSL from the attack potential and the severity on the safety function. SRSL 0 only for an isolated safety function. The mandated controls stay — also for a risk accepted or set to won't.
Approach B — the component
The tag EN 50742 B opens the IEC 62443-4-2 requirements of Table 4 at a fixed SL-T (FR1–FR3, FR7: 2; FR5, FR6: 1), completed by the EN 50742 clauses. It brings IEC 62443 along; both matrices share your statements.
Seen in the diagram
Exposure levels at boundaries and interfaces, the safety zone as a yellow dashed frame — drawn by the app, never stored. The page images in the report show them, with a legend.
Guard rails
Every audit commit names every change of the file. Each threat generation records the catalogue version. An ⓘ next to every element shows what the DFD knows about it while you rate its threats and risks.
Component TARAs: analyse once, use in every machine
A sensor, a controller, a supplier's module: the same component sits in many machines — and is analysed again in every one of them. With TARAflow 0.19 the component team keeps one TARA in its own repository, and every machine imports a pinned state of it.
What the component knows comes along — threats, attack trees, measures, assumptions of use. What depends on the machine stays with the machine — impact, context factors, the window of opportunity, the decision whether a component measure holds here.
Pinned, not copied
Imported at a commit or tag of the component's repository. Several instances get their own prefix; identical units in one place are one instance with a quantity.
Rated in the machine's context
Intrinsic factors come from the component. Impact, context factors and the window of opportunity of every attack path are rated by the machine — never imported.
Measures that hold — or not
A component measure lowers the machine's risk only while it is implemented and every assumption of use it relies on is fulfilled here, with evidence. Otherwise: unclear or not effective, shown as such.
Newer states, explicit updates
Check finds a newer state of the component; Update… shows what changed and which of your decisions it touches. The deviations go back to the component team as Markdown.
One fixed pipeline, per project
What's in the current build
Knowledge graph
Asset-to-asset and asset-to-DFD relationships form a knowledge graph — and can include hazard items for full cause-and-effect chains. The asset graph shows it layer by layer, and relations can be modeled right there.
Embedded & leveled modeling
Interface, Physical Boundary and Chip Boundary elements make physical attack surfaces explicit. Leveled DFDs decompose a multiprocess on its own page — one model, one threat register. A reused component comes in as an imported TARA.
DFD-driven threat generation
STRIDE threats proposed per element and per interaction, using context from the modeled system.
Closed-loop mitigation
Catalog and project mitigations, tracked in Jira or Azure DevOps (GitHub, GitLab, OpenProject in preview), with before/after risk comparison. The DFD reports a mitigation marked done that the model contradicts — not every planned one.
Attack-path analysis
Threat-anchored attack trees with feasibility and attack-potential evaluation. An AND gate is one attack path per combination of its steps.
Security & safety together
A BowTie-based hazard workflow feeds physical-impact and safety-override rules into the same risk model.
Auditability
Git-based history, signed commits, authorized-signer management and the Audit Verification Engine — which also checks that every imported component still matches its recorded snapshot. Every commit names every change of the file.
Headless reporting & verification
The same Markdown, AsciiDoc, HTML, PDF and StrictDoc output from taraflow-report in CI/CD, and taraflow-verify to check the audit trail — no desktop app required.
Requirement matrices from the model
IEC 62443-4-2, two editions
The classic edition (2019) with its device categories, or the CRA edition EN IEC 62443-4-2 — chosen by the project tag, side by side when both apply.
Derived, not ticked
Every row is checked against the DFD properties, the mitigations of the risk treatment and supporting measures. An unset property is unknown, never "not applicable".
SL-T, SL-C, planned
Set the target per foundational requirement and see what the component reaches now, once the chosen mitigations are done, and with the measures of the system around it.
Gaps and CRA view
A to-do list per element up to the SL-T; the report adds the statement of applicability, the CRA view by Annex I letter and the gaps with suggested mitigations.
Model fields for the matrix
Accounts, password rules, role mapping, default credentials, login lockout, update delivery, secure channels, key renewal — each asked only where it is meaningful, so more rows are decided by the model instead of a statement.
Black boxes
A PLC drawn as a box or a supplier's module: a multiprocess without a child page summarises what it contains, and the matrix checks it like the processes and data stores it stands for.
EN 50742 Approach A and B
A for the machine: the baseline requirements checked against the model, the SRSL of the relevant risks and their mandated §7.4.3 controls. B for a component: the IEC 62443-4-2 requirements of Table 4 for its safety functions. Both look at the safety zone's interfaces and flows.
Information missing
A row the model cannot decide yet names the empty field per element — fill it and the model decides the row.
ISO/SAE 21434 support
Asset-driven relevance
In ISO mode a threat is relevant when it relates to an asset. STRIDE per element enumerates the threats (per interaction is switched off); the risk is carried by the attack paths, not by the enumeration.
Attack feasibility — Annex G / ISO 18045
The five attack-potential factors (time, expertise, knowledge, window, equipment) sum to a Table G.7 feasibility band, per leaf and per attack path.
SFOP impact
Safety, Financial, Operational and Privacy impact (ISO 15.5) — mandatory and locked in ISO mode, on both the risk and the asset side.
Risk value 1–5
The risk value of clause 15.8 from the matrix of Annex H.8 — impact × attack feasibility, shown as Minimal … Critical. The attack paths of one tree form a threat scenario; treatments carry the ISO names Avoid / Reduce / Share / Retain, and a review list names the decisions worth a second look.
Concept-phase work products
Item definition with assumptions, a cybersecurity goal for every risk you reduce, a claim for every risk you retain or share, and the TARA verification of RQ-09-07 — sealed with a hash of the analysis.
Conformant documentation
A methodology chapter generated from the project's configuration, threat-scenario, item-definition and goals & claims chapters and a traceability matrix — Markdown, HTML, PDF and StrictDoc; every ISO risk records the calculation it was computed with.
Where it's used
Two ways into the project
Model, assess, mitigate
Learn how to build a DFD, run a TARA, assess risk, manage mitigations and generate reports.
Build, test, extend
Architecture, the threat-generation pipeline, the project data model, and how to contribute.