Abstract
Attack graphs are commonly used to analyse the security of medium-sized to large networks. Based on a scan of the network and likelihood information of vulnerabilities, attack graphs can be transformed into Bayesian Attack Graphs (BAGs). These BAGs are used to evaluate how security controls affect a network and how changes in topology affect security. A challenge with these automatically generated BAGs is that cycles arise naturally, which make it impossible to use Bayesian network theory to calculate state probabilities. In this paper we provide a systematic approach to analyse and perform computations over cyclic Bayesian attack graphs. Our approach first formally introduces two commonly used versions of Bayesian attack graphs and compares their expressiveness. We then present an interpretation of Bayesian attack graphs based on combinational logic circuits, which facilitates an intuitively attractive systematic treatment of cycles. We prove properties of the associated logic circuit and present an algorithm that computes state probabilities without altering the attack graphs (e.g., remove an arc to remove a cycle). Moreover, our algorithm deals seamlessly with all cycles without the need to identify their types. A set of experiments using synthetically created networks demonstrates the scalability of the algorithm on computer networks with hundreds of machines, each with multiple vulnerabilities.
Introduction
In cybersecurity, attack graphs are essential tools for mapping potential navigation paths a hacker might take through network vulnerabilities to reach critical assets. By incorporating success probabilities for exploits, these models become Bayesian Attack Graphs (BAGs). However, traditional Bayesian Networks require Directed Acyclic Graphs (DAGs), creating a significant conflict: real-world network topologies are inherently cyclic.
For instance, an attacker might compromise a workstation, move to a web server, and then exploit a vulnerability on that server to gain higher privileges back on the original workstation. Standard security tools often "fix" these cycles by deleting edges, which unfortunately ignores valid attack paths and compromises the model's integrity. This paper introduces a method to perform computations over these cyclic graphs without simplification.
Methodology: Logic Circuit Interpretation
The researchers propose treating the attack graph not just as a statistical model, but as a deterministic combinational logic circuit with probabilistic inputs. This shift allows for a systematic treatment of cycles based on two primary components:
- Logic Mapping: The model maps "OR" nodes (representing multiple ways to reach a state) and "AND" nodes (representing multiple conditions required for an exploit) to digital logic gates.
- Steady-State Convergence: The authors prove that these attack circuits are monotonic. As time progresses, the probability of a node being compromised only increases or remains constant, eventually reaching a unique, stable "steady state."
To compute these probabilities, the authors developed a recursive inference algorithm. Unlike standard Bayesian techniques, this algorithm tracks node contributions to specific paths. When a cycle is encountered, the algorithm "collapses" the contribution to ensure a single vulnerability is not counted twice, preventing artificial probability inflation.
Experimental Evaluation
The approach was evaluated using both synthetic and realistic datasets:
- Synthetic Networks: Random graphs ranging from 500 to 15,000 nodes were tested across varying levels of cyclicity (up to 100%) to measure computational scaling.
- Realistic Enterprise Scenarios: Three networks (up to 15 hosts) were modeled using the OpenVAS vulnerability scanner and MulVAL generator, resulting in graphs with over 2,000 nodes and naturally occurring cycles.
Key Results and Insights
- Scalability: The algorithm processed a worst-case 15,000-node, 100% cyclic graph in 155 minutes. A more typical 6,000-node enterprise graph was completed in approximately 600 seconds.
- Accuracy: In head-to-head tests against exact methods like Variable Elimination (which fails on graphs larger than 24 nodes), the proposed algorithm maintained a low average error (±0.011) while scaling to tens of thousands of nodes.
- Generalization: The algorithm produced results identical to traditional solvers when applied to standard acyclic graphs, confirming its validity as a generalized method.
Conclusion and Future Work
By utilizing a logic-circuit interpretation, security analysts can preserve the full complexity of network models without "cheating" the math by removing edges. While highly effective for individual node probabilities, future work aims to address joint probabilities (e.g., the likelihood of two specific servers being compromised simultaneously) and incorporate temporal metrics, such as vulnerability age, to further refine risk assessment.
Summary updated