Network intrusion anomaly detection method, device and equipment based on network performance
Through the intrusion anomaly detection method based on network performance, kernel observability technology and unsupervised models are used to obtain and analyze network performance indicators, extract abnormal characteristics and types, solve the shortcomings of lightweight and real-time detection in the existing technology, and achieve Provides efficient and accurate network intrusion anomaly detection.
Patent Information
- Application Number
- CN202410762981.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-13
AI Technical Summary
Existing network intrusion anomaly detection methods have shortcomings in lightweight and real-time performance, making it difficult to meet the needs of real-time detection and processing in large-scale and complex network environments. Especially in the face of encrypted traffic and high-traffic environments, the detection effect is limited.
Adopt an intrusion anomaly detection method based on network performance, obtain the minimum set of observation events through kernel observability technology, use the trained unsupervised anomaly detection model for detection, extract network performance anomaly characteristics, and determine the anomaly type based on the SHAP value to achieve Lightweight and real-time network intrusion anomaly detection.
It improves the accuracy and robustness of network intrusion anomaly detection, reduces system resource overhead, is suitable for different business network environments, can effectively detect unknown anomalies, and achieve rapid response to network intrusion anomalies.
Smart Images

Figure CN118740436A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a network intrusion anomaly detection method, device and equipment based on network performance. Background Art
[0002] Currently, network security protection has made significant progress, but lightweight, real-time network intrusion anomaly detection is still a difficult problem that has not been effectively solved.
[0003] Traditional network anomaly detection methods usually rely on predefined thresholds and rules. Manually configuring and managing these rules is not only labor-intensive, but also difficult to maintain efficiency in the face of a constantly changing network environment. With the expansion of network scale and the increase in complexity, traditional methods can no longer meet the needs of real-time detection and processing of network intrusion anomalies. There are mainly problems with response time, detection accuracy, adaptability, and data processing capabilities. As machine learning has gradually gained attention in anomaly detection based on network traffic, this method collects and analyzes massive amounts of network traffic feature data, and uses unsupervised deep learning algorithms to automatically identify normal and abnormal behavior patterns, thereby achieving more intelligent and efficient network anomaly detection. Known and unknown security attacks can be detected. However, the limitations of this method are the large amount of traffic data and high processing and storage requirements. Detection in encrypted traffic and high-traffic environments may be limited. At the same time, there are certain deficiencies in lightweight and real-time. Summary of the invention
[0004] The present invention provides a network intrusion anomaly detection method, device and equipment based on network performance, which are used to solve the defects of network intrusion anomaly detection in the prior art in terms of lightweight and real-time, and realize lightweight and real-time performance of network intrusion anomaly detection.
[0005] The present invention provides a network anomaly detection method based on network performance, comprising the following steps: Select the minimum set of observed events of the target network performance; Based on kernel observability technology, obtaining observation results of a minimum set of observation events of the target network performance; Input the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on normal indicator data of the target network performance over a set time period; In the anomaly detection model, if the anomaly score deviation value corresponding to the target network performance exceeds the anomaly deviation threshold, the target network performance is determined to be abnormal, and the network performance abnormality feature is extracted; Determine the type of the target network performance abnormality caused by the network performance abnormality according to the network performance abnormality characteristics; wherein the type of the target network performance abnormality caused by the target network performance abnormality includes a network failure abnormality type, a network intrusion abnormality type, a load overload abnormality type or a hardware failure abnormality type; If the type causing the target network performance abnormality is a network intrusion abnormality type, the cause of the abnormal detection result of the target network performance is determined based on the prediction result error of the observed event.
[0006] According to a network intrusion anomaly detection method based on network performance provided by the present invention, the minimum observed event set of target network performance is selected, including: Obtain multi-dimensional network performance indicators of the host through kernel observability technology; Selecting, from the multi-dimensional network performance indicators, a multi-dimensional first network performance indicator for the entire network protocol stack and a multi-dimensional second network performance indicator for each protocol stack layer of the network protocol stack; Selecting important observation events that characterize network performance from the multi-dimensional first network performance index and the multi-dimensional second network performance index using principal component analysis technology or correlation analysis technology; The multi-dimensional first network performance indicator and the multi-dimensional second network performance indicator selected by the important observation event are used as the minimum observation event set.
[0007] According to a network intrusion anomaly detection method based on network performance provided by the present invention, the minimum observation event set of the target network performance includes network performance indicators for network performance and resource indicators for resources, the network performance indicators include packet loss, delay, bandwidth and jitter of the network protocol stack globally and at each protocol stack layer of the target network performance, and the resource indicators include memory utilization and CPU utilization.
[0008] According to a network intrusion anomaly detection method based on network performance provided by the present invention, the prediction result error based on the observed event determines the cause of the abnormal detection result of the target network performance, including: Based on the prediction result error of the observed event, calculating the reconstruction error between each of the observed event prediction results and the corresponding reference observation result; According to the reconstruction error, the observation events in the minimum observation event set are sorted in descending order, and the first N observation events are selected as the reasons for the abnormal detection result of the target network performance, where N is a positive integer.
[0009] According to a network intrusion anomaly detection method based on network performance provided by the present invention, the training process of the anomaly detection model includes: Obtain multi-dimensional network performance sample indicators over a set period of time through kernel observability technology; Extracting performance sample characteristics of each network performance sample indicator in the multi-dimensional network performance sample indicator; The performance sample features are input into the LSTM-VAE model for unsupervised iterative training until the LSTM-VAE model converges to obtain the anomaly detection model.
[0010] According to a network intrusion anomaly detection method based on network performance provided by the present invention, the kernel observability technology is used to obtain the observation results of the minimum observation event set of the target network performance, including: Based on the kernel observability technology, the change rate of each observation event in the minimum observation event set is obtained, and the change rate is used as the observation result.
[0011] According to a network intrusion anomaly detection method based on network performance provided by the present invention, the type of causing the target network performance anomaly is determined according to the network performance anomaly characteristics, including: Based on the network performance anomaly characteristics, SHAP values corresponding to network failure, network intrusion, load overload and hardware failure are calculated respectively; The type causing the target network performance abnormality is determined according to the SHAP value.
[0012] According to a network intrusion anomaly detection method based on network performance provided by the present invention, the network intrusion anomaly detection method based on network performance is applied to a host. After determining the cause of the abnormal detection result of the target network performance based on the prediction result error based on the observed event, the method further includes: If the anomaly detection model meets the update condition, train the target anomaly detection model and replace the current anomaly detection model with the target anomaly detection model; Among them, the update conditions include at least one of a change in the network topology structure corresponding to the host, an adjustment in the service of the host, a change in the application scenario or service of the host that meets a preset change condition, and the running time of the anomaly detection model that meets a preset running time requirement.
[0013] The present invention also provides a network intrusion anomaly detection device based on network performance, comprising: A selection module is used to select a minimum set of observation events of target network performance; A first acquisition module is used to acquire the observation result of the minimum observation event set of the target network performance based on the kernel observability technology; An input module is used to input the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on normal indicator data of the target network performance over a set time period; An extraction module, configured to determine that the target network performance is abnormal and extract abnormal network performance features if the abnormal score deviation value corresponding to the target network performance exceeds a threshold value of the abnormal deviation; A first determination module is used to determine, in the anomaly detection model, the type of the target network performance anomaly caused according to the network performance anomaly characteristics; wherein the type of the target network performance anomaly caused includes a network failure anomaly type, a network intrusion anomaly type, a load overload anomaly type or a hardware failure anomaly type; The second determination module is used to determine the cause of the abnormal detection result of the target network performance based on the prediction result error of the observed event if the type causing the target network performance abnormality is a network intrusion abnormality type.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the network intrusion anomaly detection method based on network performance as described above is implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the network intrusion anomaly detection method based on network performance as described in any one of the above is implemented.
[0016] The present invention also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the network intrusion anomaly detection method based on network performance as described above is implemented.
[0017] The network intrusion anomaly detection method, device and equipment based on network performance provided by the present invention selects the minimum observation event set of the target network performance, and then based on the kernel observability technology, obtains the observation results of the minimum observation event set of the target network performance to carry out the subsequent anomaly detection process, so that the observation results input into the anomaly detection model for detection are less, and lightweight network intrusion anomaly detection is realized. After determining the minimum observation event set, the observation results are obtained in real time, and the observation results are input into the anomaly detection model for detection to obtain the anomaly score deviation value corresponding to the target network performance. The anomaly detection model is obtained by unsupervised training on the indicator data of the set time, so that the anomaly detection model can be applied to network intrusion anomaly detection of different businesses, has the characteristics of loose coupling, and is applicable to various host network services. At the same time, the anomaly detection model is used to learn and extract potential feature rules, rather than relying on specific rule construction, so that it is more suitable for the detection of unknown anomalies, improves the accuracy and robustness of the detection, and efficiently performs network intrusion anomaly detection, while avoiding the introduction of excessive system resource overhead. When the anomaly score deviation value exceeds the anomaly deviation threshold, the network anomaly of the target network performance is determined, and the network performance anomaly features are further extracted. The type of the target network performance anomaly is determined based on the network performance anomaly features. When it is detected that the type of target network performance anomaly is a network intrusion anomaly type, the cause of the abnormal detection result of the target network performance is determined based on the prediction result error of the observed event, so as to detect possible network intrusion anomalies. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 This is one of the flow charts of the network intrusion anomaly detection method based on network performance provided by the present invention.
[0020] Figure 2 This is the second flow chart of the network intrusion anomaly detection method based on network performance provided by the present invention.
[0021] Figure 3 It is a schematic diagram of a network intrusion anomaly detection method based on network performance provided by the present invention.
[0022] Figure 4 It is a structural schematic diagram of a network intrusion anomaly detection device based on network performance provided by the present invention.
[0023] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] Combine the following Figures 1 to 3 The present invention describes a network intrusion anomaly detection method based on network performance.
[0026] Figure 1 FIG. 1 is a flowchart of a method for detecting network intrusion anomalies based on network performance according to an exemplary embodiment. Figure 1 As shown, the network intrusion anomaly detection method based on network performance includes steps 110 to 160, which are described in detail as follows.
[0027] Step 110, selecting a minimum set of observed events of target network performance.
[0028] In the embodiment of the present invention, the target network performance has observation events of multiple dimensions, and the observation events that best represent the network performance are extracted from the observation events of multiple dimensions to form a minimum observation event set.
[0029] Step 120: Based on kernel observability technology, obtain observation results of a minimum set of observation events of the target network performance.
[0030] In the embodiment of the present invention, after the minimum observation event set is selected, the subsequent detection only needs to obtain the observation results of each observation event in the minimum observation event set in real time, and there is no need to obtain the observation results of all observation events. The time interval between obtaining the observation results and inputting the observation results into the anomaly detection model for detection can be set to 1 second.
[0031] The embodiment of the present invention only extracts the observation events that best represent the network performance to carry out the subsequent detection process, so that fewer observation results are input into the anomaly detection model for detection, thereby realizing lightweight network intrusion anomaly detection.
[0032] Step 130, input the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on normal indicator data of the target network performance over a set time period.
[0033] In an embodiment of the present application, after obtaining the observation results, the observation results are input into an anomaly detection model for detection to obtain a corresponding anomaly score deviation value, which can characterize whether the network performance of the corresponding observation event is abnormal.
[0034] The anomaly detection model can predict the prediction results at the next moment based on the currently acquired observation results, and then calculate the reconstruction error of each observation event based on the prediction results, and calculate the anomaly score deviation value according to the reconstruction error of all observation events.
[0035] The anomaly detection model is trained based on the index data of the network performance index in the unlabeled normal state in a preset time, so that the anomaly detection model can be applied to network anomaly detection of different services, has the characteristics of loose coupling, and is applicable to various host network services, which improves the flexibility and versatility of the method provided by the present invention. At the same time, the anomaly detection model is used to learn and extract potential feature rules instead of relying on specific rule construction, so that it is more suitable for the detection of unknown anomalies, and the accuracy and robustness of the detection are improved.
[0036] Step 140: In the anomaly detection model, if the anomaly score deviation value corresponding to the target network performance exceeds the anomaly deviation threshold, the target network performance is determined to be abnormal, and the network performance abnormality feature is extracted.
[0037] In an embodiment of the present invention, in an anomaly detection model, after determining the anomaly score deviation value, the anomaly score deviation value is compared with a preset anomaly deviation threshold. If the anomaly score deviation value is greater than the anomaly deviation threshold, it can be determined that there is an anomaly in the target network performance. Otherwise, it is determined that the target network performance is normal.
[0038] After determining that the target network performance is abnormal, the network performance abnormality features are further extracted. Specifically, the type of abnormality that causes the target network performance can be detected based on the network performance abnormality features, such as network failure, network intrusion, load overload, hardware failure and other abnormal types. Each type of network performance abnormality has a network performance abnormality feature that can characterize the corresponding characteristics.
[0039] For example, the network fault anomaly type has the characteristics of high packet loss rate, increased latency, and unavailability of specific paths or devices. Therefore, it is possible to check whether it belongs to the network fault anomaly type based on network performance anomaly characteristics such as Ping response time.
[0040] The abnormal network intrusion types have characteristics such as sudden large traffic, abnormal connections, and port scanning. Therefore, it is possible to check whether it belongs to the abnormal network intrusion type based on abnormal network performance characteristics such as traffic performance peaks and surges in traffic performance on specific ports.
[0041] For the load overload abnormality type, the resource utilization rate is in a high state for a long time (such as CPU, memory, and bandwidth). Therefore, the network performance abnormality characteristics such as CPU utilization rate, memory utilization rate, and network bandwidth can be used to check whether it belongs to the load overload abnormality type.
[0042] The hardware fault anomaly type has the characteristic of high interface error rate. Therefore, the abnormal characteristics such as interface error statistics can be used to check whether it belongs to the hardware fault anomaly type.
[0043] Step 150, determining the type of the target network performance anomaly caused according to the network performance anomaly characteristics; wherein the type of the target network performance anomaly caused includes a network failure anomaly type, a network intrusion anomaly type, a load overload anomaly type or a hardware failure anomaly type.
[0044] In an embodiment of the present application, feature importance analysis (such as SHAP value) is used to distinguish abnormality types such as network failure, network intrusion, load overload and hardware failure in network performance abnormalities, which can help understand the basis of model decisions and classify abnormality types according to the importance of different features.
[0045] Step 160: If the type causing the target network performance abnormality is a network intrusion abnormality type, determine the cause of the abnormal detection result of the target network performance based on the prediction result error of the observed event.
[0046] In the embodiment of the present application, if it is detected that the target network performance abnormality type is a network intrusion abnormality type, then based on the prediction result error of the observed event, the cause of the abnormal detection result of the target network performance is determined.
[0047] In an embodiment of the present invention, the minimum observation event set of the target network performance is selected, and then based on the kernel observability technology, the observation results of the minimum observation event set of the target network performance are obtained to carry out the subsequent detection process, so that the observation results input into the anomaly detection model for detection are less, and lightweight network anomaly detection is realized. After determining the minimum observation event set, the observation results are obtained in real time, and the observation results are input into the anomaly detection model for detection to obtain the anomaly score deviation value corresponding to the target network performance. The anomaly detection model is obtained by unsupervised training on the indicator data of the set time, so that the anomaly detection model can be applied to network intrusion anomaly detection of different businesses, has the characteristics of loose coupling, and is applicable to various host network services. At the same time, the anomaly detection model is used to learn and extract potential feature rules, rather than relying on specific rule construction, so that it is more suitable for the detection of unknown anomalies, improves the accuracy and robustness of the detection, and efficiently performs network intrusion anomaly detection, while avoiding the introduction of excessive system resource overhead. When the anomaly score deviation value exceeds the anomaly deviation threshold, the target network performance is determined to be abnormal, and the network performance anomaly features are further extracted. The type of the target network performance anomaly is determined based on the network performance anomaly features. When it is detected that the type of target network performance anomaly is a network intrusion anomaly type, the anomaly detection result of the target network performance is determined based on the observation results to detect possible network intrusion anomalies.
[0048] In an exemplary embodiment of the present application, the step 110 of selecting the minimum set of observed events of the target network performance includes the following steps, which are described in detail as follows.
[0049] Obtain multi-dimensional network performance metrics through kernel observability technology.
[0050] A multidimensional first network performance indicator for the entire network protocol stack and a multidimensional second network performance indicator for each protocol stack layer of the network protocol stack are selected from the multidimensional network performance indicators.
[0051] The principal component analysis technique or the correlation analysis technique is used to select important observation events that characterize the network performance from the multi-dimensional first network performance index and the multi-dimensional second network performance index.
[0052] The multi-dimensional first network performance indicator and the multi-dimensional second network performance indicator selected by the important observation event are used as the minimum observation event set.
[0053] In an embodiment of the present invention, kernel observability technology is used to capture network performance indicators. The kernel observability technology can use kprobe / tracepoint methods, etc. The kernel observability technology does not require modification of the kernel source code, which facilitates the maintenance and update of the system ecology.
[0054] Multi-dimensional network performance indicators are obtained through kernel observability technology, and then multi-dimensional first network performance indicators for the global network protocol stack and multi-dimensional second network performance indicators for each protocol stack layer are extracted from the multi-dimensional network performance indicators.
[0055] Specifically, correlation analysis or feature importance scoring is used to select the multi-dimensional first network performance indicator and the multi-dimensional second network performance indicator that best represent the network performance as important observation events.
[0056] Correlation analysis refers to analyzing two or more correlated variable elements to measure the degree of correlation between the two variable factors. When selecting the multi-dimensional first network performance indicator and the multi-dimensional second network performance indicator through correlation analysis, correlation analysis is performed on the multiple first network performance indicators of the network protocol stack and the network performance status respectively, and then several first network performance indicators with a high degree of correlation are selected to form the multi-dimensional first network performance indicator based on the results of the correlation analysis. At the same time, correlation analysis is performed on the multiple second network performance indicators of each layer of the network protocol stack and the network performance status respectively, and then several second network performance indicators with a high degree of correlation are selected to form the multi-dimensional second network performance indicator based on the results of the correlation analysis.
[0057] When selecting a multidimensional first network performance indicator and a multidimensional second network performance indicator by feature importance scoring, a feature importance detection model is pre-set by machine learning, and multiple first network performance indicators for the network protocol stack are input into the feature importance detection model to calculate the corresponding feature importance values, and then they are arranged in descending order according to the feature importance values, and then the top M (M is a positive integer) first network performance indicators are selected to form the multidimensional first network performance indicator. At the same time, multiple second network performance indicators for each layer of the network protocol stack are input into the feature importance detection model to calculate the corresponding feature importance values, and then they are arranged in descending order according to the feature importance values, and then the top M second network performance indicators are selected to form the multidimensional second network performance indicator. The selected multidimensional first network performance indicator and multidimensional second network performance indicator form a minimum observation event set.
[0058] In the embodiment of the present invention, by making full use of the high performance characteristics of kernel observability technology, combined with the clever selection of the minimum observation event set and the dimension reduction strategy of the unsupervised model, the lightweight performance advantage is successfully achieved, and the system resource overhead is significantly reduced. The present invention focuses more on network performance indicators and provides more accurate and effective monitoring and analysis for the system.
[0059] In the embodiment of the present invention, on the one hand, the multi-dimensional first network performance index of the network performance of the overall network protocol stack is considered. On the other hand, the multi-dimensional second network performance index of the network performance of each layer (application layer, transport layer, network layer, data link layer) in the network protocol stack is considered. This embodiment forms a minimum observation event set from two levels: the category in the performance and the performance of which layers in the network.
[0060] In an exemplary embodiment of the present invention, the minimum observation event set of the target network performance includes network performance indicators for network performance and resource indicators for resources. The network performance indicators include packet loss, latency, bandwidth and jitter of the network protocol stack globally and at each protocol stack layer of the target network performance. The resource indicators include memory utilization and CPU utilization.
[0061] In an embodiment of the present invention, the multidimensional first network performance indicator and the multidimensional second network performance indicator include packet loss, delay, jitter and bandwidth respectively. These network performance indicators can more easily locate anomalies in network intrusions, help administrators quickly identify security issues and take corresponding measures. The minimum observed event set consisting of the multidimensional first network performance indicator, the multidimensional second network performance indicator, the memory usage rate and the CPU usage rate is input into the anomaly detection model for detection, thereby obtaining an anomaly score deviation value.
[0062] In an exemplary embodiment of the present invention, the determination of the cause of the abnormal detection result of the target network performance based on the prediction result error of the observed event includes the following steps, which are described in detail as follows.
[0063] Based on the prediction result error of the observed event, a reconstruction error between the prediction result of each observed event and the corresponding reference observation result is calculated.
[0064] According to the reconstruction error, the observation events in the minimum observation event set are sorted in descending order, and the first N observation events are selected as the reasons for the abnormal detection result of the target network performance, where N is a positive integer.
[0065] In an embodiment of the present application, the reconstruction error between the prediction result of each observation event and the corresponding benchmark observation result is calculated. The benchmark observation result is the observation result of the network performance sample index corresponding to the normal network performance of the target network when training the anomaly detection model. The reconstruction error can be calculated by the mean square error or the cross entropy loss to quantify the difference between the current network performance index and the normal network performance index. After calculating the reconstruction error corresponding to each observation event, each observation event is arranged in descending order based on the reconstruction error. According to the arrangement order, the top N observation events are selected as the cause of the abnormal detection result of the target network performance, and output, and stored in the system log to facilitate security personnel to quickly locate the problem.
[0066] In an exemplary embodiment of the present invention, the training process of the anomaly detection model includes the following steps, which are described in detail as follows.
[0067] Use kernel observability technology to obtain multi-dimensional network performance sample indicators over a set period of time.
[0068] The performance sample characteristics of each network performance sample indicator in the multi-dimensional network performance sample indicator are extracted.
[0069] The performance sample features are input into the LSTM-VAE model for unsupervised iterative training until the LSTM-VAE model converges to obtain the anomaly detection model.
[0070] In an embodiment of the present invention, a label-free multi-dimensional network performance sample indicator of the network performance of the normal behavior of the host in a set time period is obtained through kernel observability technology, and the set time period can be set to 24 hours or 72 hours. The multi-dimensional network performance sample indicator is then normalized or standardized to ensure the stability of the model training. The performance sample characteristics of each network performance sample indicator in the multi-dimensional network performance sample indicator are then extracted, and the performance sample characteristics are also the rate of change described later. The extracted performance sample characteristics are then input into the LSTM-VAE model for unsupervised iterative training. Using an unsupervised learning method, there is no need to label the network performance sample indicators during training, so that the final anomaly detection model has a wider range of applicability and reduces the workload of manual labeling.
[0071] In the LSTM-VAE model provided in the embodiment of the present application, VAE encoding is first performed in an original time window and embedded in LSTM to predict the embedding of the next window. Decoding is then performed to obtain a reconstructed window. In this process, the abnormal detection value is the prediction error. The advantage of such implementation is that it reduces dimensionality, reduces computational complexity, and enhances robustness. At the same time, the model combines local and global information to improve the accuracy of detection. In training, the default ELBO is used as the loss function.
[0072] After confirming that the LSTM-VAE model has converged, the trained model is verified through an independent validation set. During the validation process, overfitting and other performance indicators are monitored. When the validation passes, the anomaly detection model can be obtained. If the validation fails, training is performed again until the validation passes.
[0073] In the LSTM-VAE model, LSTM (Long Short Term Memory) considers the time correlation, and VAE (Variational Auto Encoder) reduces the dimension of network performance observation events, thereby achieving lightweight.
[0074] In an exemplary embodiment of the present invention, the acquisition of the observation results of the minimum set of observation events of the target network performance based on the kernel observability technology includes the following steps, which are described in detail as follows.
[0075] Based on the kernel observability technology, the change rate of each observation event in the minimum observation event set is obtained, and the change rate is used as the observation result.
[0076] In the embodiment of the present invention, the kernel observability technology is used to calculate the change rate of each observation event in the minimum observation event set, that is, the difference between the currently acquired network performance indicator data and the last acquired network performance indicator data is divided by the last acquired network performance indicator data to obtain the change rate. The change rate of each observation event is used as the corresponding performance feature, that is, the corresponding observation result.
[0077] In an exemplary embodiment of the present invention, determining the type of the target network performance abnormality according to the network performance abnormality characteristics includes the following steps, which are described in detail as follows.
[0078] Based on the network performance anomaly characteristics, SHAP values corresponding to network failure, network intrusion, load overload and hardware failure are calculated respectively.
[0079] The type causing the target network performance abnormality is determined according to the SHAP value.
[0080] In the embodiment of the present application, the SHAP (SHapley Additive exPlanations) value is a unified feature importance measurement method that can explain the contribution of each feature to determining the anomaly type. For each extracted network performance anomaly feature, its SHAP value is calculated to determine which features have the greatest impact on the anomaly detection results. Features with high SHAP values indicate that the feature has a greater impact on the detected anomaly. Therefore, when the target network performance anomaly is detected, the SHAP value corresponding to the network performance anomaly type of the network performance feature is calculated in real time, and the important network performance features for each network performance anomaly type are determined based on the SHAP value, and the target network performance anomaly type is judged based on the determined important network performance features.
[0081] In an exemplary embodiment of the present invention, the network anomaly detection method based on network performance is applied to a host. After determining the cause of the abnormal detection result of the target network performance based on the prediction result error based on the observed event, the method also includes the following steps, which are described in detail as follows.
[0082] If the anomaly detection model meets the update condition, the target anomaly detection model is trained, and the current anomaly detection model is replaced with the target anomaly detection model.
[0083] Among them, the update conditions include at least one of a change in the network topology structure corresponding to the host, an adjustment in the service of the host, a change in the application scenario or service of the host that meets a preset change condition, and the running time of the anomaly detection model that meets a preset running time requirement.
[0084] In an embodiment of the present invention, if the network topology of the host changes, the business of the host is adjusted, the application scenarios and businesses of the host change significantly (such as the number of existing LAN servers increases, and the company re-plans the network), or the running time of the anomaly detection model reaches the preset running time requirement (three months), the anomaly detection model is retrained to obtain the target anomaly detection model, and then the currently used anomaly detection model is replaced with the target anomaly detection model to maintain the adaptability of the model. By retraining the anomaly detection module, the model can adapt to the new network environment and maintain its flexibility and accuracy to changes.
[0085] In an exemplary embodiment of the present application, see Figure 2 and Figure 3, extract the minimum observation set of the host, obtain the multi-dimensional network performance sample indicators corresponding to the minimum observation set of the host within the set time through kernel observability technology, and extract the change rate of each network performance sample indicator in the multi-dimensional network performance sample indicator as the performance sample feature of each network performance sample indicator, perform data preprocessing, form a training data set, input the training data set into the LSTM-VAE model for unsupervised iterative training, and calculate the training loss value. According to the training loss value, determine whether the training of the LSTM-VAE model is completed. If the training is not completed, continue the iterative training. If the training is completed, obtain the anomaly detection model, and use the anomaly detection model for online network anomaly detection to obtain the target network performance corresponding to The anomaly score deviation value is detected to see if it is greater than the threshold of the anomaly deviation. If so, the target network performance is determined to be abnormal, and the network performance anomaly features are extracted. The type of target network performance anomaly is determined based on the extracted network performance anomaly features. If the type of target network performance anomaly is a network intrusion anomaly type, the reconstruction error corresponding to the observation event in the minimum observation event set is calculated based on the observation results. The observation events in the minimum observation event set are arranged in descending order based on the reconstruction error. The top five observation events are selected as the anomaly detection results of the target network performance. It is detected whether the online anomaly detection is ended. If not, the step of online network anomaly detection is returned. Otherwise, the network anomaly detection is ended.
[0086] The network intrusion anomaly detection device based on network performance provided by the present invention is described below. The network intrusion anomaly detection device based on network performance described below and the network anomaly detection method based on network performance described above can be referred to each other. It should be noted that the device provided in the following embodiment and the method provided in the above embodiment belong to the same concept, and the specific way in which each module and unit performs the operation has been described in detail in the method embodiment, which will not be repeated here.
[0087] In an exemplary embodiment of the present invention, see Figure 4 , Figure 4 A network intrusion anomaly detection device based on network performance is shown according to an exemplary embodiment, and includes the following modules.
[0088] The selection module 410 is used to select a minimum set of observed events of target network performance.
[0089] The first acquisition module 420 is used to acquire the observation results of the minimum observation event set of the target network performance based on the kernel observability technology.
[0090] The input module 430 is used to input the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on normal indicator data of the target network performance over a set time period.
[0091] The first determination module 440 is used to determine, in the anomaly detection model, if the anomaly score deviation value corresponding to the target network performance exceeds the threshold of the anomaly deviation, that the target network performance is abnormal and extract the network performance abnormality feature.
[0092] The second determination module 450 is used to determine the type of target network performance anomaly caused according to the network performance anomaly characteristics; wherein the type of target network performance anomaly caused includes a network failure anomaly type, a network intrusion anomaly type, a load overload anomaly type or a hardware failure anomaly type.
[0093] The third determination module 460 is used to determine the cause of the abnormal detection result of the target network performance based on the prediction error of the observed event if the type causing the target network performance abnormality is a network intrusion abnormality type.
[0094] In an exemplary embodiment of the present invention, the selection module 410 includes the following submodules.
[0095] The acquisition submodule is used to obtain multi-dimensional network performance indicators through kernel observability technology.
[0096] The extraction submodule is used to select a multidimensional first network performance indicator for the entire network protocol stack and a multidimensional second network performance indicator for each protocol stack layer of the network protocol stack from the multidimensional network performance indicators.
[0097] The first selection submodule is used to select important observation events representing network performance from the multi-dimensional first network performance indicators and the multi-dimensional second network performance indicators by using principal component analysis technology or correlation analysis technology.
[0098] As a submodule, it is used to use the multi-dimensional first network performance indicator and the multi-dimensional second network performance indicator selected by the important observation event as the minimum observation event set.
[0099] In an exemplary embodiment of the present invention, the minimum observation event set of the target network performance includes network performance indicators for network performance and resource indicators for resources, the network performance indicators include packet loss, latency, bandwidth and jitter of the network protocol stack globally and at each protocol stack layer of the target network performance, and the resource indicators include memory utilization and CPU utilization.
[0100] In an exemplary embodiment of the present invention, the third determination module 460 includes the following submodules.
[0101] The first calculation submodule is used to calculate the reconstruction error between the prediction result of each of the observed events and the corresponding benchmark observation result based on the prediction error of the observed event.
[0102] The second selection submodule is used to sort the observation events in the minimum observation event set from high to low according to the reconstruction error, and select the first N observation events as the reasons for the abnormal detection results of the target network performance, where N is a positive integer.
[0103] In an exemplary embodiment of the present invention, the training process of the anomaly detection model includes the following modules.
[0104] The second acquisition module is used to obtain multi-dimensional network performance sample indicators within a set time period through kernel observability technology.
[0105] The extraction module is used to extract the performance sample characteristics of each network performance sample indicator in the multi-dimensional network performance sample indicator.
[0106] The training module is used to input the performance sample features into the LSTM-VAE model for unsupervised iterative training until the LSTM-VAE model converges to obtain the anomaly detection model.
[0107] In an exemplary embodiment of the present invention, the first acquisition module 420 includes the following submodules.
[0108] The second calculation submodule is used to obtain the change rate of each observation event in the minimum observation event set based on the kernel observability technology, and use the change rate as the observation result.
[0109] In an exemplary embodiment of the present invention, the second determining module 450 includes the following submodules.
[0110] A third calculation submodule is used to calculate SHAP values corresponding to network failure, network intrusion, load overload and hardware failure respectively based on the network performance abnormality characteristics; A determination submodule is used to determine the type of the target network performance abnormality according to the SHAP value.
[0111] In an exemplary embodiment of the present invention, the network anomaly intrusion detection device based on network performance further includes the following modules.
[0112] A replacement module, used for training a target anomaly detection model and replacing the current anomaly detection model with the target anomaly detection model if the anomaly detection model meets the update condition; Among them, the update conditions include at least one of a change in the network topology structure corresponding to the host, an adjustment in the service of the host, a change in the application scenario or service of the host that meets a preset change condition, and the running time of the anomaly detection model that meets a preset running time requirement.
[0113] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logic instructions in the memory 530 to execute the network intrusion anomaly detection method based on network performance, which includes: selecting a minimum observation event set of the target network performance; based on the kernel observability technology, obtaining the observation results of the minimum observation event set of the target network performance; inputting the observation results into a trained anomaly detection model to obtain the anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on the normal indicator data of the target network performance in a set time period; in the anomaly detection model, if the anomaly score deviation value corresponding to the target network performance exceeds the threshold of the anomaly deviation, it is determined that the target network performance is abnormal, and the network performance anomaly feature is extracted; according to the network performance anomaly feature, the type causing the target network performance anomaly is determined; wherein the type causing the target network performance anomaly includes a network failure anomaly type, a network intrusion anomaly type, a load overload anomaly type or a hardware failure anomaly type; if the type causing the target network performance anomaly is a network intrusion anomaly type, based on the prediction result error of the observation event, the cause of the anomaly detection result of the target network performance is determined.
[0114] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0115] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the network intrusion anomaly detection method based on network performance provided by the above methods, the method comprising: selecting a minimum set of observation events of the target network performance; based on kernel observability technology, obtaining the observation results of the minimum set of observation events of the target network performance; inputting the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is based on the target network performance at a set time. The method is obtained by unsupervised training based on long normal indicator data; in the anomaly detection model, if the anomaly score deviation value corresponding to the target network performance exceeds the threshold of the anomaly deviation, the target network performance is determined to be abnormal, and the network performance anomaly features are extracted; according to the network performance anomaly features, the type of the target network performance anomaly is determined; wherein, the type of the target network performance anomaly includes a network failure anomaly type, a network intrusion anomaly type, a load overload anomaly type or a hardware failure anomaly type; if the type of the target network performance anomaly is a network intrusion anomaly type, the cause of the abnormal detection result of the target network performance is determined based on the prediction result error of the observed event.
[0116] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented by a processor to execute the network intrusion anomaly detection method based on network performance provided by the above methods when executed by the processor, the method comprising: selecting a minimum set of observation events of the target network performance; obtaining the observation results of the minimum set of observation events of the target network performance based on kernel observability technology; inputting the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on normal indicator data of the target network performance over a set time period; in the anomaly detection model, if the anomaly score deviation value corresponding to the target network performance exceeds a threshold value of the anomaly deviation, the target network performance is determined to be abnormal, and the network performance anomaly feature is extracted; according to the network performance anomaly feature, the type causing the target network performance anomaly is determined; wherein the type causing the target network performance anomaly includes a network failure anomaly type, a network intrusion anomaly type, a load overload anomaly type or a hardware failure anomaly type; if the type causing the target network performance anomaly is a network intrusion anomaly type, based on the prediction result error of the observation event, the cause of the anomaly detection result of the target network performance is determined.
[0117] The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0119] Finally, 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A network intrusion anomaly detection method based on network performance, It is characterized in that include: Select the minimum set of observed events of the target network performance; Based on kernel observability technology, obtaining observation results of a minimum set of observation events of the target network performance; Input the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on normal indicator data of the target network performance over a set time period; In the anomaly detection model, if the anomaly score deviation value corresponding to the target network performance exceeds the anomaly deviation threshold, the target network performance is determined to be abnormal, and the network performance abnormality feature is extracted; Determine the type of the target network performance abnormality caused by the network performance abnormality according to the network performance abnormality characteristics; wherein the type of the target network performance abnormality caused by the target network performance abnormality includes a network failure abnormality type, a network intrusion abnormality type, a load overload abnormality type or a hardware failure abnormality type; If the type causing the target network performance abnormality is a network intrusion abnormality type, the cause of the abnormal detection result of the target network performance is determined based on the prediction result error of the observed event.
2. The network intrusion anomaly detection method based on network performance according to claim 1, It is characterized in that The minimum set of observation events for selecting target network performance includes: Obtain multi-dimensional network performance indicators through kernel observability technology; Selecting, from the multi-dimensional network performance indicators, a multi-dimensional first network performance indicator for the entire network protocol stack and a multi-dimensional second network performance indicator for each protocol stack layer of the network protocol stack; Selecting important observation events representing network performance from the multi-dimensional first network performance index and the multi-dimensional second network performance index using principal component analysis technology or correlation analysis technology; The multi-dimensional first network performance indicator and the multi-dimensional second network performance indicator selected by the important observation event are used as the minimum observation event set.
3. The network intrusion anomaly detection method based on network performance according to claim 2, It is characterized in that The minimum observation event set of the target network performance includes network performance indicators for network performance and resource indicators for resources. The network performance indicators include packet loss, latency, bandwidth and jitter of the network protocol stack globally and at each protocol stack layer of the target network performance. The resource indicators include memory utilization and CPU utilization.
4. The network intrusion anomaly detection method based on network performance according to claim 1, It is characterized in that The determining the cause of the abnormal detection result of the target network performance based on the prediction result error of the observed event includes: Based on the prediction result error of the observed event, calculating the reconstruction error between the prediction result of each observed event and the corresponding reference observation result; According to the reconstruction error, the observation events in the minimum observation event set are sorted in descending order, and the first N observation events are selected as the reasons for the abnormal detection result of the target network performance, where N is a positive integer.
5. The network intrusion anomaly detection method based on network performance according to claim 1, It is characterized in that The training process of the anomaly detection model includes: Obtain multi-dimensional network performance sample indicators over a set period of time through kernel observability technology; Extracting performance sample characteristics of each network performance sample indicator in the multi-dimensional network performance sample indicator; The performance sample features are input into the LSTM-VAE model for unsupervised iterative training until the LSTM-VAE model converges to obtain the anomaly detection model.
6. The network intrusion anomaly detection method based on network performance according to claim 1, It is characterized in that The obtaining of the observation result of the minimum observation event set of the target network performance based on the kernel observability technology includes: Based on the kernel observability technology, the change rate of each observation event in the minimum observation event set is obtained, and the change rate is used as the observation result.
7. The network intrusion anomaly detection method based on network performance according to claim 1, It is characterized in that The determining, according to the network performance abnormality feature, the type causing the target network performance abnormality includes: Based on the network performance anomaly characteristics, SHAP values corresponding to network failure, network intrusion, load overload and hardware failure are calculated respectively; The type causing the target network performance abnormality is determined according to the SHAP value.
8. The network intrusion anomaly detection method based on network performance according to any one of claims 1 to 7, It is characterized in that The network intrusion anomaly detection method based on network performance is applied to a host. After determining the cause of the abnormal detection result of the target network performance based on the prediction result error of the observed event, the method further includes: If the anomaly detection model meets the update condition, train the target anomaly detection model and replace the current anomaly detection model with the target anomaly detection model; Among them, the update conditions include at least one of a change in the network topology structure corresponding to the host, an adjustment in the service of the host, a change in the application scenario or service of the host that meets a preset change condition, and the running time of the anomaly detection model that meets a preset running time requirement.
9. A network intrusion anomaly detection device based on network performance, It is characterized in that include: A selection module is used to select a minimum set of observation events of target network performance; A first acquisition module is used to acquire the observation result of the minimum observation event set of the target network performance based on the kernel observability technology; An input module is used to input the observation results into a trained anomaly detection model to obtain an anomaly score deviation value corresponding to the target network performance; wherein the anomaly detection model is obtained by unsupervised training based on normal indicator data of the target network performance over a set time period; A first determination module is used to determine that the target network performance is abnormal and extract network performance abnormality features if the abnormal score deviation value corresponding to the target network performance exceeds the abnormal deviation threshold in the abnormal detection model; A second determination module is used to determine the type of the target network performance abnormality caused by the network performance abnormality according to the network performance abnormality characteristics; wherein the type of the target network performance abnormality caused by the target network performance abnormality includes a network failure abnormality type, a network intrusion abnormality type, a load overload abnormality type or a hardware failure abnormality type; The third determination module is used to determine the cause of the abnormal detection result of the target network performance based on the prediction error of the observed event if the type causing the target network performance abnormality is a network intrusion abnormality type.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the network intrusion anomaly detection method based on network performance as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Anomaly intrusion detection method, device, device and storage medium for power communication network
CN109088744A
Performance detection method, device, equipment and medium
CN110752969A
DDoS anomaly detection method and cloud platform host
CN110943974A
Network anomaly detection method and device, electronic equipment and storage medium
CN112637132A
Network anomaly detection method and device and detection equipment
CN115622720A
Cited By
Performance diagnosis method and device of network transmission protocol, electronic equipment and storage medium
CN120567739A
