Anomaly detection method and system based on industrial network user behavior learning model
By building a user behavior learning model in industrial networks and using convolutional neural networks to extract features, and combining support vector machines and softmax classifiers for anomaly detection, the problem of traditional methods being difficult to adapt to complex and dynamic user behaviors is solved, and the industrial network is realized. High accuracy and stability.
Patent Information
- Application Number
- CN202311851083.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-12-29
AI Technical Summary
Traditional industrial network anomaly detection methods are difficult to adapt to complex and dynamic user behavior changes, resulting in false positives or false negatives, and predefined rules cannot cover all possible abnormal situations, affecting the security of industrial networks.
An anomaly detection method based on the industrial network user behavior learning model is adopted. By collecting and preprocessing user behavior data, a user behavior graph network is constructed, a convolutional neural network is used to extract features, and a support vector machine and softmax classifier are combined for anomaly detection and execution. Security policies and alarms.
Real-time monitoring of user behavior and abnormal behavior identification in industrial networks is achieved, improving detection accuracy and adaptability, reducing false alarm rates, reducing unnecessary interference, reducing maintenance costs, and improving the efficiency of industrial networks. Security and stability.
Smart Images

Figure CN117896121B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial network security, and in particular to an anomaly detection method and system based on an industrial network user behavior learning model. Background Art
[0002] With the deep integration of industrialization and information technology, the security of industrial control systems has received increasing attention. Industrial control systems usually include multiple devices and subsystems that are connected and communicated through the network. However, with the continuous escalation of network attack methods, industrial network security faces huge challenges. Hackers may launch attacks on industrial control systems through the network, thereby affecting the safety and stability of the production process. Therefore, industrial network security is one of the important issues that need to be solved urgently. In particular, it is crucial to effectively monitor and manage user behavior in industrial networks.
[0003] Traditional anomaly detection methods mainly rely on pre-defined rules or fixed thresholds to judge the legitimacy of data. However, this method is difficult to adapt to the complexity and dynamics of industrial networks, where user behaviors and data packets may change over time. In addition, pre-defined rules may not cover all possible anomalies, resulting in false positives or false negatives.
[0004] In recent years, artificial intelligence technology has made significant progress in various fields, especially in the fields of big data information analysis and identification. Applying these technologies to industrial networks can improve the security and intelligence level of industrial networks. For example, user behavior in industrial networks can be learned through technologies such as deep learning, so as to achieve real-time monitoring and early warning of abnormal behavior, which can better adapt to the complexity and dynamics of industrial networks and improve the accuracy and real-time performance of anomaly detection. Summary of the invention
[0005] In view of the above problems, the present invention proposes an anomaly detection method and system based on an industrial network user behavior learning model. The user behavior learning model learns the data packets running in the industrial network, extracts user behaviors and their logical relationships, establishes user behavior rules, and performs feature extraction through a convolutional neural network. It realizes the monitoring of user behaviors such as communication behaviors, operation instructions, and logins in the industrial network, thereby timely discovering and preventing the occurrence of illegal behaviors.
[0006] As a first aspect of the present invention, the present invention discloses an anomaly detection method based on an industrial network user behavior learning model, characterized in that it includes:
[0007] Step S1: Collection and preprocessing of user behavior related data;
[0008] Step S2: construct a user behavior learning model;
[0009] Step S3: extracting features of user behavior rules using a convolutional neural network, and expressing these features in the form of user behavior rule feature vectors;
[0010] Step S4: performing anomaly detection based on the user behavior rule feature vector;
[0011] Step S5: Execute security policies and issue alarms for abnormal user behavior.
[0012] Preferably, in step S1, the user behavior related data is a data message triggered, generated and transmitted by the user behavior.
[0013] Preferably, in step S2, based on the data packets related to the user behaviors in the actual network, the user behaviors in the data packets are extracted, and the extracted user behaviors are used as entity nodes of the graph network and expressed as a data set of the entity nodes; based on the logical relationships between the user behaviors, the logical relationships between the behaviors are extracted as edges.
[0014] Preferably, in step S2, the user behavior rules in the form of a graph network are established through the above entities and edges; the graph network representing the user behavior rules is represented as G = (V, E), where the entity node V = {v 1 , v 2 , ..., v n} represents the set of entity nodes of user behavior, E = {(v i , v j )} represents the set of the above logical relationships between user behaviors.
[0015] Preferably, in step S2, the user behavior rules are represented in the graph network as a behavior rule matrix A, where A ij =1 indicates node v i and v j There are edges with the above logical relationship between them, otherwise A ij =0 means that there is no edge with the above logical relationship between the two.
[0016] Preferably, in step S3, the convolutional neural network has a total of L convolutional layers, H (l) is the feature graph of user behavior rules output by the convolutional layer of the convolutional neural network, then the feature graph of user behavior rules extracted by the convolutional neural network layer l+1 is H (l+1) for: Where σ is the activation function, Q (l) is the convolution kernel of the lth layer; extract the feature map of user behavior rules layer by layer to the last convolution layer, and convert the feature map of user behavior rules of the last layer H (L)Flatten to form the user behavior rule feature vector F = flaatten (H (L) ).
[0017] Preferably, in step S4, for a new user behavior data message, a user behavior rule feature vector is extracted through the user behavior learning model.
[0018] Preferably, in step S4, based on the user behavior rule feature vector, a support vector machine, a softmax classifier, etc. are used for classification and identification to determine whether it is a legitimate or abnormal user behavior.
[0019] On the other hand, the present invention provides an anomaly detection system based on an industrial network user behavior learning model, which specifically includes:
[0020] A user behavior collection unit, used to collect and preprocess user behavior related data;
[0021] The user learning model unit is used to extract user behaviors from data packets related to user behaviors in the actual network, and use the extracted user behaviors as entity nodes of the graph network, and express them as data sets of entity nodes; based on the temporal relationship, causal relationship and other logical relationships between user behaviors, the logical relationships between behaviors are extracted as edges; through the above entities and edges, user behavior rules in the form of graph networks are established;
[0022] The user behavior rule feature extraction unit uses a convolutional neural network to extract the features of the user behavior rules and expresses these features in the form of user behavior rule feature vectors as the basis for subsequent anomaly detection;
[0023] An anomaly detection unit, used to perform anomaly detection based on user behavior rule feature vectors;
[0024] The security policy execution unit executes security policies and issues alarms for abnormal user behavior.
[0025] Preferably, the user learning model unit deploys multiple CPUs, each CPU will run a user learning model process, specifically processing the data messages in the Ring Buffer buffer with the corresponding number, and the user learning model adopts a shared memory method.
[0026] The present invention can realize real-time monitoring of user behaviors such as communication behaviors, operation instructions, and logins in industrial networks, effectively identify abnormal behaviors, and issue alarms according to security policies, quickly discover illegal behaviors in industrial control network systems, thereby preventing malicious attacks and data leakage, and ensuring the stability of industrial networks. It not only helps to improve the security of industrial networks and reduce security risks; by constructing a user behavior learning model, it has strong adaptability and can cope with various complex network environments and user behavior patterns. Through continuous updating and learning, the model can always maintain high accuracy and effectiveness; the present invention can also reduce the false alarm rate, improve the efficiency of anomaly detection, and reduce unnecessary interference; the present invention can reduce the time and effort of manually writing rules, reduce maintenance costs, and save a lot of manpower and material resources through machine learning. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain and illustrate the present invention, but should not be construed as limiting the protection scope of the present invention.
[0028] Figure 1 It is a flow chart of an anomaly detection method based on an industrial network user behavior learning model disclosed in the present invention;
[0029] Figure 2 It is a structural diagram of an anomaly detection system based on an industrial network user behavior learning model disclosed in the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the implementation of the present invention clearer, the technical solution in the embodiment of the present invention will be described in more detail below with reference to the accompanying drawings in the embodiment of the present invention.
[0031] It should be noted that: in the accompanying drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of the present invention, not all of the embodiments. In the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] The purpose of this invention is to propose an anomaly detection method based on an industrial network user behavior learning model. Figure 1 , the specific process includes:
[0033] Step S1: Collection and preprocessing of user behavior related data.
[0034] In this step, a large amount of user behavior-related data is first collected from the industrial network, that is, data packets triggered, generated, and transmitted by user behavior, including data packets generated by user node communication, operation instructions, login, and other user behaviors. These data are pre-processed by cleaning, deduplication, missing value processing, etc., for subsequent modeling and analysis.
[0035] Step S2: Build a user behavior learning model.
[0036] In this step, according to the data packets related to user behavior in the actual network, the user behavior in the data packets is extracted, and the extracted user behavior is used as the entity node of the graph network, which is expressed as a data set of entity nodes. For example, suppose we want to analyze the operation behavior of an industrial device, we can collect the following data packets: (1) The operator's login time and number of logins, represented by a timestamp array, such as [timestamp1, timestamp2, timestamp3,...]; (2) Operation behavior content: represented by an array of strings, such as ["Open device A", "Adjust parameter B", "Close device A",...]; (3) The operator's operation frequency: represented by an array of integers, such as [5,10,3,...], indicating the number of times each operation is executed; (4) The operator's operation time: represented by an array of floating-point numbers, such as [10.5,15.2,8.7,...], indicating the execution time of each operation.
[0037] Furthermore, based on the logical relationships such as temporal relationships and causal relationships between user behaviors, the logical relationships between behaviors are extracted as edges.
[0038] Furthermore, through the above entities and edges, the user behavior rules in the form of a graph network are established. Specifically, for the graph network representing the user behavior rules, it is expressed as G = (V, E), where the entity node V = {v 1 , v 2 , …, v n} represents the set of entity nodes of user behavior, E = {(v i , v j )} represents the set of the above logical relationships between user behaviors. The representation of user behavior rules in the graph network is a behavior rule matrix A, where A ij =1 indicates node v i and v j There are edges with the above logical relationship between them, otherwise A ij =0 means that there is no edge with the above logical relationship between the two.
[0039] Step S3: Use the convolutional neural network to extract the features of the user behavior rules and express these features in the form of user behavior rule feature vectors. These feature vectors can be used as the basis for subsequent anomaly detection. The convolutional neural network has a total of L convolutional layers, H (l) is the feature graph of user behavior rules output by the convolutional layer of the convolutional neural network, then the feature graph of user behavior rules extracted by the convolutional neural network layer l+1 is H (l+1) for: Where σ is the activation function, W (l) is the convolution kernel of the lth layer; extract the feature map of user behavior rules layer by layer to the last convolution layer, and convert the feature map of user behavior rules of the last layer H (L) Flatten to form the user behavior rule feature vector F = flatten(H (L) ).
[0040] Step S4: performing anomaly detection based on the user behavior rule feature vector;
[0041] In this step, for new user behavior data packets, the user behavior rule feature vector is extracted through the user behavior learning model. Then, based on the user behavior rule feature vector, support vector machine, softmax classifier, etc. are used for classification and identification to determine whether it is legal or abnormal user behavior.
[0042] Step S5: Execute security policies and alarm for abnormal user behavior: When abnormal user behavior is detected, an alarm is issued according to the pre-set security policy, and relevant personnel are notified to handle it in time. At the same time, the system will automatically record the detailed information of the abnormal behavior for further analysis and investigation.
[0043] The purpose of this invention is to propose an anomaly detection system based on an industrial network user behavior learning model. Figure 2 , which specifically include:
[0044] The user behavior collection unit is used to collect and preprocess user behavior related data. This unit collects a large amount of user behavior related data from the industrial network, that is, data packets triggered, generated, and transmitted by user behavior, including data packets generated by user node communication, operation instructions, login and other user behaviors. These data are preprocessed by cleaning, deduplication, missing value processing and other operations to facilitate subsequent modeling and analysis.
[0045] The user learning model unit is used to extract user behaviors from data packets related to user behaviors in the actual network, and take the extracted user behaviors as entity nodes of the graph network, and express them as data sets of entity nodes; according to the logical relationships such as temporal relationships and causal relationships between user behaviors, the logical relationships between behaviors are extracted as edges; through the above entities and edges, user behavior rules in the form of graph networks are established; in order to enable the subsequent abnormal monitoring system to achieve the goals of fast forwarding and low latency, this unit deploys multiple CPUs, each CPU will run a user learning model process, and specifically process the data packets in the Ring Buffer buffer with the corresponding number. The user learning model adopts shared memory, and each process does not maintain a private behavior model; the model system is stored in shared memory. In order to improve performance, the shared memory adopts HugePage technology. The size of HugePage varies with the CPU architecture, generally 2M-4M, which greatly improves performance;
[0046] The user behavior rule feature extraction unit uses a convolutional neural network to extract the features of the user behavior rules and expresses these features in the form of user behavior rule feature vectors as the basis for subsequent anomaly detection;
[0047] The anomaly detection unit is used to perform anomaly detection based on the user behavior rule feature vector; for new user behavior data packets, the user behavior rule feature vector is extracted through the user behavior learning model. Then, based on the user behavior rule feature vector, support vector machine, softmax classifier, etc. are used for classification and identification to determine whether it is a legitimate or abnormal user behavior.
[0048] The security policy execution unit executes security policies and issues alarms for abnormal user behavior: When abnormal user behavior is detected, an alarm is issued according to the pre-set security policy, and relevant personnel are notified to handle it in a timely manner. At the same time, the system will automatically record detailed information about the abnormal behavior for further analysis and investigation.
[0049] The present invention can realize real-time monitoring of user behaviors such as communication behaviors, operation instructions, and logins in industrial networks, effectively identify abnormal behaviors, and issue alarms according to security policies, quickly discover illegal behaviors in industrial control network systems, thereby preventing malicious attacks and data leakage, and ensuring the stability of industrial networks. It not only helps to improve the security of industrial networks and reduce security risks; by constructing a user behavior learning model, it has strong adaptability and can cope with various complex network environments and user behavior patterns. Through continuous updating and learning, the model can always maintain high accuracy and effectiveness; the present invention can also reduce the false alarm rate, improve the efficiency of anomaly detection, and reduce unnecessary interference; the present invention can reduce the time and effort of manually writing rules, reduce maintenance costs, and save a lot of manpower and material resources through machine learning.
[0050] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. An anomaly detection method based on industrial network user behavior learning model, It is characterized in that include: Step S1: Collection and preprocessing of user behavior related data; Step S2: construct a user behavior learning model; Step S3: extracting features of user behavior rules using a convolutional neural network, and expressing these features in the form of user behavior rule feature vectors; Step S4: performing anomaly detection based on the user behavior rule feature vector; Step S5: Execute security policies and issue alarms for abnormal user behavior; In step S2, according to the data packets related to user behaviors in the actual network, the user behaviors in the data packets are extracted, and the extracted user behaviors are used as entity nodes of the graph network and expressed as a data set of entity nodes; according to the logical relationships between the user behaviors, the logical relationships between the behaviors are extracted as edges; Through the above entity nodes and edges, the user behavior rules in the form of a graph network are established; for the graph network representing the user behavior rules, it is expressed as , where entity nodes A collection of entity nodes representing user behavior, A collection representing the above logical relationships between user behaviors; The representation of user behavior rules in the graph network is a behavior rule matrix ,in Representation Node and There are edges with the above logical relationship between them, and vice versa Indicates that there is no edge between the two mentioned logical relationships; In step S3, the convolutional neural network has a total of L convolutional layers. For the convolutional neural network The feature map of user behavior rules output by the convolutional layer is then the convolutional neural network +1 layer extracted feature map of user behavior rules for: ,in is the activation function, For the The convolution kernel of the layer; extract the feature map of user behavior rules layer by layer to the last convolution layer, and convert the feature map of user behavior rules of the last layer Flatten to form a user behavior rule feature vector .
2. According to the anomaly detection method based on the industrial network user behavior learning model according to claim 1, It is characterized in that In step S1, the user behavior related data is a data message triggered, generated, and transmitted by the user behavior.
3. According to the anomaly detection method based on the industrial network user behavior learning model according to claim 2, It is characterized in that In step S4, for a new user behavior data message, a user behavior rule feature vector is extracted through the user behavior learning model.
4. According to the anomaly detection method based on the industrial network user behavior learning model according to claim 3, It is characterized in that Based on the user behavior rule feature vector, a support vector machine or a softmax classifier is used to perform classification and identification to determine whether it is a legitimate or abnormal user behavior.
5. An anomaly detection system based on an industrial network user behavior learning model applied to the method of claim 1, It is characterized in that Specifically include: A user behavior collection unit, used to collect and preprocess user behavior related data; The user learning model unit is used to extract user behaviors from data packets related to user behaviors in the actual network, and use the extracted user behaviors as entity nodes of the graph network, expressing them as data sets of entity nodes; based on the temporal relationship and causal relationship between user behaviors, the logical relationship between behaviors is extracted as edges; through the above entity nodes and edges, user behavior rules in the form of graph networks are established; The user behavior rule feature extraction unit uses a convolutional neural network to extract the features of the user behavior rules and expresses these features in the form of user behavior rule feature vectors as the basis for subsequent anomaly detection; An anomaly detection unit, used to perform anomaly detection based on user behavior rule feature vectors; The security policy execution unit executes security policies and issues alarms for abnormal user behavior.
6. The anomaly detection system based on the industrial network user behavior learning model according to claim 5, It is characterized in that The user learning model unit deploys multiple CPUs, each CPU will run a user learning model process, specifically processing the data messages in the Ring Buffer buffer with the corresponding number, and the user learning model adopts a shared memory method.
Citation Information
Patent Citations
Multi-step attack detection method based on interpretable convolutional neural network CNN and graph detection
CN112738015A
Enterprise network security protection system and method based on SDN controller
CN116232770A
Network user behavior anomaly detection method and system
CN116668192A
Anomaly behavior detection in interactive networks
US20210075805A1
