Industrial control network intrusion detection method and system based on ensemble learning

Through integrated learning methods, the characteristics are extracted and optimized from network traffic data, combined with the results of multi-dimensional distance calculation and multiple classifiers, abnormal traffic patterns are identified and early warnings are generated, which solves the high rate of unknown attacks and false alarms for traditional industrial control network intrusion detection methods. The problem has achieved higher detection accuracy and response capabilities.

CN118890166APending Publication Date: 2024-11-01SHANGHAI UNIVERSITY OF ELECTRIC POWER +1
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410794523.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Traditional industrial control network intrusion detection methods rely on known feature databases and cannot effectively deal with unknown attacks. They have a high false alarm rate and lack a deep analysis and response mechanism for abnormal behavior.

Method used

Using an integrated learning-based method, features are extracted from network traffic data, feature optimization processing and multi-dimensional distance calculation are combined with the results of multiple classifiers, abnormal traffic patterns are identified and early warning and response plans are generated.

Benefits of technology

It improves detection accuracy and adaptability, reduces false alarm rates, can effectively detect unknown and variant attacks, provides timely and effective security early warning and response strategies, and significantly improves the security of industrial control networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890166A_ABST
    Figure CN118890166A_ABST
Patent Text Reader

Abstract

The invention discloses an industrial control network intrusion detection method and system based on ensemble learning, and the method comprises the steps: extracting features from network flow data, and carrying out the optimization processing of the features. And calculating the traffic characteristics, and identifying an abnormal traffic mode. And analyzing the abnormal traffic to obtain an attribute behavior mode of the abnormal traffic. And generating an early warning and response plan according to an analysis result, and sending the plan to an industrial control network center. According to the industrial control network intrusion detection method and system based on ensemble learning provided by the invention, abnormal behaviors in the network are accurately positioned and identified, and a reliable basis is provided for subsequent analysis. The characteristics and potential threats of the abnormal traffic can be deeply understood, a detailed attack behavior mode is provided, and a scientific basis is provided for making a security policy. The early warning and response plan is generated according to the analysis result and is sent to the industrial control network center, so that the abnormal behavior is quickly responded and effectively processed, and the safety and protection capability of the industrial control network are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial control network security, and in particular to an industrial control network intrusion detection method and system based on ensemble learning. Background Art

[0002] With the rapid development of industrial control systems (ICS), industrial control networks have become the core of industrial production and management. However, the security threats faced by industrial control networks are increasing, and intrusion detection technology has become a research hotspot. Traditional intrusion detection systems (IDS) mainly rely on feature matching and anomaly detection methods, which often show low recognition rate and high false alarm rate when facing complex and changeable attack patterns. In addition, existing technologies usually require a lot of manual intervention and cannot respond to new threats in real time. Therefore, advanced technologies such as ensemble learning have gradually been applied to the field of intrusion detection to improve detection accuracy and response speed.

[0003] The existing industrial control network intrusion detection technology has the following main shortcomings. First, the method based on feature matching relies on a known attack feature library, cannot detect unknown or variant attacks, and the maintenance cost of the feature library is high. Second, the traditional anomaly detection method is highly dependent on the normal behavior model and is easily affected by the diversity and complexity of normal behavior, resulting in a high false alarm rate. Finally, the existing technology lacks in-depth analysis and response mechanism for abnormal behavior, and cannot provide timely and effective security warnings and response strategies. In contrast, the intrusion detection method based on ensemble learning can effectively improve the detection accuracy by fusing the results of multiple classifiers, and can automatically adapt to new attack modes and complex network environments, which has significant advantages. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention is proposed.

[0005] Therefore, the technical problem solved by the present invention is that the traditional intrusion detection method relies on a known feature library and cannot effectively deal with unknown attacks. The ensemble learning method has stronger generalization ability and adaptability by fusing the results of multiple classifiers, and can detect unknown attacks and variant attacks. The existing anomaly detection method has a strong dependence on the normal behavior model and is prone to high false alarm rates. The present invention effectively reduces the false alarm rate and improves the detection accuracy by combining the classification results of ensemble learning with feature optimization processing and multidimensional distance calculation.

[0006] To solve the above technical problems, the present invention provides the following technical solutions: an industrial control network intrusion detection method based on ensemble learning, comprising: extracting features from network traffic data and optimizing the features.

[0007] Calculate traffic characteristics and identify abnormal traffic patterns.

[0008] Analyze the abnormal traffic and obtain the attribute behavior pattern of the abnormal traffic.

[0009] Generate early warning and response plans based on the analysis results and send them to the industrial control network center.

[0010] As a preferred solution of the industrial control network intrusion detection method based on ensemble learning described in the present invention, wherein: the feature extraction from the network traffic data includes collecting the original network traffic data, marking the timestamp and metadata of the data packet. Each data packet is parsed to extract basic features, including source IP, destination IP, source port, destination port, protocol type, and data packet size. Derived features are calculated based on the basic features, including the traffic rate of each IP address and the time interval of the data packets.

[0011] The flow rate calculation formula is expressed as:

[0012]

[0013] Among them, R IP represents the traffic rate of a specific IP address, N represents the total number of packets, and T i represents the timestamp of the ith data packet, S i Indicates the size of the i-th data packet, IP src (i) represents the source IP address of the ith data packet, IP dst (i) represents the destination IP address of the i-th data packet, δ represents the indicator function, which takes the value 1 when the condition is true and 0 otherwise.

[0014] The packet time interval formula is expressed as:

[0015]

[0016] Where, ΔT IP Indicates the average packet time interval for a specific IP address, N IP Indicates the total number of packets for a specific IP address.

[0017] As a preferred solution of the industrial control network intrusion detection method based on ensemble learning described in the present invention, the optimization processing of the features includes normalizing the flow rate of each IP address and the time interval characteristics of the data packets, and using high-level integral functions and complex summation functions to eliminate noise and outliers, which is expressed as:

[0018]

[0019] in, represents the eigenvalue after denoising, μ represents the mean of the feature, and σ represents the standard deviation of the feature.

[0020] Using principal component analysis to further optimize the features, let the normalized feature matrix be X, then the covariance matrix is ​​expressed as:

[0021]

[0022] The principal components are obtained by eigendecomposition:

[0023] X PCA =XW

[0024] Where W represents the eigenvector matrix of the covariance matrix C.

[0025] As a preferred solution of the industrial control network intrusion detection method based on ensemble learning described in the present invention, wherein: the calculation of traffic features and identification of abnormal traffic patterns include firstly calculating the mean of the optimized features, which is expressed as:

[0026]

[0027] Among them, μ i represents the mean of the i-th feature, F ij represents the i-th feature of the j-th sample, and n represents the total number of samples.

[0028] Measuring the distance between the feature vector and the mean, multi-dimensional distance calculation is performed, expressed as:

[0029]

[0030] Among them, D(F′) represents the multidimensional distance of the feature vector, k represents the dimension of the feature, and F i ′ represents the optimized i-th feature.

[0031] The sigmoid function is used to map the multidimensional distance to between 0 and 1. The anomaly calculation formula is expressed as:

[0032]

[0033] The abnormal calculation is rounded down to determine whether it is abnormal traffic. The total formula is expressed as:

[0034]

[0035] Wherein, A(F′) represents the abnormal judgment result, and its value range is 0 to 1.

[0036] When 0≤A(F′)≤0.5, it indicates that the flow characteristic is normal, and when 0.5<A(F′)≤1, it indicates that the flow characteristic is abnormal.

[0037] As a preferred solution of the industrial control network intrusion detection method based on ensemble learning described in the present invention, wherein: the analysis of abnormal traffic to obtain the attribute behavior pattern of abnormal traffic includes constructing multiple basic classifiers to analyze the abnormal traffic, and the basic classifier integration result is expressed as:

[0038]

[0039] Among them, X' represents the abnormal feature vector set, h i (x) represents the i-th basic classifier, M represents the number of basic classifiers, and H(x) represents the prediction result of the integrated classifier.

[0040] As a preferred solution of the industrial control network intrusion detection method based on ensemble learning described in the present invention, wherein: the analysis of abnormal traffic to obtain the attribute behavior pattern of abnormal traffic also includes, according to the classification results of ensemble learning, classifying the abnormal traffic into different behavior patterns, including data packet bursts, random peaks, protocol anomalies and port scans.

[0041] Detect the burst behavior pattern of data packets by judging the degree of variation of the integrated results:

[0042]

[0043] When B(X)>10, it is identified as a packet burst mode.

[0044] Detect random peak behavior patterns by judging the fluctuation range of the integrated results:

[0045] S(X)=max(H(x))-min(H(x))

[0046] When S(X)>5, it is identified as a random peak mode.

[0047] The proportion of packets using non-standard protocols in the integrated results is used to detect abnormal protocol behavior patterns:

[0048]

[0049] Among them, p i Indicates the protocol type of the i-th data packet, P normal represents a set of normal protocol types, δ represents an indicator function, which takes the value 1 when the condition is true, otherwise it takes the value 0.

[0050] When A(X)>3, it is identified as a protocol abnormal mode.

[0051] Detect port scanning behavior patterns by judging the proportion of packets that quickly access a large number of ports in the integrated results:

[0052]

[0053] Among them, port(x i ) represents the port number corresponding to the i-th feature, P scan Indicates a collection of commonly scanned ports.

[0054] When Q(X)>7, it is identified as port scanning mode.

[0055] As a preferred solution of the industrial control network intrusion detection method based on ensemble learning described in the present invention, wherein: the warning and response plan is generated according to the analysis results and sent to the industrial control network center, including generating a high-level warning when a data packet burst is detected, and the warning information includes the data packet burst type, occurrence time, specific value of the traffic burst, impact range, and potential attack type.

[0056] When a random peak is detected, a high-level warning is generated. The warning information includes the type of random peak, the time of occurrence, the range of traffic fluctuations, the frequency of fluctuations, and the potential type of attack.

[0057] When a protocol anomaly is detected, a medium-level warning is generated. The warning information includes the protocol anomaly type, occurrence time, specific type and number of abnormal protocols, impact range, and potential attack type.

[0058] When a port scan is detected, a high-level warning is generated. The warning information includes the port scan type, occurrence time, scan frequency, scan target port range, and potential attack type.

[0059] An industrial control network intrusion detection system based on ensemble learning, characterized by: comprising:

[0060] The feature extraction module extracts features from network traffic data and optimizes the features.

[0061] The abnormal traffic identification module calculates the traffic characteristics and identifies abnormal traffic patterns.

[0062] The analysis module analyzes the abnormal traffic and obtains the attribute behavior pattern of the abnormal traffic.

[0063] Generate an early warning module, generate early warning and response plans based on the analysis results, and send them to the industrial control network center.

[0064] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0065] A computer-readable storage medium stores a computer program, which implements the steps of the method described above when executed by a processor.

[0066] Beneficial effects of the present invention: This method accurately locates and identifies abnormal behaviors in the network, providing a reliable basis for subsequent analysis. By analyzing abnormal traffic, the attribute behavior pattern of abnormal traffic is obtained, which can deeply understand the characteristics and potential threats of abnormal traffic, provide detailed attack behavior patterns, and provide a scientific basis for security policy formulation. Finally, by generating early warning and response plans based on the analysis results and sending them to the industrial control network center, rapid response and effective processing of abnormal behaviors are achieved, significantly improving the security and protection capabilities of the industrial control network. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0068] Figure 1 An overall flow chart of an industrial control network intrusion detection method based on ensemble learning provided in the first embodiment of the present invention. DETAILED DESCRIPTION

[0069] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0070] Example 1

[0071] Reference Figure 1 , is an embodiment of the present invention, and provides an industrial control network intrusion detection method based on ensemble learning, comprising:

[0072] S1: Extract features from network traffic data and optimize the features.

[0073] Collect raw network traffic data, mark timestamps and metadata of data packets. Parse each data packet and extract basic features, including source IP, destination IP, source port, destination port, protocol type, and data packet size. Calculate derived features based on basic features, including the traffic rate of each IP address and the time interval between data packets.

[0074] The flow rate calculation formula is expressed as:

[0075]

[0076] Among them, R IP represents the traffic rate of a specific IP address, N represents the total number of packets, and T i represents the timestamp of the ith data packet, S i Indicates the size of the i-th data packet, IP src (i) represents the source IP address of the ith data packet, IP dst (i) represents the destination IP address of the i-th data packet, δ represents the indicator function, which takes the value 1 when the condition is true and 0 otherwise.

[0077] It should be noted that the traffic rate of a specific IP address is calculated by accumulating the size of packets of the specific IP address and dividing it by the time interval between packets. Accurate calculation for a specific IP address improves the accuracy of detection. At the same time, the formula takes into account the influence of the time interval and can more accurately reflect the actual network situation.

[0078] The packet time interval formula is expressed as:

[0079]

[0080] Where, ΔT IP Indicates the average packet time interval for a specific IP address, N IP Indicates the total number of packets for a specific IP address.

[0081] It should be noted that the frequency characteristics of network traffic are reflected by calculating the average time interval between data packets of a specific IP address. This formula combines the time intervals between all data packets to provide an average time interval value for a specific IP address.

[0082] The traffic rate of each IP address and the time interval characteristics of the data packets are normalized, and the noise and outliers are eliminated using advanced integral functions and complex summation functions, which are expressed as:

[0083]

[0084] in, represents the eigenvalue after denoising, μ represents the mean of the feature, and σ represents the standard deviation of the feature.

[0085] Using principal component analysis to further optimize the features, let the normalized feature matrix be X, then the covariance matrix is ​​expressed as:

[0086]

[0087] The principal components are obtained by eigendecomposition:

[0088] XPCA =XW

[0089] Where W represents the eigenvector matrix of the covariance matrix C.

[0090] S2: Calculate traffic characteristics and identify abnormal traffic patterns.

[0091] First, the mean of the optimized features is calculated, which is expressed as:

[0092]

[0093] Among them, μ i represents the mean of the i-th feature, F ij represents the i-th feature of the j-th sample, and n represents the total number of samples.

[0094] Measuring the distance between the feature vector and the mean, multi-dimensional distance calculation is performed, expressed as:

[0095]

[0096] Among them, D(F′) represents the multidimensional distance of the feature vector, k represents the dimension of the feature, and F i ′ represents the optimized i-th feature.

[0097] It should be noted that the multidimensional distance calculation formula measures the discreteness of the feature vector by calculating the Euclidean distance between the optimized feature vector and its mean. This formula comprehensively considers all dimensions of the feature and realizes the comprehensive measurement between multidimensional features through square and square root operations.

[0098] Furthermore, the formula can effectively measure the degree of abnormality of the feature vector, which helps to identify potential abnormal traffic patterns. By considering multi-dimensional features, traffic data can be analyzed more comprehensively, improving the accuracy and reliability of detection.

[0099] The sigmoid function is used to map the multidimensional distance to between 0 and 1. The anomaly calculation formula is expressed as:

[0100]

[0101] The abnormal calculation is rounded down to determine whether it is abnormal traffic. The total formula is expressed as:

[0102]

[0103] Wherein, A(F′) represents the abnormal judgment result, and its value range is 0 to 1.

[0104] When 0≤A(F′)≤0.5, it indicates that the flow characteristic is normal, and when 0.5<A(F′)≤1, it indicates that the flow characteristic is abnormal.

[0105] S3: Analyze the abnormal traffic and obtain the attribute behavior pattern of the abnormal traffic.

[0106] Construct multiple basic classifiers to analyze abnormal traffic. The integration result of basic classifiers is expressed as:

[0107]

[0108] Among them, X' represents the abnormal feature vector set, h i (x) represents the i-th basic classifier, M represents the number of basic classifiers, and H(x) represents the prediction result of the integrated classifier.

[0109] It should be noted that ensemble learning can improve the accuracy and generalization ability of detection by combining the advantages of multiple classifiers. This method can effectively deal with complex and changeable attack modes and reduce the false alarm rate.

[0110] According to the classification results of ensemble learning, abnormal traffic is classified into different behavior patterns, including packet bursts, random peaks, protocol anomalies, and port scanning.

[0111] Detect the burst behavior pattern of data packets by judging the degree of variation of the integrated results:

[0112]

[0113] When B(X)>10, it is identified as a packet burst mode.

[0114] It should be noted that by calculating the degree of variation of the output of the ensemble classifier, the sudden packet behavior in the network can be identified. The formula uses the form of variance to reflect the dramatic changes in packet traffic. This formula can accurately identify the sudden behavior of packets in the network and effectively prevent high-traffic emergencies such as DDoS attacks. By calculating the degree of variation, abnormal fluctuations in traffic can be keenly captured, improving the timeliness and accuracy of detection.

[0115] Furthermore, the threshold of 10 is set based on experimental data. Under normal traffic conditions, the degree of variation in the output of the ensemble classifier usually does not exceed this value. However, in the case of burst packets, the degree of variation increases significantly.

[0116] Detect random peak behavior patterns by judging the fluctuation range of the integrated results:

[0117] S(X)=max(H(x))-min(H(x))

[0118] When S(X)>5, it is identified as a random peak mode.

[0119] It should be noted that random peak traffic behaviors in the network are identified by calculating the difference between the maximum and minimum values ​​of the ensemble classifier output. The formula uses extreme value differences to reflect the fluctuation range of traffic. This formula can effectively identify random peak traffic behaviors in the network, such as network scanning or fast-changing attack behaviors. By analyzing extreme value differences, abnormal fluctuations in traffic can be accurately captured, improving the sensitivity and accuracy of detection.

[0120] Furthermore, the threshold is set to 5 based on the observation of actual traffic data. The fluctuation range of normal traffic usually does not exceed this value, while in the case of random peaks, the fluctuation range will increase significantly.

[0121] The proportion of packets using non-standard protocols in the integrated results is used to detect abnormal protocol behavior patterns:

[0122]

[0123] Among them, p i Indicates the protocol type of the i-th data packet, P normal represents a set of normal protocol types, δ represents an indicator function, which takes the value 1 when the condition is true, otherwise it takes the value 0.

[0124] It should be noted that the abnormal behavior of protocols in the network is identified by calculating the proportion of packets using non-standard protocols. The formula is combined with the output of the integrated classifier to reflect the use of abnormal protocols. This formula can effectively identify abnormal behavior of protocols in the network, such as protocol abuse or data leakage. By analyzing the proportion of packets using non-standard protocols, the use of abnormal protocols can be accurately detected and prevented, improving the security and protection capabilities of the network.

[0125] When A(X)>3, it is identified as a protocol abnormal mode.

[0126] Furthermore, the threshold is set to 3 based on the proportion of packets using non-standard protocols in normal traffic, which is rarely exceeded. When a protocol anomaly occurs, this proportion increases significantly.

[0127] Detect port scanning behavior patterns by judging the proportion of packets that quickly access a large number of ports in the integrated results:

[0128]

[0129] Among them, port(x i ) represents the port number corresponding to the i-th feature, P scan Indicates a collection of commonly scanned ports.

[0130] When Q(X)>7, it is identified as port scanning mode.

[0131] It should be noted that port scanning behavior in the network is identified by calculating the proportion of packets that quickly access a large number of ports. The formula combines the output of the integrated classifier to reflect the frequency and range of port scanning. This formula can effectively identify port scanning behavior in the network, such as vulnerability detection or preparatory attacks. By analyzing the port access frequency, port scanning behavior can be detected and blocked in a timely manner, preventing potential subsequent attacks and improving the security and stability of the network.

[0132] Furthermore, the threshold value of 7 is set based on the port scanning behavior in the actual network environment. Rapid access to a large number of ports in normal traffic rarely exceeds this value, while port scanning behavior is usually significantly higher than this threshold.

[0133] S4: Generate an early warning and response plan based on the analysis results and send it to the industrial control network center.

[0134] When a data packet burst is detected, a high-level warning is generated. The warning information includes the type of data packet burst, the time of occurrence, the specific value of the traffic burst, the scope of impact, and the potential attack type.

[0135] When a random peak is detected, a high-level warning is generated. The warning information includes the type of random peak, the time of occurrence, the flow fluctuation range, the fluctuation frequency, and the potential attack type.

[0136] When a protocol anomaly is detected, a medium-level warning is generated. The warning information includes the protocol anomaly type, occurrence time, specific type and number of abnormal protocols, impact range, and potential attack type.

[0137] When a port scan is detected, a high-level warning is generated. The warning information includes the port scan type, occurrence time, scan frequency, scan target port range, and potential attack type.

[0138] The above embodiments also include an industrial control network intrusion detection system based on ensemble learning, specifically:

[0139] The feature extraction module extracts features from network traffic data and optimizes the features.

[0140] The abnormal traffic identification module calculates the traffic characteristics and identifies abnormal traffic patterns.

[0141] The analysis module analyzes the abnormal traffic and obtains the attribute behavior pattern of the abnormal traffic.

[0142] Generate an early warning module, generate early warning and response plans based on the analysis results, and send them to the industrial control network center.

[0143] The computer device may be a server. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data cluster data of a power monitoring system. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method is implemented.

[0144] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0145] Example 2

[0146] An embodiment of the present invention provides an industrial control network intrusion detection method and system based on ensemble learning. In order to verify the beneficial effects of the present invention, a scientific demonstration is carried out through simulation comparative experiments.

[0147] The experiment selected an industrial control system (ICS) network environment to simulate normal traffic and different types of attack traffic. During the experiment, network traffic data was continuously monitored and recorded, and raw network traffic data was collected, with timestamps and metadata of packets marked. Specifically, each packet was parsed and basic features were extracted, including source IP, destination IP, source port, destination port, protocol type, packet size, etc. Based on the basic features, the traffic rate of each IP address and the time interval of the packets were calculated. These features were then normalized and high-level integral functions and complex summation functions were used to eliminate noise and outliers. After feature optimization, the feature matrix was further optimized by principal component analysis (PCA), the covariance matrix was calculated, and feature decomposition was performed.

[0148] The optimized features are used to identify abnormal traffic patterns. First, the mean of the features is calculated, and multidimensional distance calculation is performed to measure the distance between the feature vector and the mean. Then, the multidimensional distance is mapped to between 0 and 1 using the Sigmoid function, and abnormal traffic is judged by the threshold. When the abnormal score of the feature vector exceeds 0.5, it is judged as abnormal traffic.

[0149] After identifying abnormal traffic, multiple basic classifiers were constructed to further analyze the abnormal traffic through ensemble learning. Specifically, different types of classifiers (such as decision trees, random forests, support vector machines, etc.) were used to classify traffic data and combined through weights to form an ensemble classifier. The output of the ensemble classifier is used to identify specific abnormal behavior patterns, such as packet bursts, continuous small traffic, random peaks, protocol anomalies, and port scanning. The experimental results are shown in Table 1.

[0150]

[0151] The experimental data table clearly shows the performance of the industrial control network intrusion detection method based on ensemble learning under different traffic types. The flow rate of normal traffic is 50Mbps, the time interval is 5ms, the anomaly score is 0.2, and the integration result is 0, indicating normal traffic. In the case of packet burst traffic, the flow rate soars to 200Mbps, the time interval is shortened to 1ms, the anomaly score is as high as 0.9, the integration result is 1, and the packet burst behavior is successfully identified. The flow rate of continuous small traffic is 5Mbps, the time interval increases to 20ms, the anomaly score is 0.6, the integration result is 1, and the continuous small traffic pattern is accurately detected. The flow rate of random peak traffic is 150Mbps, the time interval is 3ms, the anomaly score is 0.8, the integration result is 1, and the random peak behavior is correctly identified. The flow rate of protocol abnormal traffic is 60Mbps, the time interval is 5ms, the anomaly score is 0.7, the integration result is 1, and the protocol anomaly is effectively detected. The flow rate of port scan traffic is 80Mbps, the time interval is 2ms, the anomaly score is 0.85, the integration result is 1, and the port scan behavior is successfully identified.

[0152] These experimental data show that the industrial control network intrusion detection method based on ensemble learning shows high detection accuracy and response speed under various abnormal traffic conditions. Compared with the prior art, the present invention has significant advantages in the following aspects. First, through the ensemble learning algorithm, it is possible to combine the advantages of multiple classifiers, improve the accuracy and generalization ability of anomaly detection, and effectively deal with unknown and variant attacks. Secondly, feature optimization processing significantly reduces noise and false alarm rates, improves data quality and detection reliability. In addition, the automatic generation and real-time transmission of early warning and response plans ensure rapid response and effective processing of abnormal behaviors, and enhance the overall protection capabilities of industrial control networks.

[0153] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. An industrial control network intrusion detection method based on ensemble learning, characterized in that: include: Extract features from network traffic data and optimize the features; Calculate traffic characteristics and identify abnormal traffic patterns; Analyze abnormal traffic and obtain the attribute behavior pattern of abnormal traffic; Generate early warning and response plans based on the analysis results and send them to the industrial control network center.

2. The industrial control network intrusion detection method based on ensemble learning as claimed in claim 1, characterized in that: The extracting features from the network traffic data includes collecting raw network traffic data, marking timestamps and metadata of data packets; Parse each data packet and extract basic features, including source IP, destination IP, source port, destination port, protocol type, and packet size; Calculate derived features based on basic features, including the traffic rate of each IP address and the time interval between data packets; The flow rate calculation formula is expressed as: Among them, R IP represents the traffic rate of a specific IP address, N represents the total number of packets, and T i represents the timestamp of the ith data packet, S i Indicates the size of the i-th data packet, IP src (i) represents the source IP address of the ith data packet, IP dst (i) represents the destination IP address of the i-th data packet, δ represents the indicator function, which takes the value 1 when the condition is true and 0 otherwise; The packet time interval formula is expressed as: Where, ΔT IP Indicates the average packet time interval for a specific IP address, N IP Indicates the total number of packets for a specific IP address.

3. The industrial control network intrusion detection method based on ensemble learning as claimed in claim 2, characterized in that: The optimization process of the features includes normalizing the flow rate of each IP address and the time interval features of the data packets, and using a high-level integral function and a complex summation function to eliminate noise and outliers, which is expressed as: in, represents the eigenvalue after denoising, μ represents the mean of the feature, and σ represents the standard deviation of the feature; Using principal component analysis to further optimize the features, let the normalized feature matrix be X, then the covariance matrix is ​​expressed as: The principal components are obtained by eigendecomposition: X PCA =XW Where W represents the eigenvector matrix of the covariance matrix C.

4. The industrial control network intrusion detection method based on ensemble learning as claimed in claim 3, characterized in that: The calculation of the traffic features and identification of abnormal traffic patterns includes firstly calculating the mean of the optimized features, which is expressed as: Among them, μ i represents the mean of the i-th feature, F ij represents the i-th feature of the j-th sample, and n represents the total number of samples; Measuring the distance between the feature vector and the mean, multi-dimensional distance calculation is performed, expressed as: Among them, D(F′) represents the multidimensional distance of the feature vector, k represents the dimension of the feature, and F i ′ represents the optimized i-th feature; The sigmoid function is used to map the multidimensional distance to between 0 and 1. The anomaly calculation formula is expressed as: The abnormal calculation is rounded down to determine whether it is abnormal traffic. The total formula is expressed as: Among them, A(F′) represents the abnormal judgment result, and its value range is 0 to 1; When 0≤A(F′)≤0.5, it indicates that the flow characteristic is normal, and when 0.5<A(F′)≤1, it indicates that the flow characteristic is abnormal.

5. The industrial control network intrusion detection method based on ensemble learning as claimed in claim 4, characterized in that: The analysis of abnormal traffic to obtain the attribute behavior pattern of abnormal traffic includes constructing multiple basic classifiers to analyze the abnormal traffic, and the integration result of the basic classifiers is expressed as: Among them, X' represents the abnormal feature vector set, h i (x) represents the i-th basic classifier, M represents the number of basic classifiers, and H(x) represents the prediction result of the integrated classifier.

6. The industrial control network intrusion detection method based on ensemble learning as claimed in claim 5, characterized in that: The analyzing the abnormal traffic to obtain the attribute behavior pattern of the abnormal traffic also includes classifying the abnormal traffic into different behavior patterns according to the classification result of the ensemble learning, including data packet burst, random peak, protocol anomaly and port scanning; Detect the burst behavior pattern of data packets by judging the degree of variation of the integrated results: When B(X)>10, it is identified as a packet burst mode; Detect random peak behavior patterns by judging the fluctuation range of the integrated results: S(X)=max(H(x))-min(H(x)) When S(X)>5, it is identified as a random peak mode; The proportion of packets using non-standard protocols in the integrated results is used to detect abnormal protocol behavior patterns: Among them, p i Indicates the protocol type of the i-th data packet, P normal represents the normal protocol type set, δ represents the indicator function, which takes the value 1 when the condition is true, otherwise it is 0; When A(X)>3, it is identified as a protocol abnormal mode; Detect port scanning behavior patterns by judging the proportion of packets that quickly access a large number of ports in the integrated results: Among them, port(x i ) represents the port number corresponding to the i-th feature, P scan Indicates a collection of common scan ports; When Q(X)>7, it is identified as port scanning mode.

7. The industrial control network intrusion detection method based on ensemble learning as claimed in claim 6, characterized in that: The generating of warning and response plan according to the analysis result and sending it to the industrial control network center includes generating a high-level warning when a data packet burst is detected, and the warning information includes the type of data packet burst, the time of occurrence, the specific value of the traffic burst, the scope of impact, and the potential attack type; When a random peak is detected, a high-level warning is generated. The warning information includes the type of random peak, the time of occurrence, the flow fluctuation range, the fluctuation frequency, and the potential attack type. When a protocol anomaly is detected, a medium-level warning is generated. The warning information includes the protocol anomaly type, occurrence time, specific type and number of abnormal protocols, impact range, and potential attack type; When a port scan is detected, a high-level warning is generated. The warning information includes the port scan type, occurrence time, scan frequency, scan target port range, and potential attack type.

8. An industrial control network intrusion detection system based on ensemble learning using the method according to any one of claims 1 to 7, characterized in that: The feature extraction module extracts features from network traffic data and optimizes the features; The abnormal traffic identification module calculates traffic characteristics and identifies abnormal traffic patterns; The analysis module analyzes the abnormal traffic and obtains the attribute behavior pattern of the abnormal traffic; Generate an early warning module, generate early warning and response plans based on the analysis results, and send them to the industrial control network center.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. 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 method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Traffic white glove detection method and device based on intelligent feature analysis

    CN119675902A

  • Education network node behavior analysis method based on big data and related device

    CN119966675A

  • Big data-based education network node behavior analysis method and related device

    CN119966675B

  • Network traffic cleaning method and device, server and medium

    CN120074942A

  • Network anomaly monitoring system and method based on data analysis

    CN120320974A