Network intrusion detection method and apparatus, and electronic device and readable storage medium

By building an industrial network intrusion detection model to identify and block network intrusion behaviors of industrial equipment, it solves the security problems caused by the inconvenient layout of traditional industrial networks and the openness of 5G networks, and improves detection accuracy and equipment security.

WO2024221550A1PCT designated stage expired Publication Date: 2024-10-31CHINA ELECTRONICS CORP 6TH RES INST

Patent Information

Application Number
PCT/CN2023/098966
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2023-06-07
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Traditional industrial networks are connected through physical network cables, which results in inconvenient equipment layout and affects maintenance and expansion. At the same time, the openness of 5G networks makes industrial equipment vulnerable to network intrusions, and the detection rate of existing network intrusion detection methods is not high.

Method used

The sparse stacked autoencoder layer, the encoder layer based on the self-attention mechanism, the Bi-GRU decoder layer and the fully connected layer are used to build an industrial network intrusion detection model. By collecting and preprocessing network traffic data, a feature vector is generated to detect intrusion behavior. Identify and send the identification results to operation and maintenance personnel to block intrusions.

Benefits of technology

It improves the accuracy of network intrusion detection, promptly identifies and blocks network intrusion behavior of industrial equipment, and enhances the security of industrial equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023098966_31102024_PF_FP_ABST
    Figure CN2023098966_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a network intrusion detection method and apparatus, and an electronic device, a readable storage medium, a computer program product and a computer program. The method comprises: collecting network traffic data in an industrial device, and generating a first network traffic feature vector according to the network traffic data; inputting the first network traffic feature vector into an industrial network intrusion detection model, so as to perform network intrusion behavior recognition on the network traffic data, and determining a first network intrusion recognition result corresponding to the network traffic data, wherein the first network intrusion recognition result comprises whether there is a network intrusion behavior for the industrial device, and when there is a network intrusion behavior, a network intrusion type corresponding to the network intrusion behavior; and when there is the network intrusion behavior, sending to a target user side the network intrusion type and identification information of the industrial device, which has been intruded, such that operation and maintenance personnel corresponding to the target user side block the network intrusion behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Network intrusion detection method, device, electronic device and readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure is based on and claims the priority of Chinese patent application with application number 2023104660993 and application date April 27, 2023. The entire content of this Chinese patent application is hereby incorporated into this disclosure by reference. Technical Field

[0003] The present disclosure relates to the field of computer technology, and in particular to a network intrusion detection method, device, electronic device, and readable storage medium. Background Art

[0004] Traditional industrial networks consist of a variety of industrial devices, typically connected by physical network cables for networking and control. This tangled web of cables makes it difficult to adjust the positions of individual industrial devices, impacting their layout and, in turn, hindering the maintenance and expansion of these devices within the industrial network.

[0005] The fifth-generation (5G) network features low latency, high bandwidth, and large connections, enabling rapid access to traditional industrial equipment and meeting industrial scenarios' requirements for network latency, number of access devices, and other factors. Therefore, the networking and control of industrial equipment through 5G networks has greatly facilitated industrial networks.

[0006] However, industrial networks built using traditional cabling (i.e., physical network connections) are internal factory networks and are therefore closed. With the advancement of enterprise informatization, enterprise IT networks and OT networks are converging. Industrial networks built using 5G networks are often exposed to the internet, making industrial equipment within them vulnerable to cyberattacks.

[0007] Summary of the Invention

[0008] In view of this, an object of the present disclosure is to provide a network intrusion detection method, apparatus, electronic device, readable storage medium, computer program product, and computer program to improve the security of industrial equipment.

[0009] In a first aspect, an embodiment of the present disclosure provides a network intrusion detection method, the method comprising:

[0010] Collect network traffic data from industrial equipment to generate a first network traffic feature vector based on the network traffic data; input the first network traffic feature vector into an industrial network intrusion detection model, and use the industrial network intrusion detection model to identify network intrusion behavior on the network traffic data to determine a first network intrusion identification result corresponding to the network traffic data; the first network intrusion identification result includes whether there is a network intrusion behavior against the industrial equipment, and when there is a network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior; when the network intrusion behavior exists, the network intrusion type and the identification information of the invaded industrial equipment are sent to the target user end, so that the operation and maintenance personnel corresponding to the target user end can block the network intrusion behavior.

[0011] In combination with the first aspect, an embodiment of the present disclosure provides a first possible implementation of the first aspect, wherein generating a first network traffic feature vector based on the network traffic data includes:

[0012] The network traffic data is preprocessed to generate standard network traffic data; the preprocessing includes any one or more of the following: data cleaning, data digitization and data standardization; and a first network traffic feature vector is generated based on the standard network traffic data.

[0013] In combination with the first aspect, the embodiment of the present disclosure provides a second possible implementation of the first aspect, wherein the industrial network intrusion detection model includes a sparse stacked autoencoder layer, an encoder layer based on a self-attention mechanism, a Bi-GRU-based decoder layer, and a fully connected layer; the first network traffic feature vector is input into the industrial network intrusion detection model, and the network traffic data is subjected to network intrusion behavior identification by the industrial network intrusion detection model to determine a first network intrusion identification result corresponding to the network traffic data, including:

[0014] The first network traffic feature vector is input into the sparse stacked autoencoder layer, and the first network traffic feature vector is subjected to dimensionality reduction processing by the sparse stacked autoencoder layer to obtain a second network traffic feature vector; the second network traffic feature vector is input into the encoder layer based on the self-attention mechanism, and the weight ratio between each feature in the second network traffic feature vector is calculated by the encoder layer based on the self-attention mechanism to obtain a third network traffic feature vector; the third network traffic feature vector is input into the Bi-GRU based decoder layer to decode the third traffic feature vector and output a fourth network traffic feature vector; the fourth network traffic feature vector is input into the fully connected layer to output a first network intrusion identification result corresponding to the network traffic data.

[0015] In combination with the second possible implementation of the first aspect, the embodiment of the present disclosure provides a third possible implementation of the first aspect, wherein the sparse stacked autoencoder layer includes a first sparse autoencoder and a second sparse autoencoder; inputting the first network traffic feature vector into the sparse stacked autoencoder layer, and performing dimensionality reduction processing on the first network traffic feature vector through the sparse stacked autoencoder layer to obtain a second network traffic feature vector, including:

[0016] The first network traffic feature vector is input into the first sparse autoencoder, and the first sparse autoencoder performs dimensionality reduction processing on the first network traffic feature vector to obtain a reduced dimensionality network traffic feature vector; the reduced dimensionality network traffic feature vector is input into the second sparse autoencoder, and the second sparse autoencoder performs dimensionality reduction processing on the reduced dimensionality network traffic feature vector to obtain a second network traffic feature vector.

[0017] In combination with the first possible implementation of the first aspect, the embodiment of the present disclosure provides a fourth possible implementation of the first aspect, wherein the method is applied to a network intrusion detection device; the industrial network intrusion detection model is obtained by training a server, and the server includes the network intrusion detection device and other devices other than the network intrusion detection device; the server is further used to deploy the trained industrial network intrusion detection model to the network intrusion detection device;

[0018] The server trains the industrial network intrusion detection model in the following manner:

[0019] Obtain historical network traffic data in the industrial equipment and a network intrusion label corresponding to the historical network traffic data; the network intrusion label includes whether the historical network traffic data contains any network intrusion behavior against the industrial equipment, and when there is any network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior; preprocess the historical network traffic data to obtain standard historical network traffic data, and generate a first historical network traffic feature vector based on the standard network traffic data; input the first historical network traffic feature vector into an initial industrial network intrusion detection model to be trained, and perform network intrusion behavior identification on the historical network traffic data through the initial industrial network intrusion detection model to predict a second network intrusion identification result corresponding to the historical network traffic data; calculate the loss value of the initial industrial network intrusion detection model based on the second network intrusion identification result and the network intrusion label; use the loss value to update the learnable parameters in the initial industrial network intrusion detection model, and stop training until the prediction accuracy of the initial industrial network intrusion detection model is greater than a preset threshold or the accuracy no longer improves, so as to obtain the industrial network intrusion detection model after training.

[0020] In combination with the first aspect, the embodiment of the present disclosure provides a fifth possible implementation of the first aspect, wherein the network traffic data includes: access data to the industrial equipment, and / or instruction data issued to the industrial equipment.

[0021] In a second aspect, an embodiment of the present disclosure further provides a network intrusion detection device, the device comprising:

[0022] The collection module is used to collect network flow data in the industrial equipment to generate a first network flow feature vector according to the network flow data.

[0023] The first identification module is used to input the first network traffic feature vector into the industrial network intrusion detection model, and perform network intrusion behavior identification on the network traffic data through the industrial network intrusion detection model to determine a first network intrusion identification result corresponding to the network traffic data; the first network intrusion identification result includes whether there is a network intrusion behavior against the industrial equipment, and when there is a network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior.

[0024] The sending module is used to send the network intrusion type and identification information of the invaded industrial equipment to the target user end when the network intrusion behavior occurs, so that the operation and maintenance personnel corresponding to the target user end can block the network intrusion behavior.

[0025] In conjunction with the second aspect, an embodiment of the present disclosure provides a first possible implementation of the second aspect, wherein the acquisition module, when used to collect network traffic data from industrial equipment to generate a first network traffic feature vector based on the network traffic data, is specifically configured to:

[0026] The network traffic data is preprocessed to generate standard network traffic data; the preprocessing includes any one or more of the following: data cleaning, data digitization and data standardization; and a first network traffic feature vector is generated based on the standard network traffic data.

[0027] In combination with the second aspect, the embodiment of the present disclosure provides a second possible implementation of the second aspect, wherein the industrial network intrusion detection model includes a sparse stacked autoencoder layer, an encoder layer based on a self-attention mechanism, a Bi-GRU-based decoder layer, and a fully connected layer; the first identification module is used to input the first network traffic feature vector into the industrial network intrusion detection model, and perform network intrusion behavior identification on the network traffic data through the industrial network intrusion detection model to determine the first network intrusion identification result corresponding to the network traffic data, specifically for:

[0028] The first network traffic feature vector is input into the sparse stacked autoencoder layer, and the first network traffic feature vector is subjected to dimensionality reduction processing by the sparse stacked autoencoder layer to obtain a second network traffic feature vector; the second network traffic feature vector is input into the encoder layer based on the self-attention mechanism, and the weight ratio between each feature in the second network traffic feature vector is calculated by the encoder layer based on the self-attention mechanism to obtain a third network traffic feature vector; the third network traffic feature vector is input into the Bi-GRU based decoder layer to decode the third traffic feature vector and output a fourth network traffic feature vector; the fourth network traffic feature vector is input into the fully connected layer to output a first network intrusion identification result corresponding to the network traffic data.

[0029] In combination with the second possible implementation of the second aspect, the embodiment of the present disclosure provides a third possible implementation of the second aspect, wherein the sparse stacked autoencoder layer includes a first sparse autoencoder and a second sparse autoencoder; the first identification module is used to input the first network traffic feature vector into the sparse stacked autoencoder layer, and perform dimensionality reduction processing on the first network traffic feature vector through the sparse stacked autoencoder layer to obtain a second network traffic feature vector, specifically for:

[0030] The first network traffic feature vector is input into the first sparse autoencoder, and the first sparse autoencoder performs dimensionality reduction processing on the first network traffic feature vector to obtain a reduced dimensionality network traffic feature vector; the reduced dimensionality network traffic feature vector is input into the second sparse autoencoder, and the second sparse autoencoder performs dimensionality reduction processing on the reduced dimensionality network traffic feature vector to obtain a second network traffic feature vector.

[0031] In combination with the first possible implementation of the second aspect, the embodiment of the present disclosure provides a fourth possible implementation of the second aspect, wherein the apparatus is applied to a network intrusion detection device; the industrial network intrusion detection model is obtained through training on a server, the server including the network intrusion detection device and other devices other than the network intrusion detection device; the server including: an acquisition module, a preprocessing module, a second identification module, a calculation module, a training module, and a deployment module;

[0032] The acquisition module is used to obtain the historical network traffic data in the industrial equipment and the network intrusion label corresponding to the historical network traffic data; the network intrusion label includes whether the historical network traffic data contains network intrusion behavior against the industrial equipment, and when there is network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior.

[0033] The preprocessing module is used to preprocess the historical network traffic data to obtain standard historical network traffic data, so as to generate a first historical network traffic feature vector according to the standard network traffic data.

[0034] The second identification module is used to input the first historical network traffic feature vector into the initial industrial network intrusion detection model to be trained, and perform network intrusion behavior identification on the historical network traffic data through the initial industrial network intrusion detection model to predict the second network intrusion identification result corresponding to the historical network traffic data.

[0035] The calculation module is used to calculate the loss value of the initial industrial network intrusion detection model according to the second network intrusion identification result and the network intrusion label.

[0036] The training module is used to use the loss value to update the learnable parameters in the initial industrial network intrusion detection model until the prediction accuracy of the initial industrial network intrusion detection model is greater than a preset threshold or the accuracy no longer improves, and then stop training to obtain the industrial network intrusion detection model after training.

[0037] The deployment module is used to deploy the trained industrial network intrusion detection model to the network intrusion detection device.

[0038] In combination with the second aspect, the embodiment of the present disclosure provides a fifth possible implementation of the second aspect, wherein the network traffic data includes: access data to the industrial equipment, and / or instruction data issued to the industrial equipment.

[0039] In a third aspect, an embodiment of the present disclosure further provides an electronic device comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, a method in any possible implementation of the first aspect above is executed.

[0040] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which executes a method in any possible implementation of the first aspect when the computer program is executed by a processor.

[0041] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, comprising a computer program, which implements the method in any possible implementation of the first aspect when executed by a processor.

[0042] In a sixth aspect, an embodiment of the present disclosure further provides a computer program, comprising computer program code, which, when run on a computer, enables the computer to execute the method in any possible implementation of the first aspect.

[0043] The embodiments of the present disclosure provide a network intrusion detection method, device, electronic device, readable storage medium, computer program product, and computer program. The method uses an industrial network intrusion detection model to identify network intrusion behaviors in network traffic data of industrial equipment, determine whether there is network intrusion behavior against the industrial equipment in the network traffic data, and when there is network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior; then send the network intrusion type and identification information of the invaded industrial equipment to the target user end, so that the operation and maintenance personnel corresponding to the target user end can block the network intrusion behavior in a timely manner. In this embodiment, the industrial network intrusion detection model is used to timely identify whether the industrial equipment has been invaded by the network. When it has been invaded by the network, the network intrusion behavior is blocked in a timely manner, thereby improving the security of the industrial equipment.

[0044] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0046] FIG1 shows a flow chart of a network intrusion detection method provided by an embodiment of the present disclosure;

[0047] FIG2 shows a schematic diagram of the structure of an industrial network intrusion detection model provided by an embodiment of the present disclosure;

[0048] FIG3 shows a schematic structural diagram of a network intrusion detection device provided by an embodiment of the present disclosure;

[0049] FIG4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in combination with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments.

[0051] The components of the embodiments of the present disclosure generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the figures is not intended to limit the scope of the claimed disclosure, but rather merely represents selected embodiments of the present disclosure. All other embodiments derived by those skilled in the art based on the embodiments of the present disclosure without inventive effort are intended to fall within the scope of protection of the present disclosure.

[0052] In related technologies, network intrusion detection requires prior knowledge of detection rules for various network intrusion behaviors, and then using these pre-set detection rules to perform network intrusion detection. If a network intrusion behavior has never occurred before and no detection rules exist for it, the intrusion behavior cannot be detected. Consequently, existing network intrusion detection methods suffer from a low detection rate.

[0053] In view of the above problems, the present disclosure provides a network intrusion detection method, apparatus, electronic device, readable storage medium, computer program product, and computer program to improve the accuracy of network intrusion detection and the security of industrial equipment. These methods are described below using examples.

[0054] Example 1:

[0055] To facilitate understanding of this embodiment, a network intrusion detection method disclosed in the embodiment of the present disclosure is first described in detail. FIG1 shows a flowchart of a network intrusion detection method provided in the embodiment of the present disclosure, as shown in FIG1 , including the following steps S101-S103:

[0056] S101: Collect network traffic data from industrial equipment to generate a first network traffic feature vector based on the network traffic data.

[0057] In this embodiment, the network intrusion detection method is applied to a network intrusion detection device, which can be specifically a 5G multi-access edge computing (MEC) node. The network intrusion detection device can be set near industrial equipment in an industrial site, which includes multiple industrial equipment.

[0058] When executing step S101, specifically for each industrial device, the network intrusion detection device may collect the current network traffic data of the industrial device in real time from the industrial device to generate a first network traffic feature vector based on the network traffic data.

[0059] In a possible real-time manner, the network traffic data includes: access data to the industrial equipment, and / or instruction data issued to the industrial equipment.

[0060] In a possible real-time manner, when executing step S101 to generate the first network traffic feature vector according to the network traffic data, the following steps may be specifically performed:

[0061] S1011: Preprocess the network traffic data to generate standard network traffic data; the preprocessing includes any one or more of the following: data cleaning, data digitization, and data standardization.

[0062] Specifically, data cleaning can include deleting null value data, where null value data refers to data containing a large number of missing values.

[0063] The data types in network traffic data include numerical data, categorical data, and character data. Since numerical data is the only type for model training and prediction, it is necessary to digitize the categorical and character data in network traffic data.

[0064] For example, the loading and unloading instructions can be categorized data. By digitizing the categorized data, the loading instruction can be represented by a value of 1, and the unloading instruction by a value of 2. For character data represented by a string of characters, a preset conversion method (e.g., a digitization algorithm) can be used to digitize the character data.

[0065] Data standardization is data normalization. For example, the numerical ranges of various data in the network traffic data are different. The reason is that the numerical ranges of some data are larger (0-10000) and the numerical ranges of some data are smaller (0-10). Therefore, in this embodiment, through data standardization, the numerical ranges of various data in the network traffic data are unified into the same numerical range.

[0066] In this embodiment, after preprocessing the network traffic data, the network traffic data is converted into standard network traffic data, which is the input X of the model.

[0067] S1012: Based on the standard network traffic data, perform a word embedding operation on the standard network traffic data to generate a first network traffic feature vector. Each standard network traffic data corresponds to a first network traffic feature vector.

[0068] S102: Input the first network traffic feature vector into the industrial network intrusion detection model, and use the industrial network intrusion detection model to identify network intrusion behavior on the network traffic data to determine a first network intrusion identification result corresponding to the network traffic data; the first network intrusion identification result includes whether there is a network intrusion behavior against the industrial equipment, and when there is a network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior.

[0069] In this embodiment, the network intrusion type includes any one or more of the following: Denial of Service attack (DoS), Probe monitoring and other detection activities, illegal access from a remote machine (Remote-to-Local attack, R2L), and unauthorized access to local administrator privileges (User-to-Root attack, U2R).

[0070] In a possible implementation, Figure 2 shows a structural diagram of the industrial network intrusion detection model provided by an embodiment of the present disclosure. As shown in Figure 2, the industrial network intrusion detection model includes a sparse stacked autoencoder layer, an encoder layer based on a self-attention mechanism, a decoder layer based on a bidirectional gated recurrent unit (Bi-directional Gated Recurrent Unit, Bi-GRU), and a fully connected layer.

[0071] When executing step S102, the following steps S1021-S1024 may be specifically performed:

[0072] S1021: Input the first network traffic feature vector into the sparse stacked autoencoder layer, perform dimensionality reduction processing on the first network traffic feature vector through the sparse stacked autoencoder layer, and obtain a second network traffic feature vector.

[0073] Because network traffic data contains a large amount of data information, the first network traffic feature vector has a large dimension. Using this large-dimensional first network traffic feature vector for model prediction requires a considerable amount of model prediction time. Therefore, in this embodiment, the first network traffic feature vector is reduced in dimension using a sparsely stacked autoencoder layer to obtain a reduced-dimensional second network traffic feature vector. The first network traffic feature vector has a higher dimension than the second network traffic feature vector, thereby reducing model prediction time.

[0074] In one possible implementation, as shown in Figure 2, the sparse stacked autoencoder layer includes a first sparse autoencoder and a second sparse autoencoder; when executing step S1021, the first network traffic feature vector is input into the sparse stacked autoencoder layer, and the first network traffic feature vector is subjected to dimensionality reduction processing by the sparse stacked autoencoder layer to obtain the second network traffic feature vector, specifically: the first network traffic feature vector is input into the first sparse autoencoder, and the first sparse autoencoder is subjected to dimensionality reduction processing to obtain the reduced dimensionality network traffic feature vector; the reduced dimensionality network traffic feature vector is input into the second sparse autoencoder, and the second sparse autoencoder is subjected to dimensionality reduction processing to obtain the second network traffic feature vector.

[0075] In this embodiment, multiple sparse autoencoders are used to achieve better dimensionality reduction effects.

[0076] The hidden layer of the sparsely stacked autoencoder is used as the input of the self-attention mechanism.

[0077] S1022: Input the second network traffic feature vector into the encoder layer based on the self-attention mechanism, calculate the weight ratio between each feature in the second network traffic feature vector through the encoder layer based on the self-attention mechanism, and obtain a third network traffic feature vector.

[0078] In this embodiment, the encoder layer based on the self-attention mechanism includes a position encoder. The position encoder is used to reflect the positional relationship between features, generate a position vector, and add the position vector to the second network traffic feature vector, so that the distance relationship between each feature in the second network traffic feature vector can be better represented in subsequent operations.

[0079] Among them, the position vector is calculated as follows: PE (pos,2i) =sin pos / 10000 2i / d ) PE (pos,2i+1) =cos(pos / 10000 2i / d )

[0080] Among them, pos represents the position of the feature in this set of inputs, d represents the dimension of PE (consistent with the dimension of the second network traffic feature vector), 2i represents the even dimension, and 2i+1 represents the odd dimension.

[0081] By adding the second network flow feature vector and the position vector, we can get the new feature vector of the second network flow, denoted as U, where U is the input of the self-attention mechanism.

[0082] The encoder layer based on the self-attention mechanism uses a zoom-click method to calculate the weight ratio between each feature in the new feature vector of the second network traffic, learn the correlation between different features, and obtain the third network traffic feature vector.

[0083] The calculation method is as follows:

[0084] Q, K, and V are query, key, and value matrices, respectively, using the linear transformation matrix W. q 、W k 、W v Multiply it with U. Calculate the inner product of each row vector of matrix Q and K. In order to prevent the inner product from being too large, divide it by d k The resulting matrix represents the attention strength between each network flow. Softmax is used to calculate the attention coefficient of each word with respect to other words, and then multiplied by V to obtain the output Attention(Q,K,V). The output value S of Attention(Q,K,V) is the third network flow feature.

[0085] S1023: Input the third network traffic feature vector to a Bi-GRU based decoder layer to decode the third traffic feature vector and output a fourth network traffic feature vector.

[0086] The Bi-GRU is used as the decoder of the model to capture time series dependencies. The encoder layer based on the self-attention mechanism compresses the sequence of the second network traffic feature vector into a third network traffic feature vector. The Bi-GRU decoder layer decodes the third network traffic feature vector, explores the temporal correlation between features, and recovers it into a new sequence (i.e., the fourth network traffic feature vector).

[0087] Assumptions t is the input, z t represents the update gate, r t Represents the reset gate, h t is the output of the hidden layer, and the GRU gate update formula is: t =σ(W z ·[h t-1 ,s t ]+b z ) r t =σ(W r ·[h t-1 ,s t ]+b r )

[0088] Where W z 、W r , W is the trainable parameter matrix, b z 、b r 、b h For bias.

[0089] The unidirectional GRU state always outputs a one-way propagation from the front to the back, which can only extract the current state forward information and cannot use the subsequent sequence information. The bidirectional GRU (Bi-direction GRU, BiGRU) allows the network to obtain information from both forward and backward propagation, fully extracting data-related features. Its output is determined by the states of both GRUs:

[0090] Take h t The last time value h -1 , which is the fourth network traffic feature vector.

[0091] S1024: Input the fourth network traffic feature vector to the fully connected layer, and output the first network intrusion identification result y corresponding to the network traffic data i .

[0092] The input dimension of the fully connected layer is h -1 The output dimension is the classification dimension of intrusion detection.

[0093] S103: When there is a network intrusion, the network intrusion type and identification information of the invaded industrial equipment are sent to the target user end, so that the operation and maintenance personnel corresponding to the target user end can block the network intrusion.

[0094] In one possible implementation, the industrial network intrusion detection model is obtained through training on a server, which includes a network intrusion detection device and other devices in addition to the network intrusion detection device; the server is also used to deploy the trained industrial network intrusion detection model to the network intrusion detection device; the server trains the industrial network intrusion detection model in the following manner.

[0095] S201: Obtain historical network traffic data in industrial equipment and network intrusion labels corresponding to the historical network traffic data; the network intrusion labels include whether the historical network traffic data contains network intrusion behavior against the industrial equipment, and when there is network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior.

[0096] S202: Preprocess the historical network traffic data to obtain standard historical network traffic data, and generate a first historical network traffic feature vector according to the standard network traffic data.

[0097] S203: Input the first historical network traffic feature vector into the initial industrial network intrusion detection model to be trained, and use the initial industrial network intrusion detection model to identify network intrusion behavior on the historical network traffic data to predict a second network intrusion identification result corresponding to the historical network traffic data.

[0098] S204: Calculate the loss value of the initial industrial network intrusion detection model according to the second network intrusion identification result and the network intrusion label.

[0099] Use the cross entropy function as the final loss function for model training:

[0100] where y i represents the true value, represents the predicted value, and N is the number of samples.

[0101] S205: Use the loss value to update the learnable parameters in the initial industrial network intrusion detection model until the prediction accuracy of the initial industrial network intrusion detection model is greater than a preset threshold or the accuracy no longer improves, then stop training to obtain the trained industrial network intrusion detection model.

[0102] Example 2:

[0103] FIG3 shows a schematic diagram of the structure of a network intrusion detection device provided by an embodiment of the present disclosure. As shown in FIG3 , the device includes:

[0104] The collection module 301 is configured to collect network traffic data from industrial equipment to generate a first network traffic feature vector based on the network traffic data.

[0105] The first identification module 302 is used to input the first network traffic feature vector into the industrial network intrusion detection model, and perform network intrusion behavior identification on the network traffic data through the industrial network intrusion detection model to determine the first network intrusion identification result corresponding to the network traffic data; the first network intrusion identification result includes whether there is a network intrusion behavior against the industrial equipment, and when there is a network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior.

[0106] The sending module 303 is used to send the network intrusion type and identification information of the invaded industrial equipment to the target user terminal when the network intrusion occurs, so that the operation and maintenance personnel corresponding to the target user terminal can block the network intrusion.

[0107] Optionally, when the collection module 301 is used to collect network traffic data from industrial equipment to generate a first network traffic feature vector based on the network traffic data, it is specifically used to:

[0108] The network traffic data is preprocessed to generate standard network traffic data; the preprocessing includes any one or more of the following: data cleaning, data digitization and data standardization; and a first network traffic feature vector is generated based on the standard network traffic data.

[0109] Optionally, the industrial network intrusion detection model includes a sparse stacked autoencoder layer, an encoder layer based on a self-attention mechanism, a Bi-GRU-based decoder layer, and a fully connected layer; the first identification module 302 is used to input the first network traffic feature vector into the industrial network intrusion detection model, and perform network intrusion behavior identification on the network traffic data through the industrial network intrusion detection model to determine a first network intrusion identification result corresponding to the network traffic data, specifically for:

[0110] The first network traffic feature vector is input into the sparse stacked autoencoder layer, and the first network traffic feature vector is subjected to dimensionality reduction processing by the sparse stacked autoencoder layer to obtain a second network traffic feature vector; the second network traffic feature vector is input into the encoder layer based on the self-attention mechanism, and the weight ratio between each feature in the second network traffic feature vector is calculated by the encoder layer based on the self-attention mechanism to obtain a third network traffic feature vector; the third network traffic feature vector is input into the Bi-GRU based decoder layer to decode the third traffic feature vector and output a fourth network traffic feature vector; the fourth network traffic feature vector is input into the fully connected layer to output a first network intrusion identification result corresponding to the network traffic data.

[0111] Optionally, the sparse stacked autoencoder layer includes a first sparse autoencoder and a second sparse autoencoder; when the first identification module 302 is used to input the first network traffic feature vector into the sparse stacked autoencoder layer, and perform dimensionality reduction processing on the first network traffic feature vector through the sparse stacked autoencoder layer to obtain a second network traffic feature vector, it is specifically used to:

[0112] The first network traffic feature vector is input into the first sparse autoencoder, and the first sparse autoencoder performs dimensionality reduction processing on the first network traffic feature vector to obtain a reduced dimensionality network traffic feature vector; the reduced dimensionality network traffic feature vector is input into the second sparse autoencoder, and the second sparse autoencoder performs dimensionality reduction processing on the reduced dimensionality network traffic feature vector to obtain a second network traffic feature vector.

[0113] Optionally, the device is applied to a network intrusion detection device; the industrial network intrusion detection model is obtained through server training, and the server includes the network intrusion detection device and other devices except the network intrusion detection device; the server includes: an acquisition module, a preprocessing module, a second identification module, a calculation module, a training module and a deployment module.

[0114] The acquisition module is used to obtain the historical network traffic data in the industrial equipment and the network intrusion label corresponding to the historical network traffic data; the network intrusion label includes whether the historical network traffic data contains network intrusion behavior against the industrial equipment, and when there is network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior.

[0115] The preprocessing module is used to preprocess the historical network traffic data to obtain standard historical network traffic data, so as to generate a first historical network traffic feature vector according to the standard network traffic data.

[0116] The second identification module is used to input the first historical network traffic feature vector into the initial industrial network intrusion detection model to be trained, and perform network intrusion behavior identification on the historical network traffic data through the initial industrial network intrusion detection model to predict the second network intrusion identification result corresponding to the historical network traffic data.

[0117] The calculation module is used to calculate the loss value of the initial industrial network intrusion detection model according to the second network intrusion identification result and the network intrusion label.

[0118] The training module is used to use the loss value to update the learnable parameters in the initial industrial network intrusion detection model until the prediction accuracy of the initial industrial network intrusion detection model is greater than a preset threshold or the accuracy no longer improves, and then stop training to obtain the industrial network intrusion detection model after training.

[0119] The deployment module is used to deploy the trained industrial network intrusion detection model to the network intrusion detection device.

[0120] Optionally, the network traffic data includes: access data to the industrial equipment, and / or instruction data issued to the industrial equipment.

[0121] Example 3:

[0122] Figure 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure, including: a processor 401, a memory 402 and a bus 403. The memory 402 stores machine-readable instructions executable by the processor 401. When the electronic device runs the above-mentioned information processing method, the processor 401 communicates with the memory 402 through the bus 403, and the processor 401 executes the machine-readable instructions to perform the method described in Example 1.

[0123] Example 4:

[0124] The fourth embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first embodiment is executed.

[0125] Embodiment 5:

[0126] The fifth embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the method in any possible implementation of the first embodiment when executed by a processor.

[0127] Example 6:

[0128] The sixth embodiment of the present disclosure further provides a computer program, comprising computer program code, which, when executed on a computer, enables the computer to execute the method in any possible implementation of the first embodiment.

[0129] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, electronic devices, and computer-readable storage media can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0130] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some communication interface, device or unit, which can be electrical, mechanical or other forms.

[0131] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0132] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0133] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0134] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.

Claims

1. A network intrusion detection method, characterized in that: The method comprises: Collecting network traffic data in the industrial equipment to generate a first network traffic feature vector according to the network traffic data; Inputting the first network traffic feature vector into an industrial network intrusion detection model, and performing network intrusion behavior identification on the network traffic data through the industrial network intrusion detection model to determine a first network intrusion identification result corresponding to the network traffic data; the first network intrusion identification result includes whether there is a network intrusion behavior against the industrial equipment, and when there is a network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior; When the network intrusion occurs, the network intrusion type and identification information of the invaded industrial equipment are sent to the target user end, so that the operation and maintenance personnel corresponding to the target user end can block the network intrusion.

2. The method according to claim 1, characterized in that: The step of generating a first network traffic feature vector according to the network traffic data comprises: Preprocessing the network traffic data to generate standard network traffic data; the preprocessing includes any one or more of the following: data cleaning, data digitization and data standardization; A first network traffic feature vector is generated according to the standard network traffic data.

3. The method according to claim 1 or 2, characterized in that: The industrial network intrusion detection model includes a sparse stacked autoencoder layer, an encoder layer based on a self-attention mechanism, a decoder layer based on a bidirectional gated recurrent unit Bi-GRU, and a fully connected layer; the first network traffic feature vector is input into the industrial network intrusion detection model, and the network traffic data is subjected to network intrusion behavior recognition through the industrial network intrusion detection model to determine a first network intrusion recognition result corresponding to the network traffic data, including: Inputting the first network traffic feature vector into the sparse stacked autoencoder layer, and performing dimensionality reduction processing on the first network traffic feature vector through the sparse stacked autoencoder layer to obtain a second network traffic feature vector; Inputting the second network traffic feature vector into the encoder layer based on the self-attention mechanism, calculating the weight ratios between the features in the second network traffic feature vector through the encoder layer based on the self-attention mechanism, and obtaining a third network traffic feature vector; Inputting the third network traffic feature vector into the Bi-GRU based decoder layer to decode the third traffic feature vector and output a fourth network traffic feature vector; The fourth network traffic feature vector is input into the fully connected layer, and the first network intrusion identification result corresponding to the network traffic data is output.

4. The method according to claim 3, characterized in that The sparse stacked autoencoder layer includes a first sparse autoencoder and a second sparse autoencoder; the first network traffic feature vector is input into the sparse stacked autoencoder layer, and the first network traffic feature vector is subjected to dimensionality reduction processing by the sparse stacked autoencoder layer to obtain a second network traffic feature vector, including: Inputting the first network traffic feature vector into the first sparse autoencoder, and performing dimensionality reduction processing on the first network traffic feature vector through the first sparse autoencoder to obtain a reduced-dimensional network traffic feature vector; The reduced-dimensionality network traffic feature vector is input into the second sparse autoencoder, and the reduced-dimensionality network traffic feature vector is subjected to dimensionality reduction processing by the second sparse autoencoder to obtain a second network traffic feature vector.

5. The method according to any one of claims 2 to 4, characterized in that The method is applied to a network intrusion detection device; the industrial network intrusion detection model is obtained by training a server, and the server includes the network intrusion detection device and other devices except the network intrusion detection device; the server is also used to deploy the trained industrial network intrusion detection model to the network intrusion detection device; The server trains the industrial network intrusion detection model in the following manner: Acquire historical network traffic data in the industrial equipment and a network intrusion tag corresponding to the historical network traffic data; the network intrusion tag includes whether the historical network traffic data contains network intrusion behavior against the industrial equipment, and when there is network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior; Preprocessing the historical network traffic data to obtain standard historical network traffic data, and generating a first historical network traffic feature vector according to the standard network traffic data; Inputting the first historical network traffic feature vector into an initial industrial network intrusion detection model to be trained, and performing network intrusion behavior identification on the historical network traffic data through the initial industrial network intrusion detection model to predict a second network intrusion identification result corresponding to the historical network traffic data; Calculating a loss value of the initial industrial network intrusion detection model according to the second network intrusion identification result and the network intrusion label; The loss value is used to update the learnable parameters in the initial industrial network intrusion detection model until the prediction accuracy of the initial industrial network intrusion detection model is greater than a preset threshold or the accuracy no longer improves, then training is stopped to obtain the industrial network intrusion detection model after training.

6. The method according to any one of claims 1 to 5, characterized in that The network traffic data includes: Access data to the industrial device, and / or instruction data issued to the industrial device.

7. A network intrusion detection device, characterized in that: The device comprises: A collection module, used for collecting network flow data in industrial equipment to generate a first network flow feature vector according to the network flow data; A first identification module is used to input the first network traffic feature vector into an industrial network intrusion detection model, and perform network intrusion behavior identification on the network traffic data through the industrial network intrusion detection model to determine a first network intrusion identification result corresponding to the network traffic data; the first network intrusion identification result includes whether there is a network intrusion behavior against the industrial equipment, and when there is a network intrusion behavior, the network intrusion type corresponding to the network intrusion behavior; The sending module is used to send the network intrusion type and identification information of the invaded industrial equipment to the target user end when the network intrusion behavior occurs, so that the operation and maintenance personnel corresponding to the target user end can block the network intrusion behavior.

8. The device according to claim 7, characterized in that When the collection module is used to collect network flow data in industrial equipment to generate a first network flow feature vector according to the network flow data, it is specifically used to: Preprocessing the network traffic data to generate standard network traffic data; the preprocessing includes any one or more of the following: data cleaning, data digitization and data standardization; A first network traffic feature vector is generated according to the standard network traffic data.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method as described in any one of claims 1 to 6 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the method according to any one of claims 1 to 6.

11. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

12. A computer program, comprising computer program code, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Network intrusion detection method, network intrusion detection model training method, network intrusion detection model training device and server

    CN110881037A

  • Intrusion detection method and device and electronic equipment

    CN111885084A

  • Network intrusion data classification method and device, electronic equipment and storage medium

    CN115801374A

  • Network intrusion detection method and device, electronic equipment and readable storage medium

    CN116192536A

  • Method and device for detecting network intrusion

    US20180115568A1

Cited By

  • Network intrusion detection method and device, computer equipment and storage medium

    CN120074966A

  • Intrusion detection method, system and device for roadside heterogeneous device network

    CN120474824A

  • Network intrusion detection method, device, equipment, storage medium and product

    CN120639466A