Dynamic defense method and system for hostile attacks in direct-current micro-grid system
By adopting dynamic defense methods in DC microgrid systems to detect and resist FDIA and DoS attacks, the problem of system vulnerability is solved, and the effect of improving system stability and anti-attack is achieved.
Patent Information
- Application Number
- CN202411967590.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2044-12-30
AI Technical Summary
DC microgrid systems are susceptible to FDIA and DoS attacks, resulting in unstable deviations in the shared voltage and current ratios, affecting the stability of the system.
Dynamic defense methods are adopted to collect historical data, establish the equivalent relationship between input and output, generate residual terms and optimize their sensitivity to detect and resist FDIA attacks; during DoS attacks, the current value is estimated by weighted average, and the weight factor is optimized to ensure that the controller obtains accurate current estimates.
Effectively defend against FDIA and DoS attacks, improve the stability and resistance of the DC microgrid, reduce computing burden, improve computing efficiency, and ensure the safe and efficient operation of the system.
Smart Images

Figure CN119814439A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of direct current microgrid system security, and in particular relates to a dynamic defense method and system for malicious attacks in a direct current microgrid system. Background Art
[0002] DC microgrid is a modern cyber-physical system that is highly dependent on advanced information and communication technologies for control and communication. However, the reliance on communication technologies increases the risk of cyber attacks.
[0003] FDIA is mainly used to inject false data into DC microgrids, resulting in unstable deviations in voltage and current proportional sharing. Attackers usually target the link between sensors and controllers, as this area is usually a vulnerable point with weak defenses. On the other hand, DoS attacks interfere with the transmission of information, hindering the timely exchange of critical data between microgrid neighbors or sensors. This interference may prevent the controller from making appropriate adjustments based on the corresponding information, which may have a significant impact on the stability of the DC microgrid. DoS attacks usually occur on the communication lines between neighbors and may cause cascading failures of the DC microgrid cluster.
[0004] Therefore, it is urgent to solve the above problems. Summary of the invention
[0005] Purpose of the invention: The purpose of the present invention is to provide a dynamic defense method for malicious attacks in a DC microgrid system. The present invention can simultaneously detect and defend against FDIA and DoS attacks, reduce the computational burden, improve the computational efficiency of the DC microgrid, and ensure the security of the DC microgrid.
[0006] A second objective of the present invention is to provide a dynamic defense system against malicious attacks in a DC microgrid system.
[0007] Technical solution: To achieve the above objectives, the present invention discloses a dynamic defense method for malicious attacks in a DC microgrid system, comprising the following steps:
[0008] (1) Collect input data and output data in the DC microgrid system to form a historical data set. The input data includes voltage, current data and disturbance items, and the output data is the control command.
[0009] (2) The attacker invades the communication network of the DC microgrid and launches FDIA and DoS attacks;
[0010] (3) Establish the equivalent relationship between the input and output of the DC microgrid in the historical data set, generate the residual term based on the equivalent relationship between the output and the input, and improve the sensitivity of the residual term to the attack vector through optimization to ensure that the detected attack is not affected by the disturbance term; when the FDIA attack is detected, calculate the mitigation vector to offset the false data vector; finally, adopt the dynamic security data deletion strategy to eliminate excessive historical data;
[0011] (4) Collect historical current data, assign weight factors to the current in each sampling period, form a weighted average to estimate the current value blocked by the DoS attack, and optimize the weight factors to estimate the current value.
[0012] Optionally, the false data vector injected by FDIA in step (2) is expressed as:
[0013] V FDI (k)=V(k)+F(k)
[0014] Among them, V FDI (k) is the voltage at the kth sampling moment including the false vector, V(k) is the actual voltage value, and F(k) is the false data vector of FDIA.
[0015] Optionally, the DoS attack set in step (2) is defined as:
[0016]
[0017] Among them, Φ1 represents the sampling time of DoS attack; Φ2 represents the normal sampling time, Φ=Φ1∪Φ2 represents all sampling times of microgrid; k d1 ,k d2 ,…,k dn is the discrete attack time, k n1 ,k n2 ,...,k nn are discrete non-attack moments.
[0018] Optionally, the upper bound of the false data vector of FDIA in step (2) is The duration of the DoS attack is less than the sampling time of the DC microgrid, denoted as T D <T, the number of DoS attacks meets the condition: |n(k)|≤α+T D / τ D , where |n(k)| represents the number of DoS attacks within the sampling time, α≥0, τ D >0 is a constant.
[0019] Optionally, the step (3) specifically includes the following steps:
[0020] Based on the equivalent relationship between the input and output of the DC microgrid system at m sampling moments in the historical data, FDIA can be detected and defended.
[0021] The equivalent relationship of the DC microgrid system in the past m steps can be written in the form of a vector matrix, expressed as:
[0022] Y(m)=Nx(0)+PU(m)+RD(m)+SX FDI (m)
[0023] Among them, Y(m) is the output of the past m sampling moments, U(m), D(m), X FDI (m) is the control input, noise input and false vector input at the past m sampling moments, x(0) is the state of the microgrid at the 0th sampling moment, N, P, R, S is the coefficient matrix of the microgrid;
[0024] The residual used to detect FDIA is defined as:
[0025] r(m)=r T (Y(m)-HU(m))
[0026] r(m)=r T (Nx(0)+(PH)U(m)+RD(m)+SX FDI (m))
[0027] r(m)=r T (VQ(m)+SX FDI (m))
[0028] Where r is the residual matrix; H is the Jacobian matrix of the DC microgrid, V = [N, (PH), R], Q (m) = [x (0), U (m), D (m)]; in order to make the residual term only sensitive to the attack vector, the residual matrix should be designed to be insensitive to noise or interference in the DC microgrid, so the optimization problem is expressed as:
[0029] min|r T VQ(m)|
[0030] Among them, there are two constraints in the optimization problem, expressed as:
[0031] L-δL≤L i ≤L+δL
[0032] C-δC≤C i ≤C+δC
[0033] Wherein, L and C are the nominal values of the inductance and capacitance of the DC buck converter, respectively, δ is the percentage deviation, and the deviation value δ is set to ±5%;
[0034] Based on the residual term r in the absence of attack T VQ(m) establishes the residual threshold, first collecting the past N groups of residual terms r r = {r r1 ,r r2 ,...,r rN}, the residual threshold is calculated by the average value and deviation term of the historical state, expressed as:
[0035]
[0036] σ r is the standard deviation of the residual terms of the past N groups, ζ σ is the adjustment parameter of the confidence interval;
[0037] When the residual value exceeds the threshold value r set by the DC microgrid A At t, the mitigation vector is calculated to offset the false data vector. The mitigation vector is expressed as:
[0038] Z(m)=S -1 (Nx(0)+PU(m)+RD(m)-Y(m))
[0039] Among them, Z(m)=[z(0),z(1),z(2),...,z(m)] T is the mitigation vector. By injecting the mitigation vector into the DC microgrid, the output state y i (k) is expressed as:
[0040] y i (k) = C i x i (k)+C ai [x FDIi (k)+z i (k)]
[0041] C i is the measurement matrix of the DC microgrid system, x i (k) is the state vector of the DC microgrid system at the kth moment, C ai is the measurement matrix of the DC microgrid system under attack, x FDIi (k) is the state vector of the DC microgrid system at the kth moment under attack, z i (k) is the relief vector of the DC microgrid system at the kth moment;
[0042] By setting the upper limit d of the residual test data capacity, if m>d, the residual items that have not exceeded the residual threshold in the past m steps will be defined as safe data, and the safe data will not be used for the calculation of the residual test; define the safe data set s=[1,2,...,s], and the residual r(c) after removing the safe data is expressed as:
[0043] r(c)=r T [VQ(c)+SX FDI (c)],c≤d
[0044] where r T is the transposed matrix of the residual matrix, Q(c) is Q(m) after removing the security data, X FDI (c) is the false vector input after removing the security data.
[0045] Optionally, the step (4) specifically includes the following steps:
[0046] Assuming that the DC microgrid suffers a DoS attack at the kth step, first select the current history data of the past km sampling cycles, then assign weights to the current of each cycle to form a weighted average estimated current;
[0047] The estimated current of the i-th DC microgrid in the k-th sampling period is expressed as:
[0048]
[0049] Where ω is the weight factor, satisfying ω k-m +ω k-m+1 +...+ω k-1 =1;
[0050] Based on the estimated current value, the estimated current proportional deviation is expressed as:
[0051]
[0052] Among them, I Ci is the parameter allocated according to the rated power of the i-th DC microgrid, I Cj is the parameter allocated according to the rated power of the jth DC microgrid, is the estimated current of the i-th DC microgrid in the k-th sampling period, is the estimated current of the jth DC microgrid in the kth sampling period; a ij is the weight coefficient between microgrids; under DoS attack, the estimated control output of the i-th DC microgrid is It is expressed as:
[0053]
[0054] V i (k) is the actual control output of the ith DC microgrid, and a is the control parameter;
[0055] The weight factor is optimized to minimize the error between the estimated voltage value and the DC microgrid reference voltage value; the optimization problem is expressed as:
[0056]
[0057] in, is the reference voltage value, and the constraint condition is 0<ω k-m ,ω k-m+1 ,...,ω k-1 <1.
[0058] Based on the same inventive concept, the present invention discloses a dynamic defense system for malicious attacks in a DC microgrid system, comprising:
[0059] A data collection unit is used to collect input data and output data in the DC microgrid system to form a historical data set, the input data includes voltage, current data and disturbance items, and the output data is a control instruction;
[0060] An attack model unit is introduced to enable attackers to invade the communication network of the DC microgrid and launch FDIA and DoS attacks;
[0061] The defense FDIA unit establishes the equivalent relationship between the input and output of the DC microgrid in the historical data set, generates the residual term based on the equivalent relationship between the output and the input, and improves the sensitivity of the residual term to the attack vector through optimization to ensure that the detected attack is not affected by the disturbance term; when an FDIA attack is detected, the mitigation vector is calculated to offset the false data vector; finally, a dynamic security data deletion strategy is adopted to eliminate excessive historical data;
[0062] The DoS attack defense unit collects historical current data, assigns weight factors to the current in each sampling period, forms a weighted average to estimate the current value blocked by the DoS attack, and optimizes the weight factors to estimate the current value.
[0063] Optionally, the false data vector injected by FDIA in the data collection unit is expressed as:
[0064] V FDI (k)=V(k)+F(k)
[0065] Among them, V FDI (k) is the voltage at the kth sampling moment containing the false vector, V(k) is the actual voltage value, and F(k) is the false data vector of FDIA;
[0066] The DoS attack set is defined as:
[0067]
[0068] Among them, Φ1 represents the sampling time of DoS attack; Φ2 represents the normal sampling time, Φ=Φ1∪Φ2 represents all sampling times of microgrid; k d1 ,k d2,...,k dn is the discrete attack time, k n1 ,k n2 ,...,k nn for discrete non-attack moments;
[0069] The upper bound of the false data vector of FDIA is The duration of the DoS attack is less than the sampling time of the DC microgrid, denoted as T D <T, the number of DoS attacks meets the condition: |n(k)|≤α+T D / τ D , where |n(k)| represents the number of DoS attacks within the sampling time, α≥0, τ D >0 is a constant.
[0070] Optionally, the FDIA defense unit detects and defends FDIA based on the equivalent relationship between the input and output of the DC microgrid system at m sampling moments in historical data,
[0071] The equivalent relationship of the DC microgrid system in the past m steps can be written in the form of a vector matrix, expressed as:
[0072] Y(m)=Nx(0)+PU(m)+RD(m)+SX FDI (m)
[0073] Among them, Y(m) is the output of the past m sampling moments, U(m), D(m), X FDI (m) is the control input, noise input and false vector input at the past m sampling moments, x(0) is the state of the microgrid at the 0th sampling moment, N, P, R, S is the coefficient matrix of the microgrid;
[0074] The residual used to detect FDIA is defined as:
[0075] r(m)=r T (Y(m)-HU(m))
[0076] r(m)=r T (Nx(0)+(PH)U(m)+RD(m)+SX FDI (m))
[0077] r(m)=r T (VQ(m)+SX FDI (m))
[0078] Where r is the residual matrix; H is the Jacobian matrix of the DC microgrid, V = [N, (PH), R], Q (m) = [x (0), U (m), D (m)]; in order to make the residual term only sensitive to the attack vector, the residual matrix should be designed to be insensitive to noise or interference in the DC microgrid, so the optimization problem is expressed as:
[0079] min|r T VQ(m)|
[0080] Among them, there are two constraints in the optimization problem, expressed as:
[0081] L-δL≤L i ≤L+δL
[0082] C-δC≤C i ≤C+δC
[0083] Wherein, L and C are the nominal values of the inductance and capacitance of the DC buck converter, respectively, δ is the percentage deviation, and the deviation value δ is set to ±5%;
[0084] Based on the residual term r in the absence of attack T VQ(m) establishes the residual threshold, first collecting the past N groups of residual terms r r = {r r1 ,r r2 ,...,r rN}, the residual threshold is calculated by the average value and deviation term of the historical state, expressed as:
[0085]
[0086] σ r is the standard deviation of the residual terms of the past N groups, ζ σ is the adjustment parameter of the confidence interval;
[0087] When the residual value exceeds the threshold value r set by the DC microgrid A At t, the mitigation vector is calculated to offset the false data vector. The mitigation vector is expressed as:
[0088] Z(m)=S -1 (Nx(0)+PU(m)+RD(m)-Y(m))
[0089] Among them, Z(m)=[z(0),z(1),z(2),...,z(m)] T is the mitigation vector. By injecting the mitigation vector into the DC microgrid, the output state y i (k) is expressed as:
[0090] y i (k) = C i x i(k)+C ai [x FDIi (k)+z i (k)]
[0091] C i is the measurement matrix of the DC microgrid system, x i (k) is the state vector of the DC microgrid system at the kth moment, C ai is the measurement matrix of the DC microgrid system under attack, x FDIi (k) is the state vector of the DC microgrid system at the kth moment under attack, z i (k) is the relief vector of the DC microgrid system at the kth moment;
[0092] By setting the upper limit d of the residual test data capacity, if m>d, the residual items that have not exceeded the residual threshold in the past m steps will be defined as safe data, and the safe data will not be used for the calculation of the residual test; define the safe data set s=[1,2,...,s], and the residual r(c) after removing the safe data is expressed as:
[0093] r(c)=r T [VQ(c)+SX FDI (c)],c≤d
[0094] where r T is the transposed matrix of the residual matrix, Q(c) is Q(m) after removing the security data, X FDI (c) is the false vector input after removing the security data.
[0095] Optionally, the DoS attack defense unit assumes that the DC microgrid suffers a DoS attack in the kth step, firstly selects the current history data of the past km sampling cycles, and then assigns a weight to the current of each cycle to form a weighted average estimated current;
[0096] The estimated current of the i-th DC microgrid in the k-th sampling period is expressed as:
[0097]
[0098] Where ω is the weight factor, satisfying ω k-m +ω k-m+1 +...+ω k-1 =1;
[0099] Based on the estimated current value, the estimated current proportional deviation is expressed as:
[0100]
[0101] Among them, I Ciis the parameter allocated according to the rated power of the i-th DC microgrid, I Cj is the parameter allocated according to the rated power of the jth DC microgrid, is the estimated current of the i-th DC microgrid in the k-th sampling period, is the estimated current of the jth DC microgrid in the kth sampling period; a ij is the weight coefficient between microgrids; under DoS attack, the estimated control output of the i-th DC microgrid is It is expressed as:
[0102]
[0103] V i (k) is the actual control output of the ith DC microgrid, and a is the control parameter;
[0104] The weight factor is optimized to minimize the error between the estimated voltage value and the DC microgrid reference voltage value; the optimization problem is expressed as:
[0105]
[0106] in, is the reference voltage value, and the constraint condition is 0<ω k-m ,ω k-m+1 ,...,ω k-1 <1.
[0107] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the present invention significantly improves the stability and anti-attack capability of the DC microgrid by effectively defending against FDIA and DoS attacks, ensuring that the system can still operate normally under malicious attacks; the present invention adopts a strategy of dynamically removing security data, which not only reduces the computational burden, but also improves the computational efficiency of the system; the weighted average estimation method ensures that the controller can still obtain accurate current estimation values in the DoS attack scenario, thereby improving control accuracy; the present invention provides higher reliability for the DC microgrid, optimizes the utilization of renewable energy, thereby bringing economic and environmental benefits, and comprehensively ensures the safe, stable and efficient operation of the microgrid. BRIEF DESCRIPTION OF THE DRAWINGS
[0108] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0109] Figure 2 It is a schematic diagram of a DC microgrid model of the present invention;
[0110] Figure 3 This is a schematic diagram of the FDI malicious attack of the present invention;
[0111] Figure 4This is a schematic diagram of a DOS malicious attack of the present invention;
[0112] Figure 5 A schematic diagram of voltage changes under the defense method of the present invention;
[0113] Figure 6 It is a schematic diagram of current changes under the defense method of the present invention. DETAILED DESCRIPTION
[0114] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0115] Embodiment 1, as Figure 1 and Figure 2 As shown, the present invention discloses a dynamic defense method for malicious attacks in a DC microgrid system, comprising the following steps:
[0116] (1) Collect input data and output data in the DC microgrid system to form a historical data set. The input data includes voltage, current data and disturbance items, and the output data is the control command.
[0117] (2) The attacker invades the communication network of the DC microgrid and launches FDIA and DoS attacks;
[0118] The false data vector injected by FDIA is expressed as:
[0119] V FDI (k)=V(k)+F(k)
[0120] Among them, V FDI (k) is the voltage at the kth sampling moment containing the false vector, V(k) is the actual voltage value, and F(k) is the false data vector of FDIA;
[0121] The control instructions of the next sampling time of the DC microgrid require the data information of the previous sampling time, which is transmitted by the sensor on the communication network. Under DoS attack, the communication channel during sampling is blocked, resulting in the inability to transmit the information collected by the sensor about the current ratio sharing. The DoS attack set is defined as:
[0122]
[0123] Among them, Φ1 represents the sampling time of DoS attack; Φ2 represents the normal sampling time, Φ=Φ1∪Φ2 represents all sampling times of microgrid; k d1 ,k d2 ,...,k dn is the discrete attack time, k n1 ,k n2 ,...,k nn for discrete non-attack moments;
[0124] Considering the limited resources of the attacker in the actual situation, the upper bound of the false data vector of FDIA is The duration of the DoS attack is less than the sampling time of the DC microgrid, denoted as T D <T, the number of DoS attacks meets the condition: |n(k)|≤α+T D / τ D , where |n(k)| represents the number of DoS attacks within the sampling time, α≥0, τ D >0 is a constant;
[0125] (3) FDIA defense: Establish the equivalent relationship between the input and output of the DC microgrid in the historical data set, generate the residual term based on the equivalent relationship between the output and the input, and improve the sensitivity of the residual term to the attack vector through optimization to ensure that the detected attack is not affected by the disturbance term; when FDIA is detected, calculate the mitigation vector to offset the false data vector and eliminate the negative impact of FDIA; finally, adopt a dynamic security data deletion strategy to eliminate excessive historical data that may burden the computing and storage capabilities of the microgrid;
[0126] Based on the equivalent relationship between the DC microgrid input and output at m sampling moments in the historical data, FDIA is detected and defended.
[0127] The equivalence relation is expressed as:
[0128] k=0:y(0)=cx(0)+cx FDI (0)
[0129] k=1:y(1)=C[Ax(0)+Bu(0)+Md(0)]+Cx FDI (1)
[0130] k=2:y(2)=C[Ax(1)+Bu(1)+Md(1)]+Cx FDI (2)
[0131] =CA 2 x(0)+CABu(0)+CAMd(0)
[0132] +CBu(1)+CMd(1)+Cx FDI (2)
[0133] …
[0134]
[0135] The equivalence relation of the system in the past m steps can be written in the form of a vector matrix, expressed as:
[0136] Y(m)=Nx(0)+PU(m)+RD(m)+SXFDI (m)
[0137] Among them, Y(m) is the output of the past m sampling moments, U(m), D(m), X FDI (m) is the control input, noise input and false vector input at the past m sampling moments, x(0) is the state of the microgrid at the 0th sampling moment, N, P, R, S is the coefficient matrix of the microgrid;
[0138] The residual used to detect FDIA can be defined as:
[0139] r(m)=r T (Y(m)-HU(m))
[0140] r(m)=r T (Nx(0)+(PH)U(m)+RD(m)+SX FDI (m))
[0141] r(m)=r T (VQ(m)+SX FDI (m))
[0142] Where r is the residual matrix; H is the Jacobian matrix of the DC microgrid, V = [N, (PH), R], Q (m) = [x (0), U (m), D (m)]; in order to make the residual term only sensitive to the attack vector, the residual matrix should be designed to be insensitive to noise or interference in the DC microgrid, so the optimization problem can be expressed as:
[0143] min|r T VQ(m)|
[0144] Among them, there are two constraints in the optimization problem, expressed as:
[0145] L-δL≤L i ≤L+δL
[0146] C-δC≤C i ≤C+δC
[0147] Where L and C are the nominal values of the inductance and capacitance of the DC buck converter, respectively, and δ is the percentage deviation. In a DC microgrid, the parameters of the LC filter in the DC buck converter may vary within a small range. Considering the impact of unknown changes on the residual term, the deviation value δ is set to ±5%. By taking different values within this parameter range, the residual matrix that minimizes the unknown disturbance is obtained to achieve the optimization goal.
[0148] In order to more accurately detect FDIA in DC microgrids, the residual term r is used in the absence of attack. T VQ(m) establishes the residual threshold; first, collect the past N groups of residual terms rr = {r r1 ,r r2 ,...,r rN}, the residual threshold can be calculated by the average value and deviation term of the historical state, expressed as:
[0149]
[0150] σ r is the standard deviation of the residual terms of the past N groups, ζ σ is the adjustment parameter of the confidence interval;
[0151] When the residual value exceeds the threshold value r set by the DC microgrid A At t, the mitigation vector is calculated to offset the false data vector. The mitigation vector is expressed as:
[0152] Z(m)=S -1 (Nx(0)+PU(m)+RD(m)-Y(m))
[0153] Among them, Z(m)=[z(0),z(1),z(2),...,z(m)] T is the mitigation vector. By injecting the mitigation vector into the DC microgrid, the output state y i (k) is expressed as:
[0154] y i (k) = C i x i (k)+C ai [x FDIi (k)+z i (k)]
[0155] C i is the measurement matrix of the DC microgrid system, x i (k) is the state vector of the DC microgrid system at the kth moment, C ai is the measurement matrix of the DC microgrid system under attack, x FDIi (k) is the state vector of the DC microgrid system at the kth moment under attack, z i (k) is the relief vector of the DC microgrid system at the kth moment;
[0156] Therefore, the negative impact of false data is eliminated, and mitigation and resistance to FDIA is achieved through residual testing and mitigation vectors;
[0157] In addition, considering the storage capacity and computational burden of the DC microgrid, a dynamic safety data deletion strategy is proposed. By setting the upper limit d of the residual test data capacity; if m>d, the residual items that have not exceeded the residual threshold in the past m steps will be defined as safety data, and the safety data will not be used for the calculation of the residual test; the dynamic data deletion method not only reduces the storage and computational burden of the DC microgrid, but also can accurately detect FDIA; define the safety data set s=[1,2,...,s], and the residual r(c) after removing the safety data is expressed as:
[0158] r(c)=r T [VQ(c)+SX FDI (c)],c≤d
[0159] r T is the transposed matrix of the residual matrix, Q(c) is Q(m) after removing the security data, X FDI (c) is the false vector input after removing the security data;
[0160] (4) Defense against DoS attacks: Collect historical current data, assign weight factors to the current in each sampling period, form a weighted average to estimate the current value blocked by the DoS attack, and optimize the weight factors to make the estimated current value more accurate.
[0161] Assume that the DC microgrid suffers a DoS attack at step k. The DoS attack mainly targets the proportional current sharing channel in the DC microgrid. The attacker consumes the resources of the target DC microgrid by sending a large number of invalid or malicious requests, resulting in the blocking of the proportional current sharing channel. Therefore, the controller cannot receive the proportional current sharing information from the local and neighboring DC microgrids.
[0162] First, the current history data of the past km sampling cycles are selected, and then a weight is assigned to the current of each cycle to form a weighted average estimated current;
[0163] The estimated current of the i-th DC microgrid in the k-th sampling period can be expressed as:
[0164]
[0165] Where ω is the weight factor, satisfying ω k-m +ω k-m+1 +...+ω k-1 =1;
[0166] Based on the estimated current value, the estimated current proportional deviation can be expressed as:
[0167]
[0168] Among them, I Ciis the parameter allocated according to the rated power of the i-th DC microgrid, I Cj is the parameter allocated according to the rated power of the jth DC microgrid, is the estimated current of the i-th DC microgrid in the k-th sampling period, is the estimated current of the jth DC microgrid in the kth sampling period; a ij is the weight coefficient between microgrids; under DoS attack, the estimated control output of the i-th DC microgrid is It can be expressed as:
[0169]
[0170] V i (k) is the actual control output of the ith DC microgrid, and a is the control parameter;
[0171] In order to make the estimated control output more accurate, the weight factor needs to be optimized to minimize the error between the estimated voltage value and the DC microgrid reference voltage value; the optimization problem can be expressed as:
[0172]
[0173] in, is the reference voltage value, and the constraint condition is 0<ω k-m ,ω k-m+1 ,...,ω k-1 <1.
[0174] In order to verify the effectiveness of the method of the present invention, a simulation experiment was carried out; Figure 2 As shown, four interconnected DC microgrids were used for testing, and the system parameters included nominal voltage (volts), buck converter resistance (ohms), rated current (amperes), line resistance (ohms), line inductance (henry), impedance load (ohms) and current load (amperes). The value of the nominal voltage (volts) was 6, the value of the buck converter resistance (ohms) was 50, the value of the line resistance (ohms) was 3, the value of the line resistance (ohms) was 0.02, the value of the line inductance (henry) was 0.02, the value of the impedance load (ohms) was 1, and the value of the current load (amperes) was 0.1.
[0175] The initiation and duration of malicious attacks in the experiment, such as Figure 3 and Figure 4 As shown in the figure, the defense effect is as follows Figure 5 and Figure 6As shown in the figure, in the presence of FDIA and DoS attacks, the method of the present invention has a good defense effect, and the voltage and current values of the DC microgrid are restored to the nominal state. In summary, the present invention can effectively defend against malicious attacks, significantly improve the stability and anti-attack ability of the DC microgrid, ensure that the system can still operate normally under malicious attacks, and be used in practical engineering applications.
[0176] Example 2
[0177] Based on the same inventive concept, the present invention discloses a dynamic defense system for malicious attacks in a DC microgrid system, comprising:
[0178] A data collection unit is used to collect input data and output data in the DC microgrid system to form a historical data set, the input data includes voltage, current data and disturbance items, and the output data is a control instruction;
[0179] An attack model unit is introduced to enable attackers to invade the communication network of the DC microgrid and launch FDIA and DoS attacks;
[0180] The false data vector injected by FDIA in the data collection unit is expressed as:
[0181] V FDI (k)=V(k)+F(k)
[0182] Among them, V FDI (k) is the voltage at the kth sampling moment containing the false vector, V(k) is the actual voltage value, and F(k) is the false data vector of FDIA;
[0183] The DoS attack set is defined as:
[0184]
[0185] Among them, Φ1 represents the sampling time of DoS attack; Φ2 represents the normal sampling time, Φ=Φ1∪Φ2 represents all sampling times of microgrid; k d1 ,k d2 ,...,k dn is the discrete attack time, k n1 ,k n2 ,...,k nn for discrete non-attack moments;
[0186] The upper bound of the false data vector of FDIA is The duration of the DoS attack is less than the sampling time of the DC microgrid, denoted as T D <T, the number of DoS attacks meets the condition: |n(k)|≤α+T D / τ D, where |n(k)| represents the number of DoS attacks within the sampling time, α≥0, τ D >0 is a constant.
[0187] The defense FDIA unit establishes the equivalent relationship between the input and output of the DC microgrid in the historical data set, generates the residual term based on the equivalent relationship between the output and the input, and improves the sensitivity of the residual term to the attack vector through optimization to ensure that the detected attack is not affected by the disturbance term; when an FDIA attack is detected, the mitigation vector is calculated to offset the false data vector; finally, a dynamic security data deletion strategy is adopted to eliminate excessive historical data;
[0188] In the FDIA defense unit, the equivalent relationship between the input and output of the DC microgrid system at m sampling moments in the historical data is used to detect and defend FDIA.
[0189] The equivalent relationship of the DC microgrid system in the past m steps can be written in the form of a vector matrix, expressed as:
[0190] Y(m)=Nx(0)+PU(m)+RD(m)+SX FDI (m)
[0191] Among them, Y(m) is the output of the past m sampling moments, U(m), D(m), X FDI (m) is the control input, noise input and false vector input at the past m sampling moments, x(0) is the state of the microgrid at the 0th sampling moment, N, P, R, S is the coefficient matrix of the microgrid;
[0192] The residual used to detect FDIA is defined as:
[0193] r(m)=r T (Y(m)-HU(m))
[0194] r(m)=r T (Nx(0)+(PH)U(m)+RD(m)+SX FDI (m))
[0195] r(m)=r T (VQ(m)+SX FDI (m))
[0196] Where r is the residual matrix; H is the Jacobian matrix of the DC microgrid, V = [N, (PH), R], Q (m) = [x (0), U (m), D (m)]; in order to make the residual term only sensitive to the attack vector, the residual matrix should be designed to be insensitive to noise or interference in the DC microgrid, so the optimization problem is expressed as:
[0197] min|r T VQ(m)
[0198] Among them, there are two constraints in the optimization problem, expressed as:
[0199] L-δL≤L i ≤L+δL
[0200] C-δC≤C i ≤C+δC
[0201] Wherein, L and C are the nominal values of the inductance and capacitance of the DC buck converter, respectively, δ is the percentage deviation, and the deviation value δ is set to ±5%;
[0202] Based on the residual term r in the absence of attack T VQ(m) establishes the residual threshold, first collecting the past N groups of residual terms r r = {r r1 ,r r2 ,...,r rN}, the residual threshold is calculated by the average value and deviation term of the historical state, expressed as:
[0203]
[0204] σ r is the standard deviation of the residual terms of the past N groups, ζ σ is the adjustment parameter of the confidence interval;
[0205] When the residual value exceeds the threshold value r set by the DC microgrid A At t, the mitigation vector is calculated to offset the false data vector. The mitigation vector is expressed as:
[0206] Z(m)=S -1 (Nx(0)+PU(m)+RD(m)-Y(m))
[0207] Among them, Z(m)=[z(0),z(1),z(2),...,z(m)] T is the mitigation vector. By injecting the mitigation vector into the DC microgrid, the output state y i (k) is expressed as:
[0208] y i (k) = C i x i (k)+C ai [x FDIi (k)+z i (k)]
[0209] C i is the measurement matrix of the DC microgrid system, x i (k) is the state vector of the DC microgrid system at the kth moment, C aiis the measurement matrix of the DC microgrid system under attack, x FDIi (k) is the state vector of the DC microgrid system at the kth moment under attack, z i (k) is the relief vector of the DC microgrid system at the kth moment;
[0210] By setting the upper limit d of the residual test data capacity, if m>d, the residual items that have not exceeded the residual threshold in the past m steps will be defined as safe data, and the safe data will not be used for the calculation of the residual test; define the safe data set s=[1,2,...,s], and the residual r(c) after removing the safe data is expressed as:
[0211] r(c)=r T [VQ(c)+SX FDI (c)],c≤d
[0212] where r T is the transposed matrix of the residual matrix, Q(c) is Q(m) after removing the security data, X FDI (c) is the false vector input after removing the security data.
[0213] The DoS attack defense unit collects historical current data, assigns weight factors to the current in each sampling period, forms a weighted average to estimate the current value blocked by the DoS attack, and optimizes the weight factors to estimate the current value.
[0214] In the DoS attack defense unit, it is assumed that the DC microgrid suffers a DoS attack at the kth step. First, the current history data of the past km sampling cycles are selected, and then a weight is assigned to the current of each cycle to form a weighted average estimated current;
[0215] The estimated current of the i-th DC microgrid in the k-th sampling period is expressed as:
[0216]
[0217] Where ω is the weight factor, satisfying ω k-m +ω k-m+1 +...+ω k-1 =1;
[0218] Based on the estimated current value, the estimated current proportional deviation is expressed as:
[0219]
[0220] Among them, I Ci is the parameter allocated according to the rated power of the i-th DC microgrid, I Cj is the parameter allocated according to the rated power of the jth DC microgrid, is the estimated current of the i-th DC microgrid in the k-th sampling period, is the estimated current of the jth DC microgrid in the kth sampling period; a ij is the weight coefficient between microgrids; under DoS attack, the estimated control output of the i-th DC microgrid is It is expressed as:
[0221]
[0222] V i (k) is the actual control output of the ith DC microgrid, and a is the control parameter;
[0223] The weight factor is optimized to minimize the error between the estimated voltage value and the DC microgrid reference voltage value; the optimization problem is expressed as:
[0224]
[0225] in, is the reference voltage value, and the constraint condition is 0<ω k-m ,ω k-m+1 ,...,ω k-1 <1.
Claims
1. A dynamic defense method for malicious attacks in a DC microgrid system, characterized in that: The steps include: (1) Collect input data and output data in the DC microgrid system to form a historical data set. The input data includes voltage, current data and disturbance items, and the output data is the control command. (2) The attacker invades the communication network of the DC microgrid and launches FDIA and DoS attacks; (3) Establish the equivalent relationship between the input and output of the DC microgrid in the historical data set, generate the residual term based on the equivalent relationship between the output and the input, and improve the sensitivity of the residual term to the attack vector through optimization; when the FDIA attack is detected, calculate the mitigation vector to offset the false data vector; finally, adopt the dynamic security data deletion strategy to eliminate excessive historical data; (4) Collect historical current data, assign weight factors to the current in each sampling period, form a weighted average to estimate the current value blocked by the DoS attack, and optimize the weight factor to estimate the current value.
2. A dynamic defense method for malicious attacks in a DC microgrid system according to claim 1, characterized in that: The false data vector injected by FDIA in step (2) is expressed as: V FDI (k)=V(k)+F(k) Among them, V FDI (k) is the voltage at the kth sampling moment including the false vector, V(k) is the actual voltage value, and F(k) is the false data vector of FDIA.
3. The method for dynamic defense against malicious attacks in a DC microgrid system according to claim 1, characterized in that: The DoS attack set in step (2) is defined as: Among them, Φ1 represents the sampling time of DoS attack; Φ2 represents the normal sampling time, Φ=Φ1∪Φ2 represents all sampling times of microgrid; k d1 ,k d2 ,...,k dn is the discrete attack time, k n1 ,k n2 ,...,k nn are discrete non-attack moments.
4. The method for dynamic defense against malicious attacks in a DC microgrid system according to claim 1, characterized in that: The upper bound of the false data vector of FDIA in step (2) is The duration of the DoS attack is less than the sampling time of the DC microgrid, denoted as T D <T, the number of DoS attacks meets the condition: |n(k)|≤α+T D / τ D , where |n(k)| represents the number of DoS attacks within the sampling time, α≥0, τ D >0 is a constant.
5. The method for dynamic defense against malicious attacks in a DC microgrid system according to claim 1, characterized in that: The step (3) specifically comprises the following steps: Based on the equivalent relationship between the input and output of the DC microgrid system at m sampling moments in the historical data, FDIA is detected and defended. The equivalent relationship of the DC microgrid system in the past m steps can be written in the form of a vector matrix, expressed as: Y(m)=Nx(0)+PU(m)+RD(m)+SX FDI (m) Among them, Y(m) is the output of the past m sampling moments, U(m), D(m), X FDI (m) is the control input, noise input and false vector input at the past m sampling moments, x(0) is the state of the microgrid at the 0th sampling moment, N, P, R, S is the coefficient matrix of the microgrid; The residual used to detect FDIA is defined as: r(m)=r T (Y(m)-HU(m)) r(m)=r T (Nx(0)+(P-H)U(m)+RD(m)+SX FDI (m)) r(m)=r T (VQ(m)+SX FDI (m)) Where r is the residual matrix; H is the Jacobian matrix of the DC microgrid, V = [N, (PH), R], Q (m) = [x (0), U (m), D (m)]; in order to make the residual term only sensitive to the attack vector, the residual matrix should be designed to be insensitive to noise or interference in the DC microgrid, so the optimization problem is expressed as: min|r T VQ(m)| Among them, there are two constraints in the optimization problem, expressed as: L-δL≤L i ≤L+δL C-δC≤C i ≤C+δC Wherein, L and C are the nominal values of the inductance and capacitance of the DC buck converter, respectively, δ is the percentage deviation, and the deviation value δ is set to ±5%; Based on the residual term r in the absence of attack T VQ(m) establishes the residual threshold, first collecting the past N groups of residual terms r r = {r r1 ,r r2 ,...,r rN }, the residual threshold is calculated by the average value and deviation term of the historical state, expressed as: σ r is the standard deviation of the residual terms of the past N groups, ζ σ is the adjustment parameter of the confidence interval; When the residual value exceeds the threshold value r set by the DC microgrid A At t, the mitigation vector is calculated to offset the false data vector. The mitigation vector is expressed as: Z(m)=S -1 (Nx(0)+PU(m)+RD(m)-Y(m)) Among them, Z(m)=[z(0),z(1),z(2),...,z(m)] T is the mitigation vector. By injecting the mitigation vector into the DC microgrid, the output state y i (k) is expressed as: y i (k)=C i x i (k)+C ai [x FDIi (k)+z i (k)] C i is the measurement matrix of the DC microgrid system, x i (k) is the state vector of the DC microgrid system at the kth moment, C ai is the measurement matrix of the DC microgrid system under attack, x FDIi (k) is the state vector of the DC microgrid system at the kth moment under attack, z i (k) is the relief vector of the DC microgrid system at the kth moment; By setting the upper limit d of the residual test data capacity, if m>d, the residual items that have not exceeded the residual threshold in the past m steps will be defined as safe data, and the safe data will not be used for the calculation of the residual test; define the safe data set s=[1,2,...,s], and the residual r(c) after removing the safe data is expressed as: r(c)=r T [VQ(c)+SX FDI (c)],c≤d where r T is the transposed matrix of the residual matrix, Q(c) is Q(m) after removing the security data, X FDI (c) is the false vector input after removing the security data.
6. The method for dynamic defense against malicious attacks in a DC microgrid system according to claim 1, characterized in that: The step (4) specifically comprises the following steps: Assuming that the DC microgrid suffers a DoS attack at the kth step, first select the current history data of the past km sampling cycles, then assign weights to the current of each cycle to form a weighted average estimated current; The estimated current of the i-th DC microgrid in the k-th sampling period is expressed as: Where ω is the weight factor, satisfying ω k-m +ω k-m+1 +...+ω k-1 =1; Based on the estimated current value, the estimated current proportional deviation is expressed as: Among them, I Ci is the parameter allocated according to the rated power of the i-th DC microgrid, I Cj is the parameter allocated according to the rated power of the jth DC microgrid, is the estimated current of the i-th DC microgrid in the k-th sampling period, is the estimated current of the jth DC microgrid in the kth sampling period; a ij is the weight coefficient between microgrids; under DoS attack, the estimated control output of the i-th DC microgrid is It is expressed as: V i (k) is the actual control output of the ith DC microgrid, and a is the control parameter; The weight factor is optimized to minimize the error between the estimated voltage value and the DC microgrid reference voltage value; the optimization problem is expressed as: in, is the reference voltage value, and the constraint condition is 0<ω k-m ,ω k-m+1 ,...,ω k-1 <1.
7. A dynamic defense system against malicious attacks in a DC microgrid system, characterized in that: include: A data collection unit is used to collect input data and output data in the DC microgrid system to form a historical data set, the input data includes voltage, current data and disturbance items, and the output data is a control instruction; An attack model unit is introduced to enable attackers to invade the communication network of the DC microgrid and launch FDIA and DoS attacks; The defense FDIA unit establishes the equivalent relationship between the input and output of the DC microgrid in the historical data set, generates the residual term based on the equivalent relationship between the output and the input, and improves the sensitivity of the residual term to the attack vector through optimization; when an FDIA attack is detected, the mitigation vector is calculated to offset the false data vector; finally, a dynamic security data deletion strategy is adopted to eliminate excessive historical data; The DoS attack defense unit collects historical current data, assigns weight factors to the current in each sampling period, forms a weighted average to estimate the current value blocked by the DoS attack, and optimizes the weight factors to estimate the current value.
8. A dynamic defense system for malicious attacks in a DC microgrid system according to claim 7, characterized in that: The false data vector injected by FDIA in the data collection unit is expressed as: V FDI (k)=V(k)+F(k) Among them, V FDI (k) is the voltage at the kth sampling moment containing the false vector, V(k) is the actual voltage value, and F(k) is the false data vector of FDIA; The DoS attack set is defined as: Among them, Φ1 represents the sampling time of DoS attack; Φ2 represents the normal sampling time, Φ=Φ1∪Φ2 represents all sampling times of microgrid; k d1 ,k d2 ,...,k dn is the discrete attack time, k n1 ,k n2 ,...,k nn for discrete non-attack moments; The upper bound of the false data vector of FDIA is The duration of the DoS attack is less than the sampling time of the DC microgrid, denoted as T D <T, the number of DoS attacks meets the condition: |n(k)|≤α+T D / τ D , where |n(k)| represents the number of DoS attacks within the sampling time, α≥0, τ D >0 is a constant.
9. The dynamic defense system against malicious attacks in a DC microgrid system according to claim 7, characterized in that: The FDIA defense unit detects and defends FDIA according to the equivalent relationship between the input and output of the DC microgrid system at m sampling moments in the historical data. The equivalent relationship of the DC microgrid system in the past m steps can be written in the form of a vector matrix, expressed as: Y(m)=Nx(0)+PU(m)+RD(m)+SX FDI (m) Among them, Y(m) is the output of the past m sampling moments, U(m), D(m), X FDI (m) is the control input, noise input and false vector input at the past m sampling moments, x(0) is the state of the microgrid at the 0th sampling moment, N, P, R, S is the coefficient matrix of the microgrid; The residual used to detect FDIA is defined as: r(m)=r T (Y(m)-HU(m)) r(m)=r T (Nx(0)+(P-H)U(m)+RD(m)+SX FDI (m)) r(m)=r T (VQ(m)+SX FDI (m)) Where r is the residual matrix; H is the Jacobian matrix of the DC microgrid, V = [N, (PH), R], Q (m) = [x (0), U (m), D (m)]; in order to make the residual term only sensitive to the attack vector, the residual matrix should be designed to be insensitive to noise or interference in the DC microgrid, so the optimization problem is expressed as: min|r T VQ(m)| Among them, there are two constraints in the optimization problem, expressed as: L-δL≤L i ≤L+δL C-δC≤C i ≤C+δC Wherein, L and C are the nominal values of the inductance and capacitance of the DC buck converter, respectively, δ is the percentage deviation, and the deviation value δ is set to ±5%; Based on the residual term r in the absence of attack T VQ(m) establishes the residual threshold, first collecting the past N groups of residual terms r r = {r r1 ,r r2 ,...,r rN }, the residual threshold is calculated by the average value and deviation term of the historical state, expressed as: σ r is the standard deviation of the residual terms of the past N groups, ζ σ is the adjustment parameter of the confidence interval; When the residual value exceeds the threshold value r set by the DC microgrid A At t, the mitigation vector is calculated to offset the false data vector. The mitigation vector is expressed as: Z(m)=S -1 (Nx(0)+PU(m)+RD(m)-Y(m)) Among them, Z(m)=[z(0),z(1),z(2),...,z(m)] T is the mitigation vector. By injecting the mitigation vector into the DC microgrid, the output state y i (k) is expressed as: y i (k)=C i x i (k)+C ai [x FDIi (k)+z i (k)] C i is the measurement matrix of the DC microgrid system, x i (k) is the state vector of the DC microgrid system at the kth moment, C ai is the measurement matrix of the DC microgrid system under attack, x FDIi (k) is the state vector of the DC microgrid system at the kth moment under attack, z i (k) is the relief vector of the DC microgrid system at the kth moment; By setting the upper limit d of the residual test data capacity, if m>d, the residual items that have not exceeded the residual threshold in the past m steps will be defined as safe data, and the safe data will not be used for the calculation of the residual test; define the safe data set s=[1,2,...,s], and the residual r(c) after removing the safe data is expressed as: r(c)=r T [VQ(c)+SX FDI (c)],c≤d where r T is the transposed matrix of the residual matrix, Q(c) is Q(m) after removing the security data, X FDI (c) is the false vector input after removing the security data.
10. A dynamic defense system against malicious attacks in a DC microgrid system according to claim 7, characterized in that: In the DoS attack defense unit, it is assumed that the DC microgrid suffers a DoS attack in the kth step, and the current historical data of the past km sampling cycles are first selected, and then a weight is assigned to the current of each cycle to form a weighted average estimated current; The estimated current of the i-th DC microgrid in the k-th sampling period is expressed as: Where ω is the weight factor, satisfying ω k-m +ω k-m+1 +...+ω k-1 =1; Based on the estimated current value, the estimated current proportional deviation is expressed as: Among them, I Ci is the parameter allocated according to the rated power of the i-th DC microgrid, I Cj is the parameter allocated according to the rated power of the jth DC microgrid, is the estimated current of the i-th DC microgrid in the k-th sampling period, is the estimated current of the jth DC microgrid in the kth sampling period; a ij is the weight coefficient between microgrids; under DoS attack, the estimated control output of the i-th DC microgrid is It is expressed as: V i (k) is the actual control output of the ith DC microgrid, and a is the control parameter; The weight factor is optimized to minimize the error between the estimated voltage value and the DC microgrid reference voltage value; the optimization problem is expressed as: in, is the reference voltage value, and the constraint condition is 0<ω k-m ,ω k-m+1 ,…,ω k-1 <1.
Citation Information
Patent Citations
False data injection attack design and defense method for direct current microgrid
CN110571787A
Direct-current micro-grid false data injection attack defense method based on linear regression
CN113010887A
Power grid false injection defense method based on mirror image adversarial network
CN118041659A