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 of basic actions is a term built by
Boolean semantics. Let be the set of actions the attacker performs. A leaf is satisfied if , 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 means . 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 with two operations (for OR) and (for AND), and a value for each leaf. The value of the tree is computed bottom up: over the children of an OR node, over the children of an AND node.
What it counts
The common attributes are:
| attribute | value of a leaf | OR () | AND () |
|---|---|---|---|
| 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 | , independent | ||
| fastest time, actions in parallel | time of the action | min | max |
Example. The tree has goal with , and . The labels stand for abstract actions. The leaf costs are , , , , and . Bottom up, , , , and , so the cheapest attack is . The multiset semantics lists the 4 attacks , , and , and the cheapest one costs 7, the same answer.
With independent success probabilities , , , , and , and an attacker who tries every action, , , , and .
Cost of evaluation. On the word RAM, bottom-up evaluation of a tree with nodes takes operations of the domain. The number of attacks in the multiset semantics can be exponential in : an AND of OR nodes with two leaves each has 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: and are associative and commutative and distributes over . 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 and sets 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
- 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
- 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
- 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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag ZMA9DF Edit this page History Report an error Markdown