Class RiskDependencies
java.lang.Object
be.kuleuven.cs.distrinet.sparta.analysis.service.RiskDependencies
Which model changes can affect which threats' risk, so that a change recalculates exactly
those threats and leaves the (Monte Carlo sampled) figures of all others untouched.
A threat depends on its involved objects (see involvedObjects(be.kuleuven.cs.distrinet.sparta.core.model.Threat)) and on
everything they contain, such as estimates and annotations. Containment between DFD elements
(e.g. a trust boundary containing a process) or between threat types is structure, not data:
a change belongs to the nearest enclosing DFD element or threat type only (see
owners(org.eclipse.emf.ecore.EObject)). Matches appearing or disappearing are handled by the query engine itself;
this only covers changes to the risk inputs of existing threats.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaffectsAllThreats(EObject changed) Whether a change tochangedcan affect every threat: attacker profiles and the data subject and personal data types feed the risk of all threats.involvedObjects(Threat threat) The objects a threat's risk depends on: every element of its pattern match (so generic and custom patterns are covered), the threatened element, the data flow and its endpoints, the threat type and its enclosing types, and for each involved asset its role bindings, their roles and all countermeasures of those roles (not only the ones that currently mitigate, since a change to a countermeasure can make it apply).static booleanisIrrelevant(Notification notification) Whether a notification cannot affect any risk: touches, adapter bookkeeping, and the presentation-only name and description of model elements.The objects a change tochangedbelongs to:changeditself and its containers, up to and including the nearest DFD element or threat type.
-
Method Details
-
involvedObjects
The objects a threat's risk depends on: every element of its pattern match (so generic and custom patterns are covered), the threatened element, the data flow and its endpoints, the threat type and its enclosing types, and for each involved asset its role bindings, their roles and all countermeasures of those roles (not only the ones that currently mitigate, since a change to a countermeasure can make it apply). -
owners
The objects a change tochangedbelongs to:changeditself and its containers, up to and including the nearest DFD element or threat type. -
affectsAllThreats
Whether a change tochangedcan affect every threat: attacker profiles and the data subject and personal data types feed the risk of all threats. -
isIrrelevant
Whether a notification cannot affect any risk: touches, adapter bookkeeping, and the presentation-only name and description of model elements.
-