Asset Relationships & the Knowledge Graph
TARAflow's graph has two connected levels: DFD elements linked by data flows, and assets linked both to those elements and to each other. This page covers how that graph is built, how Hazard Items and Safety Annotation extend it, and the four-phase methodology that uses it.
Two levels, one graph
Level 2 is a heterogeneous graph — which relationship types are allowed depends on the combination of source category × target category, the same principle as Level 1 where DFD element types (Process, DataStore, ExternalEntity...) have type-dependent connection rules.
Element-to-Asset: the Active-Impact model
Every relationship between a DFD element and an asset follows one pattern: DFD element → acts on → Asset. Two perspectives make the threat analysis complete:
| Relationship | Focus | TARA relevance |
|---|---|---|
| uses | Interaction | Where is the attack vector? (Likelihood) |
| depends_on | Availability | How severe is the damage on failure? (Impact) |
- uses (with qualifiers) — how could an attacker compromise the system through this element?
- depends_on — what cascading effects occur if this asset becomes unavailable?
Beyond these two perspectives every asset category has its own catalogue of element-to-asset relations — always read as "element acts on asset":
| Asset category | Relations from a DFD element |
|---|---|
| Data | creates · reads · modifies · deletes · stores · transports |
| Function | executes · invokes · implements · monitors · depends_on |
| Process | executes · invokes · terminates · suspends · monitors |
| System | controls · configures · monitors · uses · depends_on |
| Infrastructure | accesses · secures · damages · powers · monitors |
| Physical | accesses · damages · secures · monitors |
| Service | uses · configures · monitors · depends_on |
| Human | endangers · affects_safety · affects_privacy · identifies · tracks · exposes |
| Environment | endangers · monitors · contaminates |
Every category also allows is_an (§03). Sensors and actuators follow their role: a sensor observes (monitors, accesses indirect, creates the measured value), an actuator acts (accesses direct, damages, secures, endangers, reads the command).
is_an — the exclusive, definitional relation
- A DFD element is either an instance of the asset (
is_an) or it has impact relationships to the same asset — never both, to the same asset. Relationships to other assets remain unrestricted. - Formally:
is_an(A, X)⇒ no further relationships between A and X are allowed. - Not transitively inherited itself:
is_an(A, X)does not inherit X's own relationships onto A. - Mathematically,
is_ancreates a logically unambiguous bridge used for transitive derivation elsewhere in the graph (see Phase 2 below).
Example: External Entity "Administrator" is_an Human Asset "System Admin Role" (no further relations to this asset allowed). Process "User Management" creates Data Asset "Admin Audit Logs" (not is_an — it's a byproduct of logging admin actions). Data Asset "Admin Audit Logs" then affects_privacy Human Asset "System Admin Role".
Asset categories & abstraction hierarchy
Four vertical categories form a static abstraction hierarchy — the higher the level, the less implementation detail is known or needed.
Where an analyst enters the hierarchy determines their perspective — a product developer thinks in Function/Data, an integrator in System, an operator/CISO in Infrastructure. Same method, different scope.
Five orthogonal categories cut across every vertical level instead of sitting inside the hierarchy — Human and Environment share a card, both are protection targets:
Orchestrator
Temporal sequence of steps, a know-how asset — a manufacturing recipe, a GMP production instruction, a treatment protocol.
Material object & transducer
A material asset without its own logic — a passive object (prototype, physical key, machine part) or the physical side of a sensor or actuator (valve, drive, robot arm, temperature probe). Its physical effect can contribute_to a Hazard Item that endangers a human or the environment.
External/internal
A service outside the system's own boundary — a cloud service, an OTA update server, external maintenance.
Protection targets
Operator, patient, administrator — and the surroundings that can be harmed: ambient air, process water, soil. Both are endangered through Hazard Items. A human is also someone who acts; the environment has no outgoing relations.
Function vs. Process
These two are frequently confused. Three questions decide it:
Edge case: even simple, linear flows with no security-relevant sequencing are Process assets if they exist as a runtime instance (e.g. cronjobs, batch processes) — question 3 is what decides it.
Asset-to-Asset: a two-tier ruleset
Asset-to-asset relationships describe causality that exists independently of the data flow — safety, privacy and physical dependencies between assets that don't naturally express themselves through a DFD element.
- Core Rules — generic, domain-independent, built into the tool, analytically active (feeds STRIDE, Safety, criticality)
- Domain Extensions — domain-specific, configurable in the project profile or defined manually; documentary by default, optionally analytically active with a mandatory rationale
Completeness is the goal of the rulebook, not of every model — a handful of core relationships cover most real projects:
| Relationship | From → To | Purpose |
|---|---|---|
| depends_on | System/Service/Process → * | Availability dependency (DoS) |
| required_by | Data → Process/Function | Input dependency (Tampering) |
| contributes_to | Data/Function/Process/System/Physical/Infrastructure → Hazard Item | Contribution to a hazard (carries relevance) |
| endangers | Hazard Item → Human/Environment/Infrastructure | Endangers a protection target (carries impact) |
| affects_privacy | Data/Process/Service → Human | Privacy relevance |
| configures | Data → Process/Function/System | Configuration dependency |
| runs_on | Process → System | Execution context |
| implements | System/Process → Function | Architecture assignment |
| hosted_on | Process/System/Service → Infrastructure | Physical embedding |
contributes_to and endangers belong to the Hazard Item (§07) and are edited in the Hazard tab, not as asset-to-asset links.
Rule of thumb: depends_on = "if X fails, I fail too." required_by = "I need X as input to function." consumed_by = "X is transformed by me."
Hazard Item — the explicit hazard node
A Hazard Item is its own node type, on an orthogonal level alongside Physical, Process, Service, Human and Environment — but it is not an asset. An asset is something worth protecting; a Hazard Item is the hazard itself, the convergence point where one or more hazard-causing assets meet, and from which one or more protection targets are endangered.
- contributes_to (Asset → Hazard Item) carries
relevance(direct/indirect) — does this asset control or enable the physical action behind the hazard? A typical direct cause is an actuator — the robot arm, the valve, the drive - endangers (Hazard Item → protection target) carries
impact— what harm threatens the target?
The endangered target's type derives the impact dimension automatically:
| Target node | Derived dimension | Scale / norm |
|---|---|---|
| Human | Safety | none (no injury, S0) · reversible minor · reversible major · irreversible minor · irreversible major · fatal (see §08) |
| Environment | Environmental | low · medium · high · critical |
| Infrastructure | Asset destruction | low · medium · high · critical |
none is a rating, not "not rated" — the absence of an edge is "not rated". A new edge starts at the lowest harm, never at none, and none never counts as harm on the asset.
combinationType decides how multiple contributing causes combine: ANY (default, OR-gate — a single cause is enough, e.g. over-pressure or over-heating → tank explosion) or ALL (AND-gate, combinatorial — e.g. sodium and water → exothermic reaction). Multiple contributes_to inputs never imply combinatorics automatically; it's always explicit via combinationType.
A Hazard Item is modeled explicitly. For a single cause without a hazard register, the Safety Annotation (§08) is enough — it does not create a hidden Hazard Item. Annotation and Hazard Item are two separate modeling paths.
Safety Annotation Layer
TARAflow integrates safety aspects through an optional annotation layer that introduces no new modeling logic — it enriches existing relationships with safety context.
- Optional — only needed for safety-relevant systems
- Qualitative — explanatory ratings, no complex calculations
- Non-invasive — doesn't change the core security analysis
- Norm-compliant — enables EN 50742 / ISO 12100 compliance
Propagated annotations are indirect (derived); direct is an analyst decision (manual) with a rationale.
Annotation, Hazard Item and asset share one harm scale. Irreversible harm is split as in IEC 62061; fatal stays separate so that ISO 26262 maps without loss:
| Level | IEC 62061 | ISO 26262 | EN 50742 |
|---|---|---|---|
| none | — | S0 | — |
| reversible_minor | Se1 | S1 | reversible |
| reversible_major | Se2 | S1 | reversible |
| irreversible_minor | Se3 | S2 | non-reversible |
| irreversible_major | Se4 | S2 | non-reversible |
| fatal | Se4 | S3 | fatal |
Annotation or Hazard Item? Both are valid and can coexist in one project:
| Safety Annotation | Hazard Item | |
|---|---|---|
| Causes | one relation = one single cause | any number, combined explicitly |
| Combination | ANY only (worst case over relations) | combinationType ANY or ALL |
| Protection target | implicit (the related asset) | explicit endangers edge |
| Use for | quick start, simple single causes | combinatorics, several targets, FMEA / hazard register import |
An asset's safety rating: a manual override (with rationale) wins; otherwise the worse of Hazard Item and annotation applies. An asset rated by both paths gets a validation warning — model it in one place. The worse rating applies meanwhile, so ignoring the warning never under-rates safety.
Safety drives threat prioritization through the Safety Override Rule:
Direct relevance alone does not trigger the override — it needs severe irreversible or fatal harm. An asset's safety relevance is derived from its annotations and Hazard Items, not entered as a separate flag.
What Safety Annotation is not: a replacement for formal safety analysis (FMEA, FTA), an SRSL calculation, an ISO 13849 Performance Level determination, or automatic safety certification. It is a documented bridge between cybersecurity and functional safety, with traceable prioritization of security measures.
The methodical chain: Threat → Impact → Injury
The hazardous situation sits conceptually between impact and injury; it's modeled as the Hazard Item above; in the simplest case (one cause, one target) the Safety Annotation is enough and the hazardous situation stays implicit. TARAflow works conservatively: once a threat produces an impact on a safety-relevant asset, the resulting hazardous situation is treated as given — a worst-case assumption.
Four phases, one growing graph
Foundation & pragmatic modeling
Classic STRIDE threat modeling with tool support. Safety annotations and Hazard Items are available but entirely optional. Builds a consistent base graph (DFD + assets + relationships) and a first threat identification — not yet a full automatic derivation.
Rule-based completion & derivation
is_an-based derivations activate; relationships are extended transitively where semantically valid (e.g. a Process inherits relationships from a Data Store via is_an). A validation engine flags incomplete nodes, invalid relationship types, and semantically contradictory modeling — every automatic derivation is explained to the user.
Deterministic threat derivation
Likelihood-related relationships (uses, transports) and impact-related relationships (depends_on, affects_*) are strictly separated. Full path computation from attack vectors to damage targets, using only explicit and derived relationships — no heuristic assumptions.
Analysis support & governance (optional)
Prioritization and filtering of threat paths, traceable documentation of modeling decisions, support for reviews, audits and standards conformance, versioning and comparison of graphs over the system's lifecycle.
Component TARAs: one graph per component, composed per machine
A reused component — a sensor, a controller, a supplier's module — has its own graph and its own TARA. A machine imports a pinned state of it; the component's part of the graph stays read-only. The split follows one question: does the value depend on where the component is installed?
| From the component | Decided by the machine | |
|---|---|---|
| Model | DFD, assets and their relations, threats, attack trees | external-entity mapping, quantity, relevance on boundary flows |
| Likelihood | intrinsic factors — elapsed time, expertise, knowledge, equipment | context factors and the window of opportunity of every attack path |
| Impact | — | the impact of the component's assets in this machine; hazards |
| Treatment | measures, assumptions of use, supporting claims | whether each assumption is fulfilled here, with evidence |
A component measure is credited in the machine only while it holds: the component implemented it, and every assumption of use it relies on is fulfilled in this installation with implemented evidence. Otherwise its effect is unclear or not effective and the machine's risk keeps its value before treatment — conservative by default, like the safety override above.
What the machine decides differently from the component — goals added, assumptions not fulfilled, relevances overridden, factors rated anew — is a deviation, reported back to the component team. A newer component state is never taken over silently: the update lists the decisions it affects.
EN 50742: relevance from the graph
EN 50742 is about the interfaces to the safety functions and the data flows crossing them — not about every threat of the machine. TARAflow derives this part from the model instead of a list kept by hand:
| Relevant | Consequence | |
|---|---|---|
| Safety zone | every flow crossing the border of a trust boundary marked as safety zone, and every interface such a flow passes | the zone is the yellow, safety-related part of the machine |
| Without a zone | the interfaces and flows on a path to a safety function (an asset with a physical impact) | a one-way boundary ends the path |
| Approach A | risks on relevant interfaces and flows, and attack paths through them | an SRSL from the attack potential and the severity; the others are rated as usual |
| Approach B | the component's safety functions | a fixed requirement set (IEC 62443-4-2, Table 4); the risk stays R = L × I |
The SRSL is separate from the residual risk R = L × I: exposure level, window of opportunity and attacker capability feed only the SRSL. A safety function counts as isolated — SRSL 0 — only when every interface on a path to it has exposure level 0. And accepting a cyber risk does not lift the security controls the SRSL mandates.
Source: this page summarizes taraflow-asset-beziehungen.md and taraflow-asset-zu-asset-beziehungen.md from the project's internal documentation. Both documents go substantially deeper (full relationship catalogs per asset-category pair, transitivity algebra, validation rules, and TypeScript interfaces) — this page covers the concepts needed to understand the model, not the full specification.