Distributed monitoring method and device for industrial control network attack events
Through deep neural networks and optimized allocation algorithms, the problems of incomplete data and delays in industrial control network attacks are solved, efficient and accurate collection and transmission of data are achieved, and rapid source traceability analysis is supported.
Patent Information
- Application Number
- CN202410832707.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Due to problems such as high data packet loss rate, data corruption, and missing information, existing industrial control network attack traceability methods result in incomplete and inaccurate data collection, slow collection speed, and high latency, which cannot meet the requirements for fast and accurate traceability analysis.
By obtaining historical industrial control network activity data, the real characteristics of the network are determined, and input into the deep neural network with noise vectors for training. The generator model completes the missing data, and uses the optimized allocation algorithm for data forwarding to ensure data integrity and accuracy. Low latency transmission.
It achieves the integrity and accuracy of data collection of industrial control network attack events, reduces data transmission delay, improves transmission efficiency, and meets the needs of rapid source traceability analysis.
Smart Images

Figure CN118381683B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a distributed monitoring method and device for industrial control network attack events. Background Art
[0002] Industrial Control Systems (ICS) are often used to monitor and control equipment and machinery in industrial production processes. Since ICS networks are often involved in critical infrastructure such as electricity, water, oil and gas, transportation, and national defense, they are vital to economic operations. Therefore, ICS network attacks can have serious consequences.
[0003] In industrial control network attack incidents, tracing the source of industrial control network attacks is an important link. At present, the mainstream method for tracing the source of industrial control network attacks is to collect abnormal data through probes, conduct in-depth analysis of the abnormal data to find attack evidence, and combine the attack data to conduct IP tracking, domain name analysis and external threat intelligence analysis to determine the source of the attack.
[0004] However, since industrial control networks may face problems such as high packet loss rates, data corruption, and information missing, the data collected by the probes is incomplete and inaccurate, and the collection speed is slow and the latency is high, which cannot meet the requirements of subsequent fast and accurate industrial control network attack tracing analysis. Summary of the invention
[0005] In response to the problems in the prior art, the present application provides a distributed monitoring method and device for industrial control network attack events, which can ensure the integrity and accuracy of collected data, and forward data with low latency to ensure transmission efficiency.
[0006] In order to solve at least one of the above problems, the present application provides the following technical solutions:
[0007] In a first aspect, the present application provides a distributed monitoring method for industrial control network attack events, comprising:
[0008] Acquire historical industrial control network activity data, perform data preprocessing operations on the historical industrial control network activity data according to preset preprocessing rules, and determine corresponding network real features according to the historical industrial control network activity data after the data preprocessing operations and preset feature extraction rules, wherein the network real features include source address features, destination address features, port number features, and protocol type features;
[0009] Input the network real features and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determine the corresponding network prediction features, determine the corresponding network real probability value according to the network real features, the network prediction features and the preset binary classification deep neural network model, determine the corresponding optimal loss function of the preset deep neural network according to the maximum value of the network real probability value, update the parameters of the preset deep neural network according to the optimal loss function, and determine the corresponding generator model;
[0010] Obtain the missing monitoring data of the industrial control network, determine the corresponding complete monitoring data according to the generator model and the missing monitoring data, perform data allocation operations on the complete monitoring data according to a preset optimization allocation algorithm, determine the corresponding data allocation path, and forward the complete monitoring data according to the data allocation path.
[0011] Furthermore, before inputting the network real features and the preset noise vector into the fully connected layer of the preset deep neural network for network training to determine the corresponding network prediction features, it includes:
[0012] Determine a corresponding noise vector according to a preset noise vector dimension and a preset noise vector value range;
[0013] An interpolation operation is performed on the noise vector to determine a corresponding preset noise vector.
[0014] Furthermore, the determining of the corresponding network true probability value according to the network true feature, the network prediction feature and a preset binary classification deep neural network model includes:
[0015] Input the network real features and the network predicted features into the input layer of a preset binary classification deep neural network model to determine the corresponding input network features;
[0016] Performing a feature extraction operation on the input network features according to the hidden layer of the preset binary classification deep neural network model to determine the corresponding extracted network features;
[0017] The extracted network features are input into the output layer of the preset binary classification deep neural network model to determine the corresponding network true probability value.
[0018] Furthermore, before determining the optimal loss function of the corresponding preset deep neural network according to the maximum value of the true probability value of the network, it includes:
[0019] Determine a corresponding loss function according to the network true probability value and preset true label data;
[0020] According to the gradient calculated by the loss function, the model parameters of the preset binary classification deep neural network model are updated by a back propagation algorithm to determine the updated model parameters;
[0021] The optimal model parameters are determined according to the updated model parameters and the preset evaluation index, and the maximum value of the corresponding true probability value is determined according to the optimal model parameters.
[0022] Further, determining the optimal loss function of the corresponding preset deep neural network according to the maximum value of the true probability value of the network, updating the parameters of the preset deep neural network according to the optimal loss function, and determining the corresponding generator model include:
[0023] Determine the corresponding optimal loss function according to the maximum value of the true probability value of the network and the binary cross entropy loss function;
[0024] According to the optimal loss function, the parameters of the preset deep neural network are updated through the back propagation algorithm to determine the corresponding generator model.
[0025] Furthermore, before performing a data distribution operation on the complete monitoring data according to a preset optimization distribution algorithm to determine a corresponding data distribution path, the method includes:
[0026] Acquire historical data collected by the distributed probe, extract traffic characteristics and distribution effect characteristics in the historical data, and determine a corresponding historical characteristic data set;
[0027] Performing a traffic identification operation according to the historical feature data set and a preset clustering algorithm to determine corresponding traffic type features;
[0028] Performing model training on a preset time series prediction model according to the traffic type characteristics, and determining a model prediction result after the model training, wherein the prediction result includes a traffic pattern and a distribution effect;
[0029] The preset hash distribution algorithm is adjusted according to the model prediction result to determine the corresponding preset optimized distribution algorithm.
[0030] Furthermore, the adjusting operation on the preset hash distribution algorithm according to the model prediction result to determine the corresponding preset optimized distribution algorithm includes:
[0031] Adjusting the first-stage hash distribution algorithm according to the traffic pattern in the model prediction result to determine the preliminary distribution result of the data packet;
[0032] The second-stage hash allocation algorithm is adjusted according to the allocation effect in the model prediction result and the preliminary allocation result of the data packet, and the adjusted second-stage hash allocation algorithm is determined as the preset hash allocation algorithm.
[0033] In a second aspect, the present application provides a distributed monitoring device for industrial control network attack events, comprising:
[0034] A historical data feature extraction module, used to obtain historical industrial control network activity data, perform data preprocessing operations on the historical industrial control network activity data according to preset preprocessing rules, and determine corresponding network real features according to the historical industrial control network activity data after the data preprocessing operations and the preset feature extraction rules, wherein the network real features include source address features, destination address features, port number features, and protocol type features;
[0035] A missing data generation module, used for inputting the network real features and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determining the corresponding network prediction features, determining the corresponding network real probability value according to the network real features, the network prediction features and the preset binary classification deep neural network model, determining the corresponding optimal loss function of the preset deep neural network according to the maximum value of the network real probability value, updating the parameters of the preset deep neural network according to the optimal loss function, and determining the corresponding generator model;
[0036] A data allocation module is used to obtain the missing monitoring data of the industrial control network, determine the corresponding complete monitoring data according to the generator model and the missing monitoring data, perform data allocation operations on the complete monitoring data according to a preset optimization allocation algorithm, determine the corresponding data allocation path, and forward the complete monitoring data according to the data allocation path.
[0037] In a third aspect, the present application provides an electronic device comprising 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 distributed monitoring method for industrial control network attack events when executing the program.
[0038] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the distributed monitoring method for industrial control network attack events.
[0039] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the distributed monitoring method for industrial control network attack events.
[0040] It can be seen from the above technical scheme that the present application provides a distributed monitoring method and device for industrial control network attack events, which obtains historical industrial control network activity data, determines the corresponding real network characteristics, inputs the real network characteristics and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determines the corresponding network prediction characteristics, determines the corresponding real network probability value according to the real network characteristics, the network prediction characteristics and the preset binary classification deep neural network model, determines the corresponding preset deep neural network parameters according to the maximum value of the real network probability value, determines the corresponding generator model, obtains the missing monitoring data of the industrial control network, determines the corresponding complete monitoring data according to the generator model and the missing monitoring data, and forwards the complete monitoring data according to the preset optimization allocation algorithm, thereby ensuring the integrity and accuracy of the collected data, and forwarding the data with low latency to ensure transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 This is one of the flow charts of the distributed monitoring method for industrial control network attack events in the embodiment of the present application;
[0043] Figure 2 This is a second flow chart of a distributed monitoring method for industrial control network attack events in an embodiment of the present application;
[0044] Figure 3 This is a third flow chart of a distributed monitoring method for industrial control network attack events in an embodiment of the present application;
[0045] Figure 4 This is a fourth flow chart of a distributed monitoring method for industrial control network attack events in an embodiment of the present application;
[0046] Figure 5 This is a fifth flow chart of a distributed monitoring method for industrial control network attack events in an embodiment of the present application;
[0047] Figure 6 This is a sixth flow chart of a distributed monitoring method for industrial control network attack events in an embodiment of the present application;
[0048] Figure 7 FIG7 is a flow chart of a distributed monitoring method for industrial control network attack events in an embodiment of the present application;
[0049] Figure 8 It is a structural diagram of a distributed monitoring device for industrial control network attack events in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0052] Considering the problems that the existing technology may face high packet loss rate, data corruption, information missing and other problems in the industrial control network, resulting in incomplete and inaccurate data collected by the probe, and the data collection speed is slow and the delay is high, which cannot meet the requirements of subsequent rapid and accurate industrial control network attack tracing analysis. The present application provides a distributed monitoring method and device for industrial control network attack events, which obtains historical industrial control network activity data, determines the corresponding real network features, inputs the real network features and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determines the corresponding network prediction features, determines the corresponding real network probability value according to the real network features, the network prediction features and the preset binary classification deep neural network model, determines the corresponding preset deep neural network parameters according to the maximum value of the real network probability value, determines the corresponding generator model, obtains the missing monitoring data of the industrial control network, determines the corresponding complete monitoring data according to the generator model and the missing monitoring data, and forwards the complete monitoring data according to the preset optimization allocation algorithm, thereby ensuring the integrity and accuracy of the collected data, and forwarding the data with low delay to ensure transmission efficiency.
[0053] In order to ensure the integrity and accuracy of the collected data, forward the data with low latency, and ensure transmission efficiency, the present application provides an embodiment of a distributed monitoring method for industrial control network attack events, see Figure 1 The distributed monitoring method for industrial control network attack events specifically includes the following contents:
[0054] Step S101: acquiring historical industrial control network activity data, performing data preprocessing operations on the historical industrial control network activity data according to preset preprocessing rules, and determining corresponding network real features according to the historical industrial control network activity data after the data preprocessing operations and preset feature extraction rules, wherein the network real features include source address features, destination address features, port number features, and protocol type features;
[0055] Optionally, in this embodiment, the preset preprocessing rules include data cleaning and normalization operations, wherein the data cleaning operation includes processing outliers and noise, and the format of the preprocessed data is unified to facilitate feature extraction.
[0056] Optionally, in this embodiment, the preset feature extraction rule is to extract useful features from the preprocessed data, the features including source address features, destination address features, port number features, and protocol type features;
[0057] For example, assuming that the existing scenario is that the source address of the received data is partially missing due to the high network packet loss rate during the monitoring of network data by distributed probes in the industrial control network, the missing part of the source address can be completed through the trained model based on other complete features associated with the source address, namely the destination address features, port number features, and protocol type features.
[0058] It is worth noting that the missing information is completed by other permutations and combinations and trained models, which does not affect the implementation of the embodiments of the present invention. For example, the missing destination address feature is completed by the complete source address feature, port number feature and protocol type feature, or the missing port number feature is completed by the complete source address feature, destination address feature and protocol type feature.
[0059] Optionally, in this embodiment, the real network features are historical features extracted from real historical network data.
[0060] It is understandable that this step extracts relevant preprocessed data sets for subsequent training models. The quality of the data set has a crucial impact on the accuracy of the model obtained after model training.
[0061] Step S102: input the network real features and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determine the corresponding network prediction features, determine the corresponding network real probability value according to the network real features, the network prediction features and the preset binary classification deep neural network model, determine the corresponding optimal loss function of the preset deep neural network according to the maximum value of the network real probability value, update the parameters of the preset deep neural network according to the optimal loss function, and determine the corresponding generator model;
[0062] Optionally, in this embodiment, the real network features and the preset noise vector are input into the fully connected layer of a preset deep neural network for network training to determine the corresponding network prediction features, wherein the preset noise vector can be randomly generated or selected according to a specific normal distribution.
[0063] It can be understood that the noise vector provides randomness for the training process. During the training process, the model can generate new data points according to the learned data distribution, so that the training results can produce diversified data, thereby capturing the multimodal characteristics of the data.
[0064] Optionally, in this embodiment, the real network features and the noise vector are merged before input to form a single input vector, which is input into the model for training to obtain the network prediction features output by the model. It can be understood that the network prediction features are the real network features generated by the machine and contain noise, that is, the "fake" network features generated by the machine.
[0065] It is understandable that in subsequent operations, the loss function of false features relative to true features will be continuously calculated based on the comparison of "true and false" network features, and the model parameters will be continuously updated according to the loss function, so that the predicted network features generated by the model are infinitely close to the real network features. Finally, the prediction model will be used to complete the missing information, increase the reliability of the completion, and lay a solid foundation for the complete information of industrial control network monitoring.
[0066] Optionally, in this embodiment, the preset deep neural network (also referred to as a "generator network") is a sequential network consisting of multiple fully connected layers and convolutional transposition layers, wherein the convolutional transposition layer is used to increase the dimension of the data, and the fully connected layer is a basic building block in a neural network, where each input node is connected to each output node. They are used to learn high-level feature representations of input data. Each connection has a weight, and the fully connected layer also has a bias parameter, which is updated in the subsequent training process according to the loss obtained and the back-propagation technique.
[0067] It is understandable that in a multi-layer network, fully connected layers can capture complex patterns and non-linear relationships in the data.
[0068] Optionally, in this embodiment, the activation function between each connection layer of the network selects ReLU, which provides nonlinear activation and allows the network to learn complex functions. The network output layer selects the tanh (hyperbolic tangent) function, which is a saturated nonlinear activation function that maps the input value to a value between -1 and 1, which helps the stability and convergence of the data.
[0069] It can be understood that the above steps are to preliminarily train a "generator network" that can generate a network prediction feature based on the network's real features and random noise vectors, laying the foundation for the subsequent adversarial training between the real features and the predicted features and calculating the loss.
[0070] Optionally, in this embodiment, the corresponding network real probability value is determined according to the network real characteristics, the network prediction characteristics and a preset binary classification deep neural network model, the corresponding optimal loss function of the preset deep neural network is determined according to the maximum value of the network real probability value, the parameters of the preset deep neural network are updated according to the optimal loss function, and the corresponding generator model is determined.
[0071] Among them, a binary classification deep neural network model (also known as a "discriminator network") is preset. The discriminator network will output a probability value for each network prediction feature, indicating the probability that the discriminator believes that the sample is a true feature of the network. The loss of the generator is usually inversely proportional to the discriminator's evaluation of the false data sample. The goal of the generator is to maximize the true probability of the discriminator's output.
[0072] Optionally, in this embodiment, the loss calculation of the generator can be performed based on maximizing the true probability value of the discriminator output, and the weights and parameters of the fully connected layer of the above generator can be further updated according to the back-propagation algorithm to obtain a generator network that can generate realistic data.
[0073] It can be understood that the above steps are performed by first generating fake data and then using the discriminator to evaluate this data. The loss of the generator is calculated by the discriminator's evaluation of the fake data, which is expected to be as high as possible, so the negative log likelihood is used as the loss function. Then we update the parameters of the generator through training to reduce the generator loss. This adversarial training process is continuously iterated, alternating between training the generator and the discriminator until the data generated by the generator is realistic enough and the discriminator has difficulty distinguishing between true and false. At this point, the generator network can be applied.
[0074] Step S103: Obtain missing monitoring data of the industrial control network, determine corresponding complete monitoring data according to the generator model and the missing monitoring data, perform data allocation operation on the complete monitoring data according to a preset optimization allocation algorithm, determine a corresponding data allocation path, and forward the complete monitoring data according to the data allocation path;
[0075] Optionally, in this embodiment, after the missing data is captured, it can be completed according to the trained generator model, and the completed complete data can be assigned to the path through a preset optimization allocation algorithm, wherein the optimization allocation algorithm adopts a two-stage hash algorithm, including designing a specific hash function to adapt to specific traffic characteristics and requirements, and dynamically adjusting the parameters of the hash algorithm according to the real-time load of the CPU to ensure balanced distribution of traffic and avoid situations where some CPUs are overloaded while other CPUs are idle.
[0076] This example demonstrates how to train a generative model in this embodiment, and based on the model, complete the missing data detected by the industrial control network probe to obtain the most suitable data, and then pass the completed data through certain rules to achieve low-latency and efficient forwarding.
[0077] From the above description, it can be seen that the distributed monitoring method for industrial control network attack events provided in the embodiment of the present application can determine the corresponding network real characteristics by obtaining historical industrial control network activity data, input the network real characteristics and the preset noise vector into the fully connected layer of the preset deep neural network for network training, and determine the corresponding network prediction characteristics. According to the network real characteristics, the network prediction characteristics and the preset binary classification deep neural network model, the corresponding network real probability value is determined, and the corresponding preset deep neural network parameters are determined according to the maximum value of the network real probability value. The corresponding generator model is determined, and the missing monitoring data of the industrial control network is obtained. According to the generator model and the missing monitoring data, the corresponding complete monitoring data is determined, and the complete monitoring data is forwarded according to the preset optimization allocation algorithm. The present application can ensure the integrity and accuracy of the collected data, and forward the data with low latency to ensure transmission efficiency.
[0078] In one embodiment of the distributed monitoring method for industrial control network attack events of the present application, see Figure 2 , and can also include the following:
[0079] Step S201: determining a corresponding noise vector according to a preset noise vector dimension and a preset noise vector value range;
[0080] Step S202: performing an interpolation operation on the noise vector to determine a corresponding preset noise vector.
[0081] Optionally, in this embodiment, the dimension of the noise vector refers to the size of the noise vector, that is, the number of elements in the vector, and the dimension depends on the input requirements of the model or the complexity of the problem.
[0082] Optionally, in this embodiment, the value range of the noise vector refers to the range of values that each element in the noise vector can take. Generally, the noise vector is extracted from a specific statistical distribution (such as normal distribution, uniform distribution), which defines the value range and probability density.
[0083] Optionally, in this embodiment, interpolation is a mathematical method used to estimate the value of unknown data points between known data points. In the context of noise vectors, interpolation refers to creating new vectors between a set of preset noise vectors, which are obtained by weighted averaging or other mathematical operations on existing vectors.
[0084] It can be understood that through the interpolation operation, new noise vectors can be generated, which are to some extent "intermediate states" or "variants" of the original preset noise vectors. This operation can increase the diversity of the data or be used to explore the behavior of the model under different noise conditions.
[0085] For example, suppose we have a noise vector consisting of 3 elements with a value range of [-1, 1]. We can generate two preset noise vectors:
[0086] Vector A = [0, -0.5, 0.5]
[0087] Vector B = [0.5, 0.5, -0.5]
[0088] To interpolate, we can choose an interpolation method (such as linear interpolation, cubic spline interpolation, etc.) and generate a new noise vector based on the selected method. If we use simple linear interpolation and take the midpoint of A and B, the new noise vector C is:
[0089] Vector C = [(0 + 0.5) / 2, (-0.5 + 0.5) / 2, (0.5 - 0.5) / 2] = [0.25, 0, 0]
[0090] In this example, vector C is a new preset noise vector determined by interpolating between vectors A and B.
[0091] Through step S202, this embodiment obtains a preset noise vector, which is obtained by defining its dimension and randomly generating it within its value range. The existence of the noise vector provides randomness for the training process. During the training process, the model can generate new data points according to the learned data distribution, so that the training results can generate diversified data, thereby capturing the multimodal characteristics of the data, laying a foundation for improving the performance of the generated model in the subsequent training process.
[0092] In one embodiment of the distributed monitoring method for industrial control network attack events of the present application, see Figure 3 , and can also include the following:
[0093] Step S301: inputting the network real features and the network prediction features into the input layer of a preset binary classification deep neural network model to determine the corresponding input network features;
[0094] Step S302: performing a feature extraction operation on the input network features according to the hidden layer of the preset binary classification deep neural network model to determine the corresponding extracted network features;
[0095] Step S303: input the extracted network features into the output layer of the preset binary classification deep neural network model to determine the corresponding network true probability value.
[0096] Optionally, in this embodiment, the preset binary classification deep neural network model includes an input layer, a hidden layer and an output layer. After subsequent model training, the model parameters are updated according to the training loss, which mainly refer to the parameters and weights of the hidden layer.
[0097] Optionally, in this embodiment, the input layer is the first layer of the neural network, responsible for receiving input data. The hidden layer is a plurality of layers located between the input layer and the output layer, responsible for extracting important features and patterns from the input data. The last layer of the neural network is responsible for making the final decision based on the features provided by the hidden layer.
[0098] Optionally, in this embodiment, the hidden layer extracts features by performing mathematical transformation on the input data, using a nonlinear transformation method, such as an activation function, weight multiplication, bias addition, etc.
[0099] It can be understood that the data output by the hidden layer represents the high-level features extracted from the original input features, which capture the important information of the input data and provide a basis for the final classification decision.
[0100] Optionally, in this embodiment, the network true probability value refers to the probability that the network feature judged by the model is true.
[0101] It can be understood that in this embodiment, the network's true features and network prediction features are provided as input to the neural network, the data is forward propagated through the hidden layer, each layer performs calculations and passes them to the next layer to extract high-level features, and the extracted features are finally passed to the output layer, which calculates and outputs the network's true probability value based on these features.
[0102] Through step S303, this embodiment obtains a true probability value, which lays an important foundation for the subsequent updating of the binary classification deep neural network model parameters.
[0103] In one embodiment of the distributed monitoring method for industrial control network attack events of the present application, see Figure 4 , and can also include the following:
[0104] Step S401: determining a corresponding loss function according to the network true probability value and preset true label data;
[0105] Step S402: According to the gradient calculated by the loss function, the model parameters of the preset binary classification deep neural network model are updated by a back propagation algorithm to determine the updated model parameters;
[0106] Step S403: determining optimal model parameters according to the updated model parameters and preset evaluation indicators, and determining the corresponding maximum value of the true probability value according to the optimal model parameters.
[0107] Optionally, in this embodiment, the network true probability value is generated by the output layer of the model, indicating the probability that the model predicts that the sample is a positive class, and the preset true label data is generated based on the historical industrial control network activity data, and the loss function is determined based on the output probability value and the true label data. The loss function is determined based on the output probability value and the true label data. The loss function measures the difference between the model prediction value and the true label, and the loss function that can be used includes at least one of the mean square error (MSE) and binary cross entropy.
[0108] Optionally, in this embodiment, the loss function is used to perform gradient calculation on the model output to obtain the gradient of the loss relative to the model parameters, and the back propagation algorithm is used to propagate the gradient in the network, so as to update the model parameters according to the gradient, wherein the gradient calculation is to perform gradient calculation on the model output using the loss function to obtain the gradient of the loss relative to the model parameters.
[0109] Optionally, in this embodiment, the model parameters are updated by using an optimizer to update the model parameters according to the gradient, wherein the optimizer may select SGD or Adam.
[0110] Optionally, in this embodiment, the preset evaluation index includes at least one of accuracy, precision, recall and F1 score, and the optimal model parameters are determined through evaluation during the training process. These parameters give the best performance on the validation set.
[0111] It can be understood that a binary classification deep neural network is defined, and trained using loss functions and optimizers, its performance is evaluated, and the optimal model parameters are selected based on the feedback. These parameters are then used to predict new data, and the maximum value in the probability value can be predicted.
[0112] Through step S403, this embodiment trains a binary classification deep neural network model, and uses this model as a discriminator to determine the probability that the data generated by the generator is true. Through continuous iterative training, it lays the foundation for the subsequent generator to generate accurate data.
[0113] In one embodiment of the distributed monitoring method for industrial control network attack events of the present application, see Figure 5 , and can also include the following:
[0114] Step S501: determining a corresponding optimal loss function according to the maximum value of the true probability value of the network and the binary cross entropy loss function;
[0115] Step S502: According to the optimal loss function, update the parameters of the preset deep neural network through the back propagation algorithm to determine the corresponding generator model.
[0116] Optionally, in this embodiment, the corresponding optimal loss function is determined based on the maximum value of the true probability value of the network and the binary cross entropy loss function, wherein the optimal loss function refers to the loss function used to guide the update of the generator parameters during the training process. In this embodiment, the binary cross entropy loss function is used to maximize the probability that the discriminator outputs that its generated data is true, wherein the binary cross entropy loss function can be used to measure the distance between two distributions, and can help the model estimate the predicted probability density function that is closest to the target distribution from the training samples.
[0117] Optionally, in this embodiment, the back propagation algorithm uses the back propagation algorithm to calculate the gradient of the loss relative to the generator network parameters.
[0118] Optionally, in this embodiment, according to the binary cross entropy loss function, the difference between the generator output and the true label is calculated, and these differences are back-propagated to obtain gradients, and the optimizer is used to update the weights and biases of the generator according to the calculated gradients to obtain a generator model that can complete the information.
[0119] Through step S502, this embodiment successfully trains a generator model, which can automatically complete the information when receiving missing industrial control network monitoring information, providing a basis for subsequent industrial control network tracking or statistical analysis using the completed information.
[0120] In one embodiment of the distributed monitoring method for industrial control network attack events of the present application, see Figure 6 , and can also include the following:
[0121] Step S601: acquiring historical data collected by the distributed probe, extracting traffic characteristics and allocation effect characteristics in the historical data, and determining a corresponding historical characteristic data set;
[0122] Step S602: performing a traffic identification operation according to the historical feature data set and a preset clustering algorithm to determine corresponding traffic type features;
[0123] Step S603: performing model training on a preset time series prediction model according to the traffic type characteristics, and determining a model prediction result after the model training, wherein the prediction result includes a traffic pattern and a distribution effect;
[0124] Step S604: adjusting the preset hash distribution algorithm according to the model prediction result to determine the corresponding preset optimized distribution algorithm.
[0125] Optionally, in this embodiment, the historical feature data set is obtained from the data collected by the distributed probes, and then features are extracted and assembled for subsequent analysis and model training.
[0126] The traffic feature is a feature related to the traffic itself extracted from historical data, including at least one of the traffic size, protocol type, and port number. The distribution effect feature is a feature related to the previous traffic distribution effect, including at least one of delay, packet loss rate, and processing time.
[0127] Optionally, in this embodiment, a preset clustering algorithm is used to perform cluster analysis on the traffic data, and different traffic patterns or traffic types are identified through the clustering results. A preset time series prediction model is trained using the determined traffic type characteristics, and the trained model can predict future traffic patterns and allocation effects. The preset clustering algorithm includes at least one of K-means and hierarchical clustering.
[0128] Taking the K-means clustering algorithm to determine the traffic pattern as an example, first, the collected traffic data is preprocessed, including at least one of data cleaning, data standardization, and feature selection; secondly, the K value of the K-means clustering algorithm is determined by the elbow rule, the clustering model is trained using the traffic data, and the traffic pattern is obtained according to the clustering results.
[0129] Optionally, in this embodiment, the existing preset hash distribution algorithm is adjusted according to the prediction results of the model. First, an optimized traffic distribution strategy is set, which is based on the predicted traffic pattern and distribution effect, and aims to improve network performance, such as reducing delays, avoiding congestion, etc.
[0130] According to the prediction results of the model, the parameters of the hash algorithm are dynamically adjusted. For example:
[0131] Scenario 1: If it is predicted that a certain type of traffic will surge within a certain period of time, the hash function can be adjusted in advance so that this type of traffic can be more evenly distributed to different CPUs.
[0132] Scenario 2: If abnormal traffic is detected for certain IP addresses or ports, the hash algorithm can be adjusted to prevent the impact of this traffic on system performance.
[0133] Through step S604, this embodiment successfully obtains a preset optimization allocation algorithm, which can quickly determine the optimal forwarding route and forward the complete data obtained by the probe monitoring to different CPUs with low latency and high efficiency.
[0134] In one embodiment of the distributed monitoring method for industrial control network attack events of the present application, see Figure 7 , and can also include the following:
[0135] Step S701: adjusting the first-stage hash distribution algorithm according to the traffic pattern in the model prediction result to determine the preliminary distribution result of the data packet;
[0136] Step S702: adjusting the second-stage hash allocation algorithm according to the allocation effect in the model prediction result and the preliminary allocation result of the data packet, and determining the adjusted second-stage hash allocation algorithm as the preset hash allocation algorithm.
[0137] Optionally, in this embodiment, the first stage of adjustment is to first analyze the output results of the time series prediction model and focus on the predicted traffic pattern. For example, the traffic pattern may include at least one of the peak and trough periods of traffic and the predicted value of the traffic size. Based on the predicted traffic pattern, the parameters of the first stage hash allocation algorithm are adjusted. The purpose of this stage is to dynamically adjust the amount of data allocated to different processing units according to the traffic conditions to avoid paralysis of a single processor due to excessive traffic load.
[0138] Optionally, in this embodiment, the second stage of adjustment, first, analyzes the output results of the time series prediction model, and pays attention to the predicted allocation effect. For example, the allocation effect may include at least one of the predicted delay index, packet loss rate index, and throughput index. Based on the predicted allocation effect and the parameters of the hash allocation algorithm adjusted in the first stage, the second stage hash allocation algorithm is adjusted. The purpose of this stage is to consider how to further optimize the performance on the basis of the first stage, and reduce the data delay, data packet loss, and throughput caused by the allocation.
[0139] It is understandable that the preliminary allocation results produced by the first-stage hash algorithm are evaluated to check whether they meet the expected allocation effect and identify any potential problem points or areas for improvement. According to the predicted allocation effect and the preliminary allocation results, the second-stage hash allocation algorithm is adjusted. The adjustments at this stage may be more detailed, considering how to further optimize performance based on the first stage.
[0140] For example, assuming that the time series prediction model predicts that network traffic will increase significantly due to an event in the next hour, first, use the time series model to predict the traffic size and pattern, adjust the first-stage hash algorithm, and introduce additional hash functions to disperse the traffic. Secondly, according to the predicted system load and the distribution results of the first stage, adjust the second-stage hash algorithm to ensure that the high-load processing unit is not overloaded. Finally, implement the adjusted hash algorithm and monitor system performance.
[0141] Through step S702, this embodiment successfully further optimizes the data packet distribution path through the two-stage improved hash algorithm, and dynamically adjusts the two-stage hash algorithm according to the time series model prediction results to adapt to the changing network conditions and business needs.
[0142] In order to ensure the integrity and accuracy of the collected data, forward the data with low latency, and ensure transmission efficiency, the present application provides an embodiment of a distributed monitoring device for industrial control network attack events for implementing all or part of the contents of the distributed monitoring method for industrial control network attack events, see Figure 8 The distributed monitoring device for industrial control network attack events specifically includes the following contents:
[0143] The historical data feature extraction module 10 is used to obtain historical industrial control network activity data, perform data preprocessing operations on the historical industrial control network activity data according to preset preprocessing rules, and determine corresponding network real features according to the historical industrial control network activity data after the data preprocessing operations and the preset feature extraction rules, wherein the network real features include source address features, destination address features, port number features, and protocol type features;
[0144] The missing data generation module 20 is used to input the network real features and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determine the corresponding network prediction features, determine the corresponding network real probability value according to the network real features, the network prediction features and the preset binary classification deep neural network model, determine the corresponding optimal loss function of the preset deep neural network according to the maximum value of the network real probability value, update the parameters of the preset deep neural network according to the optimal loss function, and determine the corresponding generator model;
[0145] The data allocation module 30 is used to obtain the missing monitoring data of the industrial control network, determine the corresponding complete monitoring data according to the generator model and the missing monitoring data, perform data allocation operations on the complete monitoring data according to a preset optimization allocation algorithm, determine the corresponding data allocation path, and forward the complete monitoring data according to the data allocation path.
[0146] From the above description, it can be seen that the distributed monitoring device for industrial control network attack events provided in the embodiment of the present application can determine the corresponding network real characteristics by acquiring historical industrial control network activity data, input the network real characteristics and the preset noise vector into the fully connected layer of the preset deep neural network for network training, and determine the corresponding network prediction characteristics. According to the network real characteristics, the network prediction characteristics and the preset binary classification deep neural network model, the corresponding network real probability value is determined, and the corresponding preset deep neural network parameters are determined according to the maximum value of the network real probability value. The corresponding generator model is determined, and the missing monitoring data of the industrial control network is obtained. According to the generator model and the missing monitoring data, the corresponding complete monitoring data is determined, and the complete monitoring data is forwarded according to the preset optimization allocation algorithm. The present application can ensure the integrity and accuracy of the collected data, and forward the data with low latency to ensure transmission efficiency.
[0147] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A distributed monitoring method for industrial control network attack events, characterized in that: Distributed probes are used to monitor an industrial control network, the method comprising: Acquire historical industrial control network activity data, perform data preprocessing operations on the historical industrial control network activity data according to preset preprocessing rules, and determine corresponding network real features according to the historical industrial control network activity data after the data preprocessing operations and preset feature extraction rules, wherein the network real features include source address features, destination address features, port number features, and protocol type features; Determine the corresponding noise vector according to the preset noise vector dimension and the preset noise vector value range, perform interpolation operation on the noise vector, and determine the corresponding preset noise vector; input the network real feature and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determine the corresponding network prediction feature, and determine the corresponding network real probability value according to the network real feature, the network prediction feature and the preset binary classification deep neural network model; determine the corresponding loss function according to the network real probability value and the preset real label data, update the model parameters of the preset binary classification deep neural network model through the back propagation algorithm according to the gradient calculated by the loss function to determine the updated model parameters, determine the optimal model parameters according to the updated model parameters and the preset evaluation index, and determine the maximum value of the corresponding network real probability value according to the optimal model parameters; determine the optimal loss function of the corresponding preset deep neural network according to the maximum value of the network real probability value, update the parameters of the preset deep neural network according to the optimal loss function, and determine the corresponding generator model; Obtain the missing monitoring data of the industrial control network, and determine the corresponding complete monitoring data according to the generator model and the missing monitoring data; obtain the historical data collected by the distributed probe, extract the traffic characteristics and distribution effect characteristics in the historical data, determine the corresponding historical feature data set, perform traffic identification operations according to the historical feature data set and a preset clustering algorithm, determine the corresponding traffic type characteristics, perform model training on a preset time series prediction model according to the traffic type characteristics, and determine the model prediction results after the model training, wherein the prediction results include traffic patterns and distribution effects, adjust the preset hash distribution algorithm according to the model prediction results, and determine the corresponding preset optimization distribution algorithm; perform data distribution operations on the complete monitoring data according to the preset optimization distribution algorithm, determine the corresponding data distribution path, and forward the complete monitoring data according to the data distribution path.
2. The distributed monitoring method for industrial control network attack events according to claim 1 is characterized in that: The determining of the corresponding network true probability value according to the network true feature, the network prediction feature and a preset binary classification deep neural network model includes: Input the network real features and the network predicted features into the input layer of a preset binary classification deep neural network model to determine the corresponding input network features; Performing a feature extraction operation on the input network features according to the hidden layer of the preset binary classification deep neural network model to determine the corresponding extracted network features; The extracted network features are input into the output layer of the preset binary classification deep neural network model to determine the corresponding network true probability value.
3. The distributed monitoring method for industrial control network attack events according to claim 1 is characterized in that: The method of determining the optimal loss function of the corresponding preset deep neural network according to the maximum value of the true probability value of the network, updating the parameters of the preset deep neural network according to the optimal loss function, and determining the corresponding generator model includes: Determine the corresponding optimal loss function according to the maximum value of the true probability value of the network and the binary cross entropy loss function; According to the optimal loss function, the parameters of the preset deep neural network are updated through the back propagation algorithm to determine the corresponding generator model.
4. The distributed monitoring method for industrial control network attack events according to claim 1 is characterized in that: The adjusting operation on the preset hash distribution algorithm according to the model prediction result to determine the corresponding preset optimized distribution algorithm includes: Adjusting the first-stage hash distribution algorithm according to the traffic pattern in the model prediction result to determine the preliminary distribution result of the data packet; The second-stage hash allocation algorithm is adjusted according to the allocation effect in the model prediction result and the preliminary allocation result of the data packet, and the adjusted second-stage hash allocation algorithm is determined as the preset hash allocation algorithm.
5. The distributed monitoring method for industrial control network attack events according to claim 1 is characterized in that: Also included is a distributed monitoring device for industrial control network attack events, the device comprising: A historical data feature extraction module, used to obtain historical industrial control network activity data, perform data preprocessing operations on the historical industrial control network activity data according to preset preprocessing rules, and determine corresponding network real features according to the historical industrial control network activity data after the data preprocessing operations and the preset feature extraction rules, wherein the network real features include source address features, destination address features, port number features, and protocol type features; A missing data generation module, used for inputting the network real features and the preset noise vector into the fully connected layer of the preset deep neural network for network training, determining the corresponding network prediction features, determining the corresponding network real probability value according to the network real features, the network prediction features and the preset binary classification deep neural network model, determining the corresponding optimal loss function of the preset deep neural network according to the maximum value of the network real probability value, updating the parameters of the preset deep neural network according to the optimal loss function, and determining the corresponding generator model; A data allocation module is used to obtain the missing monitoring data of the industrial control network, determine the corresponding complete monitoring data according to the generator model and the missing monitoring data, perform data allocation operations on the complete monitoring data according to a preset optimization allocation algorithm, determine the corresponding data allocation path, and forward the complete monitoring data according to the data allocation path.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the distributed monitoring method for industrial control network attack events described in any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the distributed monitoring method for industrial control network attack events described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Network intrusion detection method based on attack sharing loss and deep neural network
CN113572783A
Lightweight generative adversarial network, and encrypted traffic hiding method and device based on network in anonymous network environment
CN117544353A
