A Unified Compositional View of Attack Tree Metrics
Benedikt Peterseim, Milan Lopuhaä-Zwakenberg
TL;DR
This paper introduces a unified, compositional theory for attack tree (AT) metrics based on gs-monoidal channel categories. By modeling ATs as term graphs and AT components as channel-category objects, AT metrics are defined as functors between channel categories, enabling a modular, structure-preserving semantics that subsumes many existing metrics. The framework encompasses bottom-up semiring metrics, propositional and stochastic interpretations, minimal-attack semantics, multiset semantics, and fault-tree unreliability, while clarifying non-examples. The main contributions are a formal compositional semantics, a unification of prior AT metrics under a single categorical lens, and constructive results enabling metric computation via decomposition into atomic components. This approach provides a principled pathway to algorithmically compute and compare AT metrics and connects ATs to broader string-diagram formalisms used in diverse domains.
Abstract
Attack trees (ATs) are popular graphical models for reasoning about the security of complex systems, allowing for the quantification of risk through so-called AT metrics. A large variety of different such AT metrics have been proposed, and despite their wide-spread practical use, no systematic treatment of attack tree metrics so far is fully satisfactory. Existing approaches either fail to include important metrics, or they are too general to provide a useful systematic way for defining concrete AT metrics, giving only an abstract characterisation of their behaviour. We solve this problem by developing a compositional theory of ATs and their functorial semantics based on gs-monoidal categories. Viewing attack trees as string diagrams, we show that components of ATs form a channel category, a particular type of gs-monoidal category. AT metrics then correspond to functors of channel categories. This characterisation is both general enough to include all common AT metrics, and concrete enough to define AT metrics by their logical structure.
