Algorithm Search⌘K

Modelcore

Attack tree

Also called threat tree.

An AND-OR tree whose root is an attacker goal and whose leaves are basic steps, evaluated bottom up for cost or probability.

An attack tree describes the ways in which an attacker can reach one goal. The goal is the root. Each inner node is a subgoal that is refined into children, either as alternatives (an OR node: one child suffices) or as parts (an AND node: all children are needed). The leaves are basic actions that are not refined further. Values on the leaves, such as a cost or a probability of success, are propagated to the root, which answers questions such as "what is the cheapest attack". Schneier (1999) popularized the model, and Mauw and Oostdijk (2005) gave it a formal semantics. The model is a tool for defenders to reason about threats. The example below uses abstract labels, not real attack steps.

The machine

The attacker is the machine. It has a goal, a set of basic actions it may perform, and the tree that says which combinations of actions reach the goal. Formally, an attack tree over a set B\mathcal{B} of basic actions is a term built by

t::=b∣OR(t1,…,tk)∣AND(t1,…,tk),b∈B, k≥1.t ::= b \mid \mathrm{OR}(t_1, \ldots, t_k) \mid \mathrm{AND}(t_1, \ldots, t_k), \qquad b \in \mathcal{B},\ k \ge 1.

Boolean semantics. Let X⊆BX \subseteq \mathcal{B} be the set of actions the attacker performs. A leaf bb is satisfied if b∈Xb \in X, an OR node if some child is satisfied, and an AND node if all children are. The goal is reached if the root is satisfied. So the tree is a monotone Boolean formula over the actions.

Multiset semantics. Mauw and Oostdijk define the meaning of a tree as a set of attacks, each a multiset of basic actions. A leaf bb means {{b}}\{\{b\}\}. An OR node means the union of the sets of its children. An AND node means all the ways to pick one attack from each child and join them. Two trees are equivalent if they mean the same set. This semantics allows rewriting a tree, for example flattening nested OR nodes, without changing what it says.

Attributes. An attribute domain is a set DD with two operations ∇\nabla (for OR) and Δ\Delta (for AND), and a value α(b)∈D\alpha(b) \in D for each leaf. The value of the tree is computed bottom up: ∇\nabla over the children of an OR node, Δ\Delta over the children of an AND node.

What it counts

The common attributes are:

attribute value of a leaf OR (∇\nabla) AND (Δ\Delta)
possible true or false or and
cheapest cost cost of the action min sum
needs special equipment true or false and or
probability of success pbp_b, independent 1−∏(1−pi)1 - \prod (1 - p_i) ∏pi\prod p_i
fastest time, actions in parallel time of the action min max

Example. The tree has goal G=OR(A,B,C)G = \mathrm{OR}(A, B, C) with B=AND(B1,B2)B = \mathrm{AND}(B_1, B_2), C=AND(C1,D)C = \mathrm{AND}(C_1, D) and D=OR(D1,D2)D = \mathrm{OR}(D_1, D_2). The labels stand for abstract actions. The leaf costs are A=10A = 10, B1=3B_1 = 3, B2=4B_2 = 4, C1=2C_1 = 2, D1=6D_1 = 6 and D2=9D_2 = 9. Bottom up, D=min⁡(6,9)=6D = \min(6, 9) = 6, C=2+6=8C = 2 + 6 = 8, B=3+4=7B = 3 + 4 = 7, and G=min⁡(10,7,8)=7G = \min(10, 7, 8) = 7, so the cheapest attack is {B1,B2}\{B_1, B_2\}. The multiset semantics lists the 4 attacks {A}\{A\}, {B1,B2}\{B_1, B_2\}, {C1,D1}\{C_1, D_1\} and {C1,D2}\{C_1, D_2\}, and the cheapest one costs 7, the same answer.

With independent success probabilities A=0.1A = 0.1, B1=0.5B_1 = 0.5, B2=0.4B_2 = 0.4, C1=0.9C_1 = 0.9, D1=0.3D_1 = 0.3 and D2=0.6D_2 = 0.6, and an attacker who tries every action, B=0.2B = 0.2, D=1−0.7⋅0.4=0.72D = 1 - 0.7 \cdot 0.4 = 0.72, C=0.9⋅0.72=0.648C = 0.9 \cdot 0.72 = 0.648, and G=1−0.9⋅0.8⋅0.352=0.74656G = 1 - 0.9 \cdot 0.8 \cdot 0.352 = 0.74656.

Cost of evaluation. On the word RAM, bottom-up evaluation of a tree with ss nodes takes O(s)O(s) operations of the domain. The number of attacks in the multiset semantics can be exponential in ss: an AND of kk OR nodes with two leaves each has 2k2^k attacks.

Relation to other models

  • Game trees. An attack tree is an AND-OR tree. A game tree with alternating players evaluated by minimax has the same shape, with max for the attacker's choice and min for the opponent's. Attack-defense trees add defender nodes and come closer to games.
  • Attack graphs. An attack graph shows many goals and the steps between network conditions. An attack tree for one goal can be read off such a graph, and the logical attack graph is an AND-OR graph with shared nodes and cycles.
  • Fault trees. Attack trees follow the fault trees of reliability engineering, where the root is a failure and the gates are AND and OR over component faults.
  • Boolean formulas and BDDs. The Boolean semantics is a monotone formula. With shared subtrees it is a circuit, and questions about it can be answered with binary decision diagrams.
  • Covering problems. On a tree with shared leaves, the cheapest attack is a covering problem, as below.

Known results in the model

  • Soundness of bottom-up evaluation (theorem). Mauw and Oostdijk show that bottom-up evaluation gives the same value on all equivalent trees, and agrees with the best value over the attacks of the multiset semantics, when the attribute domain behaves like a semiring: ∇\nabla and Δ\Delta are associative and commutative and Δ\Delta distributes over ∇\nabla. The min and sum domain for cost satisfies this, so the bottom-up minimum is the cost of the cheapest attack.
  • Probability needs independence (heuristic unless the leaves are independent). The probability rules are exact when the leaves succeed independently and each leaf occurs once. If a leaf appears under two branches, the formulas count it twice and the result is wrong.
  • Shared leaves make the cheapest attack hard (theorem). Allow a leaf to appear in several places, so the tree is a directed acyclic graph. Take a set cover instance with elements u1,…,unu_1, \ldots, u_n and sets S1,…,SmS_1, \ldots, S_m with costs. Make one leaf per set, one OR node per element whose children are the sets that contain it, and an AND root over the element nodes. An attack reaches the root if and only if its sets cover all elements, so the cheapest attack is the cheapest cover, and the problem is NP-hard. Bottom-up min and sum then overcounts a set that covers two elements. On a tree in which every leaf occurs once, bottom-up evaluation is exact and takes linear time.
  • Extensions. The survey of Kordy, Pietre-Cambacedes and Schweitzer (2014) covers attack-defense trees, sequential AND nodes for steps that must happen in order, and timed and probabilistic variants, with their own evaluation results.

References

  1. Bruce Schneier, Attack trees, Dr. Dobb's Journal 24(12), December 1999, pages 21 to 29, the tree with the goal at the root, OR and AND nodes, Boolean and continuous values on the leaves, and their propagation to the root
  2. Sjouke Mauw and Martijn Oostdijk, Foundations of attack trees, Information Security and Cryptology (ICISC) 2005, LNCS 3935, pages 186 to 198, the semantics of an attack tree as a set of multisets of basic attacks, the equivalence of trees, and the conditions on an attribute domain under which bottom-up evaluation agrees with the semantics
  3. Barbara Kordy, Ludovic Pietre-Cambacedes and Patrick Schweitzer, DAG-based attack and defense modeling, don't miss the forest for the attack trees, Computer Science Review 13-14, 2014, pages 1 to 38, the survey of attack trees and their extensions, with defenses, sequential AND, and shared nodes

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/ZMA9DF/text.yaml