A method and system for identifying power business message attacks based on business logic

By obtaining the status sequence from the power business message and calculating the threat degree, the power business message attack is identified, which solves the problem that the existing technology cannot identify the power business message attack and improves the security of the power system.

CN110751570BActive Publication Date: 2024-09-17CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +3
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN201910871501.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-16
Publication Date
2024-09-17
Estimated Expiration
2039-09-16

AI Technical Summary

Technical Problem

Existing network attack identification methods for power grid measurement and control terminals cannot effectively identify power business message attacks, leading to power system failures and accidents.

Method used

By obtaining the multi-point signal value sequence and multi-point signal address sequence of the current status node from the power service message, the corresponding control block is determined, the current status sequence is obtained, and the threat is calculated based on the dangerous status sequence set and the safe status sequence set. degree, when the threat degree is greater than or equal to the preset threshold, it is determined that the power grid is attacked by power business packets.

Benefits of technology

It achieves effective identification of power business message attacks, reduces the false alarm rate, and ensures the safe and reliable operation of the power industrial control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110751570B
    Figure CN110751570B
Patent Text Reader

Abstract

The present invention discloses a method and system for identifying power business message attacks based on business logic, including: determining the current state sequence of the power business; determining the dangerous state sequence set and the safe state sequence set corresponding to the current state sequence according to the multi-point signal address sequence of the current state sequence; determining the threat level of the current state sequence according to the current state sequence, the dangerous state sequence set and the safe state sequence set; and when the threat level of the current state sequence is greater than or equal to a preset security risk threshold, determining that the power grid has been attacked by power business messages. The present invention defines the dangerous state sequence set and the safe state sequence set of the power business logic, combines misuse detection with anomaly detection methods, evaluates the threat level of the power business, and determines whether the power grid has been attacked by power business messages according to the threat level, thereby achieving effective identification of power business message attacks and ensuring the safe and reliable operation of the power industrial control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart grid security technology, and more specifically, to a method and system for identifying power business message attacks based on business logic. Background Technology

[0002] With the deepening coupling between the information space and physical space of smart grids, network attacks have become increasingly common in recent years, seriously affecting the normal operation of power systems. In the power grid, various intelligent terminals and devices (collectively referred to as measurement and control terminals in this paper) used for primary system or equipment parameter measurement and control serve as bridges between the information system and the physical system. When these terminals are attacked by tampering with, forging, and replaying power business messages, it directly affects the normal operation of primary power equipment, such as abnormal circuit breaker opening and setting modification, thereby triggering power accidents. Therefore, effectively identifying potential power business message attacks on power grid measurement and control terminals has become an urgent problem to be solved.

[0003] Current research on network attack identification for power grid monitoring and control terminals mainly falls into two categories: 1) Directly applying traditional information network attack identification systems to power grid monitoring and control terminals. For example, some studies identify attacks by performing anomaly identification and protocol whitelisting on non-power business message traffic, while others propose unknown attack identification methods based on self-learning communication modes; 2) Utilizing power-specific protocol traffic characteristics, rules, or correlations between different fields of messages to achieve network attack identification for power grid monitoring and control terminals. For example, some studies propose using GOOSE message network traffic characteristics for attack identification, while others propose attack identification methods based on IEC 60870-5-104 protocol for traffic pattern checking, legality and correlation checks of various fields, and still others use this method to identify network attacks implemented using the IEC 61850 protocol. The aforementioned research can effectively identify network attacks that exploit vulnerabilities in general network protocols, such as ARP spoofing, ICMP floods, and SYN floods, as well as some network attacks that exploit vulnerabilities in power-specific protocols such as IEC 60870-5-104 and IEC 61850, such as GOOSE malformed packet attacks. However, it cannot effectively identify power service message attacks. Power service message attacks refer to attacks in which attackers tamper with, forge, and retransmit service messages transmitted by the power grid monitoring and control terminal, causing malfunctions in primary power equipment. These attacks typically alter normal business logic. Summary of the Invention

[0004] This invention proposes a method and system for identifying power business message attacks based on business logic, in order to solve the problem of how to effectively identify power business message attacks in order to determine the security status of the power grid.

[0005] To address the aforementioned problems, according to one aspect of the present invention, a method for identifying power service message attacks based on business logic is provided, the method comprising:

[0006] Obtain a multi-point signal value sequence and a multi-point signal address sequence of a current state node from the power service message; determine the control block corresponding to the current state node based on the multi-point signal address sequence; add the multi-point signal value sequence to the state sequence of the control block; and obtain the current state sequence.

[0007] Based on the multi-point signal address sequence of the current state sequence, determine the dangerous state sequence set and the safe state sequence set corresponding to the current state sequence respectively;

[0008] The threat level of the current state sequence is determined based on the current state sequence, the dangerous state sequence set, and the safe state sequence set;

[0009] The threat level of the current state sequence is compared with a preset security risk threshold. When the threat level of the current state sequence is greater than or equal to the preset security risk threshold, it is determined that the power grid has been attacked by power business messages.

[0010] Preferably, determining the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set includes:

[0011] The current state sequence is matched with the dangerous state sequence set. If the current state sequence matches the dangerous state sequence set successfully, the threat level of the current state sequence is determined to be 1.

[0012] If the current state sequence fails to match the dangerous state sequence set, then the current state sequence is matched with the safe state sequence set. If the current state sequence successfully matches the safe state sequence set, then the threat level of the current state sequence is determined to be 0.

[0013] Preferably, determining the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set includes:

[0014] Calculate the first minimum distance between the current state sequence and the dangerous state sequence set, and the second minimum distance between the current state sequence and the safe state sequence set, respectively.

[0015] The threat level of the current state sequence is calculated based on the first minimum distance and the second minimum distance.

[0016] Preferably, calculating the threat degree of the current state sequence according to the first minimum distance and the second minimum distance includes:

[0017]

[0018] Where P , , i ,

[0023] , , , ,

[0024] , , , , , is the threat degree of the current state sequence; d black is the first minimum distance; d white is the second minimum distance.

[0019] Preferably, matching the current state sequence with the set of dangerous state sequences includes:

[0020] Step 11, add the latest multi-point signal value sequence status now =(S′, pos_sequence now ) in the current state sequence status_sequence, where S′=(status1, status2, …, status n ) to the cache status n , where the initial value of n1 is 0, and after adding

[0021] Step 12, sequentially traverse all the rules in the set of dangerous state sequences in the set of dangerous state sequences. If n2>n - n1 and i≠t are satisfied, continue traversing; if n2>n - n1 and i = t are satisfied, it means the matching ends, the traversal ends, and continue to execute the matching mode of the set of safe state sequences; if n2<n - n1, enter Step 13; otherwise, enter Step 14;

[0022] Step 13, retain the last n2 items of , then and set n1 to n - n2, then

[0023] Step 14, determine whether is the same as B i ; where, if it is the same, only retain the last item of , then at the same time set n1 to n - 1, and determine that the current state sequence matches the set of dangerous state sequences successfully, and directly determine that the threat degree of the current state sequence is 1; otherwise, return to Step 12 to continue traversing.

[0024] Preferably, matching the current state sequence with the set of safe state sequences includes:

[0025] Step 21, add the current status sequence status_sequence now =(S′, pos_sequence now ) where S′=(status1, status2, …, status n ) of the latest multi-point signal value sequence status n to the cache status , where the initial value of n3 is 0, and after adding

[0026] Step 22, sequentially traverse all the rules in the set of security status sequences , If n4>n - n3 and i≠e are satisfied, go to Step 26; if n4>n - n3 and i = e are satisfied, it means the matching fails and the traversal ends; if n4<n - n3 is satisfied, go to Step 23; otherwise, go to Step 24;

[0027] Step 23, retain the last n4 items of , then and set n3 to n - n4, then

[0028] Step 24, determine whether is the same as W i . If not, return to Step 22 and continue the traversal; otherwise, go to Step 25;

[0029] Step 25, retain only the last item of , then At the same time, set n3 to n - 1, set init_status to 1, determine that the current status sequence matches the set of security status sequences successfully, and directly determine that the threat level of the current status sequence is 0; where the initial value of init_status is 0, which is used to identify whether a complete match of the security status sequence is performed;

[0030] Step 26, if init_status is 0, go to Step 27, otherwise go to Step 28;

[0031] Step 27, when init_status is 0, determine whether is W iIf it is a subset of the set of safe states, then the current state sequence is determined to be a successful match with the set of safe states, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the set of safe states and return to step 22.

[0032] Step 28, Determine Is it related to W? i If the first n-n1 terms are the same, then the current state sequence is determined to be a successful match with the set of safe state sequences, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the set of safe state sequences and return to step 22.

[0033] Preferably, the method further includes:

[0034] If the threat level of the current state sequence is less than the preset security risk threshold, it is determined that the power grid has not been attacked by power business messages.

[0035] According to another aspect of the present invention, a power service message attack identification system based on business logic is provided, the system comprising:

[0036] The current state sequence determination unit is used to obtain a multi-point signal value sequence and a multi-point signal address sequence of a current state node from the power service message, determine the control block corresponding to the current state node according to the multi-point signal address sequence, and add the multi-point signal value sequence to the state sequence of the control block to obtain the current state sequence.

[0037] The dangerous state sequence set and safe state sequence set determination unit is used to determine the dangerous state sequence set and safe state sequence set corresponding to the current state sequence based on the multi-point signal address sequence of the current state sequence;

[0038] Threat determination unit, used to determine the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set;

[0039] The power service message attack identification unit is used to compare the threat level of the current state sequence with a preset security risk threshold, and determine that the power grid has been attacked by power service messages when the threat level of the current state sequence is greater than or equal to the preset security risk threshold.

[0040] Preferably, the threat determination unit determines the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set, including:

[0041] The dangerous state sequence set matching module is used to match the current state sequence with the dangerous state sequence set. If the current state sequence matches the dangerous state sequence set successfully, the threat level of the current state sequence is determined to be 1.

[0042] The safety state sequence set matching module is used to match the current state sequence with the safety state sequence set if the current state sequence fails to match the danger state sequence set, and to determine the threat level of the current state sequence as 0 if the current state sequence successfully matches the safety state sequence set.

[0043] Preferably, the threat determination unit determines the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set, including:

[0044] The first minimum distance and the second minimum distance determination module are used to calculate the first minimum distance between the current state sequence and the dangerous state sequence set, and the second minimum distance between the current state sequence and the safe state sequence set, respectively.

[0045] The threat determination module is used to calculate the threat level of the current state sequence based on the first minimum distance and the second minimum distance.

[0046] Preferably, the threat determination module calculates the threat level of the current state sequence based on the first minimum distance and the second minimum distance, including:

[0047]

[0048] Among them, P threaten The threat level of the current state sequence; d black The first minimum distance; d white This is the second minimum distance.

[0049] Preferably, the hazardous state sequence set matching module matches the current state sequence with the hazardous state sequence set, including:

[0050] Step 11, set the current state sequence status_sequence now =(S′,pos_sequence now ) in S′=(status1, status2,…,status n The latest multi-point signal value sequence status n Add to cache state In the example, n1 is initially 0, and after adding...

[0051] Step 12, sequentially traverse all the rules in the set of dangerous state sequences in it, If n2 > n - n1 and i ≠ t are satisfied, continue traversing; if n2 > n - n1 and i = t are satisfied, it means the matching ends, the traversal ends, and continue to execute the matching mode of the set of safe state sequences; if n2 < n - n1, enter Step 13; otherwise, enter Step 14;

[0052] Step 13, retain the last n2 items of then and set n1 to n - n2, then

[0053] Step 14, determine whether is the same as B i ; among them, if it is the same, only retain the last item of then at the same time set n1 to n - 1, and determine that the current state sequence matches the set of dangerous state sequences successfully, and directly determine that the threat level of the current state sequence is 1; otherwise, return to Step 12 to continue traversing.

[0054] Preferably, in the safe state sequence set matching module, matching the current state sequence with the safe state sequence set includes:

[0055] Step 21, add the latest multi-point signal value sequence status now =(S′, pos_sequence now ) in the current state sequence status_sequence n =(status1, status2,..., status<00000​​​​​​​​​​​​​​​​​​​

[0058] Step 24, Determine Is it related to W? i If they are the same, or if they are different, return to step 22 and continue iterating; otherwise, proceed to step 25.

[0059] Step 25, If only the last item is kept, then Simultaneously, n3 is set to n-1, and init_status is set to 1 to determine that the current state sequence matches the security state sequence set successfully, and the threat level of the current state sequence is directly determined to be 0; where the initial value of init_status is 0, which is used to indicate whether a complete security state sequence match is performed;

[0060] Step 26: If init_status is 0, proceed to step 27; otherwise, proceed to step 28.

[0061] Step 27, init_status is 0, check Is it W? i If it is a subset of the set of safe states, then the current state sequence is determined to be a successful match with the set of safe states, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the set of safe states and return to step 22.

[0062] Step 28, Determine Is it related to W? i If the first n-n1 terms are the same, then the current state sequence is determined to be a successful match with the set of safe state sequences, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the set of safe state sequences and return to step 22.

[0063] Preferably, the power service message attack identification unit is further configured to:

[0064] If the threat level of the current state sequence is less than the preset security risk threshold, it is determined that the power grid has not been attacked by power business messages.

[0065] This invention provides a method and system for identifying power service message attacks based on business logic, comprising: determining the current state sequence of the power grid; determining a dangerous state sequence set and a safe state sequence set corresponding to the current state sequence based on the multi-point signal address sequence of the current state sequence; determining the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set; and determining that the power grid has been subjected to a power service message attack when the threat level of the current state sequence is greater than or equal to a preset security risk threshold. This invention, by defining dangerous state sequence sets and safe state sequence sets for power service logic, combines misuse detection and anomaly detection methods to assess the threat level of power services and determine whether the power grid has been subjected to a power service message attack based on the threat level. This achieves effective identification of power service message attacks, reduces the false alarm rate, and ensures the safe and reliable operation of the power industrial control system. Attached Figure Description

[0066] Exemplary embodiments of the present invention can be more fully understood by referring to the following figures:

[0067] Figure 1 A flowchart of a power service message attack identification method 100 based on business logic according to an embodiment of the present invention;

[0068] Figure 2 This is a state chain data structure diagram according to an embodiment of the present invention;

[0069] Figure 3 A data structure diagram of the hazardous state sequence and the safe state sequence according to an embodiment of the present invention; and

[0070] Figure 4 This is a schematic diagram of the structure of a power service message attack identification system 400 based on business logic according to an embodiment of the present invention. Detailed Implementation

[0071] Exemplary embodiments of the invention will now be described with reference to the accompanying drawings. However, the invention may be embodied in many different forms and is not limited to the embodiments described herein. These embodiments are provided to fully and completely disclose the invention and to fully convey its scope to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the drawings is not intended to limit the invention. In the drawings, the same units / elements are referred to by the same reference numerals.

[0072] Unless otherwise stated, the terms used herein (including technical terms) have their common meaning as understood by one of ordinary skill in the art. Furthermore, it is understood that terms defined in commonly used dictionaries should be understood to have a meaning consistent with the context of their relevant field, and not to be interpreted as having an idealized or overly formal meaning.

[0073] Figure 1 This is a flowchart of a power service message attack identification method 100 based on business logic according to an embodiment of the present invention. The power service message attack identification method based on business logic provided by the embodiments of the present invention defines a dangerous state sequence set and a safe state sequence set for power service logic, combines misuse detection and anomaly detection methods to assess the threat level of power services, and determines whether the power grid has been subjected to a power service message attack based on the threat level. This achieves effective identification of power service message attacks, reduces the false alarm rate, and ensures the safe and reliable operation of the power industrial control system. The power service message attack identification method 100 based on business logic provided by the embodiments of the present invention starts from step 101. In step 101, a multi-point signal value sequence and a multi-point signal address sequence of a current state node are obtained from the power service message. The control block corresponding to the current state node is determined based on the multi-point signal address sequence, and the multi-point signal value sequence is added to the state sequence of the control block to obtain the current state sequence.

[0074] In embodiments of the present invention, in order to perform a security assessment of the current business logic state, it is necessary to save the business logic. Therefore, a state chain data structure is proposed to describe the power grid business logic, including the business state and its change process. The state chain data structure of the embodiments of the present invention is as follows: Figure 2 As shown, it contains the following 7 parts.

[0075] (1) Single-point signal value: The data field describes the value of a single FCDA (Functionally constrained DataAttribute) item. In the power grid, this can be understood as the signal of a disconnect switch or the voltage or current value of a node in the power grid.

[0076] (2) Signal address: The pos field is used to describe the location of an FCDA item; in the power grid, it can be understood as the logical instance name of a disconnector or node; in actual calculation, it can be understood as the name of a variable used to index the variable.

[0077] (3) Multi-point signal address sequence: pos_sequence = (pos1, pos2, ..., pos n ) T In embodiments of the present invention, the field is used to describe the signal address sequence of each single-point signal on a control block.

[0078] (4) Multi-point signal value sequence: status = (data1, data2, ..., data n ) T In this invention, the field describes the sequence of signal values ​​at various individual points on a control block. In a power grid, this can be understood as the position of multiple disconnectors or the voltage and current values ​​at multiple points.

[0079] (5) Status Node: Defined as Node = (status, pos_sequence). It consists of a multi-point signal address sequence and a multi-point signal value sequence, and is used to describe the status of a control block.

[0080] (6) State change: Used to describe a change in one or more single-point signals in the state of a control block. In the power grid, this can be understood as the switching of one or more disconnect switches, a change in voltage or current at one or more points, or a change in setpoint at one or more points.

[0081] (7) Define status_sequence = (status_value, pos_sequence) as a state sequence, where status_value = (status1, status2, ..., status2) n A control block (pos_sequence) is composed of a finite number of sequentially linked state nodes with the same pos_sequence, used to describe the logical process of a control block's state change. In a power grid, it can be understood as a set of switch operation logic relationships and a set of voltage and current change logic relationships.

[0082] In an embodiment of the present invention, in order to identify whether the current power grid is under attack by power service messages, it is first necessary to input the current service logic. Based on the data structure of the aforementioned state chain, the specific input process is as follows:

[0083] 1.1) Extract a state node (Node) from the application layer content of the power business message. now =(status n pos_sequence now ), where status n =(data1,data2,…,data k ) T .

[0084] 1.2) Based on the state node now in pos_sequence now Find the corresponding control block state sequence status_sequence = (S, pos_sequence), then pos_sequence = pos_sequence.now A conditional state sequence, where S = (status1, status2, ..., status...) n-1 ).

[0085] 1.3) Compare status n-1 Is it equal to status? n If they are equal, the process ends; otherwise, proceed to 1.4).

[0086] 1.4) Change status n Link the current state sequence status_sequence = (S, pos_sequence) into the chain to obtain the current state sequence status_sequence. now =(S′,pos_sequence now ), where S′=(status1,status2,…,status n ).

[0087] In step 102, the dangerous state sequence set and the safe state sequence set corresponding to the current state sequence are determined according to the multi-point signal address sequence of the current state sequence.

[0088] In embodiments of the present invention, in order to perform a security assessment of the current business logic state, it is necessary to compare the current business logic state with a known sequence of dangerous or safe states. By comparing the current state sequence with the sequences of dangerous and safe states, attacks on power service messages can be quickly and effectively identified. The data structures in the sequences of dangerous and safe states in embodiments of the present invention are as follows: Figure 3 As shown. Different rules are used to input the hazardous state sequence set and the safe state sequence set, representing them as state sequences. The hazardous state sequence set is defined as... in, This is the set of all invalid state sequences that satisfy the condition pos_sequence = pos_sequence1. The set of safe state sequences is defined as follows: in, This is the set of all valid state sequences that satisfy the condition pos_sequence = pos_sequence1.

[0089] In step 103, the threat level of the current state sequence is determined based on the current state sequence, the dangerous state sequence set, and the safe state sequence set.

[0090] Preferably, determining the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set includes:

[0091] The current state sequence is matched with the dangerous state sequence set. If the current state sequence matches the dangerous state sequence set successfully, the threat level of the current state sequence is determined to be 1.

[0092] If the current state sequence fails to match the dangerous state sequence set, then the current state sequence is matched with the safe state sequence set. If the current state sequence successfully matches the safe state sequence set, then the threat level of the current state sequence is determined to be 0.

[0093] Preferably, determining the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set includes:

[0094] Calculate the first minimum distance between the current state sequence and the dangerous state sequence set, and the second minimum distance between the current state sequence and the safe state sequence set, respectively.

[0095] The threat level of the current state sequence is calculated based on the first minimum distance and the second minimum distance.

[0096] Preferably, the calculation of the first minimum distance between the current state sequence and the set of dangerous state sequences includes:

[0097]

[0098] Where, d black The first minimum distance; the current state sequence is status_sequence now =(S′,pos_sequence now ), S′=(status1, status2,…,status n The dangerous state sequence set is: for if but otherwise column S′ B represents the number of columns in matrix S′. i (status_value) indicates B i The status_value in the state sequence, B i (status_value)[0,…,column S′ -1] represents B i The first column of the (status_value) matrix to column n S′-1 column; express The function d(A,B) represents finding the row vector A = (x1, x2, ..., xn) in the i-th column of the matrix. n ) and B = (y1, y2, ..., y n The Euclidean distance of ) is then

[0099] Preferably, the calculation of the second minimum distance between the current state sequence and the set of safe state sequences includes:

[0100]

[0101] Where, d white The second minimum distance; the current state sequence is status_sequence now =(S′,pos_sequence now ), S′=(status1, status2,…,status n Security state sequence set for if but otherwise column s′ W represents the number of columns in matrix S′. i (status_value) indicates W i The status_value in the state sequence, then W i (status_value)[0,…,column S′ -1] indicates W i The first column of the (status_value) matrix to column n S′ -1 column; express The function d(A,B) represents finding the row vector A = (x1, x2, ..., xn) in the i-th column of the matrix. n ) and B = (y1, y2, ..., y n The Euclidean distance of ) is then

[0102] Preferably, calculating the threat level of the current state sequence based on the first minimum distance and the second minimum distance includes:

[0103]

[0104] Among them, P threaten is the threat level of the current state sequence; d black is the first minimum distance; d white is the second minimum distance.

[0105] Preferably, the matching of the current state sequence with the set of dangerous state sequences includes:

[0106] Step 11, add the latest multi-point signal value sequence status now =(S′, pos_sequence now ) in the current state sequence status_sequence, where S′=(status1, status2,..., status n ) to the cache status n , where the initial value of n1 is 0, and after adding

[0107] Step 12, sequentially traverse all the rules in the set of dangerous state sequences ; If n2>n - n1 and i≠t are satisfied, continue traversing; if n2>n - n1 and i = t are satisfied, it means the matching ends, the traversal ends, and continue to execute the matching mode of the set of safe state sequences; if n2<n - n1, enter Step 13; otherwise, enter Step 14;

[0108] Step 13, retain the last n2 items of , then

[0109]

[0110]

[0111]

[0112] At the same time, set n1 to n - 1, and determine that the current state sequence matches the set of dangerous state sequences successfully, and directly determine that the threat level of the current state sequence is 1; otherwise, return to Step 12 to continue traversing.

[0111] Preferably, the matching of the current state sequence with the set of safe state sequences includes:

[0112] Step 21, add the current state sequence status_sequence now =(S′, pos_sequence​now ) where S' = (status1, status2, …, status n ) of the latest multi-point signal value sequence status n is added to the cache status where the initial value of n3 is 0, and after addition

[0113] Step 22, sequentially traverse all the rules in the security status sequence set If n4 > n - n3 and i ≠ e are satisfied, then go to Step 26; if n4 > n - n3 and i = e are satisfied, it means the matching fails and the traversal ends; if n4 < n - n3 is satisfied, then go to Step 23; otherwise, go to Step 24;

[0114] Step 23, retain the last n4 items of , then and set n3 to n - n4, then

[0115] Step 24, judge whether is the same as W i , if not, return to Step 22 and continue the traversal; otherwise, go to Step 25;

[0116] Step 25, retain only the last item of , then At the same time, set n3 to n - 1, set init_status to 1, determine that the current status sequence matches the security status sequence set successfully, and directly determine that the threat degree of the current status sequence is 0; where the initial value of init_status is 0, which is used to identify whether a complete match of the security status sequence is performed;

[0117] Step 26, if init_status is 0, then go to Step 27, otherwise go to Step 28;

[0118] Step 27, init_status is 0, judge whether is a subset of W i , if so, determine that the current status sequence matches the security status sequence set successfully, and directly determine that the threat degree of the current status sequence is 0; otherwise, continue to traverse other rules in the security status sequence set and return to Step 22;

[0119] Step 28, judge whether is the same as W iIf the first n-n1 terms are the same, then the current state sequence is determined to be a successful match with the set of safe state sequences, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the set of safe state sequences and return to step 22.

[0120] In embodiments of the present invention, after determining the dangerous safety state sequence set and the safety state sequence set, the step of determining the threat level includes:

[0121] S1: Match the set of dangerous state sequences. If the match is successful, determine the threat level of the current state sequence as 1; otherwise, proceed to S2.

[0122] S2, perform matching of the security state sequence set. If the match is successful, the threat level of the current state sequence is determined to be 0; otherwise, proceed to S3.

[0123] S3, determine the first minimum distance and the second minimum distance, and determine the threat level of the security state sequence based on the first minimum distance and the second minimum distance.

[0124] In step 104, the threat level of the current state sequence is compared with a preset security risk threshold, and when the threat level of the current state sequence is greater than or equal to the preset security risk threshold, it is determined that the power grid has been attacked by power business messages.

[0125] Preferably, the method further includes:

[0126] If the threat level of the current state sequence is less than the preset security risk threshold, it is determined that the power grid has not been attacked by power business messages.

[0127] In an embodiment of the present invention, the threat level P is based on the current state sequence. threaten Determine whether the current power grid is under attack. To reduce the false alarm rate of this invention, a security risk threshold X is defined. safe , where X safe The default value is 0.25. Security risk threshold X safe The value of P can be set according to actual needs and is not limited to 0.25 mentioned in this application. threaten >X safe At that time, the current state sequence is considered to be status_sequence now =(S′,pos_sequence now pos_sequence in ) now The value indicates that the power grid has been attacked by power business messages; otherwise, the power grid is considered to be in a safe state and has not been attacked by power business messages.

[0128] The following specific examples illustrate the embodiments of the present invention.

[0129] Suppose the attacker targets a state block with three FCDAs, and the address information for each FCDA is as follows:

[0130] pos1="(APPID=0x0001)-(dataset=DeviceF001 / LLN0$GOOSE1)-(alldata.1)",

[0131] pos2="(APPID=0x0001)-(dataset=DeviceF001 / LLN0$GOOSE1)-(alldata.2)",

[0132] pos3="(APPID=0x0001)-(dataset=DeviceF001 / LLN0$GOOSE1)-(alldata.3)",

[0133] The corresponding control block state is: status1 = (0,0,0) T status2 = (0,0,1) T , …,status8=(1,1,1) T Set the security risk threshold X for the intrusion detection method. safe It is 0.25.

[0134] When it is determined that the power grid is under attack on power service messages, the specific implementation method is as follows:

[0135] Step (1), State chain entry: Assume the entered state sequence is status_sequence1 = (S1, pos_sequence), where S1 = (status1, status2), pos_sequence = (pos1, pos2, pos3). T Now, a state node (Node) is extracted from the application layer message. now =(status5, pos_sequence), add the extracted status node to the recorded status sequence, and the status sequence changes from status_sequence1 to status_sequence2=(S2, pos_sequence), where S2=(status1,status2,status5).

[0136] Step (2), determine the set of dangerous state sequences U of the current state sequence. blacklist / pos_sequence = {B1}, where B1 = {status1, status3, status7} and the security state sequence set U whitelist / pos_sequence = {W1, W2}.

[0137] Step (3) involves matching the current state sequence against a set of dangerous state sequences. If a match is found, the threat level is set to 1; otherwise, proceed to step (4). The specific steps are as follows:

[0138] 3.1) Add the latest status 5 from S2 in status_sequence2 to the cached status.

[0139] S″ blacklist / pos_sequence In the expression = (status1, status2), add S″ blacklist / pos_sequence =(status1, status2, status5).

[0140] 3.2) If rules with the same pos_sequence are found in the sequence of dangerous state sequences, then the sequence U is traversed sequentially. blacklist / pos_sequence = {B1}, where B1 has 3 states, S″ blacklist / pos_sequence It has 3 states (see section 3.3).

[0141] 3.3) Compare B1 with S2 and find a mismatch. Continue iterating and go to 3.4).

[0142] 3.4)U blacklist / pos_sequence After the traversal is complete, proceed to step (4).

[0143] Step (4): Perform a threat-safety sequence matching pattern on the current state sequence. If a match is found, the threat level is determined to be 0; otherwise, proceed to step (5). The specific process is as follows:

[0144] 4.1) Add the latest state status5 from S2 in the current state sequence status_sequence2 to the cached state S″. whitelist / pos_sequence In the condition = (status1, status2), the cached state sequence after addition is S″. whitelist / pos_sequence =(status1, status2, status5).

[0145] 4.2) Traverse the set of dangerous state sequences where the rules have the same pos_sequence, then U whitelist / pos_sequence = {W1, W2}, first iterate through W1 = {status1, status2, status8}, where W1 has 3 states. It has 3 states (see section 4.3).

[0146] 4.3)S″ whitelist / pos_sequence Compare with W1 according to the rules, S″ whitelist / pos_sequence If it does not match W1, continue iterating.

[0147] 4.4) Traverse W2, where W2 = {status1, status2, status4, status5} has 4 states, S″ whitelist / pos_sequence = (status1, status2, status5) has 3 states, see 4.5).

[0148] 4.5) If init_status is 0 (assuming it is 0), then go to 4.6).

[0149] 4.6)S″ whitelist / pos_sequence When compared with W2 according to the rules, W2 is not S″. whitelist / pos_sequence Subset, traversal complete, proceed to step (5).

[0150] Step (5): Perform similarity matching on the state sequence to obtain the threat level P. threaten The specific steps are as follows:

[0151] 5.1) Find the dangerous state sequence set U of the corresponding control block based on pos_sequence. blacklist / pos_sequence ={B1} and the set of security state sequences U whitelist / pos_sequence = {W1, W2}.

[0152] 5.2) For B1∈U blacklist / pos_sequence ,in but

[0153] 5.3) Calculate the current state sequence status_sequence2 and the dangerous state sequence set U. blacklist / pos_sequence The minimum distance is d black =1.

[0154] 5.4) For W1∈U whitelist / pos_sequence ,in but For W2∈U whitelist / pos_sequence ,in but

[0155] 5.5) Calculate the current state sequence status_sequence and the set of safe state sequences U. whitelist / pos_sequence The minimum distance is d white =2.

[0156] 5.6) Calculate threat level Proceed to step (6).

[0157] Step (6) compares the calculated threat level with the preset security risk threshold, P threaten >X safeIf this is confirmed, it means that the power grid corresponding to the pos_sequence value in the current status_sequence is under attack by power service messages.

[0158] Figure 4 This is a schematic diagram of the structure of a power service message attack identification system 400 based on business logic according to an embodiment of the present invention. Figure 4 As shown, the power service message attack identification system 400 based on business logic provided by the embodiments of the present invention includes: a current state sequence determination unit 401, a dangerous state sequence set and a safe state sequence set determination unit 402, a threat degree determination unit 403, and a power service message attack identification unit 404.

[0159] Preferably, the current state sequence determination unit 401 is used to obtain a multi-point signal value sequence and a multi-point signal address sequence of a current state node from the power service message, determine the control block corresponding to the current state node according to the multi-point signal address sequence, and add the multi-point signal value sequence to the state sequence of the control block to obtain the current state sequence.

[0160] Preferably, the dangerous state sequence set and safe state sequence set determination unit 402 is used to determine the dangerous state sequence set and safe state sequence set corresponding to the current state sequence based on the multi-point signal address sequence of the current state sequence.

[0161] Preferably, the threat determination unit 403 is used to determine the threat level of the current state sequence based on the current state sequence, the dangerous state sequence set, and the safe state sequence set.

[0162] Preferably, the threat determination unit 403 includes: a dangerous state sequence set matching module and a safe state sequence set matching module.

[0163] The dangerous state sequence set matching module is used to match the current state sequence with the dangerous state sequence set. If the current state sequence matches the dangerous state sequence set successfully, the threat level of the current state sequence is determined to be 1.

[0164] The safety state sequence set matching module is used to match the current state sequence with the safety state sequence set if the current state sequence fails to match the danger state sequence set, and to determine the threat level of the current state sequence as 0 if the current state sequence successfully matches the safety state sequence set.

[0165] Preferably, the hazardous state sequence set matching module matches the current state sequence with the hazardous state sequence set, including:

[0166] Step 11: Add the latest multi-point signal value sequence status of S' = (status1, status2,..., status now =(S′, pos_sequence now ) in the current state sequence status_sequence n ) to the cache status n , where the initial value of n1 is 0. After adding,

[0167] Step 12: Traverse all the rules in the dangerous state sequence set sequentially. If n2 > n - n1 and i ≠ t are satisfied, continue traversing; if n2 > n - n1 and i = t are satisfied, it means the matching ends and the traversal ends, then continue to execute the matching mode of the safe state sequence set; if n2 < n - n1, enter Step 13; otherwise, enter Step 1).

[0168] Step 13: Retain the last n2 items of , then set n1 to n - n2, then

[0169] Step 14: Judge whether is the same as B i . If they are the same, retain only the last item of , then

[0170] set n1 to n - 1 at the same time, and determine that the current state sequence matches the dangerous state sequence set successfully, and directly determine that the threat degree of the current state sequence is 1; otherwise, return to Step 12 to continue traversing.

[0171] Preferably, the safe state sequence set matching module matches the current state sequence with the safe state sequence set, which includes: Step 21: Add the latest multi-point signal value sequence status of S' = (status1, status2,..., status now =(S′, pos_sequence now ) in the current state sequence status_sequence n ) to the cache status n , where the initial value of n3 is 0. After adding,

[0172] ​​Step 22, traverse the set of security state sequences in sequence for all rules in If n4 > n - n3 and i ≠ e are satisfied, then go to Step 26; if n4 > n - n3 and i = e are satisfied, it means the matching fails and the traversal ends; if n4 < n - n3 is satisfied, then go to Step 23; otherwise, go to Step 24;

[0173] Step 23, retain the last n4 items of then and set n3 to n - n4, then

[0174] Step 24, determine whether is the same as W i If not, then return to Step 22 and continue traversing; otherwise, go to Step 25;

[0175] Step 25, retain only the last item of then At the same time, set n3 to n - 1, set init_status to 1, determine that the current state sequence matches the set of security state sequences successfully, and directly determine that the threat level of the current state sequence is 0; where the initial value of init_status is 0, which is used to identify whether a complete match of the security state sequence is performed;

[0176] Step 26, if init_status is 0, then go to Step 27, otherwise go to Step 28;

[0177] Step 27, init_status is 0, determine whether is a subset of W i If so, determine that the current state sequence matches the set of security state sequences successfully, and directly determine that the threat level of the current state sequence is 0; otherwise, continue to traverse other rules in the set of security state sequences and return to Step 22;

[0178] Step 28, determine whether is the same as the first n - n1 items of W i If so, determine that the current state sequence matches the set of security state sequences successfully, and directly determine that the threat level of the current state sequence is 0; otherwise, continue to traverse other rules in the set of security state sequences and return to Step 22.

[0179] Preferably, the threat level determination unit 403 further includes: a first minimum distance and a second minimum distance determination module and a threat level determination module.

[0180] The first minimum distance and the second minimum distance determination module are used to calculate the first minimum distance between the current state sequence and the dangerous state sequence set, and the second minimum distance between the current state sequence and the safe state sequence set, respectively.

[0181] The threat determination module is used to calculate the threat level of the current state sequence based on the first minimum distance and the second minimum distance.

[0182] Preferably, the first minimum distance and the second minimum distance determination module calculates the first minimum distance between the current state sequence and the dangerous state sequence set in the following manner:

[0183]

[0184] Where, d black The first minimum distance; the current state sequence is status_sequence now =(S′,pos_sequence now ), S′=(status1, status2,…,status n The dangerous state sequence set is: for if but otherwise column s′ B represents the number of columns in matrix S′. i (status_value) indicates B i The status_value in the state sequence, B i (status_value)[0,…,column s′ -1] represents B i The first column of the (status_value) matrix to column n S′ -1 column; express The function d(A,B) represents finding the row vector A = (x1, x2, ..., xn) in the i-th column of the matrix. n ) and B = (y1, y2, ..., y n The Euclidean distance of ) is then

[0185] Preferably, the first minimum distance and the second minimum distance determination module calculates the second minimum distance between the current state sequence and the set of safe state sequences in the following manner:

[0186]

[0187] Where, d white The second minimum distance current state sequence is status_sequence now =(S′,pos_sequence now ), S′=(status1, status2,…,status n ); Security state sequence set for if but otherwise W i (status_value); column s′ W represents the number of columns in matrix S′. i (status_value) indicates W i The status_value in the state sequence, then W i (status_value)[0,…,column s′ -1] indicates W i The first column of the (status_value) matrix to column n s′ -1 column; express The function d(A,B) represents finding the row vector A = (x1, x2, ..., xn) in the i-th column of the matrix. n ) and B = (y1, y2, ..., y n The Euclidean distance of ) is then

[0188] Preferably, the threat determination module calculates the threat level of the current state sequence based on the first minimum distance and the second minimum distance, including:

[0189]

[0190] Among them, P threaten The threat level of the current state sequence; d black The first minimum distance; d white This is the second minimum distance.

[0191] Preferably, the power service message attack identification unit 404 is used to compare the threat level of the current state sequence with a preset security risk threshold, and determine that the power grid has been attacked by power service messages when the threat level of the current state sequence is greater than or equal to the preset security risk threshold.

[0192] Preferably, the power service message attack identification unit 404 is further configured to: determine that the power grid has not been attacked by power service messages if the threat level of the current state sequence is less than a preset security risk threshold.

[0193] The power service message attack identification system 400 based on business logic in this embodiment corresponds to the power service message attack identification method 100 based on business logic in another embodiment of this invention, and will not be described again here.

[0194] The invention has been described with reference to a few embodiments. However, as will be known to those skilled in the art, and as defined in the appended claims, other embodiments besides those disclosed above fall equivalently within the scope of the invention.

[0195] Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the art, unless otherwise expressly defined herein. All references to “a / the / the [device, component, etc.]” ​​are openly interpreted as at least one instance of said device, component, etc., unless otherwise expressly stated. The steps of any method disclosed herein need not be performed in the exact order disclosed unless explicitly stated otherwise.

[0196] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0197] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0198] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0199] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for identifying power business message attacks based on business logic, characterized in that: The method comprises: Obtain a multi-point signal value sequence and a multi-point signal address sequence of a current state node from the power service message, determine a control block corresponding to the current state node according to the multi-point signal address sequence, and add the multi-point signal value sequence to the state sequence of the control block to obtain the current state sequence; Determine the dangerous state sequence set and the safe state sequence set corresponding to the current state sequence respectively according to the multi-point signal address sequence of the current state sequence; Determine the threat level of the current state sequence according to the current state sequence, the dangerous state sequence set and the safe state sequence set; Comparing the threat level of the current state sequence with a preset security risk threshold, and determining that the power grid has been attacked by power service messages when the threat level of the current state sequence is greater than or equal to the preset security risk threshold; Wherein, determining the threat level of the current state sequence according to the current state sequence, the dangerous state sequence set and the safe state sequence set includes: Matching the current state sequence with the dangerous state sequence set, and if the current state sequence successfully matches the dangerous state sequence set, determining the threat level of the current state sequence to be 1; If the current state sequence fails to match the dangerous state sequence set, the current state sequence is matched with the safe state sequence set; if the current state sequence successfully matches the safe state sequence set, the threat level of the current state sequence is determined to be 0; Wherein, matching the current state sequence with the dangerous state sequence set includes: Step 11: Set the current status sequence status_sequence now =(S′,pos_sequence now ) in S′=(status1, status2,…,status n )'s latest multi-point signal value sequence status n Add to cache status In which, the initial value of n1 is 0. After adding Step 12, sequentially traverse all the rules in the set of dangerous state sequences If n2 > n - n1 and i ≠ t are satisfied, continue the traversal; if n2 > n - n1 and i = t are satisfied, it means the matching ends, the traversal ends, and continue to execute the matching mode of the set of safe state sequences; if n2 < n - n1, enter Step 13; otherwise, enter Step 14; in all the rules Step 13: The last n2 items of are retained, then And set n1 to n-n2, then Step 14, judgement Whether with B i Same; if they are the same, then Only the last item is kept, then At the same time, n1 is set to n-1, and it is determined that the current state sequence successfully matches the dangerous state sequence set, and the threat level of the current state sequence is directly determined to be 1; otherwise, return to step 12 to continue traversal.

2. The method according to claim 1, characterized in that: Determining the threat level of the current state sequence according to the current state sequence, the dangerous state sequence set, and the safe state sequence set includes: respectively calculating a first minimum distance between the current state sequence and the dangerous state sequence set, and a second minimum distance between the current state sequence and the safe state sequence set; The threat level of the current state sequence is calculated according to the first minimum distance and the second minimum distance.

3. The method according to claim 2, characterized in that Calculating the threat level of the current state sequence according to the first minimum distance and the second minimum distance includes: Among them, P threaten is the threat level of the current state sequence; d black is the first minimum distance; d white is the second smallest distance.

4. The method according to claim 1, characterized in that: The matching of the current state sequence with the safe state sequence set includes: Step 21: Set the current status sequence status_sequence now =(S′,pos_sequence now ) in S′=(status1, status2,…,status n )'s latest multi-point signal value sequence status n Add to cache status In which, the initial value of n3 is 0. After adding Step 22, sequentially traverse all rules in the set of security state sequences If it satisfies n4 > n - n3 and i ≠ e, then go to Step 26; if it satisfies n4 > n - n3 and i = e, it means the matching fails and the traversal ends; if it satisfies n4 < n - n3, then go to Step 23; otherwise, go to Step 24; in which, Step 23: The last n4 items are retained, then And set n3 to n-n4, then Step 24, judgement Whether it is related to W i If they are the same, then return to step 22 and continue traversing; otherwise, proceed to step 25; Step 25: Only the last item is kept, then At the same time, n3 is set to n-1, and init_status is set to 1, to determine that the current state sequence successfully matches the security state sequence set, and directly determine that the threat level of the current state sequence is 0; wherein the initial value of init_status is 0, which is used to indicate whether a complete match of the security state sequence is performed; Step 26, if init_status is 0, go to step 27, otherwise go to step 28; Step 27, init_status is 0, judge Is it W i If yes, it is determined that the current state sequence successfully matches the security state sequence set, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the security state sequence set and return to step 22; Step 28, judge Whether it is related to W i The first n-n1 items of are the same. If so, it is determined that the current state sequence matches the security state sequence set successfully, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the security state sequence set and return to step 22.

5. The method according to claim 1, characterized in that The method further comprises: If the threat level of the current state sequence is less than a preset security risk threshold, it is determined that the power grid has not been attacked by power service messages.

6. A power business message attack identification system based on business logic, characterized in that: The system comprises: A current state sequence determination unit, configured to obtain a multi-point signal value sequence and a multi-point signal address sequence of a current state node from a power service message, determine a control block corresponding to the current state node according to the multi-point signal address sequence, and add the multi-point signal value sequence to the state sequence of the control block to obtain a current state sequence; A dangerous state sequence set and a safe state sequence set determining unit, used to respectively determine a dangerous state sequence set and a safe state sequence set corresponding to the current state sequence according to the multi-point signal address sequence of the current state sequence; A threat level determination unit, configured to determine the threat level of the current state sequence according to the current state sequence, the dangerous state sequence set, and the safe state sequence set; An electric power business message attack identification unit, used to compare the threat level of the current state sequence with a preset security risk threshold, and when the threat level of the current state sequence is greater than or equal to the preset security risk threshold, determine that the power grid has been attacked by an electric power business message; The threat level determination unit determines the threat level of the current state sequence according to the current state sequence, the dangerous state sequence set and the safe state sequence set, including: a dangerous state sequence set matching module, used for matching the current state sequence with the dangerous state sequence set, and if the current state sequence matches the dangerous state sequence set successfully, determining the threat level of the current state sequence to be 1; a safety state sequence set matching module, configured to match the current state sequence with the safety state sequence set if the current state sequence fails to match the dangerous state sequence set, and to determine that the threat level of the current state sequence is 0 if the current state sequence successfully matches the safety state sequence set; The dangerous state sequence set matching module matches the current state sequence with the dangerous state sequence set, including: Step 11: Set the current status sequence status_sequence now =(S′,pos_sequence now ) in S′=(status1, status2,…,status n )'s latest multi-point signal value sequence status n Add to cache status In which, the initial value of n1 is 0. After adding Step 12, sequentially traverse all the rules in the set of dangerous state sequences If it satisfies n2 > n - n1 and i ≠ t, continue the traversal; if it satisfies n2 > n - n1 and i = t, it means the matching ends, the traversal ends, and continue to execute the safety state sequence set matching mode; if it satisfies n2 < n - n1, go to Step 13; otherwise, go to Step 14; in all the rules Step 13: The last n2 items of are retained, then And set n1 to n-n2, then Step 14, judgement Whether with B i The same; if the same, then Only the last item is kept, then At the same time, n1 is set to n-1, and it is determined that the current state sequence successfully matches the dangerous state sequence set, and the threat level of the current state sequence is directly determined to be 1; otherwise, return to step 12 to continue traversal.

7. The system according to claim 6, characterized in that The threat level determination unit determines the threat level of the current state sequence according to the current state sequence, the dangerous state sequence set, and the safe state sequence set, including: A first minimum distance and a second minimum distance determination module, used to respectively calculate a first minimum distance between the current state sequence and the dangerous state sequence set, and a second minimum distance between the current state sequence and the safe state sequence set; A threat level determination module is used to calculate the threat level of the current state sequence according to the first minimum distance and the second minimum distance.

8. The system according to claim 7, characterized in that The threat level determination module calculates the threat level of the current state sequence according to the first minimum distance and the second minimum distance, including: Among them, P threaten is the threat level of the current state sequence; d black is the first minimum distance; d white is the second smallest distance.

9. The system according to claim 7, characterized in that The security state sequence set matching module matches the current state sequence with the security state sequence set, including: Step 21: Set the current status sequence status_sequence now =(S′,pos_sequence now ) in S′=(status1, status2,…,status n )'s latest multi-point signal value sequence status n Add to cache status In which, the initial value of n3 is 0. After adding Step 22, sequentially traverse all the rules in the safe state sequence set If it satisfies n4 > n - n3 and i ≠ e, then go to Step 26; if it satisfies n4 > n - n3 and i = e, it means the matching fails and the traversal ends; if it satisfies n4 < n - n3, then go to Step 23; otherwise, go to Step 24; in it, Step 23: The last n4 items are retained, then And set n3 to n-n4, then Step 24, judgement Whether it is related to W i If they are the same, then return to step 22 and continue traversing; otherwise, proceed to step 25; Step 25: Only the last item is kept, then At the same time, n3 is set to n-1, and init_status is set to 1, to determine that the current state sequence successfully matches the security state sequence set, and directly determine that the threat level of the current state sequence is 0; wherein the initial value of init_status is 0, which is used to indicate whether a complete match of the security state sequence is performed; Step 26, if init_status is 0, go to step 27, otherwise go to step 28; Step 27, init_status is 0, judge Is it W i If yes, it is determined that the current state sequence successfully matches the security state sequence set, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the security state sequence set and return to step 22; Step 28, judge Whether it is related to W i The first n-n1 items of are the same. If so, it is determined that the current state sequence matches the security state sequence set successfully, and the threat level of the current state sequence is directly determined to be 0; otherwise, continue to traverse other rules in the security state sequence set and return to step 22.

10. The system according to claim 6, characterized in that The power service message attack identification unit is further used for: If the threat level of the current state sequence is less than a preset security risk threshold, it is determined that the power grid has not been attacked by power service messages.

Citation Information

Patent Citations

  • Intrusion prevention method and device

    CN106790313A

  • Network attack mode identification method and device

    CN108092948A

  • Network maintenance method and device and terminal device

    CN109246027A

  • Grid unknown threat detection system and method

    CN109586282A

  • Abnormal flow data identification method and device, medium and electronic equipment

    CN109787960A