Cross-domain threat detection method, system, medium and equipment
By extracting communication behavior characteristics on the information side and real-time photovoltaic measurement data on the physical side based on historical data in the power system, the problem of high false alarm rate and false negative rate of traditional power system cross-domain attack detection methods is solved, and the detection of Accurate detection and fault identification of cross-domain attacks.
Patent Information
- Application Number
- CN202411034110.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-11
AI Technical Summary
The traditional cross-domain attack detection methods of power cyber-physical systems have high false positive and false negative rates, and insufficient defense methods, making it difficult to accurately detect cross-domain attacks.
The information side communication behavior characteristics are extracted based on historical data, the anomaly detection model is trained, and the physical side photovoltaic real-time measurement data is combined for collaborative analysis to identify cross-domain attack traffic and reduce the false alarm rate.
It achieves accurate detection of cross-domain attacks, reduces false alarm rates, improves detection accuracy, and can effectively distinguish between fault burst flows and cross-domain attack flows.
Smart Images

Figure CN118764291A_ABST
Abstract
Description
Background Art
[0002] Data-driven, BP neural network, traffic feature extraction, communication traffic tracing
[0003] The physical side state of the distributed photovoltaic power system has a great impact on the communication traffic behavior on the information side. Figure 1 To illustrate: when the physical side of the power is in normal operation, the business layer also processes and sends business information in a normal mode, and the network layer traffic remains stable; however, when a distributed photovoltaic fault occurs at the physical side terminal, the power flow becomes abnormal. In order to upload the fault information and handle the fault, the business flow also accelerates and increases accordingly, causing the communication flow to deviate from the stable state and change.
[0004] On the other hand, when a cross-domain attack occurs, abnormal fluctuations in network layer traffic will cause abnormal business flows and may further spread, leading to physical side failures.
[0005] Therefore, the power system communication network contains both time-related periodic traffic and event-driven uncertain traffic. Among them, event-driven uncertain traffic will cause greater interference to traffic anomaly detection. Summary of the Invention
[0006] The technical problem to be solved by the present invention is to provide a cross-domain threat detection method, system, medium and equipment to address the deficiencies in the above-mentioned existing technologies, so as to solve the technical problems that the traditional active anomaly detection method of the power information-physical system relies solely on the behavior of the communication terminal, has a high false alarm rate and missed alarm rate and insufficient defense measures, and realize accurate detection of cross-domain attacks, while ensuring a high attack detection accuracy and significantly reducing the false alarm rate.
[0007] The present invention adopts the following technical solutions:
[0008] A cross-domain threat detection method includes the following steps:
[0009] Extract information-side communication behavior characteristics based on historical data;
[0010] The data-driven anomaly detection model based on communication behavior characteristics is trained using information-side communication behavior characteristics. The trained anomaly detection model is then used to perform data-driven anomaly feature detection to obtain abnormal traffic including fault burst flows and cross-domain attack flows.
[0011] The abnormal traffic is collaboratively analyzed using the discretized physical side photovoltaic real-time measurement data features to identify cross-domain attack traffic from the abnormal traffic.
[0012] Preferably, the information side communication behavior characteristics extracted based on historical data are specifically:
[0013] Parse the header of the data packet in the power system communication network to obtain the data packet characteristics;
[0014] According to the obtained data packet characteristics, the data flow is divided according to the protocol type constraint. The divided data flow unit is called a connection, and the information side communication behavior characteristics are extracted for each connection.
[0015] Preferably, the data packet characteristics include corresponding source IP address, destination IP address, source port number, destination port number, protocol type, timestamp, and packet length.
[0016] Preferably, the information side communication behavior characteristics include basic connection characteristics, time-based statistical characteristics and host-based statistical characteristics;
[0017] Basic connection characteristics include the number of packets, data flow length, average packet delay, and packet delay difference;
[0018] Time-based statistical features include the number of connections with the same source / service / destination address within the first m seconds after each successful connection;
[0019] Host-based statistics include the number of connections with the same source / service / destination address in the last n connections.
[0020] Preferably, the BP neural network is used as an anomaly detection model based on communication behavior characteristics, and the training samples are set to include only normal traffic and abnormal traffic caused by faults, so as to perform data-driven abnormal feature detection.
[0021] Preferably, when the BP neural network is a single hidden layer BP neural network, the output y(x) is expressed as:
[0022]
[0023] Among them, β is the connection weight from the hidden layer to the output layer, w ij is the connection weight between the input layer and the hidden layer, b j is the bias of the hidden layer node, G is the activation function, x n It is the traffic feature vector after the communication behavior characteristics are normalized according to the data standard, and its dimension is n.
[0024] Preferably, when the BP neural network is a multi-layer hidden layer BP neural network, a feedforward propagation method is used for calculation, as follows:
[0025]
[0026] Among them, I m+1 (x) is, w ij is the connection weight between the input layer and the hidden layer, b jis the bias of the hidden layer node, G is the activation function, I m (x n ) is the output value of the feature vector after the neural network training of the mth hidden layer, and is also the input value to be input into the m+1th hidden layer for neural network training.
[0027] Preferably, in the process of training the data-driven anomaly detection model based on communication behavior characteristics, the error is calculated from the last layer forward by calculating the state and activation value of each layer, and each weight parameter is updated to minimize the error between the predicted output and the actual output of the network. The iteration is performed until the allowable error is met. The minimum output error e satisfies the following conditions:
[0028]
[0029] Among them, H represents the input matrix of the output layer of each training process, is the connection weight vector from the hidden layer to the output layer, and T is the expected output matrix of the training sample.
[0030] Preferably, before performing data-driven abnormal feature detection, the information side communication behavior features are first standardized and normalized.
[0031] Preferably, the physical side photovoltaic real-time quantity measurement data features include photovoltaic access node voltage and line current; the physical side photovoltaic real-time quantity measurement data features are discretized according to the fault definition range, and the fault burst flow triggering conditions are as follows:
[0032] The per unit value of the photovoltaic node voltage exceeds [U l ,U h ] range; the current is to pass through the photovoltaic lines to stabilize the operating current I N As standard, more than [C1I N ,C2I N ] range is considered abnormal.
[0033] Preferably, the collaborative analysis of abnormal traffic flow is performed using the discretized physical side photovoltaic real-time measurement data features as follows:
[0034] If the abnormal traffic is a sudden flow caused by a fault, the corresponding physical-side PV node is the fault point or affected node, and the discrete post-measurement is the fault quantity; if the abnormal traffic is caused by an attack, the corresponding physical-side PV node is in normal operation, and the discrete post-measurement is the normal quantity.
[0035] Preferably, identifying cross-domain attack traffic from abnormal traffic is specifically as follows:
[0036] Extract the traffic behavior feature C of real-time traffic, input it into the anomaly detection model based on communication behavior feature, and detect abnormal traffic C A ;
[0037] Extract the i-th dimension feature timestamp C from the m-dimensional features of abnormal traffic Ai , match the physical side distributed photovoltaic measurement data under the time section and discretize it to extract the physical side feature U T , corresponding to the n measurement nodes of the system; combining the bilateral features S of the abnormal traffic to be traced;
[0038] Extract the j-th dimension feature source IP address C of abnormal traffic Aj ,According to the results, the communication device P, the source of the abnormal traffic, is located,to the physical device Q, which corresponds to the qth node in the power topology, and has a set of adjacent nodes R.,The physical side features of the abnormal source node and its surrounding nodes are extracted by integrating the bilateral features of the abnormal traffic;
[0039] If the physical characteristic of the abnormal source node is a normal quantity 1 or only the abnormal source node is a fault quantity 0 or 2, the abnormal traffic is judged to be a cross-domain attack flow; otherwise, it is a fault burst flow.
[0040] In a second aspect, an embodiment of the present invention provides a cross-domain threat detection system, characterized by including:
[0041] Extraction module, extracts information side communication behavior features based on historical data;
[0042] The detection module uses information-side communication behavior characteristics to train a data-driven anomaly detection model based on communication behavior characteristics. The trained anomaly detection model is then used to perform data-driven anomaly feature detection to obtain abnormal traffic including fault burst flows and cross-domain attack flows.
[0043] The identification module uses the discretized physical-side photovoltaic real-time measurement data characteristics to collaboratively analyze abnormal traffic, trace the source of abnormal traffic, and identify cross-domain attack traffic from abnormal traffic.
[0044] Preferably, in the extraction module, the information side communication behavior features extracted based on historical data are specifically:
[0045] Parse the header of the data packet in the power system communication network to obtain the data packet characteristics;
[0046] According to the obtained data packet characteristics, the data flow is divided according to the protocol type constraint. The divided data flow unit is called a connection, and the information side communication behavior characteristics are extracted for each connection.
[0047] Preferably, in the detection module, the BP neural network is used as an anomaly detection model based on communication behavior characteristics, and the training samples are set to include only normal traffic and abnormal traffic caused by faults, so as to perform data-driven abnormal feature detection.
[0048] Preferably, in the identification module, the physical side photovoltaic real-time quantity measurement data features include photovoltaic access node voltage and line current; the physical side photovoltaic real-time quantity measurement data features are discretized according to the fault definition range, and the fault burst flow triggering conditions are set as follows:
[0049] The per unit value of the photovoltaic node voltage exceeds [U l ,U h ] range; the current is to pass through the photovoltaic lines to stabilize the operating current I N As standard, more than [C1I N ,C2I N ] range is considered abnormal.
[0050] Preferably, in the identification module, the abnormal flow is collaboratively analyzed using the discretized physical side photovoltaic real-time measurement data features as follows:
[0051] If the abnormal traffic is a sudden flow caused by a fault, the corresponding physical-side PV node is the fault point or affected node, and the discrete post-measurement is the fault quantity; if the abnormal traffic is caused by an attack, the corresponding physical-side PV node is in normal operation, and the discrete post-measurement is the normal quantity.
[0052] Preferably, identifying cross-domain attack traffic from abnormal traffic is specifically as follows:
[0053] Extract the traffic behavior feature C of real-time traffic, input it into the anomaly detection model based on communication behavior feature, and detect abnormal traffic C A ;
[0054] Extract the i-th dimension feature timestamp C from the m-dimensional features of abnormal traffic Ai , match the physical side distributed photovoltaic measurement data under the time section and discretize it to extract the physical side feature U T , corresponding to the n measurement nodes of the system; combining the bilateral features S of the abnormal traffic to be traced;
[0055] Extract the j-th dimension feature source IP address C of abnormal traffic Aj ,According to the results, the communication device P, the source of the abnormal traffic, is located,to the physical device Q, which corresponds to the qth node in the power topology, and has a set of adjacent nodes R.,The physical side features of the abnormal source node and its surrounding nodes are extracted by integrating the bilateral features of the abnormal traffic;
[0056] If the physical characteristic of the abnormal source node is a normal quantity 1 or only the abnormal source node is a fault quantity 0 or 2, the abnormal traffic is judged to be a cross-domain attack flow; otherwise, it is a fault burst flow.
[0057] In a third aspect, a computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned cross-domain threat detection method when executing the computer program.
[0058] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, comprising a computer program, which implements the steps of the above-mentioned cross-domain threat detection method when executed by a processor.
[0059] Compared with the prior art, the present invention has at least the following beneficial effects:
[0060] A cross-domain threat detection method first uses a data-driven approach to perform an anomaly screening on massive power communication traffic, then combines information-side communication terminal behavior with physical-side photovoltaic measurement data characteristics to identify the cause of the anomaly. This method achieves a higher accuracy in detecting cross-domain attacks and rarely results in false positives for normal traffic. This method enables more accurate and efficient cross-domain threat detection. Abnormal traffic on the communication side is caused by physical-side faults or cross-domain attacks, but abnormal behavior of communication terminals caused by physical-side faults is the medium for detecting faults, scheduling, uploading data, and issuing recovery instructions to the system's secondary equipment. Under normal operating conditions of the system's communication network, it can be assumed that abnormal physical measurement data characteristics and abnormal communication terminal behavior during physical-side faults occur simultaneously. Abnormal traffic on the communication side caused by cross-domain attacks needs to break through the security protection equipment on the information side to reach the physical side in order to trigger a fault, a process that has a time lag. Therefore, it can be assumed that abnormal traffic during cross-domain attacks, in most cases, corresponds only to abnormal communication behavior characteristics on the system's information side, but does not rule out the possibility that both abnormal physical measurement data characteristics and abnormal communication terminal behavior characteristics occur simultaneously. The method of the present invention has a high accuracy rate and rarely results in false positives.
[0061] Furthermore, extracting information-side communication behavior characteristics based on historical data is essentially setting a benchmark for behavior characteristics based on a large amount of historical communication data under normal or abnormal conditions of the system, so as to identify whether the current information-side communication behavior is abnormal. Due to the wide range of historical data types and large data volume, this is conducive to the rationality and universality of the setting of communication behavior characteristics.
[0062] Furthermore, the basic connection characteristics cover the basic characteristics of communication data. The time-based statistical characteristics reflect the frequency of each communication terminal transmitting communication data to different devices within a period of time. The host-based statistical characteristics reflect the frequency of each communication terminal transmitting communication data to a specific device. Based on the above three, the communication behavior characteristics of the information side can be more completely characterized and abnormal traffic can be identified.
[0063] Furthermore, as attackers' capabilities and techniques continue to improve, in addition to a small amount of attack traffic that clearly differs from the communication behavior of power CPSs, there is also a large amount of attack traffic that mimics normal or faulty communication behavior. This makes it impossible to include all attack types in training samples, as otherwise the detection cost would be too high. Given the good generalization performance of BP neural networks, it is possible to set the training samples to only include normal traffic and abnormal traffic caused by faults, thereby achieving the goal of detecting the vast majority of abnormal traffic at a low cost and time.
[0064] Furthermore, the single hidden layer neural network has a simple structure and is easy to train, and is suitable for fitting nonlinear data in simple scenarios. However, due to the complex characteristics of the traffic data in this invention, it is not suitable for the abnormal feature detection of this invention.
[0065] Furthermore, the multi-hidden layer neural network has stronger nonlinear mapping capabilities and higher flexibility, is suitable for the abnormal feature detection of the invention, and can better fit the nonlinear relationship between communication behavior characteristics and abnormal traffic.
[0066] Furthermore, the multi-hidden layer neural network can more accurately reflect the nonlinear relationship between communication behavior characteristics and abnormal traffic, thereby enhancing the validity of abnormal traffic detection.
[0067] Furthermore, the master station needs to issue control instructions to maintain the output voltage and current of the photovoltaic system on the physical side within a certain range to ensure flexible adjustment of the grid-connected output power. Therefore, a certain range is set, and whether the measured current and voltage exceed the limit is used to reflect whether the photovoltaic system is in normal operation. If the measured data exceeds the limit, it means that the photovoltaic system is in an abnormal operating state.
[0068] Furthermore, abnormal communication-side traffic is caused by physical-side faults or cross-domain attacks. However, the abnormal communication terminal behavior caused by physical-side faults is the medium for the system's secondary equipment to detect faults, schedule, upload data, and issue recovery instructions. When the system's communication network is operating normally, it can be assumed that the abnormal physical measurement data characteristics and abnormal communication terminal behavior during physical-side node failures occur simultaneously, meaning that the physical-side photovoltaic node measurement corresponding to the abnormal traffic is the faulty quantity. On the other hand, abnormal communication-side traffic caused by cross-domain attacks needs to break through the security protection equipment on the information side to reach the physical side in order to trigger a fault, a process that has a time lag. Therefore, it can be assumed that in most cases, abnormal traffic during cross-domain attacks only corresponds to abnormal communication behavior characteristics on the system's information side, meaning that the physical-side nodes are still operating normally and the measurement is normal.
[0069] Furthermore, cross-domain attack flows or fault burst flows will cause abnormal traffic in the communication test. Therefore, if you want to detect cross-domain attacks, you must eliminate the impact of fault bursts to improve detection accuracy.
[0070] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0071] In summary, the present invention can effectively identify fault traffic and attack traffic in abnormal traffic and reduce the frequency of false alarms.
[0072] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 Schematic diagram of the impact of physical terminal status on information flow
[0074] Figure 2 Flowchart of the cross-domain threat enhancement detection method based on physical terminal behavior and information communication behavior
[0075] Figure 3 The basic structure of a single hidden layer BP neural network
[0076] Figure 4 Flowchart for cross-domain attack flow identification and screening based on bilateral features
[0077] Figure 5 An example diagram of communication behavior characteristics of the best embodiment
[0078] Figure 6 This is an example of the cross-domain attack enhanced detection method process of the present invention;
[0079] Figure 7 A schematic diagram of a computer device provided in accordance with an embodiment of the present invention;
[0080] Figure 8 The present invention is a block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0081] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0082] In the description of the present invention, it is to be understood that the terms “include” and “comprise” indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0083] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0084] It should be further understood that the term "and / or" as used in the present specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.
[0085] It should be understood that although the terms "first," "second," and "third" may be used to describe preset ranges in embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are merely used to distinguish one preset range from another. For example, without departing from the scope of embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0086] The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0087] The accompanying drawings illustrate various schematic diagrams of structures according to embodiments disclosed herein. These figures are not drawn to scale; for clarity, some details are exaggerated and some details may be omitted. The shapes of the various regions and layers shown in the figures, as well as their relative sizes and positional relationships, are merely exemplary and may deviate in practice due to manufacturing tolerances or technical limitations. Those skilled in the art may design regions / layers with different shapes, sizes, and relative positions as needed.
[0088] See also Figure 1 , including the physical side state of the distributed photovoltaic power system has a significant impact on the communication traffic behavior on the information side; when the power physical layer is in normal operation, the business layer also processes and sends business information in a normal mode, and the network layer traffic remains stable;
[0089] When a distributed photovoltaic fault occurs at the physical side terminal, the power flow becomes abnormal. In order to upload fault information and handle the fault, the business flow also accelerates and increases accordingly, causing the communication flow to deviate from the stable state and change.
[0090] On the other hand, when a cross-domain attack occurs, abnormal fluctuations in network layer traffic will cause abnormal business flows and may further spread, leading to physical side failures.
[0091] Therefore, the power system communication network contains both time-related periodic traffic and event-driven uncertain traffic. Among them, event-driven uncertain traffic will cause greater interference to traffic anomaly detection.
[0092] See also Figure 2 The present invention provides a cross-domain threat detection method, comprising the following steps:
[0093] S1. Extract information-side communication behavior features from historical data;
[0094] S101, in order to extract communication behavior features, the packet header of the data packet in the power system communication network is parsed to obtain the data packet features;
[0095] Data packet features include corresponding source IP address, destination IP address, source port number, destination port number, protocol type, timestamp, and packet length.
[0096] S102. Based on the data packet features obtained in step S101, the data stream is divided according to the protocol type constraints (such as the three-way handshake to establish a connection and the four-way handshake to end the connection in the TCP protocol). The divided data stream unit is called a connection. Communication behavior features are extracted for each connection, including basic connection features, time-based statistical features, and host-based statistical features.
[0097] Basic connection characteristics include the number of packets, data flow length, average packet delay, and packet delay difference;
[0098] Time-based statistical features include the number of connections with the same source / service / destination address within the first m seconds after each successful connection;
[0099] Host-based statistics include the number of connections with the same source / service / destination address in the last n connections.
[0100] Among them, the data flow length refers to the sum of the lengths of the data packets in the flow;
[0101] The average packet delay is the difference between the timestamp of the packet and the previous packet in the flow;
[0102] The packet delay difference is the difference between the delay of the current packet and the delay of the previous packet.
[0103] S2. Based on the information-side communication behavior characteristics obtained in step S1, a data-driven anomaly detection model based on communication behavior characteristics is trained and tested, and abnormal traffic including fault burst flow and cross-domain attack flow is detected using a data-driven method;
[0104] Before anomaly detection, the features are preprocessed to eliminate the influence of different dimensions among the features and improve the detection accuracy.
[0105] Preprocessing includes standardization and normalization, as follows:
[0106] The standardization method is as follows:
[0107]
[0108] Among them, X ij is the jth original characteristic value of the i-th flow, X ij ' is the corresponding feature quantity after standardization; AVG j is the average value of the jth feature, STAD j is the mean absolute deviation of the jth feature.
[0109] AVG j and STAD j The expression is as follows:
[0110]
[0111] The specific process of data normalization is as follows:
[0112]
[0113] Among them, X ij ' is the value of the data to be normalized, X min is the minimum value of the j-th feature, X max is the maximum value of the j-th feature, X ij The data are normalized.
[0114] After normalization, the BP neural network is used as an anomaly detection model based on communication behavior characteristics to perform data-driven anomaly feature detection.
[0115] Select a multi-hidden layer BP neural network and increase the number of training rounds and iterations to increase detection accuracy and reduce the false alarm rate of anomaly detection.
[0116] See also Figure 3 , is the basic structure of BP neural network. For a single hidden layer BP neural network with n training samples and l hidden layer nodes, the input from sample node i to hidden layer node j is expressed as:
[0117] I(x j )=G(w ij x+b j )(7)
[0118] Among them, w ij is the connection weight between the input layer and the hidden layer, b j is the bias of the hidden layer node, and G is the activation function.
[0119] The output of a single hidden layer BP neural network is expressed as:
[0120]
[0121] Among them, β is the connection weight from the hidden layer to the output layer.
[0122] For multi-layer hidden layer BP neural network, the feedforward propagation method is used for calculation. The output of the previous hidden layer is used as the input of the next hidden layer, until the last output layer is calculated according to formula (8), as follows:
[0123]
[0124] The input weights and biases of the BP neural network are obtained by random initialization. The training process is to continuously adjust the connection weights between each neuron in the network so that the neural network can learn the mapping relationship between input and output.
[0125] By calculating the state and activation values of each layer, moving forward from the last layer to calculate the error, and updating the weight parameters to minimize the error between the network's predicted output and the actual output.
[0126] This process is iterated continuously until the allowable error is met. If the expected output matrix of the training sample is T, to minimize the output error, equation (10) must be satisfied:
[0127]
[0128] Among them, H represents the input matrix of the output layer of each training process, is the connection weight vector from the hidden layer to the output layer.
[0129] Considering that the BP neural algorithm has good self-learning and adaptive performance, the training samples are set to include only normal traffic and abnormal traffic caused by faults to achieve the purpose of detecting abnormal traffic.
[0130] S3. Based on the discretized physical-side photovoltaic real-time measurement data characteristics, the abnormal traffic obtained in step S2 is collaboratively analyzed to achieve abnormal traffic source tracing, identify cross-domain attack traffic and fault burst traffic from the abnormal traffic, and use the cross-domain attack traffic to update the communication behavior feature-based anomaly detection model in step S2.
[0131] The physical side measurement data feature extraction is as follows:
[0132] The physical side measurement data includes photovoltaic access node voltage and line current, which are both time-continuous physical quantities. When performing anomaly detection, the judgment is based on the state of a certain time section, so the continuous physical quantities need to be discretized.
[0133] Both burst traffic and cross-domain attack traffic caused by physical-side distributed photovoltaic terminal failures are considered abnormal traffic that differs from normal communication methods. This type of abnormal traffic can be detected based on communication behavior characteristics. Considering the impact of physical-side status on communication traffic, further anomaly tracing based on dual-side characteristics is necessary to detect cross-domain attack traffic.
[0134] If the abnormal traffic is a sudden traffic caused by a fault, then the corresponding physical-side PV node should be the fault point or the affected node, and its discrete post-quantity measurement should be the fault quantity;
[0135] If the abnormal traffic is caused by an attack, the corresponding physical-side PV node should be in normal operation and its discrete post-measurement should be normal.
[0136] See also Figure 4 The specific steps of the cross-domain threat detection process based on bilateral behavior are as follows:
[0137] S301, extracting the traffic behavior characteristics of real-time traffic C = [C1, C2, ..., C m ], a total of m-dimensional features; input anomaly detection model to detect abnormal traffic C A =[C A1 , C A2 ,…,C Am ];
[0138] S302: Extract the i-th dimension feature timestamp C from the m-dimensional features of the abnormal traffic. Ai = T, match the physical side distributed photovoltaic measurement data under the time section and discretize it to extract the physical side feature U T =[U T,1 , U T,2 ,…,U T,n ], a total of n-dimensional features, corresponding to the n measurement nodes of the system;
[0139] To address the event-driven burst traffic characteristics on the communication side, the physical side data is discretized according to the fault definition range. The fault burst flow triggering conditions are as follows:
[0140] The per unit value of the photovoltaic node voltage exceeds [U l ,U h ] range; the current is to pass through the photovoltaic lines to stabilize the operating current I N As standard, more than [C1I N ,C2I N ] range is considered abnormal.
[0141] The discrete method is shown in formula (1) and (2)
[0142] U i,t ′=ε(U i,t -U l )+ε(U i,t -U h )(1)
[0143] I j,t ′=ε(I j,t -C1I j,N )+ε(I j,t -C1I j,N )(2)
[0144] Among them, ε(t) is a step function, U l is the minimum normal per unit value allowed for photovoltaic voltage, U h is the maximum normal per unit value allowed by the photovoltaic voltage, C1 and C2 are set constants; U i,t is the per-unit voltage value of photovoltaic node i at time t, I j,t is the current value of line j at time t, I j,N is the current value of line j when it is in stable operation, U i,t ' is the discrete voltage value of photovoltaic node i at time t, I j,t ' is the discrete value of the current of line j at time t.
[0145] Thus, the physical side feature U is extracted T =[U T,1 , U T,2 ,…,U T,n ], a total of n-dimensional features, corresponding to the n measurement nodes of the system.
[0146] S303, combining the bilateral features of the abnormal traffic to be traced S = [C A ,U T ];
[0147] S304: Extract the j-th dimension feature source IP address C of the abnormal traffic. Aj= xxxx, and locate the communication device P, the source of the abnormal traffic, based on the result. Since each communication device corresponds to a physical measurement device, the physical device Q can be located, which corresponds to the qth node in the power topology and has a set of adjacent nodes R.
[0148] S305: Combine the results of step S303 and step S304 to extract the physical side features of the abnormal source node and its surrounding nodes. m+q and S m+k , k∈R;
[0149] S306: If the abnormal source node S m+q Physical characteristics are normal values 1 or only S m+q If the fault amount is 0 or 2, the abnormal traffic is judged to be a cross-domain attack flow; otherwise, it is judged to be a fault burst flow.
[0150] Those skilled in the art will appreciate that various aspects of the present invention may be implemented as systems, methods, or program products. Accordingly, various aspects of the present invention may be implemented in the following forms: entirely in hardware, entirely in software (including firmware, microcode, etc.), or in a combination of hardware and software, collectively referred to herein as "circuits," "modules," or "platforms."
[0151] In yet another embodiment of the present invention, a cross-domain threat detection system is provided. The system can be used to implement the above-mentioned cross-domain threat detection method. Specifically, the cross-domain threat detection system includes an extraction module, a detection module, and an identification module.
[0152] Among them, the extraction module extracts information side communication behavior features based on historical data;
[0153] The detection module uses information-side communication behavior characteristics to train a data-driven anomaly detection model based on communication behavior characteristics. The trained anomaly detection model is then used to perform data-driven anomaly feature detection to obtain abnormal traffic including fault burst flows and cross-domain attack flows.
[0154] The identification module uses the discretized physical-side photovoltaic real-time measurement data characteristics to collaboratively analyze abnormal traffic, trace the source of abnormal traffic, and identify cross-domain attack traffic from abnormal traffic.
[0155] In another embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the cross-domain threat detection method, including:
[0156] The information side communication behavior characteristics are extracted based on historical data; the information side communication behavior characteristics are used to train a data-driven anomaly detection model based on communication behavior characteristics, and then the trained anomaly detection model based on communication behavior characteristics is used to perform data-driven anomaly feature detection to obtain abnormal traffic including fault burst flow and cross-domain attack flow; the physical side photovoltaic real-time measurement data characteristics based on discretization are used to perform collaborative analysis of abnormal traffic, realize abnormal traffic tracing, and identify cross-domain attack traffic from abnormal traffic.
[0157] In another embodiment of the present invention, a storage medium is provided, specifically a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device in a terminal device for storing programs and data. It is understood that the computer-readable storage medium herein may include both built-in storage media in the terminal device and, of course, extended storage media supported by the terminal device. It may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. The computer-readable storage medium provides storage space that stores the terminal's operating system. Furthermore, the storage space also stores one or more instructions suitable for being loaded and executed by a processor. These instructions may be one or more computer programs (including program code). It should be noted that more specific examples (a non-exhaustive list) of computer-readable storage media herein include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0158] Computer-readable storage media also include data signals propagated in baseband or as part of a carrier wave, which carry readable program code. Such propagated data signals can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium can also be any readable medium other than a readable storage medium, which can send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0159] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0160] The processor may load and execute one or more instructions stored in a computer-readable storage medium to implement the corresponding steps of the cross-domain threat detection method in the above embodiment; the processor may load and execute the following steps:
[0161] The information side communication behavior characteristics are extracted based on historical data; the information side communication behavior characteristics are used to train a data-driven anomaly detection model based on communication behavior characteristics, and then the trained anomaly detection model based on communication behavior characteristics is used to perform data-driven anomaly feature detection to obtain abnormal traffic including fault burst flow and cross-domain attack flow; the physical side photovoltaic real-time measurement data characteristics based on discretization are used to perform collaborative analysis of abnormal traffic, realize abnormal traffic tracing, and identify cross-domain attack traffic from abnormal traffic.
[0162] See also Figure 7 The terminal device is a computer device. The computer device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable by the processor 61. When executed by the processor 61, the computer program 63 implements the method for calculating the fluid composition in a reservoir-stimulated wellbore according to the embodiment. To avoid repetition, a detailed description thereof is omitted here. Alternatively, when executed by the processor 61, the computer program 63 implements the functions of each model / unit in the system for calculating the fluid composition in a reservoir-stimulated wellbore according to the embodiment. To avoid repetition, a detailed description thereof is omitted here.
[0163] The computer device 60 may be a desktop computer, a notebook computer, a PDA, a cloud server, or other computing devices. The computer device 60 may include, but is not limited to, a processor 61 and a memory 62. It will be understood by those skilled in the art that Figure 7 This is merely an example of the computer device 60 and does not constitute a limitation of the computer device 60 . The computer device 60 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0164] The processor 61 may be a central processing unit (CPU), other general-purpose processors, central processing units (CPUs), graphics processors (GPUs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), other programmable logic devices, discrete gate or transistor logic devices, quantum computing-based data processing logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0165] The memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. The memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 60.
[0166] Furthermore, the memory 62 may include both an internal storage unit of the computer device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the computer device. The memory 62 may also be used to temporarily store data that has been output or is about to be output.
[0167] Any reference to memory, database or other media used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0168] The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may include, but are not limited to, general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic units, data processing logic units based on quantum computing, and the like.
[0169] See also Figure 8 The terminal device 600 is an electronic device that is implemented as a general-purpose computing device. The components of the electronic device may include, but are not limited to, at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), and a display unit 640.
[0170] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above method section of this specification. For example, the processing unit 610 can perform the following steps: Figure 2 Follow the steps shown in .
[0171] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0172] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0173] Bus 630 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0174] The electronic device 600 can also communicate with one or more external devices 700 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and / or any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication can occur via an input / output (I / O) interface 650. Furthermore, the electronic device 600 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 660. The network adapter 660 communicates with other modules of the electronic device 600 via the bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with the electronic device 600, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0175] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0176] Example
[0177] Taking a 7-node distributed photovoltaic distribution network and its corresponding communication network as an example, a total of 499 normal flows, 127 bilateral data in photovoltaic fault scenarios, and 123 bilateral data in cross-domain attack scenarios were collected.
[0178] The communication behavior features are extracted in 7 dimensions, including source IP address, destination IP address, timestamp, flow length, average packet delay, packet delay difference, and the number of identical flows in the first n seconds. The last 4 dimensions are used for anomaly detection. Communication behavior features are as follows: Figure 5 shown.
[0179] The performance of the present invention is evaluated from two aspects:
[0180] First, a multi-hidden-layer BP neural network was used to train anomaly detection models using samples of normal and faulty communication behavior. The invention employed cross-validation to evaluate the model's generalization performance and identify the optimal model. With a BP neural network with 100 hidden nodes and 5 layers, the average accuracy for detecting total abnormal traffic flow for both fault burst flows and network attack flows reached 82%, with the highest accuracy reaching 85.45%.
[0181] Secondly, we detect cross-domain attack threats in abnormal traffic. Based on the anomaly detection method of communication behavior characteristics, we detect a total of 115 abnormal flows. According to the source IP address and timestamp of the abnormal flows, we extract the corresponding physical side photovoltaic measurement data features. Figure 4 The process shown is used to identify the cause of the abnormality. Figure 6 The paper presents the system's dual-side characteristics for a specific time section corresponding to an abnormal flow rate, and a cross-domain attack detection process based on these characteristics. This process selects the voltage of the photovoltaic access node as the physical-side characteristic and discretizes it. The first abnormal flow sample in the figure begins at 3.4619 pm. The per-unit voltage values of all system nodes at this time section are obtained and discretized.
[0182] The voltages at PV access nodes 2, 3, and 4 are all faulty. Based on the source IP address 192.0.13.22, the abnormal flow originates from communication device FTU3. Based on the communication-physical device correspondence, segment switch 3 is found, corresponding to nodes 3 and 4. This abnormal flow is determined to be a fault burst flow.
[0183] Similar, yes Figure 6For the last abnormal sample in the data, the discrete values of the system PV node voltage at the section at that time were obtained based on the timestamp. All values were normal, and the abnormal flow was identified as a cross-domain attack flow. The overall detection accuracy of abnormal traffic based on bilateral features reached 87.86%, with an accuracy of 83.74% for unknown cross-domain attack flows. Detected cross-domain attack flows can be used as training samples to improve the anomaly detection model. All samples are used for detection model training. The overall abnormal traffic detection accuracy for fault burst flows and network attack flows can reach over 95%.
[0184] A trained anomaly detection model based on bilateral features detected 23 anomalous flows, achieving an overall detection accuracy of 98.67%. Because the training set included attack flow samples, the model was able to better characterize the characteristics of attack anomalies, resulting in a slightly improved accuracy rate of 90.91% for detecting cross-domain attack flows, compared to the results of a previous model that removed attack training samples.
[0185] In summary, the present invention provides a cross-domain threat detection method, system, medium and device, which can accurately detect cross-domain attacks on distributed photovoltaic power systems. While ensuring a high attack detection accuracy, it effectively solves the problem of incorrect identification of physical side faults of the system itself, greatly reducing the false alarm rate.
[0186] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0187] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0188] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0189] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or units, and can be electrical, mechanical, or other forms.
[0190] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0191] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0192] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0193] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0194] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0195] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0196] The above content is only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A cross-domain threat detection method, characterized in that: The following steps are involved: Extract information-side communication behavior features based on historical data; The communication behavior characteristics of the information side are used to train the data-driven anomaly detection model based on communication behavior characteristics, and then the trained anomaly detection model based on communication behavior characteristics is used to perform data-driven anomaly feature detection to obtain abnormal traffic including fault burst flow and cross-domain attack flow; The abnormal traffic obtained is collaboratively analyzed using the discretized physical side photovoltaic real-time measurement data features to identify cross-domain attack traffic from the abnormal traffic.
2. The cross-domain threat detection method according to claim 1, characterized in that: The communication behavior characteristics of the information side extracted based on historical data are as follows: Parse the packet headers of data packets in the power system communication network to obtain the characteristics of the data packets; According to the characteristics of the obtained data packets, the data stream is divided under the protocol type constraints. The divided data stream unit is called a connection, and the information side communication behavior characteristics are extracted for each connection.
3. The cross-domain threat detection method according to claim 2, characterized in that: The data packet characteristics include the corresponding source IP address, destination IP address, source port number, destination port number, protocol type, timestamp, and packet length.
4. The cross-domain threat detection method according to claim 2, characterized in that: The information side communication behavior characteristics include basic connection characteristics, time-based statistical characteristics, and host-based statistical characteristics; Basic connection characteristics include the number of packets, data flow length, average packet delay, and packet delay difference; Time-based statistical features include the number of connections with the same source / service / destination address within the first m seconds after each successful connection; Host-based statistics include the number of connections with the same source / service / destination address in the last n connections.
5. The cross-domain threat detection method according to claim 1, characterized in that: It is beneficial to use BP neural network as an anomaly detection model based on communication behavior characteristics. The training samples are set to only include normal traffic and abnormal traffic caused by faults, and data-driven abnormal feature detection is performed.
6. The cross-domain threat detection method according to claim 5, characterized in that: When the BP neural network is a single hidden layer BP neural network, the output y(x) is expressed as: Among them, β is the connection weight from the hidden layer to the output layer, w ij is the connection weight between the input layer and the hidden layer, b j is the bias of the hidden layer node, G is the activation function, x n It is the traffic feature vector after the communication behavior characteristics are normalized by data standard, and its dimension is n.
7. The cross-domain threat detection method according to claim 5, characterized in that: When the BP neural network is a multi-layer hidden layer BP neural network, the feedforward propagation method is used for calculation, as follows: Among them, I m+1 (x) is, w ij is the connection weight between the input layer and the hidden layer, b j is the bias of the hidden layer node, G is the activation function, I m (x n ) is the output value of the feature vector after the neural network training of the mth hidden layer, and is also the input value to the m+1th hidden layer for neural network training.
8. The cross-domain threat detection method according to claim 1, characterized in that: In the process of training the data-driven anomaly detection model based on communication behavior characteristics, the error is calculated from the last layer forward by calculating the state and activation value of each layer, and each weight parameter is updated to minimize the error between the predicted output and the actual output of the network. The error is iterated until the allowable error is met. The minimum output error e satisfies the following conditions: Among them, H represents the input matrix of the output layer of each training process, is the connection weight vector from the hidden layer to the output layer, and T is the expected output matrix of the training sample.
9. The cross-domain threat detection method according to claim 1, characterized in that: Before performing data-driven abnormal feature detection, the communication behavior characteristics on the information side are first standardized and normalized.
10. The cross-domain threat detection method according to claim 1, characterized in that: The real-time photovoltaic measurement data characteristics on the physical side include the photovoltaic access node voltage and line current. The real-time photovoltaic measurement data characteristics on the physical side are discretized according to the fault definition range, and the fault burst flow triggering conditions are as follows: The per unit value of the photovoltaic node voltage exceeds [U l ,U h ] range; the current is to pass through each photovoltaic line to stabilize the operating current I N As standard, exceeding [C1I N ,C2I N ] range is considered abnormal.
11. The cross-domain threat detection method according to claim 1, characterized in that: The collaborative analysis of abnormal traffic flow is carried out based on the discretization of the physical side photovoltaic real-time measurement data characteristics: If the abnormal traffic is a burst traffic caused by a fault, the corresponding physical side PV node is the fault point or the affected node, and the discrete quantity is measured as the fault quantity; if the abnormal traffic is caused by an attack, the corresponding physical side PV node is in normal operation, and the discrete quantity is measured as the normal quantity.
12. The cross-domain threat detection method according to claim 10, characterized in that: Identifying cross-domain attack traffic from abnormal traffic is as follows: Extract the traffic behavior feature C of real-time traffic, input it into the anomaly detection model based on communication behavior features, and detect abnormal traffic C A ; Extract the i-th dimension feature timestamp C from the m-dimensional features of abnormal traffic Ai , match the physical side distributed photovoltaic measurement data under the time section and discretize it to extract the physical side feature U T , corresponding to the n measurement nodes of the system; combining the bilateral features S of the abnormal traffic to be traced; Extract the j-th dimension feature source IP address C of abnormal traffic Aj ,According to the results, the communication device P, the source of the abnormal traffic, is located to the physical device Q, which corresponds to the qth node in the power topology and has a set of adjacent nodes R. The physical side features of the abnormal source node and its surrounding nodes are extracted by combining the bilateral features of the abnormal traffic; If the physical characteristic of the abnormal source node is a normal value of 1 or only the abnormal source node is a fault value of 0 or 2, the abnormal traffic is judged to be a cross-domain attack flow; otherwise, it is a fault burst flow.
13. A cross-domain threat detection system, characterized in that: include: An extraction module extracts information-side communication behavior features based on historical data; The detection module uses the information side communication behavior characteristics to train the data-driven anomaly detection model based on communication behavior characteristics, and then uses the trained anomaly detection model based on communication behavior characteristics to perform data-driven anomaly feature detection to obtain abnormal traffic including fault burst flow and cross-domain attack flow; The identification module uses the real-time measurement data characteristics of the physical side photovoltaic based on discretization to collaboratively analyze abnormal traffic, realize abnormal traffic tracing, and identify cross-domain attack traffic from abnormal traffic.
14. The cross-domain threat detection system according to claim 13, characterized in that: In the extraction module, the communication behavior characteristics of the information side are extracted based on historical data, specifically: Parse the packet headers of data packets in the power system communication network to obtain the packet features; According to the characteristics of the obtained data packets, the data stream is divided under the protocol type constraints. The divided data stream unit is called a connection, and the information side communication behavior characteristics are extracted for each connection.
15. The cross-domain threat detection system according to claim 13, characterized in that: In the detection module, the BP neural network is used as an anomaly detection model based on communication behavior characteristics. The training samples are set to include only normal traffic and abnormal traffic caused by faults, and data-driven abnormal feature detection is performed.
16. The cross-domain threat detection system according to claim 13, characterized in that: In the identification module, the physical side photovoltaic real-time quantity measurement data features include photovoltaic access node voltage and line current; the physical side photovoltaic real-time quantity measurement data features are discretized according to the fault definition range, and the fault burst flow triggering conditions are set as follows: The per unit value of the photovoltaic node voltage exceeds [U l ,U h ] range; the current is to pass through each photovoltaic line to stabilize the operating current I N As standard, exceeding [C1I N ,C2I N ] range is considered abnormal.
17. The cross-domain threat detection system according to claim 13, characterized in that: In the identification module, the abnormal flow is collaboratively analyzed using the real-time measurement data characteristics of the physical side photovoltaic based on discretization. Specifically: If the abnormal traffic is a burst traffic caused by a fault, the corresponding physical side PV node is the fault point or the affected node, and the discrete quantity is measured as the fault quantity; if the abnormal traffic is caused by an attack, the corresponding physical side PV node is in normal operation, and the discrete quantity is measured as the normal quantity.
18. The cross-domain threat detection system according to claim 17, characterized in that: Identifying cross-domain attack traffic from abnormal traffic is as follows: Extract the traffic behavior feature C of real-time traffic, input it into the anomaly detection model based on communication behavior features, and detect abnormal traffic C A ; Extract the i-th dimension feature timestamp C from the m-dimensional features of abnormal traffic Ai , match the physical side distributed photovoltaic measurement data under the time section and discretize it to extract the physical side feature U T , corresponding to the n measurement nodes of the system; combining the bilateral features S of the abnormal traffic to be traced; Extract the j-th dimension feature source IP address C of abnormal traffic Aj ,According to the results, the communication device P, the source of the abnormal traffic, is located to the physical device Q, which corresponds to the qth node in the power topology and has a set of adjacent nodes R. The physical side features of the abnormal source node and its surrounding nodes are extracted by combining the bilateral features of the abnormal traffic; If the physical characteristic of the abnormal source node is a normal value of 1 or only the abnormal source node is a fault value of 0 or 2, the abnormal traffic is judged to be a cross-domain attack flow; otherwise, it is a fault burst flow.
19. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform the method of any one of claims 1 to 12.
20. A computing device, characterized in that include: One or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include steps for executing the method according to any one of claims 1 to 12.
Citation Information
Cited By
Data processing method and system based on communication network
CN119232745A
Method and system for detecting and defending cross-domain threats of power system
CN120223418A
