Extreme vulnerability to intruder attacks destabilizes network dynamics Amirhossein Nazerian, Sahand Tangerami, Malbor Asllani, David Phillips, Hernan Makse, Francesco Sorrentino Abstract Consensus, synchronization, formation control, and power grid balance are examples of desirable dynamical states that arise in networks. Here we investigate how such states can be destabilized by an intruder agent within an otherwise functioning network. We see that a single adversarial node, coupled through adversarial connections to one or more other nodes, is sufficient to destabilize the entire network. We further show that concentrating the attack on a single low-indegree node induces the greatest instability, challenging the common assumption that hubs are the most critical nodes. This leads to a new characterization of network vulnerability, identifying low-indegree nodes as the most vulnerable components. Although derived for linear systems, our results extend to nonlinear networks, including the Kuramoto model. These findings reveal an intrinsic vulnerability of technological, social, and biological networks. I Introduction Complex networks are ubiquitous in technological, biological, and social systems. It is often the case that the nodes of these networks evolve over time to reach a well-defined dynamical state, such as consensus in opinion dynamics, synchronization in oscillator networks, or a desired pattern in coupled autonomous systems [ 1 , 2 , 3 ] . Ensuring the robustness of such networks against failures and attacks is a critical research challenge [ 4 ] . Robustness has been studied extensively from both structural and dynamical perspectives [ 5 , 6 , 7 , 8 ] . Traditional approaches to studying network robustness, including structural attacks such as cascading failures via percolation theory and node or edge removals, have offered valuable insights. Structural interventions, such as cascade failures [ 9 , 10 , 11 , 12 ] , node or edge removals [ 13 , 12 ] , and network fragmentation [ 14 ] , examine how disruptions alter the network’s connectivity. Alternatively, network instabilities may arise from the presence of adversarial connections between the nodes of a network [ 15 , 16 , 17 ] . In contrast to cascading failures, which are triggered by the removal of nodes or edges, adversarial interactions correspond to the addition of links with negative weights. Such interactions have been reported in brain networks as inhibitory connections between neurons [ 17 ] , in social networks as antagonistic relationships between agents [ 15 ] , and in distributed control systems as faulty or corrupted communication processes [ 16 ] . While both cascading failures [ 10 , 18 , 19 , 9 ] and instabilities induced by adversarial interactions can disrupt network functionality, they operate through fundamentally different mechanisms. Cascading failures typically unfold as discrete, far-from-equilibrium processes, whereas adversarial interactions affect an existing equilibrium through continuous dynamical effects. In this work, we focus on the latter mechanism, namely the destabilization induced by adversarial connections. Although distinct in nature, both edge removals and adversarial interactions can ultimately lead to network instability. A fundamental question, with significant societal and technological implications, is how desired dynamical network states (such as coordinated dynamical states in networks of drones or autonomous vehicles) can be disrupted by the purposeful insertion of one or a few adversarial agents. In particular, this is relevant the case of cyber-attacks (CAs) against cyber-physical systems (CPSs) and critical infrastructures, such as power grids [ 20 ] , autonomous vehicle fleets [ 21 ] , and industrial networks [ 22 ] . Since CAs target the cyber (software) level, while leaving the physical (hardware) level unaltered, they can be effectively modeled as network nodes that have the same structure as the others, but act adversarially. Because CPSs rely on synchronization and coordination among such agents to ensure stability and proper functionality [ 23 ] , the presence of even a small number of adversarial nodes can directly undermine these mechanisms, rendering CPSs particularly vulnerable to attacks that disrupt synchronization [ 24 ] . Thus an essential step in order to develop resilience against cyber-attacks is to understand the mechanisms by which one or a few intruder agents within an otherwise functioning network may compromise its dynamics. Our work also extends to attacks against social networks and biological networks, which we demonstrate using the classical Kuramoto model [ 25 ] . Many real-world networks are highly directed, non-normal, and hierarchically organized, structural features known to strongly shape their dynamical response [ 26 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 ] . In such systems, asymmetries in the interaction pattern generate preferred source-to-sink directions of flow, while the network architecture is often close to acyclic, with only sparse or weak feedback loops. As a consequence, perturbations do not need to spread isotropically: they can be transiently amplified, strongly biased downstream, and funneled toward terminal or sink components [ 31 , 34 , 37 ] . These features naturally call for spectral measures that capture both stability and transient amplification when assessing vulnerability to adversarial attacks. For all the cases of consensus, synchronization, formation control, power grid balance, and Kuramoto-type dynamics, we will see that the most vulnerable components of a network are the low-indegree nodes, where the indegree of node i is defined as the sum of the weights of the connections directed to node i , as opposed to the hubs on which much previous work has focused [ 4 ] . Thus while attacks targeting the hubs usually lead to more severe cascading failures, attack strategies that leverage adversarial interactions are more effective when targeting nodes with low indegree. The general theme of this paper is illustrated in Fig. 1 through an example. Fig. 1 a) displays a network of drones attempting to attain a desired formation. The intruder attack consists in a single intruder node establishing adversarial connections with some of the other nodes, which is shown in b). The bottom panels of Fig. 1 are pictorial representations of the spatial trajectories of the drones before and after the attack: in c) they converge to a set of desired target positions; in d) they diverge from the target positions, due to the interactions with the intruder. II RESULTS This paper investigates the case of intruder attacks on networks, where our definition of an intruder is a network node that obeys the same individual dynamics and communicates with the same output function as the other network nodes, but acts maliciously in order to disrupt the network dynamics. In terms of the mathematical model, this means that an intruder node obeys the same individual (uncoupled) dynamics and it uses the same output function as the other nodes in the network, but it interacts with the remaining nodes in a purposefully adversarial way. In what follows, we mathematically formulate the problem of intruder attacks on networks and derive rigorous conditions to quantify their destabilizing effects on the dynamics. Although our results extend to both undirected and directed networks, we focus principally on the latter as real-world systems are usually characterized by directional interactions [ 27 , 31 , 34 , 38 ] . We first focus on the important case of the linear consensus problem in networks and then consider other types of network dynamics, including formation control, power grid stability, and synchronization in oscillator networks. Our work reveals an intrinsic vulnerability in technological systems, such as autonomous networks, power grids, and sensor systems, emphasizing the need for a deeper understanding of these weaknesses and the development of specific strategies to mitigate them. We consider a general set of equations for the network dynamics, \dot{\boldsymbol{x}}_{i}(t)=\boldsymbol{F}(\boldsymbol{x}_{i}(t))-\sum_{j=1}^{N}L_{ij}\boldsymbol{H}(\boldsymbol{x}_{j}(t)-\boldsymbol{\beta}_{j}),\quad i=1,...,N, (1) where \boldsymbol{x}_{i}(t) is the m -dimensional state of node i at time t and N is the number of nodes. The individual nodal dynamics is given by \boldsymbol{F}(\boldsymbol{x}_{i}(t)) , and the output of node j is given by the function \boldsymbol{H}(\boldsymbol{x}_{j}(t)-\boldsymbol{\beta}_{j}) where \boldsymbol{\beta}_{j} is an m -dimensional constant vector that acts as a coordinate shift ( \boldsymbol{\beta}_{j} may be zero). The network connectivity is described by a digraph with adjacency matrix A=[A_{ij}] , where A_{ij} is the strength of the directed coupling from node j to node i\neq j , A_{ij}>0 indicates a cooperative interaction (also sometimes called mutualistic or attractive), A_{ij}<0 indicates an adversarial interaction (also sometimes called competitive or repulsive), and A_{ij}=0 indicates no interaction. The indegree of node i is equal to d_{i}^{in}=\sum_{j\neq i}A_{ij} and the outdegree of node i is equal to d_{i}^{out}=\sum_{j\neq i}A_{ji} . The Laplacian matrix is denoted by L=[L_{ij}] where L_{ij}=(\delta_{ij}d_{i}^{in}-A_{ij}) , and \delta_{ij} is the Kronecker delta. By construction, \sum_{j=1}^{N}L_{ij}=0,\forall i . For clarity, we note that two sign conventions for the Laplacian matrix are used in the literature: one with off-diagonal entries equal to the adjacency matrix and diagonal entries equal to the negative indegrees, and one with off-diagonal entries equal to the negative adjacency matrix and diagonal entries equal to the indegrees. In this work, we adopt the latter convention. We proceed under the assumption that the Laplacian matrix L is ‘proper’, i.e., all the eigenvalues of L have non-negative real parts and there is only one eigenvalue equal to 0 . Conditions for the Laplacian matrix of a signed digraph to be proper have been investigated in the literature [ 15 , 16 , 17 ] . Reference [ 39 , Definition 2.32] defines, for a given Laplacian matrix L , the following algebraic connectivity f\in\mathbb{R} which may be considered as a generalization of the Fiedler value [ 40 ] for digraphs: f(L):=\min_{\boldsymbol{X}\neq\boldsymbol{0},\boldsymbol{X}\perp\boldsymbol{1}}\dfrac{\boldsymbol{X}^{\top}L\boldsymbol{X}}{\boldsymbol{X}^{\top}\boldsymbol{X}}=\lambda_{\min}\left(V^{\top}\dfrac{L+L^{\top}}{2}V\right). (2) Here, V\in\mathbb{R}^{N\times N-1} is an orthonormal basis for the null subspace of \boldsymbol{1}^{\top} , i.e., V is a matrix whose columns are normal and orthogonal to one another and have zero column sums, and \lambda_{\min}(S) indicates the smallest eigenvalue of the symmetric matrix S . Note that if L is symmetric (the graph is undirected), the Fiedler value of the Laplacian \alpha=f\geq 0 , where the strict inequality is achieved if and only if the graph is connected. The algebraic connectivity f is relevant to studying the synchronization and consensus stabilities of directionally coupled networks. Also, f appears in studying the contractivity of such dynamics and their respective Lyapunov functions, e.g., see [ 39 , Corollary 4.23] . Note that for f<0 , -{f} measures the time scale of the unstable dynamics. We consider the presence of an adversarial agent, labeled as node N+1 , and that this agent is described by the same functions \boldsymbol{F} and \boldsymbol{H} as the remaining nodes. As a result, the network equations can be written, \dot{\boldsymbol{x}}_{i}(t)=\boldsymbol{F}(\boldsymbol{x}_{i}(t))-\sum_{j=1}^{N+1}{L_{aug}}_{ij}\boldsymbol{H}(\boldsymbol{x}_{j}(t)-\boldsymbol{\beta}_{j}), (3) i=1,...,N+1 , where the augmented Laplacian matrix L_{aug} is either equal to L_{aug}^{b}=\begin{bmatrix}L+\text{diag}(\boldsymbol{b})&-\boldsymbol{b}\\ -\boldsymbol{b}^{\top}&-c\end{bmatrix} (4) in the case that the intruder is bidirectionally coupled to the network nodes or equal to L_{aug}^{u}=\begin{bmatrix}L+\text{diag}(\boldsymbol{b})&-\boldsymbol{b}\\ \boldsymbol{0}^{\top}&0\end{bmatrix} (5) in the case that the intruder is unidirectionally coupled to the network nodes. In both ( 4 ) and ( 5 ) the vector \boldsymbol{b}=[b_{i}\leq 0] , \boldsymbol{b}\neq\textbf{0} (i.e., at least one b_{i}<0 ) contains the weights with which the additional node connects to nodes 1,...,N . A negative (zero) weight b_{i} indicates the presence (absence) of an adversarial connection between the intruder and node i . Furthermore, we introduce the attack budget, defined as the positive quantity c=-\sum_{i=1}^{N}b_{i} , which is taken to be equal to the sum of the negatives of the weights of all the connections established by the intruder with the existing network nodes. Figure 1: Illustration of an intruder attack on a network of drones attaining a given formation. The top panels show a network of coupled drones, before (A) and after (B) an intruder attack. The bottom panels display the trajectories of the drones before the attack in (C), showing convergence to the target positions, and after the attack in (D), showing divergence from the target position. The target positions are represented as stars in (C) and (D). A foundamental realization of the general dynamics ( 1 ), which we will analyze in detail in what follows, is that of the single-integrator consensus dynamics, described by the equation, \dot{\boldsymbol{X}}(t)=-L\boldsymbol{X}(t), (6) in the N -dimensional state vector \boldsymbol{X}=[x_{1},x_{2},...,x_{N}] ( x_{i} here is a scalar). When the Laplacian matrix is proper, Eq. ( 6 ) reaches consensus asymptotically independent of its initial condition, i.e., \lim_{t\rightarrow\infty}x_{i}(t)=\bar{x} , i=1,...,N , where \bar{x} is the consensus state [ 41 ] . In Supplementary Note 1, we provide an example of single-integrator consensus dynamics ( 6 ) on a network subject to a single intruder attack to further motivate the relevance of the algebraic connectivity f . In this example, the intruder unidirectionally connects to different network nodes, resulting in different values of the algebraic connectivity f as the Laplacian matrix L_{aug}^{u} changes. In all cases, we see that after the intruder connects to one of the other nodes, the individual trajectories x_{i}(t) diverge from one another. We characterize consensus in terms of the time evolution of the norm of the perturbations about the consensus state \|\delta\boldsymbol{X}(t)\|:=\sqrt{\sum_{j=1}^{N}\left(x_{j}(t)-\frac{1}{N}\sum_{k=1}^{N}x_{k}(t)\right)^{2}}. (7) Consensus is achieved if \|\delta\mathbf{X}(t)\|\to 0 as t\to\infty . Definition 1 . Destabilization of the single-integrator consensus dynamics. By construction the Laplacian matrix has one eigenvalue equal zero. The consensus dynamics (6) is: (i) stable iff all the remaining eigenvalues have positive real part and (ii) unstable iff at least one of the remaining eigenvalues has negative real part. Consequently, we call a destabilization a transition from (i) to (ii). We take the original Laplacian matrix L to be proper, which guarantees that consensus is achieved prior to the attack. However, the addition of a single adversarial connection with the intruder implies that the resulting augmented Laplacian matrices L_{aug}^{b} and L_{aug}^{u} are no longer proper, as they are known to possess at least one eigenvalue with negative real part (see e.g., [ 16 , 17 ] ) and, as a consequence, consensus is not achieved. While the the addition of a single adversarial connection with the intruder produces a destabilization, in this paper we focus not on \alpha(L_{aug}) , the asymptotic rate of instability for \|\delta\boldsymbol{X}(t)\| , but rather on its transient rate of instability |f(L_{aug})|\geq|\alpha(L_{aug})| immediately following the attack. As detailed in Subsection A of the Methods, a larger transient growth arises from the non-normal dynamics characteristic of directed networks [ 27 , 42 ] . We emphasize the transient rate for three main reasons: (i) when Eq. (1) is obtained via linearization about an unstable synchronous solution [ 35 ] , it accurately describes the dynamics only shortly after the perturbation, rendering the asymptotic rate less relevant; (ii) the transient rate provides a worst-case estimate, as it is greater than or equal to the asymptotic rate; and (iii) larger transient growth increases the likelihood that a perturbation produces a significant alteration of the system dynamics [ 28 , 27 , 29 , 30 , 35 ] . Supplementary Note 1 also reviews some of the relevant properties of the algebraic connectivity f from [ 39 ] . In principle, one could consider the presence of more than one intruder; however, we show in what follows that under appropriate conditions, a single attacker is able to destabilize the network dynamics, so we focus on the case of a single attacker. The case of multiple intruders is studied in Supplementary Note 2. Next, we introduce our main two problems, which we call attack via bidirectional connections and attack via unidirectional connections. Problem 1 Statement: Attack via bidirectional connections. Given the N -dimensional possibly asymmetric Laplacian matrix L , and a budget -c , find the weights \boldsymbol{b}=[b_{i}] , b_{i}\leq 0 , i=1,\ldots,N , with \sum_{i}b_{i}=-c\leq 0 such that the algebraic connectivity f of the new graph with Laplacian matrix L_{aug}^{b} in Eq. ( 4 ) is minimized. Proposition 2 . Given -c\leq 0 and the Laplacian matrix L_{aug}^{b} in Eq. ( 4 ), the minimum algebraic connectivity f is achieved when b_{i^{*}}=-c for one node i^{*} and b_{i}=0 for all other nodes i\neq i^{*} , i.e., the entire budget must be allocated to one node. Proof. See Methods IV.2 . ∎ Proposition 3 . Given a budget -c\leq 0 in Problem 1, the algebraic connectivity is f\leq 0 . Proof. See Methods IV.3 . ∎ Problem 2 Statement: Attack via unidirectional connections. Given the N -dimensional possibly asymmetric Laplacian matrix L , and a budget -c , find the weights \boldsymbol{b}=[b_{i}] , b_{i}\leq 0 , i=1,\ldots,N , with \sum_{i}b_{i}=-c\leq 0 such that the algebraic connectivity f of the new graph with the Laplacian matrix L_{aug}^{u} in Eq. ( 5 ) is minimized. Proposition 4 . Given -c\leq 0 and the Laplacian matrix L_{aug}^{u} in Eq. ( 5 ), the minimum algebraic connectivity f is achieved when b_{i^{*}}=-c for one node i^{*} and b_{i}=0 for all other nodes i\neq i^{*} , i.e., the entire budget must be allocated to one node. Proof. See Methods IV.4 . ∎ Proposition 5 . Given a budget -c\leq 0 in Problem 2, the algebraic connectivity is f\leq 0 . Proof. See Methods IV.5 . ∎ Propositions 2 and 4 are used in the next subsections II.1 and II.2 to characterize the effect of the particular selection of the network nodes to which the intruder should connect, i=1,..,N , in order to maximize the severity of the attack. Supplementary Note 3 discusses the case of bidirectional attacks in undirected networks with symmetric Laplacian matrices for which we also prove that the optimal attack is to allocate the entire budget to one node. II.1 Balanced Directed Graphs Next, we investigate in detail the case of interest that the directed graph is balanced, i.e., for each one of its nodes, the indegree equals the outdegree, d_{i}=d_{i}^{in}=d_{i}^{out},i=1,..,N ( d_{i} is simply the degree of node i .) Undirected graphs form a particular class within the broader class of balanced directed graphs. Based on Propositions 2 and 4 , we know that the optimal attack is to allocate the entire budget on one connection only. In what follows, we study the attack to node i of a given network, i.e., we set \boldsymbol{b}=[b_{j}],b_{i}=-c,b_{j\neq i}=0 . We are interested in how the algebraic connectivity f of a balanced directed graphs is affected by an intruder attack. By using matrix perturbation theory, we study Problem 1 in the limit of very small and very large budget c and obtain that: • for small budget c : the algebraic connectivity f(L_{aug}^{b})=-1.1c , and • for large budget c : the algebraic connectivity f(L_{aug}^{b})=-2c+L_{ii}/2 . For details on the derivations see Sec. IV.6 . Note the dependence on the degree of node i , d_{i}=L_{ii} . Using a similar approach, we can also study Problem 2 and obtain that: • for small budget c : the algebraic connectivity f(L_{aug}^{u})=-0.1c , and • for large budget c : the algebraic connectivity f(L_{aug}^{u})=-\frac{\sqrt{2}+1}{2}c+(3+2\sqrt{2})L_{ii} . For details of the derivations see Sec. IV.7 . Also in this case, note the dependence on the degree of node i , d_{i}=L_{ii} . Figure 2 summarizes the results of this section, by providing a schematics for how the algebraic connectivity f varies with the magnitude of the budget c . The top (bottom) panel is for the case of Problem 1 (Problem 2.) The figure shows that our calculations in the small and large budget limits can be used to sketch the dependence of the algebraic connectivity on c . In both panels, it is shown that the slopes in the small- and large-c limits are constant, while the intercept of the large- c asymptote increases with the node degree. This indicates that the algebraic connectivity is minimized when the node degree is minimal. Let us further remark that the above result should be interpreted in the context of the adopted Laplacian. More precisely, in the appropriate cost limit, the optimal node ranking is determined by the diagonal entries L_{ii} of the adopted coupling operator. For example, for the symmetrically normalized Laplacian [ 43 ] , L_{ii}=1 for all i , and therefore this distinction between nodes vanishes. Figure 2: Schematic dependence of the algebraic connectivity on the attack budget. Panels A and B schematically illustrate the algebraic connectivity, f(L_{aug}^{b}) and f(L_{aug}^{u}) , of the asymmetric Laplacian matrices L_{aug}^{b} and L_{aug}^{u} defined in Eqs. ( 4 ) and ( 5 ), corresponding to directed graphs with bidirectional (panel A) and unidirectional (panel B) adversarial connections, respectively. In each case, a single node (either i , j , or k ) is attacked with budget -c<0 . The dashed black lines show the asymptotic relations f(L_{aug}^{b})=-1.1c (panel A) and f(L_{aug}^{u})=-0.1c (panel B). The colored dashed lines in panel A correspond to f(L_{aug}^{b})=-2c+L_{xx}/2 , whereas those in panel B correspond to f(L_{aug}^{u})=-(\sqrt{2}+1)c/2+f_{\mathrm{inter}}^{x} , for x=i,j,k , where the intercept is f_{\mathrm{inter}}^{x}=(3+2\sqrt{2})L_{xx} . The schematics are not drawn to scale and are intended only to illustrate the qualitative behavior. II.2 General Directed Graphs The overall behavior of the algebraic connectivity f for a general digraph (i.e., a digraph that is not balanced) subject to an adversarial node addition is more difficult to characterize. In the limit of a large budget c , we derive the same relationships we had previously obtained in the case of balanced digraphs: f(L_{aug}^{b})=-2c+L_{ii}/2 in the case of a bidirectional adversarial node addition and f(L_{aug}^{u})=-\frac{\sqrt{2}+1}{2}c+(3+2\sqrt{2})L_{ii} in the case of a unidirectional adversarial node addition, with the only difference that in this case the dependence is on the indegree d_{i}^{in}=L_{ii} of a node, rather than its degree. The above relations indicate that for any directed graph, in the limit of a large budget c , the algebraic connectivity f is defined by the indegree of the targeted node. In general, the curve f(L_{aug}) vs c in the limit of small c , i.e., the initial slope of the curve for small c , depends non-trivially on the choice of the targeted node. However, certain relations can still be derived for the average slope in directed graphs, which is discussed next. We direct our focus to the change in the algebraic connectivity in the limit of small c , \frac{df}{dc}:=\lim_{c\to 0^{-}}\dfrac{\tilde{f}-f_{new}}{c}. (8) Here, c\geq 0 is the budget, and f_{new} ( \tilde{f} ) is the algebraic connectivity corresponding to the Laplacian matrix L_{aug} before the attack, i.e., to the matrix \tilde{L} : \displaystyle\begin{split}\tilde{L}=&\begin{bmatrix}L&\boldsymbol{0}\\ \boldsymbol{0}^{\top}&0\end{bmatrix}.\end{split} (9) We consider the two cases of (i) an attack via bidirectional connection ( L_{aug}^{b} in Eq. ( 4 )), and (ii) an attack via unidirectional connection ( L_{aug}^{u} in Eq. ( 5 )). We target all nodes of the network one by one and calculate df/dc for each targeted node, i.e., we set \boldsymbol{b}_{i}=-c\boldsymbol{e}_{i} where \boldsymbol{e}_{i} has all zero entries except for entry i which is equal to 1. Then, we calculate the average slope : \left<\frac{df}{dc}\right>:=\dfrac{1}{N}\sum_{i=1}^{N}\frac{df_{i}}{dc}, (10) where f_{i} is the algebraic connectivity when \boldsymbol{b}_{i} is used in either Eqs. ( 4 ) or ( 5 ). Next, we investigate the algebraic connectivity for selected real networks, such as animal, biological, social, neural, trade, metabolic, and genetic networks. The network data is obtained from [ 44 ] . All the adjacency matrices have positive entries, with certain networks being weighted and certain being unweighted (detailed information on these networks can be found in Supplementary Note 4.) For each network dataset, we apply our analysis to their largest strongly connected component. We emphasize that the slope df_{i}/dc is not easy to characterize for non-balanced digraphs since the slope df_{i}/dc and the indegree of the node i may not have a monotonic relationship. This is shown in Supplementary Note 4 using two examples of animal networks; for one, the slope is directly related to the indegree, while for the other, the slope is not correlated with the indegree. Figure 3 shows the mean slope , averaged over all the network nodes, for a collection of real networks under unidirectional attacks. We see the emergence of a clear scaling relation with the size of the network N , namely =-1/N . This result is analytically proven in Sec. IV.8 . We conclude that larger networks are less reactive in average to intruder attacks. We have also computed the most negative slope \min(df/dc):=\min_{i}df_{i}/dc and the mean slope under bidirectional and unidirectional attacks, and those plots are provided in Supplementary Note 4. Figure 3: Mean slope \langle df/dc\rangle for unidirectional attacks on real-world networks. The mean slope \langle df/dc\rangle for unidirectional (Eq. ( 5 )) connections of the adversarial agent for selected real-world networks of size N . The dashed black curve shows the analytically predicted relation \langle df/dc\rangle=-1/N . II.3 Applications Although our results are derived for the case of the consensus dynamics ( 6 ), they have direct implications in the case of several real-world applications, described by the general set of equations ( 1 ). Below we discuss three applications of interest in the realm of man-made networks. A detailed asymptotic stability analysis for each application is provided in the Methods. Specifically, the synchronization dynamics is analyzed in Methods Sec. IV.9 , the power grid dynamics in Methods Sec. IV.10 , and the formation control dynamics in Methods Sec. IV.11 . As a first application, we first consider synchronization of coupled chaotic oscillators. A model for the emergence of synchronization in a network of coupled oscillators is the following, \dot{\boldsymbol{x}}_{i}(t)=\boldsymbol{F}(\boldsymbol{x}_{i}(t))-\sigma\sum_{j=1}^{N}L_{ij}\boldsymbol{H}(\boldsymbol{x}_{j}(t)), (11) where \boldsymbol{x}_{i}(t)\in\mathbb{R}^{m} is the state of oscillator i at time t , the functions \boldsymbol{F}:\mathbb{R}^{m}\to\mathbb{R}^{m} and \boldsymbol{H}:\mathbb{R}^{m}\to\mathbb{R}^{m} describe the local dynamics and the coupling functions, respectively. The matrix L=[L_{ij}] is the Laplacian matrix that describes the network connectivity, and the scalar \sigma\geq 0 is the coupling strength. For this example, we set the local dynamics \boldsymbol{F} to be the chaotic Lorenz oscillator. The functions \boldsymbol{F} and \boldsymbol{H} are \boldsymbol{x}=\begin{bmatrix}x\\ y\\ z\end{bmatrix},\ \ \boldsymbol{F}(\boldsymbol{x})=\begin{bmatrix}10(y-x)\\ x(28-z)-y\\ xy-2z\end{bmatrix},\ \ \boldsymbol{H}(\boldsymbol{x})=\begin{bmatrix}0\\ y\\ 0\end{bmatrix}. (12) We take the directed network shown in Fig. 4 A and set \sigma=6 . Figure 4 B shows the synchronous time evolution of the state components x_{i}(t) for each oscillator before the attack. Panel C shows the loss of synchronization observed after the attack. The loss of stability is the direct consequence of having mixed sign eigenvalues of the Laplacian matrix after the attack. The plots of the y and z components show similar behavior as the x component and can be found in Supplementary Note 5. In Supplementary Note 5 we also provide an explanation for why the synchronous state becomes unstable when an attack occurs in terms of the master stability function approach (MSF) [ 45 , 46 ] . Reference [ 47 ] has used the master stability function to study stability of the synchronous solution in the case of the pinning control problem, for which a reference synchronous trajectory is selected to which all the network nodes need to synchronize. There are, however, two main differences between the two approaches. The first concerns the setting of the problem: in pinning control one considers the role of a reference agent in driving the synchronization of a network of coupled systems toward the reference trajectory, whereas in our work we consider the role of an intruder agent in disrupting synchronization. In the former case the coupling of the reference agent to the rest of the network is cooperative, while in the latter it is adversarial. In particular, the insertion of an intruder effectively alters the coupling structure so that the relevant Laplacian has at least one negative part eigenvalue; as a result, the asymptotic stability analysis naturally involves the evaluation of the Master Stability Function at negative real arguments, corresponding to these eigenvalues, which is not the common approach in the literature. The Methods Sec. I provides master stability function plots, over both negative and positive values of its argument, for the cases of the Lorenz, Rossler, and Chua oscillators, under various node-to-node couplings. For all the cases considered, we see that the MSF is positive when its argument is negative, implying instability of the synchronous solution. The second difference concerns the observable used to characterize the effect of the intervention: while Ref. [ 47 ] focuses on asymptotic stability through Lyapunov exponents, here we focus on the transient rate of instability. Figure 4: Effects of intruder attacks in different applications. The top row (A–C) illustrates the application to directly coupled chaotic oscillators, the middle row (D–F) to the power grid described by the nonlinear swing equation, and the bottom row (G–I) to linear single-integrator robot formation control. The left column (A, D, G) shows the corresponding network topologies. Panel A displays a directed network, whereas panels D and G show undirected networks. In all networks, black and orange links denote edge weights of -1 and 1 , respectively. The middle column (B, E, H) shows the dynamics in the absence of the adversarial agent (node A), while the right column (C, F, I) shows the dynamics in its presence. In panel D, blue square nodes represent generators and orange circular nodes represent load nodes; the adversarial agent is also a load node. Panels B and C show the states x_{i}(t) of the Lorenz oscillators; panels E and F show the angular positions \vartheta_{i}(t) of the generators and loads in the swing equation; and panels H and I show the robot positions in the xy plane, where diamonds denote the initial positions and stars denote the desired final positions. Next, we study the effect of a unidirectional attack on a scale-free network of Lorenz oscillators coupled in the y -variable, Eq. ( 12 ). For this case, the MSF analysis for Eq. ( 12 ), presented in Sec. I of the Methods, shows that, for negative values of its argument, the master stability function becomes increasingly negative as the magnitude of the argument increases. We use the algorithm from [ 48 ] to randomly generate an undirected and unweighted scale-free graph, which is shown in Fig. 5 A. The network has N=100 nodes and the degree distribution follows a power law P_{D}(k)\propto k^{-\gamma} with \gamma=2.33 with an average degree of 10 . We aim to study the effect of the attack on different nodes; we set \sigma=10 , c=1 , and vary the node i that is targeted. We select the nodes i=1,5,17,94,100 with degrees 82,47,23,13 , and 8 , respectively, and associate to these nodes the colors blue, orange, yellow, purple, and green, respectively. For more details on this example, see Supplementary Note 6. The perturbation vector for each node is calculated as \delta\boldsymbol{x}_{i}(t)=\boldsymbol{x}_{i}(t)-\frac{1}{N}\sum_{j=1}^{N}\boldsymbol{x}_{j}\in\mathbb{R}^{3} . We then form the transverse perturbations vector \delta\boldsymbol{X}(t)=[\delta\boldsymbol{x}_{1}(t)^{\top},\ \delta\boldsymbol{x}_{2}(t)^{\top},\ldots,\delta\boldsymbol{x}_{N}(t)^{\top}]^{\top}\in\mathbb{R}^{3N} and calculate its norm: \|\delta\boldsymbol{X}(t)\|:=\sqrt{\delta\boldsymbol{X}(t)^{\top}\delta\boldsymbol{X}(t)}. (13) If the oscillators synchronize, then \|\delta\boldsymbol{X}(t)\|\to 0 , otherwise \|\delta\boldsymbol{X}(t)\|\gg 0 . We see from Fig. 5 B that before the attack, i.e., on the left side of the dashed black line, the norm of the transverse perturbations approaches zero, indicating that the Lorenz oscillators have synchronized. However, after attacking either one of the nodes 1,5,17,94,100 , we see an immediate loss of synchronization, with a faster rate of transient instability when the nodes with lower degrees are targeted. For example, the attack on node 100 with degree 8 (the green curve) results in much larger \|\delta\boldsymbol{X}(t)\| than the attack on node 1 with degree 82 (the blue curve). To conclude, this example shows that in a nonlinear networked system, lower indegree nodes are more vulnerable to intruder attacks. Note that this is consistent with the MSF analysis for the case of Eq. ( 12 ), presented in Sec. I of the Methods, since attacking nodes with lower indegrees corresponds to evaluating the master stability function at more negative values of its argument, for which the associated maximum Lyapunov exponent is larger. Figure 5: Effect of the attacked node on network destabilization. Panel A shows a randomly generated scale-free network under attack through either of the colored nodes (blue i=1 , orange i=5 , yellow i=17 , purple i=94 , and green i=100 ). Panel B considers the dynamics of a network of coupled Lorenz oscillators, Eq. ( 11 ), and plots the norm of the transverse perturbations \|\delta\mathbf{X}(t)\| as a function of time t for attacks targeting different nodes i . Each curve corresponds to a different attacked node, all with the same attack budget c=1 . The dashed black line indicates the onset of the attack at t=4\,\mathrm{s} . The initial conditions of the oscillators are identical in all simulations, so that the observed differences are solely due to the attacked node. The degree of each attacked node, d_{i} , is also indicated in the plot. As a second application we consider power grid dynamics. The swing equation is a classical model for the dynamics of a power grid, [ 49 , 50 ] \ddot{\vartheta}_{i}(t)=p_{i}-{\gamma}\dot{\vartheta}_{i}(t)-\sum_{j=1,j\neq i}^{N}A_{ij}\sin(\vartheta_{i}(t)-\vartheta_{j}(t)) (14) where \vartheta_{i}(t) is the angular displacement of node/rotor i , the scalar p_{i} denotes the power consumption ( p_{i}<0 for loads) or power generation ( p_{i}>0 for generators,) the scalar {\gamma>0} denotes the damping ratio, and the symmetric adjacency matrix A=[A_{ij}] describes the connectivity of the grid, i.e., A_{ij}=A_{ji}=1 ( 0 ) if there is (is not) a transmission line between between nodes i and j . Note that although Eq. ( 14 ) is not a particular case of Eq. ( 1 ), the linearized swing equation (see Supplementary Note 7) on which our analysis is based is. We emphasize that the swing equation ( 14 ) conveniently demonstrates how an intruder oscillator can be mathematically incorporated into the Laplace matrix through a negative sign. By constraining the intruder oscillator to remain in anti-phase with the rest of the network—i.e., \sin(\vartheta_{i}(t)-\vartheta_{j}(t)\pm\pi)=-\sin(\vartheta_{i}(t)-\vartheta_{j}(t)) —a negative sign naturally emerges in the coupling kernel. This negative sign is then absorbed into the adjacency matrix as a negative link connection, represented by -A_{ij} . To illustrate the effect of the addition of an adversarial agent, we provide a numerical example. Here, we set \gamma=0.9 and the network shown in Fig. 4 D shows the grid topology before and after the addition of the adversarial agent. Nodes 1,2,3 and 4 are loads, nodes 5,6 and 7 are generators, and the adversarial node is denoted as node A with a black connection with weight -1 . The vector \boldsymbol{p}=[-0.3,\ -0.3,\ -0.3,\ -0.3,\ 0.4,\ 0.4,\ 0.4]^{\top} describes the power generated/consumed in the original power grid. Without loss of generality, for the adversarial agent, we set p_{A}=-0.1 , so the adversarial agent acts as a load. As seen in Fig. 4 E (Fig. 4 F), the dynamics of the power grid converges (does not converge) to a fixed point before (after) the attack. In Supplementary Note 7, we show analytically how the addition of the adversarial agent results in at least one unstable mode of the linearized swing equation, which in turn destabilizes the nonlinear dynamics. As a third application we consider distributed formation control. The formation control of robots is used in both civilian and military applications, see [ 51 , 52 , 53 ] . Here, we focus on positioning a set of robots on a given desired pattern, e.g., the robots are positioned around a circle with a known diameter. We take the shape-based formation control strategy from [ 54 ] : \dot{\boldsymbol{X}}(t)=(-F(L)\otimes I_{2})(\boldsymbol{X}(t)-\boldsymbol{\beta}), (15) where the state vector \boldsymbol{X}(t)=[x_{1}(t),y_{1}(t),x_{2}(t),y_{2}(t),\ldots,x_{N}(t),y_{N}(t)]^{\top}\in\mathbb{R}^{2N} is the concatenation of the xy coordinates of N robots at time t . The matrix L is the symmetric Laplacian matrix that describes the connectivity between the robots, the function F(L):\mathbb{R}^{N\times N}\to\mathbb{R}^{N\times N} is a function of the Laplacian matrix L . The network topology for this example with N=5 is shown in Fig. 4 G. We set F(L)=I_{N}-\exp(-3L) as in [ 54 ] . The vector \boldsymbol{\beta}\in\mathbb{R}^{2n} is a constant vector of target positions, which we position around a circle with radius 1 in equidistant phases, i.e., \boldsymbol{\beta}=[\sin(0),\cos(0),\sin(\frac{2\pi}{5}),\cos(\frac{2\pi}{5}),\ldots,\sin(\frac{8\pi}{5}),\cos(\frac{8\pi}{5})]^{\top} . For the adversarial agent, we set its corresponding \boldsymbol{\beta} to the origin [0,0]^{\top} . Figure 4 H shows the formation control in the absence of the adversarial agent, where each robot converges to its respective target position in less than 20 seconds. Note that this can be seen as a case of cluster synchronization, since different agents converge to different states. However, Fig. 4 I shows that in the presence of the adversarial agent, the robots no longer reach the target positions and the closed-loop system becomes unstable, position and velocity of the robots tend to infinity.) II.4 Phase synchronization based on Kuramoto dynamics Here we consider the case of phase synchronization in a network of coupled Kuramoto oscillators [ 25 ] , \dot{\theta}_{i}(t)=\omega_{i}+\dfrac{1}{N+1}\sum_{j=1}^{N+1}A_{ij}(t)\sin(\theta_{j}(t)-\theta_{i}(t)), (16) i=1,\ldots,N+1 , where the scalar \theta_{i}(t) is the phase angle of oscillator i at time t , the scalar \omega_{i} is the frequency of oscillator i . We require different frequencies for different oscillators, i.e., \omega_{i}\neq\omega_{j} , \forall i\neq j . The time-varying connectivity is described by the adjacency matrix A(t)=[A_{ij}(t)] where if node i receives a connection from node j at time t , then A_{ij}(t)\neq 0 , otherwise A_{ij}(t)=0 . We assume that a unidirectional adversarial connection from the intruder to one of the network nodes is established at some time T>0 . More precisely, the time-varying adjacency matrix is given by, A(t)=\begin{cases}\begin{bmatrix}A_{0}&\boldsymbol{0}\\ \boldsymbol{0}^{\top}&0\end{bmatrix},\quad&t0.1L_{ii}^{2} (dependent on the attacked node), where L_{ii} is the indegree of the attacked node. The details of our analysis are available in Supplementary Note 8. In Supplementary Note 9, we compare the effects of an intruder attack on two leaf nodes (nodes with degree 1): one connected to the hub node (the node with highest degree) and one not connected to the hub. By examining the dynamics immediately after the attack, we do not observe any difference between the two cases in their transient response. III Discussion This work identifies a fundamental vulnerability of complex dynamical networks: a single node connected through adversarial links to one or more other nodes is sufficient to destabilize the network dynamics, regardless of the network size. Such an attack provides a generic mechanism for disrupting consensus in opinion dynamics, synchronization in oscillator networks, and desired formations in coupled autonomous systems. Furthermore, we find that targeting a node with the smallest indegree, defined as the sum of the weights of all incoming connections, typically destabilizes the network in the shortest time. In contrast, attacking hub nodes generally results in a slower onset of instability. Intuitively, this can be explained as follows: hubs respond less to the coupling with the intruder due to a large number of in-neighbors, while low-indegree nodes respond more. The practical implementation of negative (adversarial) interactions depends on the application domain, but is in general well grounded across a wide range of systems. In technological and engineering networks, the distinction between cooperative and adversarial interactions often reduces to the sign of a feedback gain. In standard Laplacian coupling, the interaction acting on node i takes the form g(x_{\mathrm{ref}}-x_{i}) , where x_{\mathrm{ref}} is a reference state, x_{i} is the state of node i , and g is a scalar gain. Cooperative interactions correspond to g>0 , whereas adversarial interactions correspond to g<0 . Thus, changing the sign of the feedback gain naturally switches between the two regimes. In practice, such sign changes may arise from faulty or malicious agents, incorrect controller design, or cyber-attacks that invert transmitted signals. In power grid applications, for example, adversarial coupling can be realized through devices enforcing anti-phase behavior, as discussed in Subsection II.C. In biological systems, negative interactions are ubiquitous and arise intrinsically. Examples include inhibitory synaptic coupling in neuronal networks, competitive interactions in ecological systems, and repression mechanisms in gene regulatory networks. In these settings, adversarial interactions are not externally imposed, but are a fundamental component of the system dynamics. Within this perspective, our framework captures the effect of introducing or amplifying inhibitory interactions in otherwise cooperative networks. In social systems, negative coupling emerges through antagonistic or contrarian behavior. For instance, in opinion dynamics models, some individuals may systematically oppose the state of their neighbors (so-called “contrarians”), effectively inducing negative interactions. Likewise, misinformation or adversarial agents in online networks can disrupt consensus by promoting opposing views. These mechanisms provide realistic pathways through which adversarial interactions can arise and influence collective dynamics. Our results are in stark contrast to the expectation that hubs are the most critical nodes of a network [ 4 ] , and thus the ones that need to be more closely protected from attacks. This assumes particular relevance in the case of scale-free networks [ 55 ] . A central dogma in the field of complex networks is that scale-free networks are stable against random failures (removal) of nodes but are vulnerable, in terms of structural integrity (i.e., the size of the strongly connected component) to attacks targeting the hubs. We show a significantly different picture for the case of dynamical attacks considered here: while the structure of scale-free networks is more vulnerable to attacks targeting the hubs [ 4 ] , their dynamics is more vulnerable to attacks targeting nodes with low-indegree. In summary, while hubs exhibit high vulnerability in terms of structural integrity, they are somewhat protected in dynamical contexts, leading to a situation where low-degree nodes are most vulnerable. Reference [ 56 ] had also shown that the structural controllability of a network was enhanced when driver nodes are not connected to high-degree nodes. Reference [ 57 ] had found that the structural controllability of a network depends strongly on the fraction of low in-degree and low out-degree nodes. However, destabilizing the network dynamics does not require controllability, and here we provide simple sufficient conditions to induce instability of this dynamics. Our work complements a large literature on the importance of low-degree nodes and weak ties [ 58 ] ; the relevance of low-degree nodes, under specific circumstances, is also acknowledged in the literature on percolation dynamics on networks [ 4 ] and the importance of weak ties on stability for predator–prey networks has been pointed out in [ 59 ] . Our work complements the large literature that focuses on conditions to ensure the stability of the network dynamics, see e.g., [ 60 ] , while we focus on instability and on characterizing the severity of such instability. We investigate the fundamental question of how desired dynamical states can be disrupted by the purposeful insertion of one or a few intruder agents. Our intruders are structurally similar to the other network agents, which is consistent with the case of cyber-attacks. Our results are initially derived for the case of the linear consensus problem but have implications in a broad variety of network dynamics, including opinion dynamics, synchronization, formation control, and power grid balancing. We also study the case of the Kuramoto model, which is relevant to synchronization of biological systems. That having been said, we do not claim that our results apply to all the possible realizations of Eq. ( 1 ), but to a variety of cases of interest. Our work on intruder attacks in networked systems intersects with the domain of network interdiction, which has been extensively studied in operations research and optimization contexts. Smith and Song’s comprehensive survey on network interdiction [ 61 ] provides a systematic overview of how adversaries can strategically disrupt network operations by targeting critical components. While traditional network interdiction focuses primarily on structural disruptions such as removing nodes or edges to maximize the disruption of flow, connectivity, or shortest paths [ 62 , 63 ] , our approach examines dynamical disruptions through adversarial connections that destabilize the network’s equilibrium states. This distinction is crucial: classical interdiction models often assume a static network structure where the adversary’s goal is to disconnect components or increase path lengths [ 64 , 65 ] , whereas our framework considers how a single intruder node can exploit the network’s dynamical properties to induce instability while leaving the structural connectivity intact. Our results complement the interdiction literature by demonstrating that in cyber-physical systems, power grids, and consensus networks, dynamical vulnerability differs fundamentally from structural vulnerability: targeting low-indegree nodes rather than high-degree hubs identified as critical in classical interdiction models [ 66 ] produces the most severe instabilities. This finding suggests that protection strategies derived from structural interdiction theory may be insufficient for dynamical networks, necessitating new defense mechanisms that account for both topological and dynamical characteristics. We show the emergence of universal scaling properties, with small perturbations causing uniform responses and larger ones exposing specific vulnerabilities, especially at the low-indegree nodes. When applied to real complex networks, we see that it may not always be easy to characterize the rate of instability produced by the attack in the general case of non-balanced digraphs. However, our theory (see also Fig. 3 ) shows that the rate of instability generated by an attack on a single node averaged over all N networks nodes, scales exactly as -N^{-1} , for the case that the adversarial connection is unidirectional. This indicates that larger networks are more robust, on average, against intruder attacks. Although our work focuses on the case that an intruder node is added to an existing network, it can be generalized to the case that an existing network node becomes an intruder. In that case, the strategy that maximizes the effects of an attack is for the intruder to target only one node with the lowest indegree, where the indegree is computed by counting all the nodes in the network, except for the intruder. An obvious countermeasure against intruder attacks is to disconnect the attacker(s) from the network. This is consistent, for example, with the load shedding strategy, commonly implemented for power grids in the case of a power imbalance. In general, shedding the part of the network that includes the intruder provides a viable solution against intruder attacks, which is easier to do when the attacker is connected to the rest of the network by a single link compared to the case of multiple links. This observation highlights a trade-off between the severity of an attack and the recoverability from such attack. Extending the present framework to higher-order (many-body) interactions represents a natural and promising direction for future work. Recent studies have shown that such interactions can significantly modify synchronization properties, leading to global topological synchronization in some cases, but also to multistability and abrupt desynchronization in others [ 67 , 68 , 69 , 70 ] . This indicates that, depending on their structure, higher-order interactions may either promote coherence or give rise to additional instability mechanisms. In this context, we expect them to shift stability thresholds and modulate the system’s sensitivity to perturbations, without altering the underlying mechanism. Finally, a word of caution. While our results are rigorous for the case of linear dynamics (e.g., consensus), they are mostly based on extensive numerical calculations in the case of nonlinear dynamics. We believe more work is needed to fully characterize the effects of intruder attacks in nonlinear networks, although our work provides strong indication that in many cases of interest, the rate of instability observed for linear networks is inherited by their nonlinear counterparts. IV Methods IV.1 Transverse reactivity of stable and unstable consensus dynamics The first part of this subsection discusses general linear dynamical systems. The second part of this subsection focuses on linear consensus dynamics as a special case of general linear dynamical systems. Consider a linear dynamical system \dot{\boldsymbol{x}}(t)=M\boldsymbol{x}(t) (21) where \boldsymbol{x}(t)\in\mathbb{R}^{N} is the vector of system states and the square matrix M\in\mathbb{R}^{N\times N} . Definition 6 . Spectral abscissa of a matrix. Given a square matrix M\in R^{N\times N} , we define the spectral abscissa as the greatest real part of the matrix spectrum, \alpha(M)=\max_{i}\Re(\lambda_{i}), (22) where \lambda_{1},\lambda_{2},...,\lambda_{N} are the possibly complex eigenvalue of the matrix M and \Re(\cdot) returns the real part of its argument. The origin is a stable fixed point for the system in Eq. ( 21 ) if and only if \alpha(M)<0 . Definition 7 . Reactivity of a linear dynamical system [ 71 ] . The reactivity for the system in Eq. ( 21 ) is defined as, \displaystyle\begin{split}\xi\left(M\right)&:=\max_{\|\boldsymbol{X}\|\neq 0}\left[\frac{1}{\|\boldsymbol{X}\|}\frac{d\|\boldsymbol{X}\|}{dt}\right]\\ &=\max_{\boldsymbol{X}\neq 0}\frac{{\boldsymbol{X}}^{\top}\left(\frac{M+M^{\top}}{2}\right)\boldsymbol{X}}{{\boldsymbol{X}}^{\top}\boldsymbol{X}}\\ &=\lambda_{\max}\left(\frac{M+M^{\top}}{2}\right)=:\lambda_{\max}(S),\end{split} (23) where the matrix S=(M+M^{\top})/2 is the symmetric part of the matrix M and \lambda_{\max}(\cdot) indicates the largest eigenvalue of the symmetric matrix in its argument. The reactivity measures the maximal rate of instantaneous growth/decay of the norm of the state vector. If \xi\left(M\right)<0 ( \xi\left(M\right)>0 ) the norm of the state vector will decay (may grow) instantaneously. The choice of \boldsymbol{X} that maximizes ( 23 ) is the eigenvector \boldsymbol{v}_{1} of the matrix S associated with the eigenvalue \lambda_{\max}(S) . Note that the reactivity is computed by maximizing over \boldsymbol{X} , thus it provides a worst-case instantaneous rate of growth for \|\boldsymbol{X}\| . In the case that \boldsymbol{X} is generically chosen, it will have a non-zero component along the eigenvector \boldsymbol{v}_{1} , thus the worst-case rate of growth for \|\boldsymbol{X}\| will be observed with probability 1. Theorem 8 . The reactivity of the dynamics ( 21 ) is greater or equal to the spectral abscissa of the matrix M , i.e., \xi(M)\geq\alpha(M) . Proof. We set S=(M+M^{\top})/2 and write the reactivity of the dynamics ( 21 ), \displaystyle\begin{split}\xi(M)=\max_{\boldsymbol{Z}\neq 0}\frac{{\boldsymbol{Z}}^{\top}S\boldsymbol{Z}}{{\boldsymbol{Z}}^{\top}\boldsymbol{Z}}&\geq{\boldsymbol{v}_{1}}^{\top}S\boldsymbol{v}_{1}\\ &={\boldsymbol{v}_{1}}^{\top}\left(\frac{M+M^{\top}}{2}\right)\boldsymbol{v}_{1}\\ &=\frac{1}{2}(\boldsymbol{v}_{1}^{\top}M\boldsymbol{v}_{1}+\boldsymbol{v}_{1}^{\top}M^{\top}\boldsymbol{v}_{1})\\ &=\frac{1}{2}(\boldsymbol{v}_{1}^{\top}\alpha(M)\boldsymbol{v}_{1}+\alpha(M)\boldsymbol{v}_{1}^{\top}\boldsymbol{v}_{1})\\ &=\alpha(M)\end{split} (24) This concludes the proof. ∎ Theorem 8 is important as it states that the instantaneous rate of growth of the state \boldsymbol{Z} in ( 21 ) can be either larger than or equal to the asymptotic rate of growth of \boldsymbol{Z} . This is true in both the cases of asymptotically stable and unstable dynamics. If \alpha(M)>0 , we then see that \xi(M)\geq\alpha(M)>0 . This indicates that for an unstable system, the rate of instantaneous growth is positive and exceeds or is equal to the rate of asymptotic growth. It is inferred that the inequality in ( 24 ) is satisfied with the equal sign when the left and right eigenvectors of the matrix M associated with the eigenvalue \lambda_{1} coincide. This means that \boldsymbol{Z}^{*}=\boldsymbol{v}_{1} becomes the maximizer in ( 24 ). The discussion that follows is for the single-integrator consensus dynamics in Eq. ( 6 ), \dot{\boldsymbol{X}}(t)=-L\boldsymbol{X}(t) , which is a special case of the general linear dynamical system in Eq. ( 21 ). We write the eigenvalue equation L\boldsymbol{v}_{i}=\lambda_{i}\boldsymbol{v}_{i} , where \lambda_{i} ( \boldsymbol{v}_{i} ) are the possibly complex eigenvalues (eigenvectors) of the Laplacian matrix L , i=1,...,N . By the property that the rows of the Laplacian all sum to zero, there exists one eigenvalue of the Laplacian equal to zero, with the corresponding eigenvector having entries that are all the same. We index this eigenvalue j . Without loss of generality, we set \Re(\lambda_{1}(L))\leq\Re(\lambda_{2}(L))\leq...\leq\Re(\lambda_{N}(L)) , where \Re(\cdot) returns the real part of its argument. When the Laplacian matrix is proper, j=1 and \Re(\lambda_{1}(L))=0 , which results in an asymptotically stable consensus dynamics Eq. ( 6 ). Here, we remove the assumption that the Laplacian is proper and present a general theory of transient and asymptotic stability for Eq. ( 6 ). Any point such that x_{1}=x_{2}=...=x_{N} (25) is an equilibrium for the dynamics ( 6 ). The set of points that satisfy ( 25 ) define the consensus manifold. We are interested in whether the consensus manifold is asymptotically stable or unstable and in characterizing the maximum rate of transient instability away from this manifold. Thus in what follows, we focus on the transverse consensus dynamics, \dot{\boldsymbol{Z}}(t)=-A\boldsymbol{Z}(t) (26) \boldsymbol{Z}\in\mathbb{R}^{N-1}=V^{\top}\boldsymbol{X} , the matrix A\in\mathbb{R}^{N-1\times N-1}=V^{\top}LV and V\in\mathbb{R}^{N\times N-1} is an orthonormal basis for the null subspace of \boldsymbol{1}^{\top} , i.e., V is a matrix whose columns are normal and orthogonal to one another and have zero column sums. Remark 3 . The matrix A has the same spectrum as the Laplacian matrix L , except for one eigenvalue of the matrix L which is equal zero, i.e., \mathcal{S}(L)=\mathcal{S}(A)\cup\{0\} where \mathcal{S}(\cdot) returns the spectrum of the matrix in its argument. In our previous work [ 72 ] , we studied the entire consensus dynamics Eq. ( 6 ) under the assumption the consensus dynamics was stable, i.e., \alpha(-A)<0 . In this case, the trajectories of the system states eventually approach the origin (asymptotic stability), while the magnitude of the states may grow at transient times due to positive reactivity, which is not desirable in various situations, such as linearized dynamics about a fixed point. This transient growth may result in the invalidity of the linearization assumption. Unlike previous work by us and others [ 73 , 71 , 74 , 75 , 76 , 27 , 29 , 77 , 78 , 32 , 72 , 79 ] , here we are mostly concerned with the reactivity of the transverse dynamics, i.e., Eq. ( 26 ) in the case that \alpha(-A)>0 , i.e., the system Eq. ( 6 ) is asymptotically unstable. Next, we comment on the relevance of both the spectral abscissa and the reactivity on the transverse consensus dynamics ( 26 ). The asymptotic rate of \boldsymbol{Z}(t) in ( 26 ) is given by \alpha(-A) , i.e., the spectral abscissa of -A . In general, \alpha(-A) can be either positive or negative. On the other hand, the instantaneous rate of growth of the norm of the vector \boldsymbol{Z} is given by the reactivity, \displaystyle\begin{split}\xi\left(-A\right)&=\max_{\|\boldsymbol{Z}\|\neq 0}\left[\frac{1}{\|\boldsymbol{Z}\|}\frac{d\|\boldsymbol{Z}\|}{dt}\right]=\lambda_{\max}\left(-\frac{A+A^{\top}}{2}\right).\end{split} (27) Thus a positive (negative) reactivity \xi(-A) indicates that the norm of the state \boldsymbol{Z} tends to grow (shrink) in the limit of t\rightarrow 0 . Proposition 9 . The algebraic connectivity of the graph represented by the Laplacian matrix in Eq. ( 6 ) is equal to the negative of the reactivity of the transverse dynamics in Eq. ( 26 ), that is, f(L)\equiv-\xi(-A) . Proof. The reactivity of the dynamics in Eq. ( 27 ) is \displaystyle\xi\left(-A\right) \displaystyle:=\max_{\|\boldsymbol{Z}\|\neq 0}\left[\frac{1}{\|\boldsymbol{Z}\|}\frac{d\|\boldsymbol{Z}\|}{dt}\right] \displaystyle=\max_{\|\boldsymbol{Z}\|\neq 0}\left[\frac{1}{\sqrt{\boldsymbol{Z}^{\top}\boldsymbol{Z}}}\frac{d\sqrt{\boldsymbol{Z}^{\top}\boldsymbol{Z}}}{dt}\right] \displaystyle=\max_{\|\boldsymbol{Z}\|\neq 0}\left[\frac{1}{\sqrt{\boldsymbol{Z}^{\top}\boldsymbol{Z}}}\frac{\dot{\boldsymbol{Z}}^{\top}\boldsymbol{Z}+\boldsymbol{Z}^{\top}\dot{\boldsymbol{Z}}}{2\sqrt{\boldsymbol{Z}^{\top}\boldsymbol{Z}}}\right] \displaystyle=\max_{\|\boldsymbol{Z}\|\neq 0}\left[\frac{\boldsymbol{Z}^{\top}(-A-A^{\top})\boldsymbol{Z}}{2\boldsymbol{Z}^{\top}\boldsymbol{Z}}\right]. Also, V^{\top}V=I , L=VAV^{\top} and \boldsymbol{X}=V\boldsymbol{Z} which indicates \boldsymbol{X}\perp\boldsymbol{1} since \boldsymbol{X}\in\text{range}(V) , so \displaystyle\xi\left(-A\right) \displaystyle=\max_{\|\boldsymbol{Z}\|\neq 0}\left[\frac{\boldsymbol{Z}^{\top}\left(-(V^{\top}V)A(V^{\top}V)-(V^{\top}V)A^{\top}(V^{\top}V)\right)\boldsymbol{Z}}{2\boldsymbol{Z}^{\top}\boldsymbol{Z}}\right] \displaystyle=\max_{\|\boldsymbol{Z}\|\neq 0}\left[\frac{(\boldsymbol{Z}^{\top}V^{\top})(-L-L^{\top})(V\boldsymbol{Z})}{2(\boldsymbol{Z}^{\top}V^{\top})(V\boldsymbol{Z})}\right] \displaystyle=\max_{\boldsymbol{X}\neq 0,\boldsymbol{X}\perp\boldsymbol{1}}\left[\frac{\boldsymbol{X}^{\top}(-L-L^{\top})\boldsymbol{X}}{2\boldsymbol{X}^{\top}\boldsymbol{X}}\right] \displaystyle=-\min_{\boldsymbol{X}\neq 0,\boldsymbol{X}\perp\boldsymbol{1}}\left[\frac{\boldsymbol{X}^{\top}(L+L^{\top})\boldsymbol{X}}{2\boldsymbol{X}^{\top}\boldsymbol{X}}\right] \displaystyle=-\min_{\boldsymbol{X}\neq 0,\boldsymbol{X}\perp\boldsymbol{1}}\left[\frac{\boldsymbol{X}^{\top}L\boldsymbol{X}}{\boldsymbol{X}^{\top}\boldsymbol{X}}\right] \displaystyle=-f(L). That concludes the proof. ∎ In what follows, we refer to \xi(-A) in Eq. ( 27 ) as either the reactivity of the dynamics in Eq. ( 26 ) or the transverse reactivity of the consensus dynamics in Eq. ( 6 ), interchangeably. Corollary 10 . The instantaneous rate of growth of the transverse consensus dynamics in Eq. ( 26 ) is greater or equal to the asymptotic rate of growth, i.e., \xi(-A)\geq\alpha(-A) . Proof. The relation \xi(-A)\geq\alpha(-A) is obtained by placing M=-A in Theorem 8 . ∎ To illustrate the relation \xi(-A)\geq\alpha(-A) , we provide a numerical example of stable and unstable dynamics. First, we randomly generate the proper Laplacian matrix L=\begin{bmatrix}1&-1&0&0&0\\ 0&1&0&0&-1\\ -1&-1&2&0&0\\ 0&0&0&0&0\\ 0&0&0&-1&1\end{bmatrix} (28) with all eigenvalues with non-negative real-part and only one zero eigenvalue. The matrix A in Eq. ( 26 ) corresponding to the Laplacian matrix L in ( 28 ) is A=\begin{bmatrix}1.5427&-0.1809&0.2337&-0.9045\\ -0.1483&2.1281&0.5427&0.4045\\ 0.5427&-0.1809&0.2337&0.0955\\ 0.5427&-0.1809&-0.7663&1.0955\end{bmatrix}. (29) Here, \xi(-A)=-0.0250\geq\alpha(-A)=-1 . We simulate Eq.  ( 26 ) from the initial condition \boldsymbol{Z}(0)=[-0.2187,\ -0.1115,\ 0.9320,\ 0.2667] and plot the norm of the transverse perturbation \|\boldsymbol{Z}(t)\| in Fig. 8 A the in log scale. As evident by the slope of \|\boldsymbol{Z}(t)\| vs t , the transient rate of decay \xi(-A) is larger than the asymptotic rate of decay \alpha(-A) . Next, we add an adversarial agent to the above Laplacian matrix with a budget -c=-0.001 and obtain L_{aug}=\begin{bmatrix}1&-1&0&0&0&0\\ 0&1&0&0&-1&0\\ -1&-1&2&0&0&0\\ 0&0&0&-0.001&0&0.001\\ 0&0&0&-1&1&0\\ 0&0&0&0.001&0&-0.001\end{bmatrix} (30) which has mixed signed real-part eigenvalues. For the Laplacian matrix ( 30 ), the corresponding matrix A_{aug} in Eq. ( 26 ) is A_{aug}=\begin{bmatrix}1.4923&-0.1527&0.2024&-0.9160&0.0840\\ -0.2178&2.1372&0.4923&0.3739&0.3739\\ 0.4923&-0.1527&0.2014&0.0840&0.0850\\ 0.4923&-0.1527&-0.7976&1.0840&0.0840\\ 0.4923&-0.1527&0.2034&0.0840&0.0830\end{bmatrix}. (31) Here, \xi(-A_{aug})=0.0874\geq\alpha(-A_{aug})=0.002 . We simulate Eq.  ( 26 ) from the initial condition \boldsymbol{Z}(0)=[0.1202,\ 0.1937,\ 0.1545,\ 0.8538,\ 0.4418] and plot the norm of the transverse perturbation \|\boldsymbol{Z}(t)\| in Fig. 8 B in the log scale. As evident by the slope of \|\boldsymbol{Z}(t)\| vs t , the transient rate of decay \xi(-A) is larger than the asymptotic rate of decay \alpha(-A) . Figure 8: Transient growth and decay in consensus dynamics. Panels A and B show the transverse consensus dynamics governed by Eq. ( 26 ) for the cases of stable and unstable dynamics, respectively. In both panels, the vertical axis is shown on a logarithmic scale, so that the slopes of the curves represent the rates of decay (panel A) and growth (panel B). In both cases, the transient rate, \xi(-A) , exceeds the corresponding asymptotic rate, \alpha(-A) , demonstrating that the initial decay or growth is faster than its long-term asymptotic behavior. IV.2 Proof of Proposition 2 Given the possibly asymmetric Laplacian L and the budget -c<0 , we solve \displaystyle\begin{split}\min_{\boldsymbol{b},\boldsymbol{x}}\quad&\boldsymbol{x}^{\top}\left(V^{\top}\dfrac{{L_{aug}^{b}}+{L_{aug}^{b}}^{\top}}{2}V\right)\boldsymbol{x}\\ \text{subject to}\quad&\boldsymbol{x}^{\top}\boldsymbol{x}=1,\\ &L_{aug}^{b}=\begin{bmatrix}L+\text{diag}(\boldsymbol{b})&-\boldsymbol{b}\\ -\boldsymbol{b}^{\top}&-c\end{bmatrix},\\ &b_{i}\leq 0,\quad\forall i=1,\ldots,N,\\ &\sum_{i=1}^{N}b_{i}=-c.\end{split} (32) First, we set \boldsymbol{y}:=V\boldsymbol{x} which also implies \boldsymbol{1}^{\top}\boldsymbol{y}=0 and rewrite the optimization in \boldsymbol{y} and \boldsymbol{b} : \displaystyle\begin{split}\min_{\boldsymbol{b},\boldsymbol{y}}\quad&\boldsymbol{y}^{\top}\dfrac{{L_{aug}^{b}}+{L_{aug}^{b}}^{\top}}{2}\boldsymbol{y}\\ \text{subject to}\quad&\boldsymbol{y}^{\top}\boldsymbol{y}=1,\\ &\boldsymbol{1}^{\top}\boldsymbol{y}=0,\\ &{L_{aug}^{b}}=\begin{bmatrix}L+\text{diag}(\boldsymbol{b})&-\boldsymbol{b}\\ -\boldsymbol{b}^{\top}&-c\end{bmatrix},\\ &b_{i}\leq 0,\quad\forall i=1,\ldots,N,\\ &\sum_{i=1}^{N}b_{i}=-c.\end{split} (33) In the above optimization, we set \boldsymbol{y}=:[\boldsymbol{y}_{r}^{\top},y_{N+1}]^{\top} and \boldsymbol{y}_{r}^{\top}=[y_{1},\ y_{2},\ldots,y_{N}]^{\top}\in\mathbb{R}^{N} , i.e., we separate the last entry of the vector \boldsymbol{y} from the remaining entries. We also assume y_{i}\neq y_{j},\forall i\neq j,i=2,\ldots,N,j=2,\ldots,N. The objective function is \displaystyle\begin{split}\boldsymbol{y}^{\top}\dfrac{{L_{aug}^{b}}+{L_{aug}^{b}}^{\top}}{2}\boldsymbol{y}=&-y_{N+1}^{2}c+\boldsymbol{y}_{r}^{\top}\frac{L+L^{\top}}{2}\boldsymbol{y}_{r}\\ &-2y_{N+1}\boldsymbol{y}_{r}^{\top}\boldsymbol{b}+\boldsymbol{y}_{r}^{\top}\text{diag}(\boldsymbol{b})\boldsymbol{y}_{r}.\end{split} (34) The two terms -2y_{N+1}\boldsymbol{y}_{r}^{\top}\boldsymbol{b}+\boldsymbol{y}_{r}^{\top}\text{diag}(\boldsymbol{b})\boldsymbol{y}_{r} in the above equation that explicitly depend on \boldsymbol{b} are written as \displaystyle\begin{split}-2y_{N+1}\boldsymbol{y}_{r}^{\top}\boldsymbol{b}+\boldsymbol{y}_{r}^{\top}\text{diag}(\boldsymbol{b})\boldsymbol{y}_{r}&=\sum_{i=1}^{N}-2y_{N+1}y_{i}b_{i}+\sum_{i=1}^{N}y_{i}^{2}b_{i}\\ &=\sum_{i=1}^{N}\left(y_{i}^{2}-2y_{N+1}y_{i}\right)b_{i}\\ &=:\sum_{i=1}^{N}\beta_{i}b_{i}\end{split} (35) where \beta_{i}=y_{i}^{2}-2y_{N+1}y_{i},\ i=1,2,\ldots,N . Since these two terms in the objective function depend linearly on \boldsymbol{b} and \sum_{j}b_{j}=-c and b_{j}\leq 0,\forall j , thus one focuses all budget on the node with the maximum \beta_{i} , i.e., b_{i^{*}}=-c , b_{j}=0,\ \forall j\neq i^{*} , and i^{*}=\arg\max_{i}\beta_{i} . That concludes the proof. ∎ We remark that Proposition 1 simply predicts under generic assumptions the particular structure of b^{*} , the optimal b , namely that all the entries of b^{*} will be zero except for one, but it does not predict which one. IV.3 Proof of Proposition 3 We evaluate the algebraic connectivity using ( 2 ) and take the vector \boldsymbol{X}_{0}=[N,\ -1,\allowbreak\ -1,\allowbreak\cdots,\allowbreak-1]^{\top} such that its entries sum to 0. Evaluating the Rayleigh quotient for L_{aug} from ( 4 ) and \boldsymbol{X}_{0} yields f\leq\dfrac{\boldsymbol{X}_{0}^{\top}L_{aug}\boldsymbol{X}_{0}}{\boldsymbol{X}_{0}^{\top}\boldsymbol{X}_{0}}=-\dfrac{(N+1)^{2}c}{N^{2}+N}\leq 0. Thus f\leq 0 . ∎ IV.4 Proof of Proposition 4 Given the possibly asymmetric Laplacian L and the budget -c<0 , we solve \displaystyle\begin{split}\min_{\boldsymbol{b},\boldsymbol{x}}\quad&\boldsymbol{x}^{\top}\left(V^{\top}\dfrac{{L_{aug}^{u}}+{L_{aug}^{u}}^{\top}}{2}V\right)\boldsymbol{x}\\ \text{subject to}\quad&\boldsymbol{x}^{\top}\boldsymbol{x}=1,\\ &L_{aug}^{u}=\begin{bmatrix}L+\text{diag}(\boldsymbol{b})&-\boldsymbol{b}\\ \boldsymbol{0}^{\top}&0\end{bmatrix},\\ &b_{i}\leq 0,\quad\forall i=1,\ldots,N,\\ &\sum_{i=1}^{N}b_{i}=-c.\end{split} (36) First, we set \boldsymbol{y}:=V\boldsymbol{x} which also implies \boldsymbol{1}^{\top}\boldsymbol{y}=0 and rewrite the optimization in \boldsymbol{y} and \boldsymbol{b} : \displaystyle\begin{split}\min_{\boldsymbol{b},\boldsymbol{y}}\quad&\boldsymbol{y}^{\top}\dfrac{{L_{aug}^{u}}+{L_{aug}^{u}}^{\top}}{2}\boldsymbol{y}\\ \text{subject to}\quad&\boldsymbol{y}^{\top}\boldsymbol{y}=1,\\ &\boldsymbol{1}^{\top}\boldsymbol{y}=0,\\ &L_{aug}^{u}=\begin{bmatrix}L+\text{diag}(\boldsymbol{b})&-\boldsymbol{b}\\ \boldsymbol{0}^{\top}&0\end{bmatrix},\\ &b_{i}\leq 0,\quad\forall i=1,\ldots,N,\\ &\sum_{i=1}^{N}b_{i}=-c.\end{split} (37) In the above optimization, we set \boldsymbol{y}=:[\boldsymbol{y}_{r}^{\top},y_{N+1}]^{\top} and \boldsymbol{y}_{r}^{\top}=[y_{1},\ y_{2},\ldots,y_{N}]^{\top}\in\mathbb{R}^{N} , i.e., we separate the last entry of the vector \boldsymbol{y} from the remaining entries. We also assume y_{i}\neq y_{j},\forall i\neq j,i=2,\ldots,N,j=2,\ldots,N. The objective function is \displaystyle\begin{split}\boldsymbol{y}^{\top}\dfrac{{L_{aug}^{u}}+{L_{aug}^{u}}^{\top}}{2}\boldsymbol{y}=&-y_{N+1}\boldsymbol{y}_{r}^{\top}\boldsymbol{b}+\boldsymbol{y}_{r}^{\top}\frac{L+L^{\top}}{2}\boldsymbol{y}_{r}\\ &+\boldsymbol{y}_{r}^{\top}\text{diag}(\boldsymbol{b})\boldsymbol{y}_{r}\end{split} (38) The two terms -y_{N+1}\boldsymbol{y}_{r}^{\top}\boldsymbol{b}+\boldsymbol{y}_{r}^{\top}\text{diag}(\boldsymbol{b})\boldsymbol{y}_{r} in the above equation that explicitly depend on \boldsymbol{b} are written as \displaystyle\begin{split}-y_{N+1}\boldsymbol{y}_{r}^{\top}\boldsymbol{b}+\boldsymbol{y}_{r}^{\top}\text{diag}(\boldsymbol{b})\boldsymbol{y}_{r}&=\sum_{i=1}^{N}-y_{N+1}y_{i}b_{i}+\sum_{i=1}^{N}y_{i}^{2}b_{i}\\ &=\sum_{i=1}^{N}\left(y_{i}^{2}-y_{N+1}y_{i}\right)b_{i}\\ &=:\sum_{i=1}^{N}\beta_{i}b_{i}\end{split} (39) where \beta_{i}=y_{i}^{2}-y_{N+1}y_{i},\ i=1,2,\ldots,N . Since these two terms in the objective function depend linearly on \boldsymbol{b} and \sum_{j}b_{j}=-c and b_{j}\leq 0,\forall j , thus one focuses all budget on the node with the maximum \beta_{i} , i.e., b_{i^{*}}=-c , b_{j}=0,\ \forall j\neq i^{*} , and i^{*}=\arg\max_{i}\beta_{i} . That concludes the proof. ∎ IV.5 Proof of Proposition 5 We evaluate the algebraic connectivity using ( 2 ) and take the vector \boldsymbol{X}_{0}=[N,\ -1,\allowbreak\ -1,\allowbreak\cdots,\allowbreak-1]^{\top} such that its entries sum to 0. Evaluating the Rayleigh quotient for L_{aug} from ( 5 ) and \boldsymbol{x}_{0} yields f\leq\dfrac{\boldsymbol{X}_{0}^{\top}L_{aug}\boldsymbol{X}_{0}}{\boldsymbol{X}_{0}^{\top}\boldsymbol{X}_{0}}=-\dfrac{(N+1)c}{N^{2}+N}\leq 0. Thus f\leq 0 , and the proof is complete. ∎ IV.6 Digraphs with a Unidirectional Connection Here we use matrix perturbation theory [ 80 ] to predict the changes in the eigenvalues of a given matrix A_{0} subject to a small perturbation \epsilon A_{1} , i.e., \Lambda_{\epsilon}=\Lambda_{0}+\epsilon\Lambda_{1}+\epsilon^{2}\Lambda_{2}+\cdots where \Lambda_{\epsilon} is the estimated eigenvalues of the matrix A_{\epsilon}=A_{0}+\epsilon A_{1} , \Lambda_{0} is the exact eigenvalues of A_{0} , and \epsilon^{k}\Lambda_{k},\ \forall k\geq 1 , are the k th order approximation of changes in the eigenvalues \Lambda_{0} . In the following, we focus on the case of directed networks, i.e., for which the matrix A_{0} is asymmetric and set k=1 . Thus, \Lambda_{1}=\text{diag}(W_{0}^{*}A_{1}V_{0}) , where W_{0} and V_{0} are the matrices of the left and the right eigenvectors of A_{0} such that W_{0}^{*}V_{0}=I , and the superscript ∗ denotes conjugate transpose. The limit of small c and unidirectional connection: In this case, we set \epsilon=c and A_{0}=V^{\top}\dfrac{\tilde{L}+\tilde{L}^{\top}}{2}V,\quad A_{1}=V^{\top}\dfrac{P_{i}+P_{i}^{\top}}{2}V (40) where \displaystyle\tilde{L}=\begin{bmatrix}&&&&&&&0\\ &&&&&&&\vdots\\ &&&&&&&0\\ &&&L&&&&0\\ &&&&&&&0\\ &&&&&&&\vdots\\ &&&&&&&0\\ 0&\ldots&0&0&0&\ldots&0&0\end{bmatrix}, (41) \displaystyle P_{i}=\begin{bmatrix}0&\ldots&0&0&0&\ldots&0&0\\ \vdots&\ddots&\vdots&\vdots&\vdots&\ddots&\vdots&\vdots\\ 0&\ldots&0&0&0&\ldots&0&0\\ 0&\ldots&0&-1&0&\ldots&0&1\\ 0&\ldots&0&0&0&\ldots&0&0\\ \vdots&\ddots&\vdots&\vdots&\vdots&\ddots&\vdots&\vdots\\ 0&\ldots&0&0&0&\ldots&0&0\\ 0&\ldots&0&0&0&\ldots&0&0\end{bmatrix} (42) where P_{i} has the entry -1 on the main diagonal on the i th position. The first order matrix perturbation theory is then \displaystyle\begin{split}f_{b}&=f_{0}+c\dfrac{df}{db}\\ &=\boldsymbol{v}_{0}^{\top}A_{0}\boldsymbol{v}_{0}+c\boldsymbol{v}_{0}^{\top}A_{1}\boldsymbol{v}_{0}\\ &=\boldsymbol{v}_{0}^{\top}V^{\top}\dfrac{\tilde{L}+\tilde{L}^{\top}}{2}V\boldsymbol{v}_{0}+c\boldsymbol{v}_{0}^{\top}V^{\top}\dfrac{P_{i}+P_{i}^{\top}}{2}V\boldsymbol{v}_{0}\\ &=:\boldsymbol{y}_{0}^{\top}\dfrac{\tilde{L}+\tilde{L}^{\top}}{2}\boldsymbol{y}_{0}+c\boldsymbol{y}_{0}^{\top}\dfrac{P_{i}+P_{i}^{\top}}{2}\boldsymbol{y}_{0}\\ &=:f_{0}+c\boldsymbol{y}_{0}^{\top}\dfrac{P_{i}+P_{i}^{\top}}{2}\boldsymbol{y}_{0}\end{split} (43) where \boldsymbol{y}_{0}:=V\boldsymbol{v}_{0} and \boldsymbol{y}_{0}^{\top}\left(\frac{\tilde{L}+\tilde{L}^{\top}}{2}\right)\boldsymbol{y}_{0}=f_{0} . Note that since the graph is balanced, the Laplacian matrix L has both row and column sums equal to zero. Also, considering the block diagonal structure of the matrix \tilde{L} results in having two zero eigenvalues, one corresponding to the eigenvector with all entries equal ones and the other eigenvalue f_{0}=0 corresponding to the eigenvector \boldsymbol{y}_{0}=\frac{1}{\sqrt{N(N+1)}}[1,\ 1,\ \ldots 1,\ -N]\in\mathbb{R}^{N+1} . We are interested in the change in the zero eigenvalue corresponding to the eigenvector \boldsymbol{y}_{0} . It thus follows \displaystyle\begin{split}f_{b}&=f_{0}+c\boldsymbol{y}_{0}^{\top}\dfrac{P_{i}+P_{i}^{\top}}{2}\boldsymbol{y}_{0}=0+c(-0.1)=-0.1c.\end{split} (44) The limit of large c and unidirectional connection: Here, we set \epsilon=1 and A_{0}=cV^{\top}\frac{P_{i}+P_{i}^{\top}}{2}V=cV^{\top}P_{i}V,\quad A_{1}=V^{\top}\dfrac{\tilde{L}+\tilde{L}^{\top}}{2}V (45) where the matrices P_{i} and \tilde{L} are defined in Eq.  ( 41 ). Now, the eigenvalue of interest is the most negative nonzero eigenvalue of \frac{P_{i}+P_{i}^{\top}}{2} which is f_{0}=-\frac{\sqrt{2}+1}{2} . The corresponding eigenvector is \boldsymbol{y}_{0}^{i}=[0\ \cdots\ 0\ \ {\sqrt{2}+1}\ \ 0\ \cdots\ 0\ \ -1]^{\top} where the i th and the last entry of this eigenvectors have nonzero elements. We set \boldsymbol{y}_{0}^{i}=V\boldsymbol{v}_{0}^{i} as the effective vector for the first-order approximation of matrix perturbation theory. The first order change in the eigenvalue f_{0} is {\boldsymbol{y}_{0}^{i}}^{\top}A_{1}\boldsymbol{y}_{0}^{i}={\boldsymbol{y}_{0}^{i}}^{\top}\frac{\tilde{L}+\tilde{L}^{\top}}{2}\boldsymbol{y}_{0}^{i}=(3+2\sqrt{2})L_{ii}>0 . Therefore, the perturbed eigenvalue after pinning node i is f_{b}=f_{0}+\epsilon{\boldsymbol{y}_{0}^{i}}^{\top}A_{1}\boldsymbol{y}_{0}^{i}=-\frac{\sqrt{2}+1}{2}c+(3+2\sqrt{2})L_{ii}. (46) IV.7 Digraphs with a Bidirectional Connection The limit of small c and bidirectional connection: all the derivations are similar to the case of unidirectional connection except for the matrix P_{i}=\begin{bmatrix}0&\ldots&0&0&0&\ldots&0&0\\ \vdots&\ddots&\vdots&\vdots&\vdots&\ddots&\vdots&\vdots\\ 0&\ldots&0&0&0&\ldots&0&0\\ 0&\ldots&0&-1&0&\ldots&0&1\\ 0&\ldots&0&0&0&\ldots&0&0\\ \vdots&\ddots&\vdots&\vdots&\vdots&\ddots&\vdots&\vdots\\ 0&\ldots&0&0&0&\ldots&0&0\\ 0&\ldots&0&1&0&\ldots&0&-1\end{bmatrix}. (47) This results in \displaystyle\begin{split}f_{b}&=f_{0}+c\boldsymbol{y}_{0}^{\top}\dfrac{P_{i}+P_{i}^{\top}}{2}\boldsymbol{y}_{0}=0+c(-1.1)=-1.1c.\end{split} (48) The limit of large c and bidirectional connection: Here, we set \epsilon=1 and A_{0}=cV^{\top}\frac{P_{i}+P_{i}^{\top}}{2}V=cV^{\top}P_{i}V,\quad A_{1}=V^{\top}\dfrac{\tilde{L}+\tilde{L}^{\top}}{2}V (49) where the matrices P_{i} and \tilde{L} are defined in Eqs. ( 47 ) and ( 41 ). Now, the eigenvalue of interest is the one and only nonzero eigenvalue of V^{\top}P_{i}V which is f_{0}=-2 . Since V is a similarity transformation for N number of the eigenvalues, the matrix P_{i} has the same eigenvalue f_{0}=-2 and the corresponding eigenvector is \boldsymbol{y}_{0}^{i}=[0\ \cdots\ 0\ \ {-1/\sqrt{2}}\ \ 0\ \cdots\ 0\ \ 1/\sqrt{2}]^{\top} where the i th and the last entry of this eigenvectors have nonzero elements. We define \boldsymbol{y}_{0}^{i}:=V\boldsymbol{v}_{0}^{i} as the effective vector for the first-order approximation of matrix perturbation theory. The first order change in the eigenvalue f_{0} is {\boldsymbol{y}_{0}^{i}}^{\top}A_{1}\boldsymbol{y}_{0}^{i}={\boldsymbol{y}_{0}^{i}}^{\top}\frac{\tilde{L}+\tilde{L}^{\top}}{2}\boldsymbol{y}_{0}^{i}=L_{ii}/2>0 . Therefore, the perturbed eigenvalue after pinning node i is f_{b}=f_{0}+\epsilon{\boldsymbol{y}_{0}^{i}}^{\top}A_{1}\boldsymbol{y}_{0}^{i}=-2c+\dfrac{L_{ii}}{2}. (50) IV.8 Proof of Mean-Slope Relation We show this relation =-1/N in what follows. We emphasize that we proceed without introducing the assumption that the network is balanced. Based on first order perturbation theory, df_{i}/dc=\boldsymbol{y}_{0}^{\top}\frac{P_{i}+P_{i}^{\top}}{2}\boldsymbol{y}_{0} where \boldsymbol{y}_{0}=V\boldsymbol{v}_{0} where \boldsymbol{v}_{0} is eigenvector corresponding to the smallest eigenvalue of the matrix V^{\top}\frac{\tilde{L}+\tilde{L}^{\top}}{2}V and the matrices P_{i} and \tilde{L} are defined in Eq. ( 41 ). Note that \boldsymbol{y}_{0} is in the range of the matrix V , resulting in the zero-sum of the entries of the vector \boldsymbol{y}_{0} . It follows \displaystyle\begin{split}\left<\frac{df}{dc}\right>=\dfrac{1}{N}\sum_{i=1}^{N}\frac{df_{i}}{dc}&=\dfrac{1}{N}\boldsymbol{y}_{0}^{\top}\left(\sum_{i=1}^{N}\dfrac{P_{i}+P_{i}^{\top}}{2}\right)\boldsymbol{y}_{0}\\ &=:\dfrac{1}{N}\boldsymbol{y}_{0}^{\top}\left(\bar{P}\right)\boldsymbol{y}_{0},\end{split} (51) where the matrix \bar{P} has the following form \bar{P}=\sum_{i=1}^{N}\dfrac{P_{i}+P_{i}^{\top}}{2}=\begin{bmatrix}-1&&&&\frac{1}{2}\\ &-1&&&\frac{1}{2}\\ &&\ddots&&\vdots\\ &&&-1&\frac{1}{2}\\ \frac{1}{2}&\frac{1}{2}&\ldots&\frac{1}{2}&0\end{bmatrix}. (52) It follows that the matrix \bar{P} has N-1 eigenvalues which are equal to -1 and the corresponding eigenvectors have their sum of the entries equal to zero. This suggests that these eigenvectors form a basis for the vector \boldsymbol{y}_{0} and thus, the product \boldsymbol{y}_{0}^{\top}\bar{P}\boldsymbol{y}_{0}=-1 . Therefore, =-1/N . ∎ IV.9 Asymptotic Stability Analysis for the Case of Synchronization Dynamics Next we present standard derivations from [ 45 , 46 ] . A particular solution for the synchronization dynamics ( 11 ) is the synchronous solution \boldsymbol{x}_{1}(t)=\boldsymbol{x}_{2}(t)=...=\boldsymbol{x}_{N}(t)=\boldsymbol{s}(t) , where \boldsymbol{s}(t) , evolves in time based on the equation: \dot{\boldsymbol{s}}(t)=\boldsymbol{F}(\boldsymbol{s}(t)). (53) The synchronization manifold is the sets of phase space points that satisfy \boldsymbol{x}_{1}=\boldsymbol{x}_{2}=\ldots\boldsymbol{x}_{N} . We study the time evolution of infinitesimal perturbations about the synchronization manifold, \delta\boldsymbol{x}_{i}(t)\coloneq\boldsymbol{x}_{i}(t)-\boldsymbol{s}(t) . The synchronization is stable if \delta\boldsymbol{x}_{i}(t)\to 0 as t\to\infty , \forall i , which implies \boldsymbol{x}_{i}(t)\to\boldsymbol{s}(t) as t\to\infty , \forall i . To study the asymptotic stability of the perturbations \delta\boldsymbol{x}_{i}(t) , we linearize Eq. ( 11 ) about \boldsymbol{s}(t) and derive the following linearized sets of dynamical equations: \delta\dot{\boldsymbol{x}}_{i}(t)=D\boldsymbol{F}(\boldsymbol{s}(t))\delta\boldsymbol{x}_{i}(t)-\sigma\sum_{j=1}^{N}L_{ij}D\boldsymbol{H}(\boldsymbol{s}(t))\delta\boldsymbol{x}_{j}(t), (54) i=1,\ldots,N , where D\boldsymbol{F}(\boldsymbol{s}(t)) and D\boldsymbol{H}(\boldsymbol{s}(t)) are the Jacobians of \boldsymbol{F} and \boldsymbol{H} evaluated at \boldsymbol{s}(t) , respectively. A compact form of the above equations can be obtained by first concatenating the perturbation vectors as \delta\boldsymbol{X}(t)\coloneq\left[\delta\boldsymbol{x}_{1}(t)^{\top},\ldots,\delta\boldsymbol{x}_{N}(t)^{\top}\right]^{\top}\in\mathbb{R}^{mN} , and then writing: \delta\dot{\boldsymbol{X}}(t)=\Bigg(I_{N}\otimes D\boldsymbol{F}(s)-\sigma L\otimes D\boldsymbol{H}(s)\Bigg)\delta\boldsymbol{X}(t), (55) where \otimes denotes the Kronecker product. We call V the matrix having for columns the eigenvectors of L and \Lambda the associated diagonal matrix, having the eigenvalues of L on the main diagonal. Equation ( 55 ) can be decoupled through the eigen-decomposition of the Laplacian matrix L by applying the similarity transformation T=V\otimes I_{m}\in\mathbb{R}^{mN\times mN} as \delta\dot{\boldsymbol{Z}}(t)=\Bigg(I_{N}\otimes D\boldsymbol{F}(s)-\sigma\Lambda\otimes D\boldsymbol{H}(s)\Bigg)\delta\boldsymbol{Z}(t), (56) where \delta\boldsymbol{Z}(t)=T^{-1}\delta\boldsymbol{X}(t)\in\mathbb{R}^{mN} . By setting [\delta\boldsymbol{z}_{1}(t)^{\top},\ldots,\delta\boldsymbol{z}_{N}(t)^{\top}]^{\top}\coloneq\delta\boldsymbol{Z}(t) , with \delta\boldsymbol{z}_{i}(t)\in\mathbb{R}^{m},\forall i , we can write the decomposed equation of transformed perturbations as \delta\dot{\boldsymbol{z}}_{i}(t)=\Bigg(D\boldsymbol{F}(\boldsymbol{s}(t))-\sigma\lambda_{i}D\boldsymbol{H}(\boldsymbol{s}(t))\Bigg)\delta\boldsymbol{z}_{i}(t), (57) i=1,\ldots,N . By construction, one eigenvalue \lambda_{1}=0 , which is associated to stability of the dynamics on the synchronization manifold. As such it is excluded from the analysis that follows, that focus on the stability of the dynamics transverse to this manifold. The synchronization is stable if \delta\dot{\boldsymbol{z}}_{i}(t)\to 0 as t\to 0 , \forall i . From Eq. ( 57 ) we see that the stability of the synchronization is dependent on the Jacobians D\boldsymbol{F}(\boldsymbol{s}(t)) and D\boldsymbol{H}(\boldsymbol{s}(t)) , and the scalar \sigma\lambda_{i} . We introduce the parameter K=\sigma\lambda_{i} and determine the stability of \dot{\boldsymbol{y}}(t)=\Bigg(D\boldsymbol{F}(\boldsymbol{s}(t))-KD\boldsymbol{H}(\boldsymbol{s}(t))\Bigg)\boldsymbol{y}(t), (58) where \boldsymbol{y}(t)\in\mathbb{R}^{m} is a generic vector representing perturbations. The stability is assessed through the evaluation of the Maximum Lyapunov Exponent (MLE), \text{MLE}=\lim_{t\to\infty}\dfrac{1}{t}\log\dfrac{\|\boldsymbol{y}(t)\|}{\|\boldsymbol{y}(0)\|}. (59) If the MLE is negative (positive), the above system is stable (unstable). Now, assume the set of parameters \mathcal{K} for which the system ( 58 ) is stable (MLE <0 ). If \sigma\lambda_{i}\in\mathcal{K} , i=2,...,N , then the synchronization dynamics ( 11 ) is stable and \boldsymbol{x}_{i}(t)\to\boldsymbol{s}(t) when t\to\infty . The master stability function (MSF) maps the parameter K to the maximum Lyapunov exponent (MLE) of Eq. ( 58 ). In the following, we present MSF plots for real values of K for three well-known oscillators, the Lorenz, Rössler, and Chua systems, and for several choices of the output function \mathbf{H}(\mathbf{x}) . For all combinations of \mathbf{F}(\mathbf{x}) and \mathbf{H}(\mathbf{x}) considered in this study, the MSF is positive for negative values of K . Under the assumption that this property holds in general, it follows that a sufficient condition for the synchronous state to become unstable is that at least one of the eigenvalues of the Laplacian matrix L has negative real part. Lorenz MSF plots The state vector, the local dynamics, and the coupling function for the Lorenz system are \displaystyle\boldsymbol{x}=\begin{bmatrix}x\\ y\\ z\end{bmatrix},\quad\boldsymbol{F}(\boldsymbol{x})=\begin{bmatrix}10(y-x)\\ x(28-z)-y\\ xy-\frac{8}{3}z\end{bmatrix},\quad\boldsymbol{H}(\boldsymbol{x})=H\boldsymbol{x}, (60) where the matrix H is the linear coupling matrix. We provide 9 MSF plots for the Lorenz system, where for each plot, a different entry of H is equal to 1, and all others are zero. It follows that the Jacobian D\boldsymbol{H}(\boldsymbol{s})=H . The Jacobian of the local dynamics is \boldsymbol{s}=\begin{bmatrix}x_{s}\\ y_{s}\\ z_{s}\end{bmatrix},\quad D\boldsymbol{F}(\boldsymbol{s})=\begin{bmatrix}-10&10&0\\ 28-z_{s}&-1&-x_{s}\\ y_{s}&x_{s}&-\frac{8}{3}\end{bmatrix} (61) Figure 9: Master stability functions for both positive and negative values of the function argument. Master stability plots for the Lorenz system (A), Roessler system (B), and Chua System (C). Plots show the Maximum Lyapunov Exponent (MLE) as the argument K of Eq. ( 58 ) is varied. In each subfigure, panel in row i (from the top) and column j (from the left) shows the case when H_{ij}=1 , and all other entries of the matrix H are zero. Figure 9 shows that the MSF is positive in all different coupling setups for the negative range of the MSF argument K . Thus, it shows that the synchronization is locally unstable for negative ranges of the parameter K . Rössler MSF plots The state vector, the local dynamics, and the coupling function for the Rossler system are \displaystyle\boldsymbol{x}=\begin{bmatrix}x\\ y\\ z\end{bmatrix},\quad\boldsymbol{F}(\boldsymbol{x})=\begin{bmatrix}-y-z\\ x+0.1y\\ 0.1+(x-35)z\end{bmatrix},\quad\boldsymbol{H}(\boldsymbol{x})=H\boldsymbol{x}, (62) where the matrix H is the linear coupling matrix. We provide 9 MSF plots for the Rossler system, where for each plot, a different entry of H is equal to 1, and all others are zero. It follows that the Jacobian D\boldsymbol{H}(\boldsymbol{s})=H . The Jacobian of the local dynamics is \boldsymbol{s}=\begin{bmatrix}x_{s}\\ y_{s}\\ z_{s}\end{bmatrix},\quad D\boldsymbol{F}(\boldsymbol{s})=\begin{bmatrix}0&-1&-1\\ 1&0.1&0\\ z_{s}&0&x_{s}-35\end{bmatrix} (63) Figure shows that the MSF is positive in all different coupling setups for the negative range of the MSF argument K . Thus, it shows that the synchronization is locally unstable for negative ranges of the parameter K . Chua’s circuit MSF plots The state vector, the local dynamics, and the coupling function for the Chua’s circuit system are \displaystyle\boldsymbol{x}=\begin{bmatrix}x\\ y\\ z\end{bmatrix},\quad\boldsymbol{F}(\boldsymbol{x})=\begin{bmatrix}10(y-x+g(x))\\ x-y+z\\ -17.85y]\end{bmatrix},\quad\boldsymbol{H}(\boldsymbol{x})=H\boldsymbol{x}, (64) where the matrix H is the linear coupling matrix, and the function g(x)=\begin{cases}-bx-a+b,&\quad x>1,\\ -ax,&\quad|x|<1,\\ -bx+a-b,&\quad x<-1,\end{cases},\quad\begin{cases}a=-1.2,\\ b=-0.7.\end{cases} (65) We provide 9 MSF plots for the Chua’s circuit system, where for each plot, a different entry of H is equal to 1, and all others are zero. It follows that the Jacobian D\boldsymbol{H}(\boldsymbol{s})=H . The Jacobian of the local dynamics is \boldsymbol{s}=\begin{bmatrix}x_{s}\\ y_{s}\\ z_{s}\end{bmatrix},\quad D\boldsymbol{F}(\boldsymbol{s})=\begin{bmatrix}-10-10d(x_{s})&10&0\\ 1&-1&1\\ 0&-17.85&0\end{bmatrix} (66) where d(x_{s})=b when |x_{s}|>1 , and d(x_{s})=a , otherwise. Figure shows that the MSF is positive in all different coupling setups for the negative range of the MSF argument K . Thus, it shows that the synchronization is locally unstable for negative ranges of the parameter K . IV.10 Asymptotic Stability Analysis for the Case of Power Grid Dynamics We linearize Eq. ( 14 ) about the synchronous operating state \theta_{i}^{*}=\omega_{s}t+\theta_{i}^{0} , \displaystyle\delta\ddot{\vartheta}_{i}(t) \displaystyle=-{\gamma}{\delta\dot{\vartheta}}_{i}(t)-\sum_{j=1,j\neq i}^{N}A_{ij}\cos(\theta_{i}^{0}-\theta_{j}^{0})(\delta\vartheta_{i}-\delta\vartheta_{j}) (67) \displaystyle=-{\gamma}{\delta\dot{\vartheta}}_{i}(t)-\sum_{j=1,j\neq i}^{N}A^{\prime}_{ij}(\delta\vartheta_{i}-\delta\vartheta_{j}) \displaystyle=-{\gamma}{\delta\dot{\vartheta}}_{i}(t)-\sum_{j=1}^{N}L^{\prime}_{ij}\delta\vartheta_{j} i=1,...,N , where \gamma>0 , A=[A_{ij}] is the original adjacency matrix, i.e., A_{ij}=A_{ji}=1 ( 0 ) if there is (is not) a transmission line between between nodes i and j , A^{\prime}=[A^{\prime}_{ij}] is the weighted adjacency matrix, with entries A^{\prime}_{ij}=A_{ij}\cos(\theta_{i}^{0}-\theta_{j}^{0}) , and L^{\prime}=[L^{\prime}_{ij}] is the associated Laplacian matrix, with entries L^{\prime}_{ij}=(\delta_{ij}\sum_{j}A^{\prime}_{ij}-A^{\prime}_{ij}) . We proceed under the assumption that, prior to the intervention of the intruder, the differences \theta_{i}^{0}-\theta_{j}^{0} are small, so that A^{\prime}_{ij}>0 iff A_{ij}=1 , for which the Laplacian matrix L^{\prime} is proper. By diagonalizing the Laplacian matrix L^{\prime} , the last line of Eq. ( 67 ) can be transformed into the following independent equations, \ddot{y}_{k}(t)=-{\gamma}{\dot{y}}_{k}(t)-\lambda^{\prime}_{k}y_{k}(t), (68) k=1,..,N , where \lambda^{\prime}_{k} , k=1,..,N , are the eigenvalues of the matrix L^{\prime} . By construction there is one eigenvalue \lambda^{\prime}_{k}=0 , which corresponds to marginal stability of the synchronous operating state \theta_{i}^{*}=\omega_{s}t+\theta_{i}^{0} . Transverse stability is determined by the remaining eigenvalues of L^{\prime} , as we explain below. In the case that \lambda^{\prime}_{k} is real, Eq. ( 68 ) is: (i) stable for \lambda^{\prime}_{k}>0 , (ii) unstable for \lambda^{\prime}_{k}<0 , and (iii) marginally stable for \lambda^{\prime}_{k}=0 . A more interesting case is for a complex eigenvalue of the Laplacian \lambda^{\prime}_{k}=\alpha+j\beta , for which the characteristic equation is, r^{2}+\gamma r+(\alpha+j\beta)=0, (69) where here r is a complex number and we recall that \gamma is real and positive. The largest real part root of Eq. ( 69 ) is -\frac{\gamma}{2}+\frac{1}{2}\sqrt{\frac{|D|+\gamma^{2}-4\alpha}{2}}, (70) where the modulus of the complex discriminant |D|=\sqrt{(\gamma^{2}-4\alpha)^{2}+16\beta^{2}} . Eq. ( 70 ) is negative if \beta^{2}<\gamma^{2}\alpha. (71) For stability of the synchronous operating state, criterion ( 71 ) needs to be satisfied for all the eigenvalues \lambda^{\prime}_{k}=\alpha+j\beta of L^{\prime} (with the exception of the one zero eigenvalue.) It is easy to see that ( 71 ) is never satisfied for \alpha<0 . We thus conclude that a sufficient condition for the synchronous operating state to be unstable is that at least one of the eigenvalues of the the matrix L^{\prime} has negative real part (however, instability is also possible when all the eigenvalues of L^{\prime} have negative or zero real part.) IV.11 Asymptotic Stability Analysis for the Case of Formation Control Dynamics In the case of Eq. ( 15 ), the dynamics is linear and stability depends uniquely on the spectrum of the matrix F(L) . In the case considered in this paper that F(L)=I_{N}-\exp(-3L) , each eigenvalues of the matrix F(L) is equal to \mu_{k}=1-\exp(-3\lambda_{k}) , where \lambda_{k} is an eigenvalue of L , k=1,..,N . It follows that the transformation that maps \lambda_{k} into \mu_{k} preserves the origin and the sign of the real part of the eigenvalues. Specifically, \lambda_{k}=0\iff\mu_{k}=0, (72) and \operatorname{sgn}\!\left(\Re(\mu_{k})\right)=\operatorname{sgn}\!\left(\Re(\lambda_{k})\right),\qquad k=1,\ldots,N, (73) where with \operatorname{sgn}\!(x) we indicate the sign of x . We conclude that if the Laplacian matrix L is (is not) proper, the formation control state is stable (unstable.) IV.12 Asymptotic Stability Analysis for the Case of the Kuramoto Dynamics We fix the adjacency matrix A and linearize Eq. ( 14 ) about the phase locked state \theta_{i}^{*}=\omega_{s}t+\theta_{i}^{0} , \displaystyle\delta\dot{\vartheta}_{i}(t) \displaystyle=-\dfrac{1}{N+1}\sum_{j=1,j\neq i}^{N+1}A_{ij}\cos(\theta_{i}^{0}-\theta_{j}^{0})(\delta\vartheta_{i}-\delta\vartheta_{j}) (74) \displaystyle=-\dfrac{1}{N+1}\sum_{j=1,j\neq i}^{N+1}A^{\prime}_{ij}(\delta\vartheta_{i}-\delta\vartheta_{j}) \displaystyle=-\dfrac{1}{N+1}\sum_{j=1,j\neq i}^{N+1}L^{\prime}_{ij}\delta\vartheta_{j} i=1,...,N , where A=[A_{ij}] is the fixed adjacency matrix defined in Eq. ( 17 ) either before or after the attack, A^{\prime}=[A^{\prime}_{ij}] is the weighted adjacency matrix, with entries A^{\prime}_{ij}=A_{ij}\cos(\theta_{i}^{0}-\theta_{j}^{0}) , and L^{\prime}=[L^{\prime}_{ij}] is the associated Laplacian matrix, with entries L^{\prime}_{ij}=(\delta_{ij}\sum_{j}A^{\prime}_{ij}-A^{\prime}_{ij}) . We proceed under the assumption that, prior to the intervention of the intruder, the differences \theta_{i}^{0}-\theta_{j}^{0} are small, so that A^{\prime}_{ij}>0 iff A_{ij}=1 , for which the Laplacian matrix L^{\prime} is proper. By diagonalizing the Laplacian matrix L^{\prime} , the last line of Eq. ( 74 ) can be transformed as follows, \dot{y}_{k}=-\lambda^{\prime}_{k}y_{k}, (75) k=1,..,N , where \lambda^{\prime}_{k} , k=1,..,N , are the eigenvalues of the matrix L^{\prime} . Equation ( 75 ) is stable if the real part of \lambda_{k}^{\prime} is positive, unstable if it is negative, and marginally stable if \lambda_{k}^{\prime}=0 . By construction there is one eigenvalue \lambda^{\prime}_{k}=0 , which corresponds to marginal stability of the phase locked state \theta_{i}^{*}=\omega_{s}t+\theta_{i}^{0} . Transverse stability is achieved if all the other eigenvalues of L^{\prime} have positive real part. We conclude that a sufficient condition for the phase-locked state to become unstable is that at least one of the eigenvalues of the the matrix L^{\prime} has negative real part. V Reproducibility Code Description The MATLAB code used to generate Fig. 5 B performs the following steps. First, the adjacency matrix A is loaded, and the graph Laplacian matrix L is constructed. For each selected target node i , an attack vector \boldsymbol{b} is defined with b_{i}=-c and all other entries equal to zero, with c=1 as the budget for the attack. The unidirectional augmented Laplacian after the attack is then constructed as in Eq. ( 5 ). The simulation uses the original Laplacian before the attack time t_{s}=4s and switches to the augmented Laplacian for t\geq t_{s} . A network of coupled Lorenz oscillators is then simulated using MATLAB’s ODE solver. The norm of the transverse perturbations \|\delta\boldsymbol{X}(t)\| is evaluated as in Eq. ( 13 ). Finally, the code plots \|\delta\boldsymbol{X}(t)\| in time for different attacked nodes, and saves a figure similar to Fig. 5 B. Data availability All data generated or analyzed during this study are included in this published article (and its supplementary information files). Code availability The MATLAB code used in this study is openly available as a reproducible compute capsule on Code Ocean at https://codeocean.com/capsule/0183273/tree/v1 under an MIT license.