Nowadays society is more and more dependent on critical infrastructures. Critical network infrastructures (CNI) are communication networks whose disruption can create a severe impact. In this paper we propose REACT, a distributed framework for reactive network resilience, which allows networks to reconfigure themselves in the event of a security incidents so that the risk of further damage is mitigated. Our framework takes advantage of a risk model based on multilayer networks, as well as a graph-coloring problem conversion, to identify new, more resilient configurations for networks in the event of an attack. We propose two different solution approaches, and evaluate them from two different perspectives, with a number of centralized optimization techniques. Experiments show that our approaches outperform the reference approaches in terms of risk mitigation and performance. . cover the ability of a network to reconfigure itself in the event of a security incident so that the risk of further damage is mitigated. This is radically different from the usual notions of resilience, where the network is designed so that the attack impact is minimized a priori. For instance, [4] designs cloud-based critical infrastructures so that there are redundancies which minimize the impact of a service disruption. In [5,6] the network is designed so that diversity is maximized, to prevent attacks which affect similar configurations to propagate throughout the network. In contrast, we take advantage of the possibilities of new (semi-)virtualized network infrastructures to perform the network configuration in a reactive manner once the attack has been detected. In this way, the resulting configuration is specific for the location of the attack, hence allowing for a greater risk reduction.In particular, we propose REACT, a distributed framework for reactive network reconfiguration in (semi-) virtualized CNIs over a zero-day attack threat model. This threat model assumes that the specific vulnerabilities used by the attack are unknown to the network operators, and therefore can only be detected by using an anomaly-based IDS (Intrusion Detection System). REACT uses the alert reports from such an IDS, as well as an a priori risk analysis model of the network, to propose a new network configuration (that is, an alternative redeployment of the different components in the network) that will minimize the impact of the incident. It is important to note that, although malicious attacks are not the only challenge to cope with in CNIs, these types of attacks are generally the most harmful ones as they are focused on blocking network services. Network resilience challenges are also different with malicious attacks, human errors or natural disasters [7]: the latter two have a more random and distributed nature, while the former are usually focused on nodes that play an essential role in the network. A more in-depth discussion of related literature, with an emphasis on zero-day resiliency, can be found in Section 2.Our goal is, therefore, to build ...