scieee AI-readable full text Open interactive document viewer

A zonotopic set-invariance analysis of replay attacks affecting the supervisory layer

Trapiello Fernández, Carlos,Puig Cayuela, Vicenç,Rotondo, Damiano

Abstract

This paper presents a zonotopic set-invariance analysis of replay attacks affecting the communication network that serves the supervisory layer of complex control systems using an observer-based detection scheme. Depending on the attacker’s access to the system’s resources, two scenarios are considered: (I) Sensors and controller data are counterfeited; (II) Only sensor measurements are counterfeited. The effect of a physical attack against the plant during the data replay is also taken into consideration. The representation of invariant sets as zonotopes allows to derive analytical expressions for attack detectability under the presence of bounded uncertainties. The validity of the analysis is demonstrated through simulations using a quadruple-tank process.

Full text

A zonotopic set-invariance analysis of replay attacks affecting the supervisory layer Carlos Trapielloa,b,∗, Vicen¸c Puiga,b, Damiano Rotondoc aAdvanced Control Systems Group, Automatic Control Department, Universitat Polit`ecnica de Catalunya (UPC), Rambla Sant Nebridi 10, Terrassa 08222, Spain bInstitut de Rob`otica i Inform`atica Industrial, CSIC-UPC, Llorens i Artigas 4-6, Barcelona 08028, Spain cDepartment of Electrical and Computer Engineering (IDE), University of Stavanger (UiS), Kristine Bonnevies vei 22, 4021 Stavanger, Norway Abstract This paper presents a zonotopic set-invariance analysis of replay attacks affecting the communication network that serves the supervisory layer of complex control systems using an observer-based detection scheme. Depending on the attacker’s access to the system’s resources, two scenarios are considered: I) Sensors and controller data are counterfeited; II) Only sensor measurements are counterfeited. The effect of a physical attack against the plant during the data replay is also taken into consideration. The representation of invariant sets as zonotopes allows to derive analytical expressions for attack detectability under the presence of bounded uncertainties. The validity of the analysis is demonstrated through simulations using a quadruple-tank process. Keywords: Invariant sets, replay attack, zonotopes, attack detection. 1. Introduction The migration from traditional point-to-point control schemes to widely interconnected systems, in conjunction with an increasing number of registered attacks [1], has awakened the interest on the study of cyber attacks on5 control systems. Consequently, the so-called secure control has found increasing interest since the end of the last century. In this regard, works like [2, 3] propose a general framework for the analysis of security on networked control systems, while other works like [4] have modelled the effect10 of cyber attacks compromising measurement and actuator data integrity on the physical dynamics of a system. One of the main threats to control systems are stealthy attacks, i.e., attacks in which the attacker aims at remaining undetected by anomalies detectors [5]. In order to15 achieve undetectability, the attacker must be able to feed data that is consistent with the nominal system operation to the monitoring system. Among the different stealthy attacks reported in the literature, there are: false data injection attacks [6], zero dynamics attacks [7], covert at-20 tacks [8] and replay attacks [9]. This paper focuses on the latter type of attacks. The vast majority of works related to replay attacks takes into consideration that the control loop is closed remotely by means of a communications network which25 is prone to cyber attacks. Accordingly, the standard replay attack formulation considers that the control loop has been affected either by deceiving the system controller ∗Corresponding author Email address: [email protected] (Carlos Trapiello) with previously recorded measurements [9, 10, 11, 12], or by replaying back previous control actions directly to the30 system [13, 14]. Nevertheless, in many industrial control systems the low-level controller (regulatory layer) makes use of dedicated networks which are hard to access while, on the other hand, it is common that the supervisory layer, in charge of the system monitoring and set-point reference35 generation, operates remotely. This difference has been taken into account, for example, in the study of cyberattacks affecting the load frequency control of power systems [15]. In this line, this paper is devised from the supervisor’s point of view, analysing different replay attack40 scenarios that arise when the system operation is assessed using a state estimator located at the supervisory layer. Moreover, a high percentage of security-related works (not only concerning attacks but also faults) makes use of assumptions about the statistical properties of the uncer-45 tainties. A different approach is the use of set-theoretic methods, which are built upon norm-bounded uncertainty assumptions. These techniques have proven useful in faultrelated secure control, as they allow to construct sets for the system in healthy and faulty operations, so that it50 becomes possible to infer deterministically whether a system is working under nominal or faulty conditions [16]. In this regard, ellipsoidal sets have been employed in [17] to propose different security metrics, and design secure controllers, against stealthy attacks affecting the control55 loop. On the other hand, set-based attack detectors have been used in [18] to detect bias injection attacks in a networked power plant, and in [19, 20] combined altogether with set-theoretic controllers in an attack resilient control scheme. However, these latter detectors do not rely on an60 Preprint submitted to Elsevier April 20, 2021 observer, and thus are subject to some limiting assumptions concerning the knowledge of the initial state of the system. Within the set-theoretic techniques, positive set invariance [21] is a common analysis tool for systems af-65 fected by bounded disturbances. By computing the healthy/attacked residual invariant sets, it can be established that whenever the residual vector exits the healthy set, attack detection is achieved. Note that the inherent steady-state conditions of replay attacks suit perfectly70 with set invariant tools. Among the possible set representations, zonotopes will be employed in this paper due to their flexibility and the capability to separate the center (nominal) evolution from the uncertainty evolution in the generators representation [22].75 The motivation of the paper is characterizing the detectability of the replay attacks in a guaranteed manner using set-invariance analysis when an observer-based detection scheme is used. Therefore, system’s vulnerabilities are analysed for the case in which a malicious attacker80 compromises the communication between the regulatory and supervisory layers of a control system, while the lowlevel controller at the regulatory layer remains unaffected. The following scenarios are considered: I) the attacker is able to record and replay sensors and controller data, caus-85 ing the supervisory layer to operate based on false data; II) the attacker is able to replay sensors data to the supervisory layer while the low-level control actions are received unaffected. This scenario models the case where the supervisory layer operates based on a set of sensors installed90 for system monitoring and that may differ from the sensors used for control. For both scenarios, a positive invariance approach is developed for analysing attack detectability with respect to the set-point reference signal injected from the supervisory layer and an external attack conducted95 over the plant, where the invariant sets are represented as zonotopes. Conditions to guarantee attack detectability are derived under the assumption that the disturbances are bounded. The article is structured as follows: Section 2 introduces100 some preliminary developments regarding the zonotopic representation of invariant sets, as well as the different phases that constitute the attack. Section 3 is devoted to the description of the system in healthy operation, while the assumptions on the system operation during the record105 phase are detailed in Section 4. Section 5 presents the analysis of the detectability of the attack during the replay phase. An illustrative example is presented in Section 6. Finally, Section 7 presents concluding remarks. 2. Preliminaries110 2.1. Zonotopes and basic set operations Zonotopes are centrally symmetric convex polytopes that can be described as Minkowski sums of line segments [23]. In the generator representation, a zonotope Zis described by its center c∈Rnand generators115 g1, ..., gm∈Rnas Z={c+Hξ :ξ∈Rm,||ξ||∞≤1} where H≡[g1, ..., gm] indicates the generators matrix and the ratio m/n is the order of the zonotope. For simplicity, zonotopes will be denoted by Z=hc, Hi. Let the sets Z,W ⊂ Rn, the matrix P∈Rk×n, and define PZ ≡ {Pz :z∈ Z},(1a) Z ⊕ W ≡ {z+w:z∈ Z, w ∈ W}.(1b) Zonotopes are closed under previous set operations, i.e., when Z=hcz, Hziand W=hcw, Hwiare zonotopes, linear mappings (1a) and Minkowski sums (1b) are also zonotopes which can be computed as PZ=hPcz, PHzi,(2a) Z ⊕ W =hcz+cw,HzHwi.(2b) 2.2. Invariant sets120 Let us define a discrete-time linear time-invariant (LTI) system x+=Ax +Bδ, (3) where x∈Rnis the system state, x+∈Rnits successor and δ∈Rnδis a disturbance constrained to the compact zonotopic set ∆ = hc∆, H∆i ⊂ Rnδ. Besides, A∈Rn×n, B ∈Rn×nδare constant matrices with Aan asymptotically stable matrix (all the eigenvalues of Aare125 strictly inside the unit disk). Definition 1 (Robust positive invariance).The set Ω ⊂ Rnis said to be robustly positively invariant (RPI) for the system (3) and disturbance set ∆, if Ax +Bδ ∈Ω for all x∈Ω and all δ∈∆. Equivalently, Ω is RPI if and only if130 AΩ⊕B∆⊆Ω. Definition 2 (Minimal RPI).The minimal RPI (mRPI) set of (3) is the RPI set in Rnthat is contained in every closed RPI set of (3) and disturbance set ∆. For LTI asymptotically stable systems like (3), the135 mRPI set exists and is unique and compact [24, Sec. IV]. In addition, such mRPI set is the limit set of all trajectories of the system. Henceforth, a zonotopic -approximation of the mRPI set will be computed by means of Algorithm 1 detailed in Appendix A. When referring to Algorithm 1,140 the center and the generators matrix recursion will be provided. For a detailed analysis on set invariance the reader is referred to comprehensive studies [24, 25]. 2.3. Attack time windows145 In the attack under study, it is assumed that at a first stage a malicious attacker secretly records the data transmitted from the regulatory layer to the supervisory layer. Then, the recorded data are replayed back to the supervisory layer with the intention of masking a physical at-150 tack conducted over the plant. Consequently, the following time windows are defined: 2 1. Record window: transmitted data are assumed to be recorded for Krec ={k∈N:k∈[k0, k0+l−1]}, where l∈Ndenotes the size of the record window.155 2. Replay window: real data are replaced for Krep = {k∈N:k∈[k1+ (n−1)l, k1+nl −1],∀n∈ {1, ..., nr}}, where nr∈N+accounts for the total number of repetitions of the recorded sequence. 3. Physical attack window: a physical attack against160 the plant is launched for Kphy ={k∈N:k∈ [k2, k3]} ⊆ Krep, i.e., k2≥k1and k3≤k1+nrl−1. Whenever one of the above temporal sets is mentioned, it is assumed implicitly that the index klies within it. 3. System under healthy operation165 Let us consider the following system xk+1 =Axk+Buk+Ewwk, yk=Cxk+Evvk,(4) where xk∈Rnxis the state vector, uk∈Rnuis the applied control action and yk∈Rnycorresponds to the sensor measurements at time instant k. Furthermore, wk∈Rnw and vk∈Rnvrepresent the process disturbances and measurement noise, respectively. Henceforth, the index k+ 1170 will be replaced by the superscript + and kwill be omitted for the sake of simplified notations. Assumption 1. The pair (A, B) is asymptotically stabilizable and the pair (A, C) is asymptotically detectable. Assumption 2. Uncertainties are bounded by w∈ W =hcw, Hwi, v ∈ V =hcv, Hvi,(5) with Hw∈Rnw×mw, Hv∈Rnv×mvknown generator ma-175 trices and cw∈Rnw,cv∈Rnvknown zonotope centers. The control objective is to regulate the plant tracking error defined at each sample as z=x−xref , where xref ∈ Rnxis the reference signal governed by x+ ref =Axref +Buref ,(6) and uref ∈Rnuis the reference signal generated at the supervisory layer, which is sent to the low-level controller (regulatory layer) in charge of regulating the plant’s tracking error (see Figure 1). For a desired output set-point180 yref =Cxref , the corresponding uref signal can be obtained by means of classical model inversion-based feedforward schemes [26]. 3.1. Regulatory layer In order to satisfy the control objective, the low-level185 controller is assumed to perform an estimate-feedback control action based on the estimates provided by its own setbased observer [27, 28, 29], and that differs from the one used in the supervisory layer. In this regard, the difference between the system’s state and the state estimate gener-190 ated by the low-level estimator ˆxc∈Rnx, is denoted as η=x−ˆxc. Controller Monitoring station a set-point I/O Data Regulatory layer Plant Planner Supervisory layer Communication layer State-estimator Figure 1: Overall scheme. Solid (dotted) lines represent local (remote) connections. Assumption 3. The controller estimation error ηlies within the zonotopic set η∈ H =hcη, Hηi,(7) with generators matrix Hη∈Rnx×mηand center cη∈Rnx. Hence, the control law is given by u= ¯u+uref ,(8) where ¯udenotes the estimate-feedback action computed by the low-level controller ¯u=−K(ˆxc−xref ) = −Kz −Kη. (9) Accordingly, under control law (8), the tracking error dynamics is governed by the equation z+=x+−x+ ref = (A−BK)z−BKη +Eww, (10) with Kdesigned such that A−BK is asymptotically stable. Therefore, Eq. (10) represents an asymptotically sta-195 ble dynamical system subject to bounded disturbances. 3.2. Supervisory layer In the supervisory layer, an anomalies detector monitors the plant operation. For this purpose, a generic Luenberger observer is considered as follows ˆx+= (A−LC)ˆx+Bu +Ly, (11) where ˆx∈Rnxrepresents the state estimation vector. Let us denote the estimation error as e=x−ˆx. Then, from (4) and (11), we obtain e+=x+−ˆx+= (A−LC)e+Eww−LEvv, (12) with Ldesigned such that A−LC is asymptotically stable. Consequently, Eq. (12) represents an asymptotically stable200 dynamical system subject to bounded disturbances. Assumption 4. The system is in stationary operation such that k≥k∗, with k∗∈N+a finite sample by which the trajectories of (10) and (12) have converged into their respective mRPI sets.205 3 In the sequel, an RPI zonotopic over-approximation of the mRPI set for system (12) will be denoted as E= hce, Hei, and may be computed through Algorithm 1 in the Appendix, obtaining ce= Λ−1(Ewcw−LEvcv),(13a) He,j+1 =(A−LC)He,j EwHw−LEvHv,(13b) with Λ = I−(A−LC) and (13b) representing the required generators matrix recursion. 3.3. Anomalies detector The presence of anomalies is monitored based on the values adopted by the following residual vector r=y−Cˆx=C(x−ˆx) + Evv=Ce +Evv. (14) Therefore, the healthy residual zonotopic set is given by RH=CE ⊕ EvV=hch r, Hh ri,(15) using the set operations (2), it follows ch r=CΛ−1(Ewcw−LEvcv) + Evcv,(16a) Hh r=CHeEvHv.(16b) Hence, the following can be established (r∈ RH=⇒Healthy system, otherwise =⇒Something is wrong. 4. Record phase Two different attack scenarios are considered:210  Scenario I: the attacker has gained access to the input/output data sent by the low-level controller to the monitoring center. Thus, the recorded data sets are Y ≡ {yk:k∈ Krec}and U ≡ {¯uk:k∈ Krec}.  Scenario II: the attacker is able to access only the215 output sensors data, such that the recorded data set is Y ≡ {yk:k∈ Krec}. Note that this scenario models also the case where the monitoring center operates based on a set of input/output sensors installed for monitoring the plant operation and the attacker has220 gained access to the output sensors only. These sensors may differ from the ones used by the controller to close the low-level control loop. Let us denote with the superscripts rand athe state of the system variables during the record and replay phases,225 respectively. As an example, for the state variable it follows: xr k=xk∀k∈Krec, while xa k=xk∀k∈Krep. 4.1. Regulatory layer The control signal that is being injected during the record phase ur= ¯ur+ur ref , encompasses the low-level control action ¯ur=−Kzr−Kηr,(17) with ηr∈ H, plus the fixed-set point reference signal ur ref . Therefore, the tracking error dynamics is zr+=xr+−xr+ ref = (A−BK)zr−BKηr+Ewwr.(18) 4.2. Supervisory layer230 The estimator dynamics during the record phase is ˆxr+= (A−LC)ˆxr+Bur+Lyr,(19) starting at the initial state ˆxr k0= ˆxk0. Accordingly, the associated residual vector during the replay phase is rr=yr−Cˆxr=C(xr−ˆxr) + Evvr,(20) which, by means of Assumption 4, satisfies rr∈ RH∀k∈ Krec.(21) 5. Attack phase During the attack phase, the attacker replays back previous measurements aiming to make a physical attack conducted over the plant undetectable (cf. Section 2.3). Assumption 5. The attacker knows the model of the235 system and is capable of compromising the state variables independently by means of an attack signal a(k)∈Rnx (e.g. liquid theft from different tanks of a distribution network). Assumption 5 is in line with the attack modelling performed in other works like [3]. According to the time windows defined in Section 2.3, the attack vector satisfies a(k)(6= 0 if k∈ Kphy, = 0 otherwise.(22) Following the previously presented notation, for all k∈ Krep we have xa+=Axa+Bua+Ewwa+a, (23) starting at the initial state xa k1=xk1. Moreover, process240 disturbances/noise satisfy wa∈ W, va∈ V. Remark 1.The analysis performed below is also applicable to the case in which ais injected through the input matrix, i.e. substituting ain (23) with B¯a(with ¯a∈Rnu). This case would describe cyber-attacks that modify the245 set-point signals sent from the supervisory to regulatory layer. 5.1. Regulatory layer In the considered attacks, the malicious attacker is unable to access the dedicated network of the low-level con-250 troller, so the control loop remains healthy. The injected signal during the replay phase is ua= ¯ua+ ua ref , with ¯ua=−Kza−Kηa,(24) 4 where ηa∈ H. Besides, ua ref denotes the reference signal that is being sent from the supervisory layer during the replay phase. Note that the controller capability to regulate the tracking error is affected by the presence of a za+=xa+−xa+ ref = (A−BK)za+Ewwa−BKηa+a, (25) that is, since the controller remains healthy it will react to255 the physical attack a. 5.2. Scenario I The first scenario considers that the recorded data sets Yand Uare replayed back. Hence, from the supervisory layer point of view, the received signals are ya=yrand ¯ua= ¯ur∀k∈ Krep. Accordingly, the residual vector during the replay phase is ra=yr−Cˆxa= (yr−Cˆxr)+(Cˆxr−Cˆxa) = rr+C(ˆxr−ˆxa), (26) with the state estimator evolving according to ˆxa+= (A−LC)ˆxa+B¯ur+Bua ref +Lyr.(27) Let us denote by ¯x= ˆxr−ˆxathe difference in the estimation between record and replay phases. Thus, comparing (19) and (27), we obtain ¯x+= ˆxr+−ˆxa+= (A−LC)¯x+B∆uref ,(28) where ∆uref =ur ref −ua ref represents the difference in the reference signal between the record and replay phases for a fixed ur ref . Since (28) is not affected by uncertainties, by260 denoting c¯x= ¯xthe evolution of (28) can be rewritten in zonotopic form as ¯ X=hc¯x,0i. Hence, taking into consideration (21), from (26) the computation of the residual set under attack is RA=RH⊕C¯ X=hch r, Hh ri⊕hCc¯x,0i=hch r+δcr, Hh ri, (29) with δcr=ca r−ch r=Cc¯xdenoting the center difference. Definition 3. Guaranteed attack detection is achieved if and only if RH∩ RA=∅at some k∈ Krep.265 5.2.1. Steady-state analysis The main advantage of the zonotopic invariant set analysis is that it allows to derive analytic expressions regarding the separability of the residual sets in order to enforce detectability. Accordingly, below it is considered that the270 reference signal imposed from the supervisory layer ua ref is constant, and thus, ∆uref =const. since ur ref is fixed. Related to the set separation condition introduced in Definition 3, the zonotopic interpretation (see [30]) of Lemma 2.1 in [31], is formulated as275 Lemma 1. Let Z=haz+bz, Hziand Y=hay+by, Hyi. Then, Z ∩ Y =∅if and only if ay−az/∈ hbz, Hzi ⊕ h−by, Hyi. Accordingly, the following proposition regarding the output set-point imposed from the supervisory layer can280 be obtained. Proposition 1. Guaranteed attack detection is achieved in the steady-state if the output set-point difference between record and replay phases ∆yref =yr ref −ya ref fulfills ∆yref /∈ h0, M−1Hh rHh ri,(30) with M= (I−CΛ−1L). Proof. From ∆uref = const., and taking into consideration the asymptotically stable system (28) and that δcr=Cc¯x, the displacement of the residual set center settles at δcr=ca r−ch r=CΛ−1B∆uref .(31) By denoting as ya ref the fixed set-point generated by ya ref =C(I−A)−1Bua ref . Then, from the linearity of the reference model (6), it follows ∆yref =C(I−A)−1B∆uref .(32) Besides, by taking into consideration the equality Λ−1= (I−A)−1−Λ−1LC(I−A)−1,(33) then, using (32) and (33), (31) can be rewritten as δcr=C((I−A)−1−Λ−1LC(I−A)−1)B∆uref = = (I−CΛ−1L)∆yref =M∆yref .(34) Therefore, by considering RH=hch r, Hh riand RA= hch r+δcr, Hh ri, from Lemma 1 it follows that RH∩RA=∅ if and only if (30) is satisfied.285 Note that the vector δcris independent of the physical attack a, and thus its presence is masked to the supervisory layer. Besides, for δcr= 0, the attack is completely undetectable in the steady-state since for this case RH=RA=h0, Hri.290 Remark 2.Based on the performed analysis, watermarking signals can be further developed by designing input sequences that take into account the transient behaviour of δcrin order to enforce the guaranteed detection condition in Definition 3, while minimizing the performance loss295 induced in the system operation. 5.3. Scenario II For the second scenario, the received sensors data at the supervisory layer are ya=yr, while the controller inputs are received unaltered. Thus, the residual vector is ra=yr−Cˆxa=C(xr−ˆxa) + Evvr.(35) Denoting ˜x=xr−ˆxa, its dynamics evolves according to ˜x+=xr+−ˆxa+= (A−LC)˜x+B∆uref + +B(¯ur−¯ua) + Ewwr−LEvvr.(36) Note that the evolution of (36) depends also on the dynamics of systems (18) and (25) through the control action ¯urand ¯ua, respectively. Let us gather the evolution of those systems in q=˜xTzrT zaT T, such that q+= Θq+ Πd+ Σ∆uref + Φa, (37) 5 where vector d=wrT waT vrT ηrT ηaT Tencompasses the different disturbances. The augmented system matrices are300 Θ =   A−LC −BK BK 0A−BK 0 0 0 A−BK ,Σ =   B 0 0 , Π =   Ew0−LEv−BK BK Ew0 0 −BK 0 0Ew0 0 −BK ,Φ =   0 0 I . 5.3.1. Steady-state analysis An analysis similar to the one performed in Section 5.2 will be carried out. In this regard, let us consider ua ref to be constant during the replay phase, i.e. ∆uref = const., and let us consider the following assumption.305 Assumption 6. The physical attack ais performed abruptly and is kept constant over the attack set Kphy. Consequently, at steady-state, a zonotopic overapproximation Q=hcq, Hqiof the mRPI set for system (37) may be computed through Algorithm 1, obtaining cq=I−Θ−1(Πcd+ Σ∆uref + Φa), Hq,j+1 =ΘHq,j Πdiag(Hw, Hw, Hv, Hη, Hη),(38) where cd=cT wcT wcT vcT ηcT ηTand I−Θ−1=  Λ−1−Λ−1BKΓ−1Λ−1BKΓ−1 0 Γ−10 0 0 Γ−1 , with Γ = I−(A−BK). Proposition 2. Guaranteed attack detection is achieved in the steady-state if the output set-point difference ∆yref and attack vectors asatisfy M∆yref +CΛ−1BKΓ−1a /∈ h0,Hh rHa ri,(39) with Ha r= [CP HqEvHv] and P=I0 0. Proof. Given an attack vector athat satisfies Assumption 6 and ∆uref , by defining the projection matrix P= I0 0, the trajectories of (36) will converge into the zonotopic set ˜ X=PQ=hc˜x, H˜xi=hP cq, PHqi, with c˜x= Λ−1Ewcw−(BEu+LEv)cv+B∆uref +BKΓ−1a. (40) Hence, from (35), and taking into account (2), the residuals under attack will settle in the set RA=C˜ X ⊕EvV=hca r, Ha ri=hCc˜x+Evcv,[CH˜xEvHv]i. (41) Accordingly, by recalling that ch r=CΛ−1(Ewcw− LEvcv) + Evcv, the center of the residual set under attack can be rewritten as a function of the healthy center as ca r=ch r+δcr, where δcr=CΛ−1(BKΓ−1a+B∆uref ).(42) Therefore, adapting the steps given in proof of Proposi-310 tion 1, it follows that RH∩ RA=∅if and only if (39) is satisfied. Concerning this attack scenario, the following discussion may be given regarding the attack detectability. Residual set size: Note that for the attack case, the315 generators matrix contains additional terms with respect to the ones included in the healthy case. This is a direct consequence of the fact that the cause-effect relationship between the injected control signal and the obtained measurements during the attack is lost, i.e., the healthy control320 signal ¯uaand the replayed output yrtake independent values during the attack. The bigger size of RAwith respect to RHhas two consequences: I) it is possible to detect the attack even without forcing the center displacement; II) the bigger size of the attacked set requires a bigger center325 displacement in order to fulfill condition (39). Center displacement: Note that the attack vector a appears explicitly in the detectability condition (39). If the output set-point is maintained constant between phases ∆yref = 0, the effect of the injected vector ais particularly330 critical along the directions that belong to the null space of the matrix CΛ−1BKΓ−1, i.e., a∈ N(CΛ−1BKΓ−1), since these attacks would not cause a displacement of δcr. In other words, a malicious attacker could carry out an unbounded attack afor which there are no detectability335 guarantees from the defender’s point of view. Regarding the existence of N(CΛ−1BKΓ−1), the following proposition can be derived. Proposition 3. The dimension dof N(CΛ−1BKΓ−1) is lower bounded by d=nx−rank(CΛ−1BKΓ−1)≥nx−340 min{rank(C), rank(BK)}. Proof. The proof is based on well-known matrix rank properties. Let us denote X=CΛ−1, Y =BKΓ−1such that N(CΛ−1BKΓ−1) = N(XY ). The following holds rank(XY )≤min{rank(X), rank(Y)}, rank(X) = rank(C), rank(Y) = rank(BK). Therefore, it follows that rank(XY )≤min{rank(C), rank(BK)}. Finally, by considering that the dimension of N(XY ) is d=nx−rank(XY ), the proof is completed. Note that, given a null space N(CΛ−1BKΓ−1) of dimension d, a malicious attacker could introduce an attack345 a∈ N(CΛ−1BKΓ−1) with nx−d+ 1 components different that zero, i.e. the attacker needs to have access only to nx−d+1 states to carry out this attack. Besides, the lower bound on ddoes not depend on the supervisory observer gain L. Consequently, this motivates to modify ∆yref in350 order to detect these possible unbounded attacks. Remark 3.Note that, since the analysis developed considers the steady-state operation of the system, the obtained 6 expressions are independent of the record/replay starting times.355 6. Case Study The considered case study is a quadruple-tank process [32], regulated using a low-level state estimated-feedback controller and supervised by means of a state estimator. False data are replayed to the anomalies detector.360 Regarding the quadruple-tank system, vectors h= [h1, h2, h3, h4]T,u= [v1, v2]Tand y= [y1, y2]Tdenote the tank levels, process inputs (voltages to the pumps) and outputs (voltages in level measurements), respectively. The system model is linearised at the minimum-phase365 point (h∗, u∗), for the system parameters presented in [32]. By performing an Euler discretization with sampling time Ts= 1s, and considering the disturbance/noise input matrices Ew= 10−3diag(5,3,1,5), Ev= 10−3diag(4,1), a discrete-time model is obtained as ∆h+=A∆h+B∆u+Eww, y=C∆h+Evv, where ∆h=h−h∗, ∆u=u−u∗. Process disturbances and sensor noise, which take random values at each sample time within the sets w∈ h0, Iiand v∈ h0, Iiare included in the simulations.370 An LQR controller is designed with state and input weight matrices Q= 100Iand R=I. Besides, the error for the state estimate used by the controller is constrained to η∈ h0,10−3Ii. The observer in charge of the plant monitoring is also375 computed in an optimal way following the dual LQR design with Q= 100I R =I. Setting = 10−4, a guaranteed -approximation for the estimation error is obtained for l≥182 (see Appendix A). By performing an interval over-approximation of the healthy residual zonotope380 RH, the following bounds are obtained: |r1| ≤ 0.0117 and |r2| ≤ 0.0059. 6.1. Scenario I The considered attack windows are: Krec = [100,300] and Krep = [400,1000]. Besides, an attack vector a=385 [1,1,1,1]Tis injected during Kphy =Krep. Note that the replayed data encompass the repetition of nr= 3 times the recorded data set. The set-point differences ∆yref = [δy1, δy2]Tobtained by computing an interval overapproximation of the zono-390 tope in condition (30) are: |δy1| ≤ 1.984, |δy2| ≤ 1.435. This means that by imposing a set-point difference in any of the outputs bigger than the computed limits |δy1|and |δy2|, it can be guaranteed that the residual vector will exit the healthy residual set in the steady-state.395 In this regard, Figs. 2 and 3 show the system residuals and the imposed set-point for the attack described above. The dashed red lines in Fig. 2 show the computed limits of the healthy residual set. Note that during the time interval before the set-point modification (yellow background),400 Figure 2: Residuals at the supervisory layer - Scenario I Figure 3: Set-point imposed from the supervisory layer the attack remains completely undetectable despite the injection of vector a. Besides, it can be seen how the imposed set-point difference ∆yref = [1.99,1.44]Tpresented in Fig. 3, enforces the system residuals to exit the healthy residual set at steady-state.405 6.2. Scenario II The considered attack windows in the simulation of Scenario II are: Krec = [100,300] and Krep = [400,1000]. For the system under study, N(CΛ−1BKΓ−1) has a dimension d= 2. Thus, the system is attacked following the direc-410 tion a=−0.018 −0.002 0.017 0T∈ N(CΛ−1BKΓ−1) for the time interval Kphy = [500,1000] (note that the fourth state in vector ais set to zero). Fig. 4 shows the effect that the injection of the attack a has on the system outputs. The real outputs (in blue) are415 compared to the replayed outputs (green). The attack ais introduced incipiently in the interval [500,750] and later maintained constant. Consequently, Fig. 5 plots the residual signals generated in the supervisory layer. Since the injection of the attack a∈ N (CΛ−1BKΓ−1) does not dis-420 place the attack residual center, attack detectability cannot be guaranteed unless a temporal mismatch is forced in the reference signal generated at the supervisory layer. 7. Conclusions This work used zonotopic sets to develop a set-425 invariance analysis on the detectability of replay attacks against the supervisory layer using an observer-based detection scheme. In spite of its inherent conservativeness, 7 Figure 4: System outputs during the different attack phases Figure 5: Residuals at the supervisory layer - Scenario II invariant analysis is an interesting tool in the attack analysis, as it allows to derive analytical expressions regarding430 attack detectability. Attack detectability when an attacker is replaying directly false data has been analysed. It was shown how even in the case where the attacker is able to replay only sensor measurements, no guarantees regarding attack detectability can be given unless a temporal435 mismatch between record and replay phases is forced by means of a signal sent from the supervisory layer. The performed analysis serves as a basis for the future design of efficient watermarking signals that guarantee the attack detection during the transient, while minimizing the per-440 formance degradation induced to the system. References [1] H. S. S´anchez, D. Rotondo, T. Escobet, V. Puig, J. Quevedo, Bibliographical review on cyber attacks from a control oriented perspective, Annual Reviews in Control 48 (2019) 103–128.445 [2] A. Teixeira, I. Shames, H. Sandberg, K. H. Johansson, A secure control framework for resource-limited adversaries, Automatica 51 (2015) 135–148. [3] F. Pasqualetti, F. D¨orfler, F. Bullo, Attack detection and identification in cyber-physical systems, IEEE transactions on au-450 tomatic control 58 (11) (2013) 2715–2729. [4] A. A. C´ardenas, S. Amin, S. Sastry, Research challenges for the security of control systems., in: HotSec, 2008. [5] N. Hashemi, C. Murguia, J. Ruths, A comparison of stealthy sensor attacks on control systems, in: Annual American Control455 Conference (ACC), IEEE, 2018, pp. 973–979. [6] Y. Liu, P. Ning, M. K. Reiter, False data injection attacks against state estimation in electric power grids, ACM Transactions on Information and System Security (TISSEC) 14 (1) (2011) 13.460 [7] A. Teixeira, I. Shames, H. Sandberg, K. H. Johansson, Revealing stealthy attacks in control systems, in: 50th Annual Allerton Conference on Communication, Control, and Computing (Allerton), IEEE, 2012, pp. 1806–1813. [8] R. S. Smith, A decoupled feedback structure for covertly appro-465 priating networked control systems, IFAC Proceedings Volumes 44 (1) (2011) 90–95. [9] Y. Mo, B. Sinopoli, Secure control against replay attacks, in: 47th annual Allerton conference on communication, control, and computing (Allerton), IEEE, 2009, pp. 911–918.470 [10] F. Miao, M. Pajic, G. J. Pappas, Stochastic game approach for replay attack detection, in: 52nd IEEE conference on decision and control, IEEE, 2013, pp. 1854–1859. [11] R. M. Ferrari, A. M. Teixeira, Detection and isolation of replay attacks through sensor watermarking, IFAC-PapersOnLine475 50 (1) (2017) 7363–7368. [12] C. Fang, Y. Qi, P. Cheng, W. X. Zheng, Optimal periodic watermarking schedule for replay attack detection in cyber–physical systems, Automatica 112 (2020) 108698. [13] M. Zhu, S. Martinez, On the performance analysis of resilient480 networked control systems under replay attacks, IEEE Transactions on Automatic Control 59 (3) (2013) 804–808. [14] M. Zhu, S. Mart´ınez, On distributed constrained formation control in operator–vehicle adversarial networks, Automatica 49 (12) (2013) 3571–3582.485 [15] A. M. Mohan, N. Meskin, H. Mehrjerdi, A comprehensive review of the cyber-attacks and cyber-security on load frequency control of power systems, Energies 13 (15) (2020) 3860. [16] F. Stoican, Fault tolerant control based on set-theoretic methods., Ph.D. thesis, Sup´elec (2011).490 [17] C. Murguia, I. Shames, J. Ruths, D. Neˇsi´c, Security metrics and synthesis of secure control systems, Automatica 115 (2020) 108757. [18] E. Kontouras, T. Anthony, L. Dritsas, Set-theoretic detection of data corruption attacks on cyber physical power systems, Jour-495 nal of Modern Power Systems and Clean Energy 6 (5) (2018) 872–886. [19] W. Lucia, B. Sinopoli, G. Franze, A set-theoretic approach for secure and resilient control of cyber-physical systems subject to false data injection attacks, in: 2016 Science of Security for500 Cyber-Physical Systems Workshop (SOSCYPS), IEEE, 2016, pp. 1–5. [20] G. Franz`e, F. Tedesco, W. Lucia, Resilient control for cyberphysical systems subject to replay attacks, IEEE Control Systems Letters 3 (4) (2019) 984–989.505 [21] F. Blanchini, S. Miani, Set-theoretic methods in control, Springer, 2008. [22] V. T. H. Le, C. Stoica, T. Alamo, E. F. Camacho, D. Dumur, Zonotopes: From guaranteed state-estimation to control, John Wiley & Sons, 2013.510 [23] W. K¨uhn, Rigorously computed orbits of dynamical systems without the wrapping effect, Computing 61 (1) (1998) 47–67. [24] I. Kolmanovsky, E. G. Gilbert, Theory and computation of disturbance invariant sets for discrete-time linear systems, Mathematical problems in engineering 4 (1998).515 [25] F. Blanchini, Set invariance in control, Automatica 35 (11) (1999) 1747–1767. [26] G. F. Franklin, J. D. Powell, A. Emami-Naeini, J. D. Powell, Feedback control of dynamic systems, Vol. 4, Prentice hall Upper Saddle River, 2002.520 [27] C. Combastel, Zonotopes and Kalman observers: Gain optimality under distinct uncertainty paradigms and robust convergence, Automatica 55 (2015) 265–273. [28] T. Alamo, J. M. Bravo, E. F. Camacho, Guaranteed state estimation by zonotopes, Automatica 41 (6) (2005) 1035–1043.525 [29] Z. Wang, C.-C. Lim, Y. Shen, Interval observer design for uncertain discrete-time linear systems, Systems & Control Letters 116 (2018) 41–46. [30] J. K. Scott, R. Findeisen, R. D. Braatz, D. M. Raimondo, Input design for guaranteed fault diagnosis using zonotopes, Automat-530 ica 50 (6) (2014) 1580–1589. [31] D. Dobkin, J. Hershberger, D. Kirkpatrick, S. Suri, Computing the intersection-depth of polyhedra, Algorithmica 9 (6) (1993) 8 518–533. [32] K. H. Johansson, The quadruple-tank process: A multivariable535 laboratory process with an adjustable zero, IEEE Transactions on control systems technology 8 (3) (2000) 456–465. [33] S. Olaru, J. A. De Don´a, M. M. Seron, F. Stoican, Positive invariant sets for fault tolerant multisensor control schemes, International Journal of Control 83 (12) (2010) 2622–2640.540 [34] S. V. Rakovic, E. C. Kerrigan, K. I. Kouramas, D. Q. Mayne, Invariant approximations of the minimal robust positively invariant set, IEEE Transactions on Automatic Control 50 (3) (2005) 406–410. [35] J. M. B. Caro, Control predictivo no lineal robusto basado545 en t´ecnicas intervalares, Ph.D. thesis, Universidad de Sevilla (2004). [36] M. Althoff, O. Stursberg, M. Buss, Computing reachable sets of hybrid systems using a combination of zonotopes and polytopes, Nonlinear analysis: hybrid systems 4 (2) (2010) 233–249.550 Appendix A. Zonotopic -approximation of the mRPI set Below, the computation of a zonotopic -approximation of the mRPI set for the disturbed system (3) is discussed. This computation follows the iterative procedure used in555 [33] where, starting from an initial RPI, its reachable set is computed recursively, thus obtaining at each iteration a tighter RPI outer-approximation of the mRPI. Initial RPI set Let us consider system (3) and the zero centered disturbance δ∈¯ ∆ = h0, H∆i. From Theorem 1 in [34], it follows that for a given scalar α∈[0,1) there exists a finite s∈N+ that satisfies AsB¯ ∆⊆αB ¯ ∆.(A.1) Besides, if (A.1) is satisfied, then the zonotope h0, H0i with H0= (1 −α)−1[BH∆ABH∆... As−1BH∆],(A.2) is an RPI set for (3). Note that the evaluation of (A.1) can560 be formulated as a convex problem as proposed in [35]. For the specific case where matrix Ain (3) has real eigenvalues, a zonotopic RPI can be obtained directly by making use of the ultimate bound analytic formula reported below.565 Theorem 1 (see [33]).Consider (3) and let A=VΛV−1 be the Jordan decomposition of A. Then the set {x∈Rn:|V−1x| ≤ (I− |Λ|)−1|V−1B|¯ δ+θ},(A.3) is an RPI and it is attractive for the trajectories of (3), with θany (arbitrarily small) vector with positive elements and vector ¯ δwith elements ¯ δi=||H∆i||1. For the case in which Ahas real eigenvalues, the similarity transformation matrix is such that V∈Rn×n, and570 thus (A.3) is the half-space representation of a paralletope, which is known to be a first order zonotope. The relationship between a zero centered paralletope like (A.3) and its generators representation h0, H0iis formulated in [36]. Forward propagation and stopping criterion575 Proposition 4 (see [33]).Consider (3) and denote as Φ0 an RPI initial set for (3). Each of the set iterations: Φj+1 =AΦj⊕B∆, where j∈Ndenotes the jth element of the sequence, is an RPI approximation of the mRPI set. Moreover, as jtends to infinity, the set sequence converges to the mRPI set. By means of the previous recursion, a certified outer -approximation of the mRPI set Ωmcan be obtained.580 Theorem 2 (see Theorem 3.5 in [33]).For all  > 0 there exists an l∈N+such that the following RPI outer - approximation exists: Ωm⊂Φl⊂Ωm⊕Bn p(), where Bn p() = {x∈Rn:||x||p≤}and ||x||pis the p-norm. From Appendix A of [33], by choosing an lsuch that AlΦ0⊂Bn ∞(/2),(A.4) it is guaranteed that Ωm⊂Φl⊂Ωm⊕Bn ∞(). Therefore, given an  > 0, the following holds ||AlΦ0||∞≤ ||Al||∞||Φ0||∞< /2→AlΦ0⊂Bn ∞(/2). (A.5) By eigendecomposing Aas A=TΨT−1, the spectral radius of matrix Acan be expressed as ρ(A) = ||Ψ||∞. Thus, ||Al||∞can be bounded as ||Al||∞=||TΨsT−1||∞≤ ||T||∞||T−1||∞ρ(A)l.(A.6) By replacing (A.6) in (A.5), and by computing φ=||Φ0||∞ and κ=||T||∞||T−1||∞, an -approximation to the mRPI set is guaranteed by choosing l > log(/2) −log(κφ) log(ρ(A)) , l ∈N+.(A.7) Algorithm 1 summarizes the procedure for obtaining a zonotopic -approximation of the mRPI for the system (3). Algorithm 1 Zonotopic -approximation of the mRPI set Input: Pair (A, B), parameter  > 0 and zonotopic representation of the disturbance set ∆ = hc∆, H∆i. Output: Zonotopic RPI approximation Xof the mRPI. 1: Compute H0either using (A.2) or by means of (A.3) 2: Compute the spectral radius ρ(A), κand φ=||H0||∞ 3: Compute the minimum l∈N+such that l > log(/2) −log(κφ)/logρ(A) 4: For j= 0 to j=l−1 propagate Hj+1 = [AHjBH∆] 5: Compute the RPI set X=hcx,0i⊕h0, Hliwith: cx= (I−A)−1Bc∆ 9