Modelcore
Attack graph
Also called network attack graph.
A graph of network states or security conditions and exploits that shows every way an attacker can reach a goal.
An attack graph shows all the ways in which an attacker can move through a network, step by step, from an initial foothold to a goal. Each step is an exploit: an action that needs some security conditions to hold and makes other conditions hold. There are two main forms. In a state graph, a node is a full state of the network and the attacker, and an edge is one exploit. In a condition graph, the nodes are single conditions and exploits, and edges join the conditions an exploit needs to the exploit and the exploit to the conditions it gives. Phillips and Swiler (1998) proposed attack graphs for network vulnerability analysis. Sheyner et al. (2002) generated state graphs with a model checker, and Ammann et al. (2002) and Ou et al. (2006) showed that condition graphs of polynomial size suffice when the attacker never loses what it has gained. Attack graphs are a tool for defenders to find and close paths. The example below is abstract.
The machine
The attacker is the machine. Its state is the set of conditions that hold, such as "the attacker can run code on host as user " or "the attacker can send packets to host on port ".
Conditions and exploits. Let be a finite set of conditions and a finite set of exploits. Each exploit has a set of preconditions and a set of postconditions. The initial state holds the facts of the network and the starting point of the attacker. A goal is a condition or a set of goal states.
State graph. A node is a state . There is an edge from to when and . The attack graph is the part reachable from , often restricted to the states from which a goal state can be reached. In general models an exploit can also remove conditions, and the state can include the defender's view.
Condition graph. Under monotonicity, no exploit removes a condition. Then there is one node per condition and one per exploit, with an edge for each and an edge for each . An exploit is an AND node and a condition is an OR node.
What it counts
Example. Conditions (the start), , and (the goal). Exploits , , and . The labels are abstract.
| form | nodes | edges |
|---|---|---|
| state graph from | 7 states | 10 transitions |
| condition graph | 4 conditions and 4 exploits | 8 |
The state graph has a node for each reachable set of conditions, for example and , and so it repeats the same exploit in many states. The condition graph has each condition and each exploit once.
Size. A state graph can have up to nodes, and this blowup is the main cost of the state form. A condition graph has nodes and at most edges.
Questions and their cost. On the word RAM:
- Can the attacker reach ? Under monotonicity, this is forward chaining: fire every exploit whose preconditions hold until nothing changes. It takes time linear in the size of the condition graph, as in Horn satisfiability. Without monotonicity, it is reachability in the state graph, which can be exponential in .
- What is the shortest or cheapest attack? In a state graph with weights on the edges, this is a shortest path, found with Dijkstra's algorithm. Phillips and Swiler used edge weights such as a probability or an effort and looked for the paths of lowest cost. In a condition graph, the cheapest set of exploits that reaches is an AND-OR problem, and it is hard in general, as for attack trees with shared nodes.
- What is the smallest set of exploits to remove so that becomes unreachable? In the example, every attack uses and or and , so the smallest such sets have 2 exploits, for example or , and there are 4 of them. In general this is a hitting set of the minimal attacks.
Relation to other models
- Attack trees. An attack tree describes one goal by refinement. Unfolding a condition graph from the goal gives an attack tree, with shared nodes copied.
- Model checking. A state graph is the set of runs of a transition system that violate the safety property "the goal is never reached". Sheyner et al. obtain it from a symbolic model checker.
- Datalog and Horn clauses. A monotonic exploit is a Horn clause . Logical attack graph generation writes the exploits as Datalog rules with variables over hosts and records the derivations.
- Petri nets and planning. Conditions as places and exploits as transitions give a Petri net, and the search for an attack is a planning problem with exploits as actions.
- Intrusion detection. Alerts from intrusion detectors can be mapped to exploits in the graph, to see which alerts form a path toward a goal.
Known results in the model
- Monotonicity gives polynomial size (theorem). If no exploit removes a condition, every reachable condition is reached by a sequence of exploits in which each adds at least one new condition, so the reachable conditions are found in at most rounds, and the condition graph has polynomial size. Ammann, Wijesekera and Kaushik (2002) stated this, and Ou, Boyer and McQueen (2006) proved an bound on the size for hosts with the MulVAL rules.
- State graphs can be exponential (theorem). With independent exploits from , each adding its own condition, the reachable states are all subsets of the added conditions, while the condition graph has nodes. This gap is why later work moved to condition graphs.
- Smallest blocking set is NP-hard (theorem). In a state graph whose edges are labeled with atomic attacks, removing an attack deletes every edge with its label. Jha, Sheyner and Wing (2002) relate the smallest set of attacks whose removal blocks all paths to the goal to the minimum hitting set problem, and use a greedy algorithm for an approximate answer. Hardness follows by a direct reduction: for a hitting set instance with sets , draw one path from the start to the goal for each , with one edge labeled by each element of . The goal is blocked exactly when the removed labels hit every .
- Probabilities. Jha, Sheyner and Wing also put probabilities on the transitions and analyze the graph as a Markov decision process, to compute the probability that the attacker reaches the goal. The probabilities are inputs of the model, not facts about a network.
References
- Cynthia Phillips and Laura Painton Swiler, A graph-based system for network-vulnerability analysis, New Security Paradigms Workshop (NSPW) 1998, pages 71 to 79, attack states as nodes, attacker actions as weighted edges built from attack templates, configuration and attacker profiles, and shortest paths for the most likely attacks
- Oleg Sheyner, Joshua Haines, Somesh Jha, Richard Lippmann and Jeannette M. Wing, Automated generation and analysis of attack graphs, IEEE Symposium on Security and Privacy 2002, pages 273 to 284, the attack graph as the set of counterexamples of a model checker for a safety property, and its generation with a symbolic model checker
- Somesh Jha, Oleg Sheyner and Jeannette M. Wing, Two formal analyses of attack graphs, 15th IEEE Computer Security Foundations Workshop, 2002, pages 49 to 63, the minimization analysis (the smallest set of attacks to prevent, by hitting set) and the probabilistic analysis
- Paul Ammann, Duminda Wijesekera and Saket Kaushik, Scalable, graph-based network vulnerability analysis, ACM CCS 2002, pages 217 to 224, the monotonicity assumption and the polynomial graph over attributes and exploits
- Xinming Ou, Wayne F. Boyer and Miles A. McQueen, A scalable approach to attack graph generation, ACM CCS 2006, pages 336 to 345, the logical attack graph and its quadratic size
Where this leads
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 K1YV61 Edit this page History Report an error Markdown