Dynamic Network Reconfiguration for Entropy Maximization using Deep Reinforcement Learning

Christoffel Doorman, Victor-Alexandru Darvariu, Stephen Hailes, Mirco Musolesi

Abstract

A key problem in network theory is how to reconfigure a graph in order to optimize a quantifiable objective. Given the ubiquity of networked systems, such work has broad practical applications in a variety of situations, ranging from drug and material design to telecommunications. The large decision space of possible reconfigurations, however, makes this problem computationally intensive. In this paper, we cast the problem of network rewiring for optimizing a specified structural property as a Markov Decision Process (MDP), in which a decision-maker is given a budget of modifications that are performed sequentially. We then propose a general approach based on the Deep Q-Network (DQN) algorithm and graph neural networks (GNNs) that can efficiently learn strategies for rewiring networks.

We then discuss a cybersecurity case study, i.e., an application to the computer network reconfiguration problem for intrusion protection. In a typical scenario, an attacker might have a (partial) map of the system they plan to penetrate; if the network is effectively "scrambled", they would not be able to navigate it since their prior knowledge would become obsolete. This can be viewed as an entropy maximization problem, in which the goal is to increase the surprise of the network. Indeed, entropy acts as a proxy measurement of the difficulty of navigating the network topology. We demonstrate the general ability of the proposed method to obtain better entropy gains than random rewiring on synthetic and real-world graphs while being computationally inexpensive, as well as being able to generalize to larger graphs than those seen during training. Simulations of attack scenarios confirm the effectiveness of the learned rewiring strategies.

Introduction

In the realm of cybersecurity, the persistence of an attacker within a network often depends on their ability to map internal topologies. Once a perimeter is breached, intruders typically engage in reconnaissance to identify high-value assets, such as administrative terminals or sensitive databases. Traditional defensive postures are often static, meaning that once an attacker acquires a map of the network, that knowledge remains valid indefinitely.

The concept of Moving Target Defense (MTD) seeks to disrupt this advantage by dynamically altering the network's structure. By constantly "scrambling" the map, defenders can render an attacker’s hard-earned reconnaissance obsolete. However, reconfiguring a network is a complex combinatorial challenge. Arbitrary edge movements can inadvertently disconnect critical services or fail to meaningfully impede an intruder. This research addresses the network rewiring problem: how to efficiently swap connections to maximize structural "surprise" (entropy) while maintaining system connectivity and operational integrity.

Methodology: Sequential Rewiring as an MDP

The researchers formulate the network rewiring task as a Markov Decision Process (MDP). To navigate the massive combinatorial space of possible edge swaps, the model utilizes a combination of Deep Q-Networks (DQN) and Graph Neural Networks (GNNs).

Action Decomposition

A critical innovation in this approach is the decomposition of a single rewiring operation into three sequential sub-steps. This reduces the action space from $O(N^4)$ (all possible edge swaps) to a more manageable linear scale relative to the number of nodes and edges.

  1. Base Node Selection: The agent identifies a starting node for the modification.
  2. Target Node Selection: The agent selects a second node to establish a new connection with the base node.
  3. Edge Removal: The agent selects an existing neighbor of the base node to disconnect, ensuring the total number of edges in the graph remains constant.
The sequential decision-making process for a single network rewiring operation.

Model Architecture and Reward Function

The agent's "brain" utilizes a variant of structure2vec, a GNN that generates embeddings representing the current state of the graph. These embeddings allow the DQN to evaluate the potential value of specific rewiring actions.

The primary objective is Entropy Maximization. The reward function is tied to increasing the network's entropy, using two specific metrics:

  • Shannon Entropy: Focused on the distribution of node degrees to make the network's connectivity less predictable.
  • Maximal Entropy Random Walk (MERW): A sophisticated measure that aims to make every possible path through the network equally likely, thereby maximizing the difficulty for an entity attempting to navigate the topology efficiently.

To ensure the network remains functional, any action that results in a disconnected graph is met with a significant penalty.

Experimental Evaluation

The proposed framework was evaluated across diverse network topologies to ensure robustness and generalizability:

  • Synthetic Models: Barabási–Albert (preferential attachment), Watts–Strogatz (small-world), and Erdős–Rényi (random) graphs were used to represent standard network archetypes.
  • Real-World Application: The researchers utilized the Unified Host and Network (UHN) dataset from Los Alamos National Laboratory. They extracted a communication graph consisting of 461 nodes and 790 edges from this data to test the model in a realistic enterprise environment.

Results and Discussion

The DQN-based agent demonstrated several key advantages over traditional methods:

  • Superior Performance: The agent consistently outperformed random rewiring strategies in achieving higher entropy gains across all tested graph types.
  • Increased Attacker Cost: Simulations of "forward random walk" attacks showed that rewired networks significantly hindered navigation. On the real-world UHN graph, the DQN models increased the cost for an attacker to reach a target by 125% to 136% compared to the original layout.
  • Zero-Shot Generalization: A standout finding was the model's ability to generalize. Agents trained on small synthetic graphs (30 nodes) successfully rewired much larger networks (up to 300 nodes) and real-world enterprise graphs without requiring additional training.
  • Computational Efficiency: Unlike greedy search algorithms, which suffer from exponential time complexity as networks grow, the DQN agent provides near-instantaneous inference. This makes it a viable candidate for real-time defensive applications in large-scale systems.

Conclusion and Future Directions

While this research presents a powerful new tool for Moving Target Defense, several avenues for future work remain. The current attacker model assumes a relatively simple random walk; future iterations should account for adaptive, goal-oriented adversaries who attempt to learn the new topology in real-time. Additionally, while connectivity is preserved, the operational impact on network latency and legitimate traffic performance warrants deeper investigation. Finally, moving from a global "scrambling" approach to a localized defense that targets areas around detected entry points could further optimize defensive resources.

Summary updated

BibTeX
@inproceedings{doorman2022dynamic,
  author = {Christoffel Doorman and Victor-Alexandru Darvariu and Stephen Hailes and Mirco Musolesi},
  title = {{Dynamic Network Reconfiguration for Entropy Maximization using Deep Reinforcement Learning}},
  booktitle = {LoG},
  year = {2022},
  url = {https://openreview.net/forum?id=-vshFhHpKhX},
}
Figure