A method and system for detecting data tampering attacks in power systems
Through the combination of convolutional neural network and gray wolf optimization algorithm, the problem of insufficient data tampering attack detection capabilities in the power system is solved, accurate identification and defense of complex attacks are achieved, and system stability and data security are ensured.
Patent Information
- Application Number
- CN202410975390.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-19
AI Technical Summary
There are data tampering attacks in the power system, and traditional security mechanisms are difficult to effectively deal with them. In particular, complex and covert attack forms are difficult to be identified by advanced monitoring systems.
Using convolutional neural network (CNN) combined with the gray wolf optimization algorithm, the model hyperparameters are optimized to improve detection accuracy, and a two-layer detection framework is used to detect data tampering attacks at the application layer and system layer, using the feature matrix and remote control command threat level. Assess data tampering risks at the system level.
It achieves accurate identification and defense of complex data tampering attacks, ensures stable system operation and data integrity, can monitor and respond to potential data tampering risks in real time, and protect critical infrastructure.
Smart Images

Figure CN118503973B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system security detection, and in particular to a power system data tampering attack detection method and system. Background Art
[0002] With the widespread application of smart terminals in new power systems and the in-depth development of energy Internet, the openness and interconnection of the system have brought about convenient operation and improved management efficiency, but have also greatly increased the network security risks faced by the system. The increase in the degree of intelligence has made the means of attacking the power industrial control system through false instructions more covert and complex, posing a serious threat to the stable operation of the power system.
[0003] At present, there is a new type of network security threat in power industrial control systems - data tampering attacks. With the deep coupling of information technology and power systems and the continuous evolution of network attack technologies, the security of power systems faces huge challenges. Data tampering attacks attempt to manipulate or disrupt the normal operation of power facilities by injecting forged remote control commands into the control channels of power systems. Its concealment and complexity make it difficult for traditional security mechanisms to effectively respond.
[0004] Common data tampering attacks in power systems usually appear in two forms: one is an attack that simulates normal control instructions or data flows. This attack is carried out at the application layer, simulating user operations or system commands without changing the characteristics of the network layer, thereby avoiding the monitoring of traditional intrusion detection systems. The other is a more covert attack that directly interferes with or tampers with the core control instructions of the power system. Since the carefully designed instructions of this type of attack are extremely similar to normal operations, they often target specific weaknesses of the system for precise attacks, making it difficult for even advanced monitoring systems to accurately distinguish malicious operations from massive normal operations. Summary of the invention
[0005] The main purpose of the present invention is to provide a method and system for detecting data tampering attacks in a power system, aiming to improve the data tampering attack detection capability of the power system in the face of various attack scenarios.
[0006] To achieve the above object, the present invention provides a method for detecting data tampering attacks in a power system, comprising the following steps:
[0007] Collecting business flow data to construct a sample set, and converting the business flow data in the sample set into a two-dimensional flow data feature matrix;
[0008] Initialize the network structure of the convolutional neural network model, determine the set of hyperparameters that need to be optimized, and use the gray wolf optimization algorithm to optimize the hyperparameters of the convolutional neural network model;
[0009] Inputting the two-dimensional traffic data feature matrix in the sample set into the optimized convolutional neural network model, iteratively optimizing the internal parameters of the model to achieve an optimal state, and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering;
[0010] The final convolutional neural network model is used to detect application layer data tampering attacks in the power system, and system layer data tampering attacks are detected based on the detection results of application layer data tampering attacks and the calculated threat level of system remote control commands.
[0011] Optionally, the step of collecting service flow data to construct a sample set, and converting the service flow data in the sample set into a two-dimensional flow data feature matrix specifically includes:
[0012] Collecting service flow data of the IEC 104 protocol, and dividing the service flow data into a training sample set and a test sample set;
[0013] The service flow data in the sample set is converted into a two-dimensional flow data feature matrix using the parsing rules of the IEC 104 protocol.
[0014] Optionally, in the step of initializing the network structure of the convolutional neural network model and determining the hyperparameter set to be optimized, the expression of the hyperparameter set is specifically:
[0015] ;
[0016] in, A set of hyperparameters that need to be optimized in application layer data tampering detection; is the number of convolution kernels; is the convolution kernel size; is the activation function type; is the probability of discarding neurons; is the learning rate.
[0017] Optionally, the hyperparameters of the convolutional neural network model are optimized using the Gray Wolf Optimization Algorithm, including:
[0018] The Grey Wolf Optimization Algorithm is used to minimize the error between the true classification value and the detected classification value of the business traffic data as the objective function;
[0019] The expression of the objective function is specifically:
[0020] ;
[0021] in, represents the objective function, , They represent the true value and the detected value during the application layer data tampering detection and identification, respectively. , Respectively The true value and detection value of the application layer data tampering detection and identification, Identify the label numbers in the model.
[0022] Optionally, the step of optimizing the hyperparameters of the convolutional neural network model using the Gray Wolf Optimization Algorithm also includes:
[0023] Set the hyperparameter optimization range:
[0024] ;
[0025] Among them, the activation function is an integer variable, representing the relu function, sigmoid function, and tanh function respectively.
[0026] Optionally, the two-dimensional traffic data feature matrix in the sample set is input into the optimized convolutional neural network model, the internal parameters of the model are iteratively optimized to achieve an optimal state, and the effectiveness of the convolutional neural network model in identifying application layer data tampering is evaluated, specifically including:
[0027] The two-dimensional traffic data feature matrix in the training sample set is input into the optimized convolutional neural network model, and the internal parameters of the model are iteratively optimized to achieve the optimal state;
[0028] The two-dimensional traffic data feature matrix in the test sample set is used to evaluate the effectiveness of the convolutional neural network model in identifying application layer data tampering.
[0029] Optionally, after the step of evaluating the effectiveness of the convolutional neural network model for identifying application layer data tampering, the step further includes:
[0030] Transfer some data samples of application layer data tampering attacks in the training sample set to the new training set and regard them as unknown types of application layer data tampering attacks;
[0031] The steps of iteratively optimizing the internal parameters of the model to reach the optimal state and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering are repeated to test the model's ability to identify unknown types of attacks.
[0032] Optionally, the final convolutional neural network model is used to perform the detection of the power system application layer data tampering attack, and the system layer data tampering attack detection steps are performed according to the detection result of the application layer data tampering attack and the calculated threat level of the system remote control command, specifically including:
[0033] Use the convolutional neural network model to detect whether there is an abnormality in the application layer data message to be identified. If so, perform data cleaning on the application layer data message, classify the normal message and the application layer data tampering message and perform subsequent detection steps. If not, send a signal that the power system has no data tampering attack;
[0034] Obtain the system-level remote control command detection set, and use the power flow disturbance, remote control device quantity, remote control command frequency characteristic value and remote control command logic anomaly value in the system-level remote control command detection set to calculate the system remote control command threat level ;
[0035] Determine the threat level of system remote control commands Is it greater than the maximum value of the remote control command threat level under the historical stable operation state? If so, a system layer data tampering judgment alarm is sent up; if not, an application layer data tampering detection alarm is sent up.
[0036] Optionally, calculate the system remote command threat level The expression is:
[0037] ;
[0038] ;
[0039] in, They are the weights corresponding to the four indicators. It is the remote control command logic abnormal value. Remote control command frequency characteristic value, For the remote control device, is the flow disturbance, R is the sum of the logical abnormality assignments of the remote control combination; is the number of logical anomaly types in the remote control combination; Assign a value to the kth remote control logic anomaly, where k is the intermediate variable of the remote control logic anomaly assignment category. The number of opening and closing times of a single node; The maximum upper limit of the automatic reclosing action of the line where the node is located. The number of remote control switches in this remote control command set; is the maximum number of historical remote control switches under the system stable state, is the number of incoming lines in the system; The number of disconnections collected for remote control commands; is the remote control command number; For the The active power flowing through the switch when the switch is closed in a remote control command; For the The number of incoming active powers, y is the intermediate variable of the number of incoming active powers.
[0040] In addition, in order to achieve the above-mentioned purpose, the present invention also provides a power system data tampering attack detection system, comprising:
[0041] A collection module, used for collecting business flow data to construct a sample set, and converting the business flow data in the sample set into a two-dimensional flow data feature matrix;
[0042] The optimization module is used to initialize the network structure of the convolutional neural network model, determine the set of hyperparameters that need to be optimized, and optimize the hyperparameters of the convolutional neural network model using the gray wolf optimization algorithm;
[0043] An iteration module, used for inputting the two-dimensional traffic data feature matrix in the sample set into the optimized convolutional neural network model, iteratively optimizing the internal parameters of the model to achieve an optimal state, and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering;
[0044] The detection module is used to use the final convolutional neural network model to perform the detection of power system application layer data tampering attacks, and to perform system layer data tampering attack detection based on the detection results of the application layer data tampering attacks and the calculated threat level of the system remote control instructions.
[0045] The beneficial effects of the present invention are:
[0046] The Grey Wolf Optimizer (GWO) algorithm was introduced. The algorithm can find a balance between local optimization and global search by dynamically adjusting its convergence factor and implementing an effective information feedback mechanism. This method can quickly optimize the hyperparameter set of the CNN model, which not only improves its detection accuracy, but also effectively balances the speed of model convergence, thereby meeting the strict requirements for detection response time in practical engineering applications. Through this optimization, the CNN model can more accurately identify and defend against complex data tampering attacks against the power system, ensuring the stable operation of the system and the integrity of the data.
[0047] The risk assessment process for data tampering instructions at the system level is not only scientific and rigorous, but also highly automated, and can effectively respond to complex and changing security challenges and ensure the integrity and security of system data. By continuously optimizing the computing power allocation and parameter input mechanism, and using advanced risk assessment models, the system can monitor and respond quickly to potential data tampering risks in real time, protecting critical infrastructure from attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for detecting data tampering attacks in a power system according to the present invention;
[0049] Figure 2The present invention is a structural block diagram of a power system data tampering attack detection system in an embodiment of the present invention.
[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0052] The embodiment of the present invention provides a method for detecting data tampering attacks in a power system, referring to Figure 1 , Figure 1 The figure is a flow chart of an embodiment of a method for detecting data tampering attacks in a power system according to the present invention.
[0053] In this embodiment, the power system data tampering attack detection method includes the following steps:
[0054] S100: Collecting service flow data to construct a sample set, and converting the service flow data in the sample set into a two-dimensional flow data feature matrix;
[0055] S200: Initialize the network structure of the convolutional neural network model, determine the set of hyperparameters that need to be optimized, and use the gray wolf optimization algorithm to optimize the hyperparameters of the convolutional neural network model;
[0056] S300: inputting the two-dimensional traffic data feature matrix in the sample set into the optimized convolutional neural network model, iteratively optimizing the internal parameters of the model to achieve an optimal state, and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering;
[0057] S400: Use the final convolutional neural network model to perform detection of power system application layer data tampering attacks, and perform system layer data tampering attack detection based on the detection results of the application layer data tampering attacks and the calculated threat level of the system remote control instructions.
[0058] It should be noted that in order to solve the problem of poor data tampering attack detection capability in various attack scenarios in the existing power system data tampering attack detection scheme, this embodiment proposes a detection method based on an optimized convolutional neural network (CNN), which includes two key steps: First, through the preliminary detection and screening mechanism of the application layer, the business traffic under the IEC 104 standard is analyzed to quickly identify and exclude abnormal messages. This step uses shallow network features for preliminary screening, which effectively reduces the amount and complexity of subsequent processing. Subsequently, this embodiment designs a two-layer detection framework, combining the plant-level and system-level evaluation modules to conduct in-depth analysis of the screened data. Plant-level detection focuses on the abnormal behavior of a single or local subsystem, while system-level detection starts from the operating status of the entire power grid and evaluates potential cross-system impacts. This two-layer structure not only improves the sensitivity of detection, but also enhances the ability to identify complex attack strategies.
[0059] In order to more clearly express the technical concept of the present application, the implementation methods of the present application are described in detail below.
[0060] This embodiment proposes a data tampering attack detection framework based on deep learning technology, which is specially designed to improve the detection accuracy and defense capability of two attack methods, application layer and system layer. The detection framework includes the following key components:
[0061] 1. Data preprocessing module: collects and processes real-time and historical data from the power system, including operation logs, system status information, and network traffic data, and uses data cleaning and feature engineering techniques to extract key features.
[0062] 2. Deep learning model training: Use convolutional neural networks (CNNs) to learn and recognize patterns on extracted features, effectively identify complex data patterns, and automatically learn to distinguish between normal instructions and data tampering attack messages.
[0063] 3. Real-time monitoring and response system: Integrates real-time data monitoring and automatic response mechanisms. When a potential data tampering attack is detected, the system can quickly trigger an alarm and take preset countermeasures.
[0064] 4. Continuous optimization and update: Support continuous learning and model optimization, and regularly update detection algorithms based on new threat intelligence and attack patterns to adapt to changes in the environment and threat landscape.
[0065] Through this framework, the power system can improve its defense capabilities against complex cyber attacks, ensure the stable and safe operation of the system, and thus protect critical infrastructure from damage caused by highly stealthy cyber attacks.
[0066] Furthermore, for the detection of application layer data tampering attacks, this embodiment uses the powerful image processing capabilities of convolutional neural networks (CNNs) to process IEC 104 service messages, and effectively extracts the coupling features therein by converting the service message fields into two-dimensional images. These features can be used for the detection of application-level data tampering attacks, and also provide necessary data cleaning for the detection of system-level data tampering attacks. This embodiment further explores the problem of significant differences in the detection accuracy of CNN models in different service flows, and points out the need to develop and optimize a specific set of hyperparameter models for IEC 104 service messages.
[0067] To achieve this goal, the present embodiment introduces the Gray Wolf Optimization Algorithm (GWO). The algorithm can find a balance between local optimization and global search by dynamically adjusting its convergence factor and implementing an effective information feedback mechanism. This method can quickly optimize the hyperparameter set of the CNN model, which not only improves its detection accuracy, but also effectively balances the speed of model convergence, thereby meeting the strict requirements for detection response time in practical engineering applications. Through this optimization, the CNN model can more accurately identify and defend against complex data tampering attacks against the power system, ensuring the stable operation of the system and the integrity of the data. The application layer data tampering detection model takes the IEC 104 business message as input, and first uses the Gray Wolf Optimization Algorithm (GWO) to accurately adjust the hyperparameters of the CNN model. The optimized hyperparameter set is then used in the training process of the CNN model, and the model is optimized in combination with specific training data. After the model training is completed, the trained GWO-CNN model is used to detect the test data set to identify and classify normal messages and 8 types of specific application layer messages, thereby ensuring that the actual application effect of the model meets expectations. This process not only improves the accuracy of the model, but also optimizes its detection efficiency. The specific steps are as follows:
[0068] Step 1: Divide the service flow data of the IEC 104 protocol into a training set and a test set. Use the protocol parsing rules to construct a two-dimensional flow data feature matrix, which will be used as input data for subsequent processing.
[0069] Step 2: Initialize the network structure of the convolutional neural network (CNN) and determine the hyperparameter model that needs to be optimized. The hyperparameter model contains a five-dimensional hyperparameter vector, which will be adjusted during the model training process to improve the performance and accuracy of the model, as shown in the formula:
[0070] (1)
[0071] in, A set of hyperparameters that need to be optimized in application layer data tampering detection; is the number of convolution kernels; is the convolution kernel size; is the activation function type; is the probability of discarding neurons; is the learning rate.
[0072] Step 3: Use GWO to optimize the hyperparameters of CNN. The wolf group takes the minimum error between the true classification value and the detected classification value of IEC 104 service traffic as the objective function. The objective function The calculation is as shown in the formula:
[0073] (2)
[0074] in, , They represent the true value and the detected value during the application layer data tampering detection and identification, respectively. , Respectively The true value and detection value of the application layer data tampering detection and identification, Identify the label numbers in the model; is the total number of identification tags in the model. In addition to the objective function, the hyperparameter optimization range is set as shown in formula (3).
[0075] (3)
[0076] Among them, the activation function is an integer variable, representing the relu function, sigmoid function, and tanh function respectively.
[0077] Step 4: Input the training set of the IEC 104 dataset into the CNN model with optimized hyperparameters, and iteratively optimize the internal parameters of the model to achieve the optimal state. After that, use the test dataset to evaluate the performance of the GWO-CNN model in identifying application layer data tampering and analyze the effectiveness of the model.
[0078] Step 5: In order to test the model's ability to identify new types of attacks, some data samples of application layer data tampering attacks in the original training set are transferred to the new training set and regarded as unknown types of application layer data tampering attacks. Then, the test process of step 4 is repeated to test the model's ability to identify these unknown types of attacks.
[0079] Step 6: Use the confusion matrix to analyze the GWO-CNN model’s ability to identify common application layer data tampering attacks and system layer data tampering attacks in detail. This analysis helps evaluate the accuracy and reliability of the model in detecting attacks at each level.
[0080] Furthermore, for the detection of system-level data tampering attacks, when conducting a threat assessment of system-level data tampering instructions, the assessment uses the system-level remote control instruction detection set as the input source, and uses a specially designed assessment model to determine the impact of the remote control instruction set on the current system after execution. The assessment model establishes a threat degree calculation indicator system from two dimensions: time and space. In the time dimension, the model includes two indicators: remote control timing logic and remote control frequency; in the space dimension, the model includes two indicators: the number of remote control devices and the amount of power flow disturbance. Based on these assessment results, the substation will send two different types of alarms to the master station: system-level data tampering detection alarms and system-level data tampering judgment alarms. These two alarms will determine the amount of computing power allocated to the system-level data tampering instruction risk judgment module, thereby ensuring system security and data integrity.
[0081] 1. Indicators
[0082] 1.1 Remote sensing timing logic: During normal operation, there will be no remote control logic errors, such as overlapping closure, incomplete remote control command set, maintenance period action and other erroneous logic, remote control set logic abnormal assignment The calculation formulas are shown in equations (4) and (5).
[0083] (4)
[0084] (5)
[0085] Among them, R is the sum of the logical abnormality assignments of the remote control combination; is the number of logical anomaly types in the remote control combination; Assign a value to the kth remote control logic anomaly, where k is an intermediate variable of the remote control logic anomaly assignment category.
[0086] 1.2 Remote control frequency: Automatic reclosing is an important function in the power system. It has a significant automatic response capability to line faults such as short circuits or overloads during normal operation. Through repeated opening and closing operations, the automatic reclosing can eliminate 99% of faults on the line. However, the number of actions of the automatic reclosing is usually limited by its designed maximum action limit, which means that in normal operation, the control system will not usually open and close the same node multiple times in succession. Based on this operating principle, the frequency characteristic value can be calculated by monitoring the number of opening and closing instructions in the remote control instruction set. The calculation of this frequency characteristic value It helps to analyze the behavior pattern and frequency of automatic reclosing in practical applications, so as to evaluate the response efficiency and stability of the system when facing line faults, as shown in formula (6).
[0087] (6)
[0088] in, The number of opening and closing times of a single node; It is the maximum upper limit of the automatic reclosing action of the line where the node is located.
[0089] 1.3 Number of remote control devices: In power system monitoring, a sudden increase in the number of remote control instructions is often a warning sign of a cyber attack. In order to effectively identify this abnormal behavior, a maximum value of the number of remote controls based on historical data can be set as a threshold. When the number of remote controls detected exceeds this threshold, the system will mark it as a possible abnormal state, that is, assign a value of 1, indicating a high suspicion of attack. If the current number of remote controls does not exceed the threshold, the ratio of the current number to the historical maximum is calculated to evaluate whether the current system operation is within the normal range. This method not only enhances the ability to respond to potential cyber attacks, but also helps maintain the stability and security of the system. Number of remote control devices The calculation is shown in formula (7).
[0090] (7)
[0091] in, The number of remote control switches in this remote control command set; It is the maximum number of historical remote control switches in the system stable state.
[0092] 1.4 Power flow disturbance: According to the remote control command business, the internal topology of the system and the link parameters, the disturbance of the power flow after the remote control command set is executed is calculated. , as shown in equation (8). Since the internal topology of the system is usually a tree structure, the active power of the line can effectively represent the line flow. This calculation method provides an accurate method for understanding and predicting the impact of remote control commands on system flow, helping to maintain system stability and efficiency.
[0093] (8)
[0094] in, is the number of incoming lines in the system; The number of disconnections collected for remote control commands; is the remote control command number; For the The active power flowing through the switch when the switch is closed in a remote control command; For the The number of incoming active powers, y is the intermediate variable of the number of incoming active powers.
[0095] 2. Threat Calculation
[0096] The threat level of the system remote control command is calculated by using the power flow disturbance, remote control equipment, remote control command frequency characteristic value and remote control command logic anomaly value. , the calculation formula is as follows:
[0097] (9)
[0098] in, They are the weights corresponding to the four indicators, which are calculated by the nine-level scaling method.
[0099] First, according to the relative importance of each indicator, construct the judgment matrix A:
[0100] (10)
[0101] in, is the number of indicators; For indicators With indicators The relative importance between hour ,when Not equal to hour ,in It is the corresponding scale of the nine-level scaling method.
[0102] Then, the contrast matrix of the standard layer is calculated ,Right now
[0103] (11)
[0104] Among them, t is the number of indicators.
[0105] Finally, the feature vectors between standard layers are calculated , which is the weight of the above four indicators.
[0106] (12)
[0107] When the remote control command threat level When the threat level is greater than the maximum value of the remote control command threat level under the historical stable operation state, the substation sends the system layer data tampering judgment alarm to the main station. If the threat level does not exceed the historical maximum value, the application layer data tampering detection alarm is sent. This process ensures that when the remote control command threat intensifies, the main station can receive the alarm in time and take corresponding measures to maintain the security of the system.
[0108] This embodiment has the following advantages for detecting data tampering attacks at the application layer and the system layer:
[0109] 1. Optimization of computing power allocation and decision-making mechanism: The computing power allocation mechanism of the master station is dynamically adjusted according to the different types of alarms uploaded by the substations. The design of this mechanism not only improves the efficiency of resource utilization, but also allows for appropriate computing power configuration for different levels of risk. For example, when a high-risk level alarm is received, the master station will prioritize the allocation of more computing resources to quickly and deeply analyze potential risks. This step reflects the system's responsiveness and flexibility in handling emergencies, and ensures the stable operation and data security of the entire system.
[0110] 2. In-depth analysis of input parameters: The accuracy of system-level risk assessment depends greatly on the comprehensiveness and accuracy of input parameters. Input parameters mainly include system-level remote control command detection set, system topology, and detailed point table information. The integration of these data provides the necessary foundation for the risk assessment model, enabling the model to accurately analyze the possibility and potential impact of data tampering. By carefully reviewing and updating these parameters in real time, it can be ensured that each step of the assessment is based on the latest and most comprehensive data.
[0111] 3. Application of risk assessment model: This risk assessment system integrates two core technologies: network connectivity assessment model and power flow over-limit matching model. The network connectivity assessment model is mainly used to predict the system islanding situation that may be caused by the execution of instructions, so as to warn the possible system segmentation risk in advance. The power flow over-limit matching model focuses on identifying and predicting possible current flow over-limit situations, which is crucial for preventing system overload and the chain reaction it causes. The combination of these two models enables the system to comprehensively assess risks from multiple dimensions, improving the accuracy and timeliness of predictions.
[0112] 4. Determination of evaluation results and emergency notification mechanism: Based on the evaluation results after in-depth analysis, the master station has the ability to decide whether to issue a system-level data tampering alarm to the control center. If the evaluation results show that there is a high-risk data tampering behavior, the master station will not only immediately notify the control center, but also activate the preset emergency response mechanism and cooperate with relevant departments to take necessary response measures. This link is the key to ensuring system security and preventing the spread of risks, and is also an important guarantee in the entire risk assessment process.
[0113] The above-mentioned system-level data tampering instruction risk assessment process is not only scientific and rigorous, but also highly automated, and can effectively respond to complex and changing security challenges and ensure the integrity and security of system data. By continuously optimizing the computing power allocation and parameter input mechanism and using advanced risk assessment models, the system can monitor and respond quickly to potential data tampering risks in real time, thereby protecting critical infrastructure from attacks.
[0114] Reference Figure 2 , Figure 2It is a structural block diagram of an embodiment of a power system data tampering attack detection system of the present invention.
[0115] like Figure 2 As shown, the power system data tampering attack detection system proposed in the embodiment of the present invention includes:
[0116] A collection module 10, used for collecting business flow data to construct a sample set, and converting the business flow data in the sample set into a two-dimensional flow data feature matrix;
[0117] The optimization module 20 is used to initialize the network structure of the convolutional neural network model, determine the set of hyperparameters that need to be optimized, and optimize the hyperparameters of the convolutional neural network model using the gray wolf optimization algorithm;
[0118] An iteration module 30, for inputting the two-dimensional traffic data feature matrix in the sample set into the optimized convolutional neural network model, iteratively optimizing the internal parameters of the model to achieve an optimal state, and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering;
[0119] The detection module 40 is used to use the final convolutional neural network model to perform the detection of the power system application layer data tampering attack, and to perform the detection of the system layer data tampering attack according to the detection result of the application layer data tampering attack and the calculated threat level of the system remote control command.
[0120] Other embodiments or specific implementations of the power system data tampering attack detection system of the present invention can refer to the above-mentioned method embodiments and will not be described in detail here.
[0121] It is understood that, in the description of this specification, the description with reference to the terms "one embodiment", "another embodiment", "other embodiments", or "first to Nth embodiments" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0122] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0123] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for detecting data tampering attacks in a power system, characterized in that: The following steps are involved: Collecting business flow data to construct a sample set, and converting the business flow data in the sample set into a two-dimensional flow data feature matrix; Initialize the network structure of the convolutional neural network model, determine the set of hyperparameters that need to be optimized, and use the gray wolf optimization algorithm to optimize the hyperparameters of the convolutional neural network model; Among them, the expression of the hyperparameter set is specifically: ; Among them, θ is the set of hyperparameters that need to be optimized in application layer data tampering detection; σ is the number of convolution kernels; η is the size of the convolution kernel; is the activation function type; ξ is the probability of discarding neurons; is the learning rate; Among them, the gray wolf optimization algorithm is used to optimize the hyperparameters of the convolutional neural network model, including: The Grey Wolf Optimization Algorithm is used to minimize the error between the true classification value and the detected classification value of the business traffic data as the objective function; The expression of the objective function is specifically: ; in, represents the objective function, , They represent the true value and the detected value during the application layer data tampering detection and identification, respectively. , Respectively The true value and detection value of the application layer data tampering detection and identification, Identify the label numbers in the model; Inputting the two-dimensional traffic data feature matrix in the sample set into the optimized convolutional neural network model, iteratively optimizing the internal parameters of the model to achieve an optimal state, and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering; The final convolutional neural network model is used to detect the data tampering attack on the application layer of the power system, and the system layer data tampering attack is detected based on the detection results of the application layer data tampering attack and the calculated threat level of the system remote control command; specifically, the following are included: Use the convolutional neural network model to detect whether there is an abnormality in the application layer data message to be identified. If so, perform data cleaning on the application layer data message, classify the normal message and the application layer data tampering message and perform subsequent detection steps. If not, send a signal that the power system has no data tampering attack; Obtain the system-level remote control command detection set, and use the power flow disturbance, remote control device quantity, remote control command frequency characteristic value and remote control command logic anomaly value in the system-level remote control command detection set to calculate the system remote control command threat level ; Determine the threat level of system remote control commands Whether it is greater than the maximum value of the remote control command threat level under the historical stable operation state, if so, then send the system layer data tampering judgment alarm, if not, then send the application layer data tampering detection alarm; Among them, the threat level of remote control command of computing system The expression is: ; in, , , , They are the weights corresponding to the four indicators. It is the remote control command logic abnormal value. Remote control command frequency characteristic value, For the remote control device, is the flow disturbance, R is the sum of the logical anomaly values assigned to the remote control combination; ω is the number of logical anomaly types in the remote control combination; Assign a value to the kth remote control logic anomaly, where k is the intermediate variable of the remote control logic anomaly assignment category. is the number of opening and closing times of a single node; μ is the maximum upper limit of the automatic reclosing action of the line where the node is located, The number of remote control switches in this remote control command set; is the maximum number of historical remote control switches in the system stable state, m is the number of incoming lines in the system; n is the number of disconnections in the remote control command set; x is the remote control command number; is the active power flowing through when the switch is closed in the xth remote control command; is the yth incoming line active power, and y is the intermediate variable of the number of incoming line active powers.
2. The power system data tampering attack detection method according to claim 1, characterized in that: The steps of collecting business flow data to construct a sample set and converting the business flow data in the sample set into a two-dimensional flow data feature matrix specifically include: Collecting service flow data of the IEC 104 protocol, and dividing the service flow data into a training sample set and a test sample set; The service flow data in the sample set is converted into a two-dimensional flow data feature matrix using the parsing rules of the IEC 104 protocol.
3. The power system data tampering attack detection method according to claim 1, characterized in that: The steps of optimizing the hyperparameters of the convolutional neural network model using the Gray Wolf Optimization Algorithm also include: Set the hyperparameter optimization range: ; Among them, the activation function is an integer variable, representing the relu function, sigmoid function, and tanh function respectively.
4. The power system data tampering attack detection method according to claim 2, characterized in that: Inputting the two-dimensional traffic data feature matrix in the sample set into the optimized convolutional neural network model, iteratively optimizing the internal parameters of the model to achieve the optimal state, and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering, specifically includes: The two-dimensional traffic data feature matrix in the training sample set is input into the optimized convolutional neural network model, and the internal parameters of the model are iteratively optimized to achieve the optimal state; The two-dimensional traffic data feature matrix in the test sample set is used to evaluate the effectiveness of the convolutional neural network model in identifying application layer data tampering.
5. The power system data tampering attack detection method according to claim 1, characterized in that: After evaluating the effectiveness of the convolutional neural network model for identifying application layer data tampering, it also includes: Transfer some data samples of application layer data tampering attacks in the training sample set to the new training set and regard them as unknown types of application layer data tampering attacks; The steps of iteratively optimizing the internal parameters of the model to reach the optimal state and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering are repeated to test the model's ability to identify unknown types of attacks.
6. A power system data tampering attack detection system, characterized in that: A method for detecting data tampering attacks in a power system as claimed in any one of claims 1 to 5, comprising: A collection module, used for collecting business flow data to construct a sample set, and converting the business flow data in the sample set into a two-dimensional flow data feature matrix; The optimization module is used to initialize the network structure of the convolutional neural network model, determine the set of hyperparameters that need to be optimized, and optimize the hyperparameters of the convolutional neural network model using the gray wolf optimization algorithm; An iteration module, used for inputting the two-dimensional traffic data feature matrix in the sample set into the optimized convolutional neural network model, iteratively optimizing the internal parameters of the model to achieve an optimal state, and evaluating the effectiveness of the convolutional neural network model in identifying application layer data tampering; The detection module is used to use the final convolutional neural network model to perform the detection of power system application layer data tampering attacks, and to perform system layer data tampering attack detection based on the detection results of the application layer data tampering attacks and the calculated threat level of the system remote control instructions.
Citation Information
Patent Citations
A novel feature selection and parameter optimization method
CN109816000A
Active intrusion prevention method and device
CN117336008A
Methods and systems for the industrial internet of things
US20190171187A1
Methods and systems for data collection, learning, and streaming of machine signals for analytics and maintenance using the industrial internet of things
US20190339688A1
