NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Attack Graph Analysis through Approximate Inference.

Luis Muñoz-González, Daniele Sgandurra, Andrea Paudice, Emil C. Lupu

TL;DR

This paper proposes using Loopy Belief Propagation (LBP) to analyze security risks in large-scale computer networks. By applying this approximate inference technique to Bayesian Attack Graphs, the authors achieve linear scalability, enabling real-time risk assessment for networks with thousands of nodes where traditional exact methods become computationally impossible.

What Problem Does This Paper Address?

Security administrators use Attack Graphs (AGs) to map out the potential paths an intruder could take to compromise sensitive data. Bayesian Attack Graphs (BAGs) take this a step further by adding probabilities, helping admins prioritize which vulnerabilities to patch based on the likelihood of exploitation.

The challenge is that calculating these probabilities exactly (known as "inference") is an NP-Hard problem. As networks grow to include thousands of hosts and vulnerabilities, the computational cost of exact inference grows exponentially. This makes it impossible to perform "dynamic analysis"—updating risk levels in real-time as an attack is unfolding—on large corporate networks.

Methods

The authors introduce approximate inference to the field of attack graph analysis. Specifically, they implement:

  • Loopy Belief Propagation (LBP): An iterative message-passing algorithm used on graphical models. While it provides an approximation rather than an exact answer, it is much faster on complex graphs.
  • Factor Graphs: They represent the attack graphs as bipartite factor graphs to facilitate the message-passing process.
  • Sequential vs. Parallel LBP: They compare two versions of the algorithm—one that updates nodes one by one (S-LBP) and one that updates all nodes simultaneously (P-LBP).
  • Comparison Benchmark: They use the Junction Tree (JT) algorithm, the state-of-the-art for exact inference, as a baseline to measure accuracy and speed.

Datasets

Because large-scale, real-world attack graph datasets are not publicly available, the authors generated synthetic Bayesian attack graphs to test their approach:

  • Pseudo-random graphs: Used to control the "density" of the network (how many vulnerabilities connect different nodes).
  • Cluster graphs: Designed to mimic real corporate environments where hosts are grouped into subnetworks (like a LAN or DMZ) with weak inter-connectivity between clusters.
  • Scale: The experiments scaled up to 3,000 nodes, significantly larger than the 100–1,000 node limit typically seen with exact inference methods.

Key Insights and Ideas

  • Linear Scalability: The most significant finding is that LBP scales linearly with the number of nodes. This transforms a problem that was previously "unsolvable" for large networks into one that can be handled on a standard laptop in under a minute.
  • The "Good Enough" Principle: In cybersecurity, an exact probability (e.g., 78.234%) is rarely necessary. A fast, approximate estimate (e.g., ~78%) is sufficient for an administrator to decide which server needs an emergency patch.
  • Early Intervention: Because LBP is iterative, administrators can monitor the probability estimates as they evolve. They can often see which areas of the network are at high risk after just a few iterations, allowing them to start mitigation strategies before the algorithm even finishes.
  • Evidence-Based Accuracy: When evidence of an attack is found (e.g., an IDS alert on a specific server), that node becomes "deterministic." This can effectively split the graph into smaller sections, which actually improves the accuracy of the LBP approximation.

Key Results

  • Performance: For a 3,000-node graph, LBP performed the analysis in approximately 60 seconds. In contrast, the exact Junction Tree (JT) algorithm failed to scale beyond a few hundred nodes due to memory and time constraints.
  • Accuracy: The approximation error (Rooted Mean Squared Error) was remarkably low, consistently below 0.03. This confirms that the speed gains do not come at the cost of meaningful accuracy.
  • Parallel Advantage: Parallel LBP (P-LBP) generally converged faster and provided slightly better estimates than the sequential version as the network complexity increased.

Limitations and Future Work

  • Convergence Issues: While LBP converged in all the authors' experiments, it is mathematically possible for the algorithm to oscillate or fail to settle on a result in certain graph structures with many loops.
  • Input Quality: The model's accuracy is only as good as its inputs. It currently relies on CVSS (Common Vulnerability Scoring System) scores, which are often criticized for being subjective or not reflecting the specific context of a network.
  • Human Factors: The current model does not account for zero-day exploits (unknown vulnerabilities) or social engineering, which are difficult to quantify with static probabilities.
  • Future Directions: The authors plan to incorporate more sophisticated attacker models (accounting for skill levels and intent) and explore using these techniques to prioritize forensic investigations after a breach has occurred.

Summary updated

BibTeX
@article{munozgonzalez2017efficient,
  author = {Luis Muñoz-González and Daniele Sgandurra and Andrea Paudice and Emil C. Lupu},
  title = {{Efficient Attack Graph Analysis through Approximate Inference.}},
  journal = {ACM Trans. Priv. Secur.},
  year = {2017},
  url = {https://openreview.net/forum?id=xzNRgY_HRg},
}
Figure