TARAflow
Methodology

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.

01

Two levels, one graph

Level 1: DFD elements --(Data Flows)-- DFD elements | element-to-asset relationships (typed) Level 2: Vertical Data Assets --, static structure (abstraction) Function Assets --| (what / with what / where) System Assets --| Infrastructure Assets| |--(asset-to-asset relationships)-- Orthogonal Process Assets --| dynamic context (context) Physical Assets --| (how / with what / who) Service Assets --| Human Assets --| Environment Assets --' protection target (environment) Hazard Hazard Item <--contributes_to-- Data / Function / Process / System / (not an asset) Physical / Infrastructure Assets --endangers--> Human / Environment / Infrastructure

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.

02

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:

RelationshipFocusTARA relevance
usesInteractionWhere is the attack vector? (Likelihood)
depends_onAvailabilityHow 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 categoryRelations from a DFD element
Datacreates · reads · modifies · deletes · stores · transports
Functionexecutes · invokes · implements · monitors · depends_on
Processexecutes · invokes · terminates · suspends · monitors
Systemcontrols · configures · monitors · uses · depends_on
Infrastructureaccesses · secures · damages · powers · monitors
Physicalaccesses · damages · secures · monitors
Serviceuses · configures · monitors · depends_on
Humanendangers · affects_safety · affects_privacy · identifies · tracks · exposes
Environmentendangers · 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).

03

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_an creates 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".

04

Asset categories & abstraction hierarchy

Four vertical categories form a static abstraction hierarchy — the higher the level, the less implementation detail is known or needed.

Infrastructure <- highest level, least precision (environment / arena) ^ hosted_on System <- blackbox component (what does the Function provide?) | implements Function <- capability (what must the system be able to do?) ^ required_by Data <- lowest level, highest precision (atomic values)

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:

Process

Orchestrator

Temporal sequence of steps, a know-how asset — a manufacturing recipe, a GMP production instruction, a treatment protocol.

Physical

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.

Service

External/internal

A service outside the system's own boundary — a cloud service, an OTA update server, external maintenance.

Human & Environment

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.

05

Function vs. Process

These two are frequently confused. Three questions decide it:

1. Do you know the temporal order of the steps? No -> Function 2. Is the asset's value in the runtime sequence? (would a sequencing attack or race condition be a relevant threat?) No -> Function 3. Is the flow instantiated at runtime? (is there a concrete "running instance" that can be started/stopped?) No -> Function Yes -> Process

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.

06

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:

RelationshipFrom → ToPurpose
depends_onSystem/Service/Process → *Availability dependency (DoS)
required_byData → Process/FunctionInput dependency (Tampering)
contributes_toData/Function/Process/System/Physical/Infrastructure → Hazard ItemContribution to a hazard (carries relevance)
endangersHazard Item → Human/Environment/InfrastructureEndangers a protection target (carries impact)
affects_privacyData/Process/Service → HumanPrivacy relevance
configuresData → Process/Function/SystemConfiguration dependency
runs_onProcess → SystemExecution context
implementsSystem/Process → FunctionArchitecture assignment
hosted_onProcess/System/Service → InfrastructurePhysical 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."

07

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.

Asset --contributes_to [relevance]--> Hazard Item --endangers [impact]--> Protection target
  • 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 nodeDerived dimensionScale / norm
HumanSafetynone (no injury, S0) · reversible minor · reversible major · irreversible minor · irreversible major · fatal (see §08)
EnvironmentEnvironmentallow · medium · high · critical
InfrastructureAsset destructionlow · 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.

08

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
safety: { relevance: "none" | "indirect" | "direct"; impact?: "none" | "reversible_minor" | "reversible_major" | "irreversible_minor" | "irreversible_major" | "fatal"; physicalHazardPotential?: "low" | "medium" | "high"; // ISO 12100 / EN 50742 protectionTarget?: boolean; // specifically for Human Assets isPhysicalBarrier?: boolean; // guard, enclosure, fence (Infrastructure Assets) affectedSafetyFunctions?: string[]; // Function Assets of this project rationale?: string; // required when source is "manual" source?: "derived" | "manual"; }

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:

LevelIEC 62061ISO 26262EN 50742
none—S0—
reversible_minorSe1S1reversible
reversible_majorSe2S1reversible
irreversible_minorSe3S2non-reversible
irreversible_majorSe4S2non-reversible
fatalSe4S3fatal

Annotation or Hazard Item? Both are valid and can coexist in one project:

Safety AnnotationHazard Item
Causesone relation = one single causeany number, combined explicitly
CombinationANY only (worst case over relations)combinationType ANY or ALL
Protection targetimplicit (the related asset)explicit endangers edge
Use forquick start, simple single causescombinatorics, 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:

impact direct indirect irreversible_major | fatal CRITICAL HIGH+ <- override, independent of business impact irreversible_minor HIGH+ HIGH reversible_minor | _major HIGH MED+

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.

09

The methodical chain: Threat → Impact → Injury

Threat -> Impact -> [Hazardous Situation] -> Injury / Harm

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.

10

Four phases, one growing graph

1

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.

2

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.

3

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.

4

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.

11

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 componentDecided by the machine
ModelDFD, assets and their relations, threats, attack treesexternal-entity mapping, quantity, relevance on boundary flows
Likelihoodintrinsic factors — elapsed time, expertise, knowledge, equipmentcontext factors and the window of opportunity of every attack path
Impact—the impact of the component's assets in this machine; hazards
Treatmentmeasures, assumptions of use, supporting claimswhether 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.

12

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:

RelevantConsequence
Safety zoneevery flow crossing the border of a trust boundary marked as safety zone, and every interface such a flow passesthe zone is the yellow, safety-related part of the machine
Without a zonethe interfaces and flows on a path to a safety function (an asset with a physical impact)a one-way boundary ends the path
Approach Arisks on relevant interfaces and flows, and attack paths through theman SRSL from the attack potential and the severity; the others are rated as usual
Approach Bthe component's safety functionsa 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.