Network security threat detection method and system based on machine learning

Use machine learning technology to conduct traffic monitoring and packet analysis on network interface data, combine supervised learning and clustering algorithms to identify abnormal traffic, and design a secure interception mechanism for network attack traffic, which solves the problems of large calculations and detection limitations in traditional methods, and achieves Efficient network threat detection and interception.

CN118368151BActive Publication Date: 2024-08-23QINGDAO UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410796336.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-23
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Traditional machine learning-based network security threat detection methods suffer from heavy calculations, resource overload, and detection limitations, making it difficult to effectively detect and respond to network threats.

Method used

Adopting a network security threat detection method based on machine learning, by obtaining network interface data for traffic monitoring and packet analysis, combined with supervised learning algorithms and clustering algorithms, we can identify abnormal traffic and design a network attack traffic security interception mechanism to achieve real-time threat detection and Interception.

Benefits of technology

It improves the accuracy and timeliness of network security threat detection, reduces manual intervention, enhances the system's response speed and protection capabilities, and ensures the comprehensiveness of network security and data analysis load capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118368151B
    Figure CN118368151B
Patent Text Reader

Abstract

The present invention relates to the technical field of network security data processing, and in particular to a network security threat detection method and system based on machine learning. The method comprises the following steps: performing network data flow monitoring and processing on network interface data based on a preset network data monitoring script to generate flow monitoring data; performing data packet parsing on the flow monitoring data to generate flow parsing data; performing structured anomaly and source tracing anomaly analysis on the flow parsing data to obtain abnormal flow parsing data; performing preliminary security flow monitoring data extraction on the flow monitoring data according to the source tracing conventional flow parsing data to generate preliminary security flow monitoring data; performing network attack flow identification on the preliminary security flow behavior data to generate network attack flow data; and designing a network attack flow security interception mechanism based on the network attack flow data. The present invention realizes efficient network security threat detection by analyzing the abnormal flow characteristics through machine learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network security data processing, and in particular to a network security threat detection method and system based on machine learning. Background Art

[0002] With the rapid development of the Internet and the popularization of information technology, network security issues have become increasingly prominent. Various network threats such as viruses, Trojans, malware, phishing attacks, denial of service attacks (DDoS), zero-day vulnerability attacks, etc. frequently appear, causing huge economic losses and security risks to enterprises and individuals. The methods of detecting network security threats have evolved and become more diverse, and network security threat detection through machine learning has gradually attracted attention. Machine learning technology can automatically extract features, identify patterns and classify through training of large amounts of data, thereby improving the accuracy and efficiency of detection. In particular, the application of deep learning technology enables threat detection systems to process complex network data and perform well in detection accuracy and real-time performance. However, traditional network security threat detection methods based on machine learning have limitations in monitoring known dangers, and unified detection of network security has the problem of excessive computational complexity and resource overload. Summary of the invention

[0003] Based on this, the present invention provides a network security threat detection method and system based on machine learning to solve at least one of the above technical problems.

[0004] To achieve the above purpose, a network security threat detection method based on machine learning includes the following steps:

[0005] Step S1: Acquire network interface data; perform network data flow monitoring processing on the network interface data based on a preset network data monitoring script to generate flow monitoring data;

[0006] Step S2: parsing the data packets of the traffic monitoring data to generate traffic parsing data; classifying the structured information anomaly of the parsed traffic based on the supervised learning algorithm to obtain structured abnormal traffic parsing data and structured regular traffic parsing data;

[0007] Step S3: Obtain user network behavior data; perform traffic source tracing and abnormal classification processing on the structured regular traffic analysis data according to the user network behavior data and the structured abnormal traffic analysis data, and obtain the source tracing abnormal traffic analysis data and the source tracing regular traffic analysis data respectively;

[0008] Step S4: extract abnormal traffic analysis data from the traffic monitoring data according to the structured abnormal traffic analysis data and the source-tracing abnormal traffic analysis data to obtain abnormal traffic analysis data, and transmit the abnormal traffic analysis data to the preset network security detection system to perform analysis of abnormal traffic interception operations; extract preliminary safety traffic monitoring data from the traffic monitoring data according to the source-tracing conventional traffic analysis data to generate preliminary safety traffic monitoring data;

[0009] Step S5: Collect the traffic behavior information corresponding to the preliminary security traffic monitoring data and mark it as preliminary security traffic behavior data; identify abnormal traffic behavior patterns of the preliminary security traffic behavior data based on a clustering algorithm to obtain abnormal traffic behavior data; identify network attack traffic based on the abnormal traffic behavior data to generate network attack traffic data; design a network attack traffic security interception mechanism based on the network attack traffic data, and transmit the network attack traffic security interception mechanism to a preset network security detection system to perform malicious encrypted traffic interception operations.

[0010] The present invention obtains network interface data in real time to ensure the timeliness of monitoring and the latest data. Through a preset network data monitoring script, the network data flow is efficiently processed to ensure the accuracy and stability of data flow monitoring, and all data passing through the network interface can be fully monitored, with a wide coverage range to avoid missing potential threat data. The flow monitoring data is parsed, and the plaintext flow parsing data is extracted to ensure the accuracy and integrity of the data. The parsing data is classified and processed based on a supervised learning algorithm to improve the accuracy of structured information anomaly classification, and can effectively distinguish between abnormal flow and regular flow in plaintext flow data. Through the generation of structured abnormal flow parsing data, potential network threats can be quickly identified and responded to, and detection efficiency can be improved. Combined with user network behavior data, the flow parsing data is associated with specific user behavior to improve the accuracy of anomaly detection. Through source tracing and abnormal classification processing, the source of abnormal flow is traced back to help locate potential attack sources, enhance security, and use structured abnormal flow parsing data to verify regular flow data to ensure the reliability and consistency of detection results. Traffic interception based on abnormal traffic analysis data can accurately identify and intercept abnormal traffic, prevent potential threats from causing harm to the system, and generate preliminary security traffic monitoring data, which provides basic data for subsequent behavior analysis and pattern recognition, can dynamically adjust security policies, and transmit abnormal traffic analysis data to a preset network security detection system to achieve real-time monitoring and processing, thereby improving the system's response speed and protection capabilities. Collecting and marking preliminary security traffic behavior data provides a basis for subsequent clustering analysis and pattern recognition, which helps to deeply analyze traffic behavior patterns, identify abnormal traffic behavior patterns through clustering algorithms, identify potential abnormal behaviors, and improve the accuracy of threat detection. Based on abnormal traffic behavior data, network attack traffic identification can timely warn of potential network attacks, improve the system's protection capabilities, design and implement a network attack traffic security interception mechanism, effectively intercept malicious traffic, and prevent it from causing harm to network security. Therefore, the network security threat detection method based on machine learning of the present invention is to analyze real-time network abnormal traffic data for danger monitoring, ensure the comprehensiveness of network security detection, and perform network security detection by considering different network attacks or network Trojan horse features, thereby ensuring the load capacity of hardware operation during data analysis of network security detection.

[0011] Preferably, step S1 comprises the following steps:

[0012] Step S11: Obtain network interface data;

[0013] Step S12: performing initial network data flow monitoring processing on the network interface data according to a preset network data monitoring script to generate initial flow monitoring data;

[0014] Step S13: collecting flow monitoring logs according to the initial flow monitoring data to generate flow monitoring log data;

[0015] Step S14: extracting log features from the flow monitoring log data to generate flow monitoring log feature data; using the flow monitoring log feature data to identify monitoring log feature information of the initial flow monitoring data to generate flow monitoring data.

[0016] The present invention obtains network interface data and captures network traffic in real time, ensuring the timeliness of monitoring and the latest data. It can capture data from all network interfaces, ensure the extensiveness of data sources, and avoid missing any potential threat traffic. Using a preset network data monitoring script, the network interface data is efficiently processed initially to ensure the accuracy and stability of the traffic monitoring data. The preset script can automatically process the data stream, reduce manual intervention, and improve the efficiency and consistency of data processing. By generating traffic monitoring log data, the monitoring results are persisted, which is convenient for subsequent analysis and backtracking. The traffic monitoring log data records the monitoring of the initial traffic and provides valuable historical data reference for subsequent threat detection and analysis. Feature extraction is performed on the traffic monitoring log data, and more valuable feature information can be extracted from it, improving the accuracy of threat detection. The initial traffic monitoring data is identified using log feature data, further optimizing the quality and accuracy of the monitoring data, ensuring the processing effect of subsequent steps, and the feature extraction and identification process enhances the analyzability and traceability of the data, which is helpful for subsequent machine learning model training and threat detection.

[0017] Preferably, step S2 comprises the following steps:

[0018] Step S21: parsing the data packets of the traffic monitoring data to generate preliminary traffic parsing data;

[0019] Step S22: performing data preprocessing on the preliminary traffic analysis data, wherein the data preprocessing includes data cleaning, data format conversion, feature extraction, and data storage to generate traffic analysis data;

[0020] Step S23: Obtain historical traffic analysis data;

[0021] Step S24: using the adversarial generative neural network model to perform data generalization and enhancement processing on the historical traffic analysis data to generate generalized historical traffic analysis data; establishing a binary classification mathematical model for analyzing traffic structure anomalies based on the supervised learning algorithm and the generalized historical traffic analysis data to generate an analysis structure anomaly classification model;

[0022] Step S25: using the analytical structure anomaly classification model to perform structural information anomaly classification processing on the traffic analysis data, and obtain structured abnormal traffic analysis data and structured regular traffic analysis data respectively.

[0023] The present invention can extract detailed information in the data packet by parsing the traffic monitoring data, generate preliminary traffic parsing data, and lay the foundation for subsequent processing. The preliminary parsing data contains detailed information of the network data packet, which is helpful for more detailed analysis and detection of network threats. Noise and redundant data are removed by data cleaning, the quality and reliability of data are improved, the data format conversion ensures the consistency of data, and standardized data input is provided for subsequent analysis and processing. The feature extraction process can extract the most useful features for threat detection, improve the accuracy of the detection algorithm, and the data storage ensures the effective management and rapid access of the traffic parsing data, which is convenient for subsequent processing and analysis. Acquiring historical traffic parsing data provides a reference for the analysis and processing of current data, which helps to learn the normal and abnormal features in the traffic plaintext data, so as to be used for the abnormal structure in the traffic plaintext data packet. The historical data provides rich samples for the training of the machine learning model, and improves the accuracy and generalization ability of the model. The adversarial generative neural network model can generate richer historical traffic parsing data, enhance the diversity of the data set, and improve the robustness of the model. The binary classification mathematical model established based on the generalized historical traffic parsing data and the supervised learning algorithm can more accurately distinguish between normal data structure and abnormal data structure, and improve the accuracy of threat detection. By using an optimized classification model to perform structured information anomaly classification processing on traffic analysis data, abnormal traffic and regular traffic can be accurately identified. By comparing and analyzing normal data structures with abnormal data structures, the ability to detect and respond to network threats is improved, ensuring network security.

[0024] Preferably, step S3 comprises the following steps:

[0025] Step S31: Obtain user network behavior data;

[0026] Step S32: performing abnormal traffic source tracing feature analysis based on user network behavior data and structured abnormal traffic analysis data to generate abnormal traffic source tracing feature data;

[0027] Step S33: performing tracing anomaly classification processing on the structured regular traffic parsing data according to the abnormal traffic tracing feature data to obtain tracing abnormal traffic parsing data and tracing regular traffic parsing data.

[0028] The present invention obtains user network behavior data and associates network traffic data with specific user behavior, which helps to more comprehensively understand the source characteristics of traffic. Acquiring user behavior data helps to analyze the normal behavior patterns of users, identify abnormal behaviors, and improve the accuracy of threat detection. Combining user network behavior data and structured abnormal traffic analysis data, more accurate abnormal traffic tracing features can be extracted, which helps to track the source of abnormal traffic. Through abnormal traffic tracing feature analysis, potential network threat sources can be effectively located and network security protection capabilities can be enhanced. Using abnormal traffic tracing feature data for classification processing can accurately distinguish between tracing abnormal traffic and tracing regular traffic, improve the accuracy of detection, and through tracing abnormal classification processing, comprehensively analyze the source and behavior characteristics of abnormal traffic, provide reliable data support for further security measures, and effectively reduce the false alarm rate through tracing classification, ensuring that only real threats are identified and processed, and improve the reliability of the system and user experience.

[0029] Preferably, step S32 includes the following steps:

[0030] Analyze the abnormal traffic source tracing information of user network behavior based on user network behavior data, and generate abnormal traffic source tracing data of user network behavior;

[0031] Based on the structured abnormal traffic analysis data and the abnormal traffic tracing data of user network behavior, abnormal traffic tracing feature analysis is performed to generate abnormal traffic tracing feature data.

[0032] The present invention analyzes abnormal traffic source tracing information through user network behavior data, accurately identifies abnormal traffic in user behavior, ensures the accuracy and reliability of tracing data, can timely discover abnormal traffic in user network behavior, help quickly identify potential security threats, and improve the timeliness of threat detection. By analyzing the user's behavior pattern, the difference between abnormal traffic source tracing information and abnormal traffic source tracing information of user network behavior is identified, such as tracing abnormal information of target address that cannot be traced, which provides important data support for subsequent feature analysis. Combined with structured abnormal traffic analysis data and user network behavior abnormal traffic source tracing data, comprehensive feature extraction is performed to generate more accurate and comprehensive abnormal traffic source tracing feature data. Through comprehensive analysis of multidimensional data, the accuracy of abnormal traffic source tracing feature analysis can be improved, and the accuracy of threat detection can be ensured. The generated abnormal traffic source tracing feature data can better identify the source of abnormal traffic, help quickly locate the corresponding abnormal traffic and respond to network threats, and improve network security protection capabilities. By integrating structured abnormal traffic analysis data and user behavior abnormal traffic source tracing data, deep fusion and optimization of data are achieved, and the overall efficiency of abnormal detection and analysis is improved.

[0033] Preferably, step S5 comprises the following steps:

[0034] Step S51: collecting traffic behavior information corresponding to preliminary safety traffic monitoring data and marking it as preliminary safety traffic behavior data;

[0035] Step S52: performing clustering pattern analysis on the preliminary safety traffic behavior data based on a clustering algorithm to generate clustered traffic behavior pattern data;

[0036] Step S53: performing abnormal traffic behavior pattern recognition on the preliminary safety traffic behavior data according to the clustered traffic behavior pattern data to obtain abnormal traffic behavior data;

[0037] Step S54: Perform network attack behavior analysis on the abnormal traffic behavior data to generate abnormal traffic network attack behavior evaluation data;

[0038] Step S55: Based on the abnormal traffic network attack behavior assessment data, network attack traffic identification is performed on the preliminary security traffic behavior data corresponding to the abnormal traffic behavior data to generate network attack traffic data;

[0039] Step S56: Design a network attack traffic security interception mechanism based on the network attack traffic data, and transmit the network attack traffic security interception mechanism to a preset network security detection system to perform malicious encrypted traffic interception operations.

[0040] The present invention can obtain detailed traffic behavior data by collecting traffic behavior information corresponding to preliminary safety traffic monitoring data, provide an accurate data basis for subsequent analysis, and mark preliminary safety traffic behavior data, which is helpful to clarify the attributes of the data and facilitate subsequent pattern recognition and analysis. The frequency domain signal is analyzed by clustering algorithm to find the pattern in the traffic behavior, identify different types of traffic behavior, and generate clustered traffic behavior pattern data to classify similar traffic behaviors, which is convenient for subsequent abnormal detection and analysis. By performing pattern recognition on preliminary safety traffic behavior data, abnormal traffic behavior can be accurately identified, the accuracy of threat detection can be improved, abnormal traffic behavior can be timely identified, and measures can be taken quickly to reduce the risks brought by network threats. In-depth analysis of abnormal traffic behavior data can identify potential network attack behaviors and provide detailed evaluation data. The generated abnormal traffic network attack behavior evaluation data can provide early warning information for the system to prevent potential attacks in advance. Using evaluation data to identify network attack traffic on preliminary safety traffic behavior data can more accurately identify network attack traffic and reduce false alarm rate. The generated network attack traffic data is used for the deployment of real-time protection measures to improve the security and response speed of the system. The network attack traffic security interception mechanism designed based on network attack traffic data can effectively intercept malicious encrypted traffic to prevent it from causing harm to network security. The interception mechanism is transmitted to the preset network security detection system to automatically perform the interception operation to achieve intelligent and automated network security protection. By intercepting malicious encrypted traffic, the overall security of the network is further improved to ensure the stability and reliability of the system.

[0041] Preferably, step S52 includes the following steps:

[0042] Step S521: performing frequency domain signal conversion according to the preliminary safety traffic behavior data to generate a preliminary safety traffic behavior frequency domain signal;

[0043] Step S522: performing frequency domain signal time series feature analysis on the preliminary safety traffic behavior frequency domain signal to generate frequency domain signal time series feature data;

[0044] Step S523: designing a frequency domain signal clustering label of the frequency domain signal of the preliminary safety traffic behavior according to the frequency domain signal time series feature data;

[0045] Step S524: Based on the clustering algorithm and the frequency domain signal clustering label, the preliminary safety traffic behavior frequency domain signal is clustered and pattern recognition is performed to generate clustered traffic behavior pattern data.

[0046] The present invention converts the preliminary safety traffic behavior data into frequency domain signals and extracts the frequency domain features in the traffic behavior, which helps to more accurately identify and analyze the traffic behavior. The frequency domain conversion can effectively filter out the noise in the time domain signal and improve the clarity of the data and the accuracy of the analysis. The frequency domain signal is subjected to time series feature analysis to reveal the time characteristics of the traffic behavior and help identify the periodicity and abnormal patterns of the traffic behavior. Through the generation of time series feature data, the pattern of preliminary safety traffic behavior is more deeply understood, providing rich data support for subsequent cluster analysis. Cluster labels are designed based on time series feature data to provide an accurate classification basis for the frequency domain signals of preliminary safety traffic behavior, which helps to improve the effect of cluster analysis, effectively label the frequency domain signals, and provide clear classification standards for subsequent cluster pattern recognition. Using clustering algorithms and frequency domain signal clustering labels, clustering pattern recognition is performed on the frequency domain signals of preliminary security traffic behavior to accurately distinguish different types of traffic behavior patterns. The generated clustered traffic behavior pattern data can identify typical patterns and abnormal patterns in traffic behavior, providing an important reference for threat detection. Through clustering pattern recognition, abnormal traffic behavior can be identified more accurately, thereby improving the accuracy and reliability of network security threat detection.

[0047] Preferably, step S523 includes the following steps:

[0048] Frequency domain fluctuation feature analysis is performed based on the frequency domain signal time series feature data to generate frequency domain fluctuation feature data; frequency domain peak feature analysis is performed based on the frequency domain signal time series feature data to generate frequency domain peak feature data; frequency domain signal clustering labels for preliminary safety traffic behavior frequency domain signals are designed based on the frequency domain fluctuation feature data and the frequency domain peak feature data.

[0049] The present invention converts the preliminary safety traffic behavior data into frequency domain signals to extract the frequency domain features in the traffic behavior, which helps to more accurately identify and analyze the traffic behavior. The frequency domain conversion can effectively filter out the noise in the time domain signal, improve the clarity of the data and the accuracy of the analysis. Performing time series feature analysis on the frequency domain signal reveals the time characteristics of the traffic behavior and helps identify the periodicity and abnormal patterns of the traffic behavior. By generating time series feature data, the pattern of preliminary safety traffic behavior can be more deeply understood, providing rich data support for subsequent cluster analysis. Designing cluster labels based on time series feature data provides an accurate classification basis for the frequency domain signals of preliminary safety traffic behavior, which helps to improve the effect of cluster analysis. Clustering labels effectively mark frequency domain signals and provide clear classification standards for subsequent clustering pattern recognition. Clustering algorithms and frequency domain signal clustering labels are used to perform clustering pattern recognition on the frequency domain signals of preliminary security traffic behavior, accurately distinguishing different types of traffic behavior patterns. The generated clustered traffic behavior pattern data can identify typical patterns and abnormal patterns in traffic behavior, providing an important reference for threat detection. Through clustering pattern recognition, abnormal traffic behavior can be identified more accurately, improving the accuracy and reliability of network security threat detection.

[0050] Preferably, step S54 includes the following steps:

[0051] Step S541: Analyze the abnormal traffic lateral movement behavior according to the abnormal traffic behavior data to generate the abnormal traffic lateral movement behavior data; analyze the traffic lateral movement evaluation parameters based on the abnormal traffic lateral movement behavior data to generate the traffic lateral movement evaluation parameters; establish a traffic lateral movement decision tree evaluation model through the traffic lateral movement evaluation parameters;

[0052] Step S542: analyzing the abnormal traffic penetration behavior according to the abnormal traffic behavior data to generate abnormal traffic penetration behavior data; analyzing the traffic penetration assessment parameters based on the abnormal traffic penetration behavior data to generate traffic penetration assessment parameters, and establishing a traffic penetration decision tree assessment model through the traffic penetration assessment parameters;

[0053] Step S543: establishing a joint network attack behavior decision tree evaluation model based on the traffic lateral movement evaluation decision tree model and the traffic penetration evaluation decision tree model;

[0054] Step S544: Perform network attack behavior analysis on the abnormal traffic behavior data according to the joint network attack behavior decision tree evaluation model to generate abnormal traffic network attack behavior evaluation data.

[0055] The present invention can identify the behavior pattern of attackers' lateral expansion inside the network by analyzing the lateral movement behavior in abnormal traffic, which is helpful to discover and prevent potential threats in advance. The generated traffic lateral movement evaluation parameters can quantify the lateral movement characteristics in the traffic behavior, such as the relevant information of network attacks moving between different ports, and provide accurate data support for the evaluation model. The decision tree evaluation model established by the traffic lateral movement evaluation parameters can systematically evaluate and identify lateral movement behaviors, and improve the systematicness and accuracy of detection. By analyzing the penetration behavior in abnormal traffic, the behavior pattern of attackers attempting to penetrate the network, such as authority penetration and other behaviors, is identified, and the defense capability is enhanced. The generated traffic penetration evaluation parameters provide quantitative evaluation criteria for penetration behavior, which is helpful to accurately identify penetration behavior. The decision tree evaluation model established by the traffic penetration evaluation parameters can systematically identify and evaluate penetration behavior, and improve the comprehensiveness and accuracy of detection. By combining the evaluation models of lateral movement and penetration behavior, a joint network attack behavior decision tree evaluation model is established to comprehensively evaluate and analyze complex network attack behaviors. The joint model comprehensively considers multiple attack behaviors, improves the comprehensiveness and accuracy of detection, reduces the possibility of missed reports and false reports, comprehensively identifies network attack behaviors, improves overall protection capabilities, and enhances network security. The joint network attack behavior decision tree evaluation model is used to accurately analyze abnormal traffic behavior data and identify potential network attack behaviors. The generated abnormal traffic network attack behavior evaluation data provides detailed risk assessment information for further protection measures to timely discover and respond to network attacks, improve the system's response speed and security, and facilitate the formulation of targeted protection strategies.

[0056] This specification provides a network security threat detection system based on machine learning, which is used to execute the network security threat detection method based on machine learning as described above. The network security threat detection system based on machine learning includes:

[0057] The network traffic monitoring module is used to obtain network interface data; perform network data flow monitoring processing on the network interface data based on a preset network data monitoring script to generate traffic monitoring data;

[0058] The flow anomaly analysis module is used to parse the data packets of the flow monitoring data to generate flow analysis data; based on the supervised learning algorithm, the flow analysis data is classified into structured information anomalies of the analyzed flow to obtain structured abnormal flow analysis data and structured regular flow analysis data;

[0059] The traffic source tracing anomaly analysis module is used to obtain user network behavior data; the structured regular traffic analysis data is subjected to traffic source tracing anomaly classification processing based on the user network behavior data and the structured abnormal traffic analysis data, and the abnormal traffic source tracing analysis data and the regular traffic source tracing analysis data are obtained respectively;

[0060] The abnormal traffic interception module is used to extract abnormal traffic analysis data from the traffic monitoring data according to the structured abnormal traffic analysis data and the traced abnormal traffic analysis data to obtain abnormal traffic analysis data, and transmit the abnormal traffic analysis data to the preset network security detection system to perform analysis of abnormal traffic interception operations; extract preliminary safety traffic monitoring data from the traffic monitoring data according to the traced conventional traffic analysis data to generate preliminary safety traffic monitoring data;

[0061] The malicious encrypted traffic interception module is used to collect traffic behavior information corresponding to the preliminary security traffic monitoring data and mark it as preliminary security traffic behavior data; to identify abnormal traffic behavior patterns of the preliminary security traffic behavior data based on the clustering algorithm to obtain abnormal traffic behavior data; to identify network attack traffic based on the abnormal traffic behavior data to generate network attack traffic data; to design a network attack traffic security interception mechanism based on the network attack traffic data, and to transmit the network attack traffic security interception mechanism to the preset network security detection system to perform malicious encrypted traffic interception operations.

[0062] The beneficial effect of the present application is that the network security threat detection method based on machine learning of the present invention significantly improves the accuracy and timeliness of detection through deep feature analysis, multi-level threat detection and real-time response. The system uses preset network traffic monitoring scripts, clustering algorithms and decision tree evaluation models to automatically perform data parsing, feature extraction and threat identification, reduce manual intervention and improve efficiency. Combined with frequency domain signal conversion, timing feature analysis, fluctuation features and peak feature extraction, the traffic behavior characteristics are deeply mined, and a comprehensive decision model is used to comprehensively evaluate complex network attack behaviors. In addition, the adaptability and robustness of the abnormal analysis of the plaintext data structure of the traffic are improved by adversarial generative neural network models, and a network attack traffic security interception mechanism is designed and implemented to effectively prevent potential threats and ensure network security. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 A schematic diagram of the steps of a network security threat detection method based on machine learning in the present invention;

[0064] Figure 2 for Figure 1 Detailed implementation steps of step S5;

[0065] Figure 3 for Figure 2 Detailed implementation steps of step S54 are shown in the flowchart;

[0066] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0067] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. 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 technicians in this field without creative work are within the scope of protection of the present invention.

[0068] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.

[0069] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0070] To achieve this, please refer to Figures 1 to 3 The present invention provides a network security threat detection method based on machine learning, comprising the following steps:

[0071] Step S1: Acquire network interface data; perform network data flow monitoring processing on the network interface data based on a preset network data monitoring script to generate flow monitoring data;

[0072] Step S2: parsing the data packets of the traffic monitoring data to generate traffic parsing data; classifying the structured information anomaly of the parsed traffic based on the supervised learning algorithm to obtain structured abnormal traffic parsing data and structured regular traffic parsing data;

[0073] Step S3: Obtain user network behavior data; perform traffic source tracing and abnormal classification processing on the structured regular traffic analysis data according to the user network behavior data and the structured abnormal traffic analysis data, and obtain the source tracing abnormal traffic analysis data and the source tracing regular traffic analysis data respectively;

[0074] Step S4: extract abnormal traffic analysis data from the traffic monitoring data according to the structured abnormal traffic analysis data and the source-tracing abnormal traffic analysis data to obtain abnormal traffic analysis data, and transmit the abnormal traffic analysis data to the preset network security detection system to perform analysis of abnormal traffic interception operations; extract preliminary safety traffic monitoring data from the traffic monitoring data according to the source-tracing conventional traffic analysis data to generate preliminary safety traffic monitoring data;

[0075] Step S5: Collect the traffic behavior information corresponding to the preliminary security traffic monitoring data and mark it as preliminary security traffic behavior data; identify abnormal traffic behavior patterns of the preliminary security traffic behavior data based on a clustering algorithm to obtain abnormal traffic behavior data; identify network attack traffic based on the abnormal traffic behavior data to generate network attack traffic data; design a network attack traffic security interception mechanism based on the network attack traffic data, and transmit the network attack traffic security interception mechanism to a preset network security detection system to perform malicious encrypted traffic interception operations.

[0076] The present invention obtains network interface data in real time to ensure the timeliness of monitoring and the latest data. Through a preset network data monitoring script, the network data flow is efficiently processed to ensure the accuracy and stability of data flow monitoring, and all data passing through the network interface can be fully monitored, with a wide coverage range to avoid missing potential threat data. The flow monitoring data is parsed, and the plaintext flow parsing data is extracted to ensure the accuracy and integrity of the data. The parsing data is classified and processed based on a supervised learning algorithm to improve the accuracy of structured information anomaly classification, and can effectively distinguish between abnormal flow and regular flow in plaintext flow data. Through the generation of structured abnormal flow parsing data, potential network threats can be quickly identified and responded to, and detection efficiency can be improved. Combined with user network behavior data, the flow parsing data is associated with specific user behavior to improve the accuracy of anomaly detection. Through source tracing and abnormal classification processing, the source of abnormal flow is traced back to help locate potential attack sources, enhance security, and use structured abnormal flow parsing data to verify regular flow data to ensure the reliability and consistency of detection results. Traffic interception based on abnormal traffic analysis data can accurately identify and intercept abnormal traffic, prevent potential threats from causing harm to the system, and generate preliminary security traffic monitoring data, which provides basic data for subsequent behavior analysis and pattern recognition, can dynamically adjust security policies, and transmit abnormal traffic analysis data to a preset network security detection system to achieve real-time monitoring and processing, thereby improving the system's response speed and protection capabilities. Collecting and marking preliminary security traffic behavior data provides a basis for subsequent clustering analysis and pattern recognition, which helps to deeply analyze traffic behavior patterns, identify abnormal traffic behavior patterns through clustering algorithms, identify potential abnormal behaviors, and improve the accuracy of threat detection. Based on abnormal traffic behavior data, network attack traffic identification can timely warn of potential network attacks, improve the system's protection capabilities, design and implement a network attack traffic security interception mechanism, effectively intercept malicious traffic, and prevent it from causing harm to network security. Therefore, the network security threat detection method based on machine learning of the present invention is to analyze real-time network abnormal traffic data for danger monitoring, ensure the comprehensiveness of network security detection, and perform network security detection by considering different network attacks or network Trojan horse features, thereby ensuring the load capacity of hardware operation during data analysis of network security detection.

[0077] As an embodiment of the present invention, refer to Figure 1 The above is a schematic diagram of the steps of a network security threat detection method based on machine learning of the present invention. In this embodiment, the network security threat detection method based on machine learning includes the following steps:

[0078] Step S1: Acquire network interface data; perform network data flow monitoring processing on the network interface data based on a preset network data monitoring script to generate flow monitoring data;

[0079] In the embodiment of the present invention, a network interface monitoring tool, such as Wireshark, tcpdump, etc., is installed and configured, and the capture parameters of the monitoring tool are set, including the capture interface, capture filter, etc., to ensure that only the required data packets are captured. The network interface monitoring tool is started, and real-time data packet capture begins, including detailed information of each network data packet as well as timestamp, source IP, destination IP, protocol type, port number, etc. A script is written, and data processing logic is set, including data packet parsing, feature extraction, and data flow monitoring. The script automatically reads and captures network data packets, performs preprocessing, and runs the script continuously, thereby monitoring and processing the real-time captured data packets and generating flow monitoring data.

[0080] Step S2: parsing the data packets of the traffic monitoring data to generate traffic parsing data; classifying the structured information anomaly of the parsed traffic based on the supervised learning algorithm to obtain structured abnormal traffic parsing data and structured regular traffic parsing data;

[0081] In an embodiment of the present invention, a data packet parsing tool (such as Wireshark, tcpdump, etc.) is used to perform detailed parsing of the traffic monitoring data. During the parsing process, the detailed content of each data packet is extracted, including data packet header information, basic information, etc. The basic information includes IP address, port number, protocol type, etc. The parsed data packet information is structured to generate traffic parsing data. The traffic parsing data should include complete information of each data packet to facilitate subsequent abnormal classification processing. The traffic parsing data is preprocessed, including data cleaning, feature extraction and data format conversion. The existing annotated data set is used to train the supervised learning algorithm model. The supervised learning algorithm includes decision tree, support vector machine, random forest, etc. During the training process, the model learns the normal behavior mode and abnormal behavior mode in the data packet. The preprocessed traffic parsing data is input into the trained supervised learning algorithm model. The model classifies the data, identifies abnormal behavior and normal behavior in the structured information, and outputs structured abnormal traffic parsing data and structured normal traffic parsing data.

[0082] Step S3: Obtain user network behavior data; perform traffic source tracing and abnormal classification processing on the structured regular traffic analysis data according to the user network behavior data and the structured abnormal traffic analysis data, and obtain the source tracing abnormal traffic analysis data and the source tracing regular traffic analysis data respectively;

[0083] In the embodiment of the present invention, a user behavior monitoring tool or a system log collection tool, such as Splunk, ELK, etc., is installed and configured, and the capture parameters of the tool are set to ensure that the user network behavior data can be collected in real time. The user behavior monitoring tool is started to collect the user's network behavior data in real time, and the data includes the user's access records, operation logs, access time, access frequency and other information. The user network behavior data and structured abnormal traffic analysis data are preprocessed, including data cleaning and abnormal tracing feature information extraction, and abnormal tracing related features in the user network behavior data and structured abnormal traffic analysis data are extracted, and the extracted abnormal tracing related features are used to identify potential anomalies in structured regular traffic data by using feature matching and behavior association algorithms, and the data after association analysis is input into the classification algorithm to perform tracing anomaly classification processing, and the classification results include tracing abnormal traffic analysis data and tracing regular traffic analysis data.

[0084] Step S4: extract abnormal traffic analysis data from the traffic monitoring data according to the structured abnormal traffic analysis data and the source-tracing abnormal traffic analysis data to obtain abnormal traffic analysis data, and transmit the abnormal traffic analysis data to the preset network security detection system to perform analysis of abnormal traffic interception operations; extract preliminary safety traffic monitoring data from the traffic monitoring data according to the source-tracing conventional traffic analysis data to generate preliminary safety traffic monitoring data;

[0085] In an embodiment of the present invention, the structured abnormal traffic analysis data and the source-tracing abnormal traffic analysis data are combined to further filter and analyze the traffic monitoring data, extract the traffic data that meets the abnormal characteristics, and generate abnormal traffic analysis data. The extracted abnormal traffic analysis data is transmitted to a preset network security detection system to ensure the security and integrity of data transmission and prevent data loss or tampering. After receiving the abnormal traffic analysis data, the network security detection system executes the preset analysis of abnormal traffic interception operations to prevent abnormal traffic from entering the network in real time and ensure network security. Using the source-tracing conventional traffic analysis data, preliminary security data extraction is performed on the traffic monitoring data, abnormal traffic is filtered out, and only safe traffic is retained to generate preliminary security traffic monitoring data, and the preliminary security traffic monitoring data is stored in a designated location to facilitate subsequent behavior analysis and pattern recognition.

[0086] Step S5: Collect the traffic behavior information corresponding to the preliminary security traffic monitoring data and mark it as preliminary security traffic behavior data; identify abnormal traffic behavior patterns of the preliminary security traffic behavior data based on a clustering algorithm to obtain abnormal traffic behavior data; identify network attack traffic based on the abnormal traffic behavior data to generate network attack traffic data; design a network attack traffic security interception mechanism based on the network attack traffic data, and transmit the network attack traffic security interception mechanism to a preset network security detection system to perform malicious encrypted traffic interception operations.

[0087] In an embodiment of the present invention, behavioral information corresponding to the preliminary security traffic monitoring data is collected, including traffic operation, access time, access frequency, etc., and the collected behavioral information is marked as preliminary security traffic behavior data. The preliminary security traffic behavior data is preprocessed and feature extracted to ensure that the data format is unified and the features are complete, and suitable features, such as traffic access frequency, are selected as inputs of the clustering algorithm. The preliminary security traffic behavior data is analyzed using a clustering algorithm (such as K-means, DBSCAN, etc.), abnormal traffic behavior patterns are identified, and abnormal traffic behavior data is output. Network attack traffic of the preliminary security traffic behavior data is identified based on the abnormal traffic behavior data, such as permission penetration and abnormal traffic lateral movement, and network attack traffic data is generated, which contains detailed attack behavior information. Based on the network attack traffic data, a security interception mechanism for malicious encrypted traffic is designed, including interception rules, strategies, and execution processes. The designed interception mechanism is transmitted to a preset network security detection system to ensure the correct deployment and execution of the interception mechanism and intercept malicious encrypted traffic in real time.

[0088] Preferably, step S1 comprises the following steps:

[0089] Step S11: Obtain network interface data;

[0090] Step S12: performing initial network data flow monitoring processing on the network interface data according to a preset network data monitoring script to generate initial flow monitoring data;

[0091] Step S13: collecting flow monitoring logs according to the initial flow monitoring data to generate flow monitoring log data;

[0092] Step S14: extracting log features from the flow monitoring log data to generate flow monitoring log feature data; using the flow monitoring log feature data to identify monitoring log feature information of the initial flow monitoring data to generate flow monitoring data.

[0093] The present invention obtains network interface data and captures network traffic in real time, ensuring the timeliness of monitoring and the latest data. It can capture data from all network interfaces, ensure the extensiveness of data sources, and avoid missing any potential threat traffic. Using a preset network data monitoring script, the network interface data is efficiently processed initially to ensure the accuracy and stability of the traffic monitoring data. The preset script can automatically process the data stream, reduce manual intervention, and improve the efficiency and consistency of data processing. By generating traffic monitoring log data, the monitoring results are persisted, which is convenient for subsequent analysis and backtracking. The traffic monitoring log data records the monitoring of the initial traffic and provides valuable historical data reference for subsequent threat detection and analysis. Feature extraction is performed on the traffic monitoring log data, and more valuable feature information can be extracted from it, improving the accuracy of threat detection. The initial traffic monitoring data is identified using log feature data, further optimizing the quality and accuracy of the monitoring data, ensuring the processing effect of subsequent steps, and the feature extraction and identification process enhances the analyzability and traceability of the data, which is helpful for subsequent machine learning model training and threat detection.

[0094] In an embodiment of the present invention, a network interface monitoring tool, such as Wireshark or tcpdump, is configured to ensure that the required network traffic data can be captured, and an appropriate network interface (such as eth0, wlan0, etc.) is selected to ensure that the monitoring tool can access and capture all data packets on the interface. The network interface monitoring tool is started to start real-time data packet capture. The captured data packets should include all network data packets entering and leaving the network interface to ensure the integrity and accuracy of the data. The captured data packets are stored in a designated storage location in real time to ensure that the data can be accessed by subsequent processing steps to generate initial traffic monitoring data. Step S12: Perform initial network data flow monitoring processing on the network interface data according to a preset network data monitoring script to generate initial traffic monitoring data. Write a network data monitoring script that can perform preliminary processing on the captured network interface data. The script should include functions such as packet parsing and basic feature extraction. Configure script parameters, such as monitoring interval and data extraction rules, to ensure that the script can monitor and process according to preset rules. Run the monitoring script to perform initial network data flow monitoring and processing on the real-time captured data packets. The script should parse each data packet and extract basic traffic information, such as source IP address, destination IP address, port number, protocol type, packet size, etc., to generate initial traffic monitoring data. During the processing, ensure that the processing results of each data packet can generate structured traffic parsing data in the future. Configure log collection tools, such as Logstash or Fluentd, to ensure that the tool can access the initial traffic monitoring data, set the collection rules of the tool, including data source path, collection interval, filtering rules, etc., start the log collection tool, and collect the initial traffic monitoring data in real time. The tool should parse the initial traffic monitoring data, convert each data record into a log entry, and store the collected log data in a specified log storage system, such as Elasticsearch or Splunk, to generate traffic monitoring log data. Configure log analysis tools, such as Elasticsearch or Splunk, to ensure that traffic monitoring log data can be accessed and parsed, set log feature extraction rules, including log feature fields, feature extraction algorithms, etc., and use log analysis tools to extract features from traffic monitoring log data. The extracted features should include but are not limited to: data packet size distribution, traffic peak time period, abnormal traffic pattern, etc., to generate traffic monitoring log feature data, and use the generated traffic monitoring log feature data to identify the monitoring log feature information of the initial traffic monitoring data. Through feature identification, identify and mark the key features in the initial traffic monitoring data to generate the final traffic monitoring data.

[0095] Preferably, step S2 comprises the following steps:

[0096] Step S21: parsing the data packets of the traffic monitoring data to generate preliminary traffic parsing data;

[0097] Step S22: performing data preprocessing on the preliminary traffic analysis data, wherein the data preprocessing includes data cleaning, data format conversion, feature extraction, and data storage to generate traffic analysis data;

[0098] Step S23: Obtain historical traffic analysis data;

[0099] Step S24: using the adversarial generative neural network model to perform data generalization and enhancement processing on the historical traffic analysis data to generate generalized historical traffic analysis data; establishing a binary classification mathematical model for analyzing traffic structure anomalies based on the supervised learning algorithm and the generalized historical traffic analysis data to generate an analysis structure anomaly classification model;

[0100] Step S25: using the analytical structure anomaly classification model to perform structural information anomaly classification processing on the traffic analysis data, and obtain structured abnormal traffic analysis data and structured regular traffic analysis data respectively.

[0101] The present invention can extract detailed information in the data packet by parsing the traffic monitoring data, generate preliminary traffic parsing data, and lay the foundation for subsequent processing. The preliminary parsing data contains detailed information of the network data packet, which is helpful for more detailed analysis and detection of network threats. Noise and redundant data are removed by data cleaning, the quality and reliability of data are improved, the data format conversion ensures the consistency of data, and standardized data input is provided for subsequent analysis and processing. The feature extraction process can extract the most useful features for threat detection, improve the accuracy of the detection algorithm, and the data storage ensures the effective management and rapid access of the traffic parsing data, which is convenient for subsequent processing and analysis. Acquiring historical traffic parsing data provides a reference for the analysis and processing of current data, which helps to learn the normal and abnormal features in the traffic plaintext data, so as to be used for the abnormal structure in the traffic plaintext data packet. The historical data provides rich samples for the training of the machine learning model, and improves the accuracy and generalization ability of the model. The adversarial generative neural network model can generate richer historical traffic parsing data, enhance the diversity of the data set, and improve the robustness of the model. The binary classification mathematical model established based on the generalized historical traffic parsing data and the supervised learning algorithm can more accurately distinguish between normal data structure and abnormal data structure, and improve the accuracy of threat detection. By using an optimized classification model to perform structured information anomaly classification processing on traffic analysis data, abnormal traffic and regular traffic can be accurately identified. By comparing and analyzing normal data structures with abnormal data structures, the ability to detect and respond to network threats is improved, ensuring network security.

[0102] In the embodiment of the present invention, a data packet parsing tool, such as Wireshark, tcpdump, etc., is configured to ensure that the flow monitoring data can be read and parsed, and the parameters of the parsing tool are set, including capture filters, parsing rules, etc., to ensure that only the required data packet information is parsed. The data packet parsing tool is started to perform flow plain text parsing on the flow monitoring data, and the detailed information of each data packet is extracted, including data packet header information (such as source IP, destination IP, port number, protocol type) and payload information. The parsed data packet information is structured to generate preliminary flow parsing data, ensuring that the preliminary flow parsing data includes complete information of each data packet, which is convenient for the processing of subsequent steps. The preliminary flow parsing data is cleaned to remove redundant information and noise data. The cleaning process includes deleting duplicate data, repairing damaged data, filling missing data, etc. to ensure data quality. The cleaned data is converted into a unified format. The format conversion includes converting the data into a standardized timestamp format, a unified IP address format, etc., and key features are extracted from the preprocessed data, such as data packet size, transmission time, protocol type, etc., to ensure that the extracted features can reflect the key attributes of the flow, so as to obtain the flow parsing data after preprocessing and feature extraction. Collect historical traffic analysis data from existing traffic monitoring systems, such as Trojan traffic analysis data collected under pre-established virtual target machines and traffic analysis data collected under conventional collection. Historical data should include traffic information in different time periods and different network states to ensure data diversity and comprehensiveness. Integrate the collected historical traffic analysis data to ensure data format consistency. Use historical traffic analysis data to train adversarial generative neural network models. During the training process, the GAN model generates new traffic data, which is compared with the actual historical data to gradually improve the quality of the generated data. The trained GAN model is used to generalize and enhance the historical traffic analysis data. The generated generalized historical traffic analysis data should contain richer features and samples. For example, the GAN model can learn and generate more plaintext data features of Trojan traffic to enhance the robustness of the model. Input the generalized historical traffic analysis data into the supervised learning algorithm model for training, select the appropriate supervised learning algorithm (such as decision tree, support vector machine, random forest, etc.), establish a binary classification mathematical model for analyzing traffic structure anomalies, verify and optimize the trained classification model to ensure the accuracy and reliability of the model, use an independent verification data set to evaluate the model, adjust the model parameters, improve the classification effect, and generate a classification model for analytical structure anomalies. Apply the trained analytical structure anomaly classification model to the traffic analysis data. The model classifies each data packet, identifies abnormal behavior and regular behavior in structured information, and divides the traffic analysis data into structured abnormal traffic analysis data and structured regular traffic analysis data according to the model classification results.

[0103] Preferably, step S3 comprises the following steps:

[0104] Step S31: Obtain user network behavior data;

[0105] Step S32: performing abnormal traffic source tracing feature analysis based on user network behavior data and structured abnormal traffic analysis data to generate abnormal traffic source tracing feature data;

[0106] Step S33: performing tracing anomaly classification processing on the structured regular traffic parsing data according to the abnormal traffic tracing feature data to obtain tracing abnormal traffic parsing data and tracing regular traffic parsing data.

[0107] The present invention obtains user network behavior data and associates network traffic data with specific user behavior, which helps to more comprehensively understand the source characteristics of traffic. Acquiring user behavior data helps to analyze the normal behavior patterns of users, identify abnormal behaviors, and improve the accuracy of threat detection. Combining user network behavior data and structured abnormal traffic analysis data, more accurate abnormal traffic tracing features can be extracted, which helps to track the source of abnormal traffic. Through abnormal traffic tracing feature analysis, potential network threat sources can be effectively located and network security protection capabilities can be enhanced. Using abnormal traffic tracing feature data for classification processing can accurately distinguish between tracing abnormal traffic and tracing regular traffic, improve the accuracy of detection, and through tracing abnormal classification processing, comprehensively analyze the source and behavior characteristics of abnormal traffic, provide reliable data support for further security measures, and effectively reduce the false alarm rate through tracing classification, ensuring that only real threats are identified and processed, and improve the reliability of the system and user experience.

[0108] In the embodiment of the present invention, a user behavior monitoring tool or a system log collection tool (such as Splunk, ELK, etc.) is installed and configured, and monitoring parameters are set, such as the captured user behavior type (login, web page access, file download, etc.), capture frequency and data filtering rules, to ensure that all relevant user behavior data can be captured, and the user behavior monitoring tool is started to collect user network behavior data in real time. The collected data includes user identity information (such as user ID), operation time, operation type (such as GET, POST request), accessed URL, used application, etc. The user network behavior data and structured abnormal traffic analysis data are preprocessed, including data cleaning (removing noise and invalid data), format conversion (ensuring that the formats of the two types of data are consistent) and feature extraction (extracting key behavior features and traffic features). The user network behavior data and the structured abnormal traffic analysis data are analyzed for abnormal traffic source tracing features, and traffic data of unknown origin or traffic data with abnormal sources are identified, and the identified abnormal behavior feature data is structured to generate abnormal traffic source tracing feature data. According to the abnormal traffic tracing feature data, the structured regular traffic parsing data is subjected to traffic tracing anomaly classification processing. Using the matching algorithm, the data whose source information in the structured regular traffic parsing data matches the abnormal traffic tracing feature data is marked as the tracing abnormal traffic parsing data, and the data whose source information in the structured regular traffic parsing data does not match the abnormal traffic tracing feature data is marked as the tracing regular traffic parsing data.

[0109] Preferably, step S32 includes the following steps:

[0110] Analyze the abnormal traffic source tracing information of user network behavior based on user network behavior data, and generate abnormal traffic source tracing data of user network behavior;

[0111] Based on the structured abnormal traffic analysis data and the abnormal traffic tracing data of user network behavior, abnormal traffic tracing feature analysis is performed to generate abnormal traffic tracing feature data.

[0112] The present invention analyzes abnormal traffic source tracing information through user network behavior data, accurately identifies abnormal traffic in user behavior, ensures the accuracy and reliability of tracing data, can timely discover abnormal traffic in user network behavior, help quickly identify potential security threats, and improve the timeliness of threat detection. By analyzing the user's behavior pattern, the difference between abnormal traffic source tracing information and abnormal traffic source tracing information of user network behavior is identified, such as tracing abnormal information of target address that cannot be traced, which provides important data support for subsequent feature analysis. Combined with structured abnormal traffic analysis data and user network behavior abnormal traffic source tracing data, comprehensive feature extraction is performed to generate more accurate and comprehensive abnormal traffic source tracing feature data. Through comprehensive analysis of multidimensional data, the accuracy of abnormal traffic source tracing feature analysis can be improved, and the accuracy of threat detection can be ensured. The generated abnormal traffic source tracing feature data can better identify the source of abnormal traffic, help quickly locate the corresponding abnormal traffic and respond to network threats, and improve network security protection capabilities. By integrating structured abnormal traffic analysis data and user behavior abnormal traffic source tracing data, deep fusion and optimization of data are achieved, and the overall efficiency of abnormal detection and analysis is improved.

[0113] In an embodiment of the present invention, the collected user network behavior data is preprocessed to ensure the integrity and consistency of the data. The data preprocessing includes removing noise data, repairing damaged data, filling missing data, converting data format, etc. to ensure data quality. Key features are extracted from the preprocessed user network behavior data. These features include but are not limited to user ID, access time, access frequency, operation type (such as GET, POST request), access URL, etc., to ensure that the extracted features can accurately reflect the user's network behavior and provide a basis for subsequent analysis. The extracted user network behavior features are analyzed using a behavior analysis algorithm to identify user abnormal behavior patterns. User abnormal behavior may include abnormal high-frequency access, access during non-working hours, access to abnormal URLs, etc. The corresponding traffic source is extracted based on the user's abnormal behavior, and the identified abnormal behavior pattern is recorded as user network behavior abnormal traffic tracing data. The abnormal traffic tracing feature data existing in the structured abnormal traffic parsing data and the user network behavior abnormal traffic tracing data is extracted, for example, the tracing information in the structured abnormal traffic parsing data and the user network behavior abnormal traffic tracing data is extracted, and the abnormal source node, virtual source node and other information are identified using the principal component analysis method to generate abnormal traffic tracing feature data.

[0114] Preferably, step S5 comprises the following steps:

[0115] Step S51: collecting traffic behavior information corresponding to preliminary safety traffic monitoring data and marking it as preliminary safety traffic behavior data;

[0116] Step S52: performing clustering pattern analysis on the preliminary safety traffic behavior data based on a clustering algorithm to generate clustered traffic behavior pattern data;

[0117] Step S53: performing abnormal traffic behavior pattern recognition on the preliminary safety traffic behavior data according to the clustered traffic behavior pattern data to obtain abnormal traffic behavior data;

[0118] Step S54: Perform network attack behavior analysis on the abnormal traffic behavior data to generate abnormal traffic network attack behavior evaluation data;

[0119] Step S55: Based on the abnormal traffic network attack behavior assessment data, network attack traffic identification is performed on the preliminary security traffic behavior data corresponding to the abnormal traffic behavior data to generate network attack traffic data;

[0120] Step S56: Design a network attack traffic security interception mechanism based on the network attack traffic data, and transmit the network attack traffic security interception mechanism to a preset network security detection system to perform malicious encrypted traffic interception operations.

[0121] The present invention can obtain detailed traffic behavior data by collecting traffic behavior information corresponding to preliminary safety traffic monitoring data, provide an accurate data basis for subsequent analysis, and mark preliminary safety traffic behavior data, which is helpful to clarify the attributes of the data and facilitate subsequent pattern recognition and analysis. The frequency domain signal is analyzed by clustering algorithm to find the pattern in the traffic behavior, identify different types of traffic behavior, and generate clustered traffic behavior pattern data to classify similar traffic behaviors, which is convenient for subsequent abnormal detection and analysis. By performing pattern recognition on preliminary safety traffic behavior data, abnormal traffic behavior can be accurately identified, the accuracy of threat detection can be improved, abnormal traffic behavior can be timely identified, and measures can be taken quickly to reduce the risks brought by network threats. In-depth analysis of abnormal traffic behavior data can identify potential network attack behaviors and provide detailed evaluation data. The generated abnormal traffic network attack behavior evaluation data can provide early warning information for the system to prevent potential attacks in advance. Using evaluation data to identify network attack traffic on preliminary safety traffic behavior data can more accurately identify network attack traffic and reduce false alarm rate. The generated network attack traffic data is used for the deployment of real-time protection measures to improve the security and response speed of the system. The network attack traffic security interception mechanism designed based on network attack traffic data can effectively intercept malicious encrypted traffic to prevent it from causing harm to network security. The interception mechanism is transmitted to the preset network security detection system to automatically perform the interception operation to achieve intelligent and automated network security protection. By intercepting malicious encrypted traffic, the overall security of the network is further improved to ensure the stability and reliability of the system.

[0122] As an embodiment of the present invention, refer to Figure 2 As shown, Figure 1 FIG. 5 is a flow chart of detailed implementation steps of step S5, in this embodiment, step S5 includes:

[0123] Step S51: collecting traffic behavior information corresponding to preliminary safety traffic monitoring data and marking it as preliminary safety traffic behavior data;

[0124] In an embodiment of the present invention, a traffic monitoring tool is used to collect in real time the traffic behavior information corresponding to the preliminary security traffic monitoring data, or the behavior information corresponding to the preliminary security traffic monitoring data collected by the log file in the above steps, and preliminary security traffic behavior data has been obtained to record the detailed behavior information of each traffic data packet, including the source IP address, destination IP address, access time, protocol type, access characteristics, data packet size, etc.

[0125] Step S52: performing clustering pattern analysis on the preliminary safety traffic behavior data based on a clustering algorithm to generate clustered traffic behavior pattern data;

[0126] In an embodiment of the present invention, the preliminary safety traffic behavior data is converted into a frequency domain signal, the frequency domain features are extracted, the time domain signal is converted into a frequency domain signal using methods such as fast Fourier transform (FFT), and the key features in the frequency domain signal, such as frequency components, amplitude, phase, etc., are extracted. The extracted feature data is structured to generate frequency domain signal feature data. An appropriate clustering algorithm (such as K-means, DBSCAN, etc.) is selected to perform cluster analysis on the frequency domain signal feature data. During the cluster analysis process, the data is divided into different groups according to the similarity to identify the pattern of traffic behavior. The results of the cluster analysis are structured to generate clustered traffic behavior pattern data to ensure that the data accurately reflects the pattern characteristics of the traffic behavior and provide a basis for subsequent anomaly detection.

[0127] Step S53: performing abnormal traffic behavior pattern recognition on the preliminary safety traffic behavior data according to the clustered traffic behavior pattern data to obtain abnormal traffic behavior data;

[0128] In the embodiment of the present invention, the clustered traffic behavior pattern data is used to perform pattern matching and anomaly identification on the preliminary security traffic behavior data. By comparing the difference between the current traffic behavior and the known pattern, the abnormal traffic behavior is identified, for example, using preset thresholds and rules to identify and mark the abnormal traffic behavior data, and record the characteristics of each abnormal behavior, including the type of abnormality (access overload, permission access abnormality), severity, occurrence time, etc., and the identified abnormal traffic behavior data is structured to generate abnormal traffic behavior data.

[0129] Step S54: Perform network attack behavior analysis on the abnormal traffic behavior data to generate abnormal traffic network attack behavior evaluation data;

[0130] In the embodiment of the present invention, attack behavior analysis is performed on abnormal traffic behavior data. For example, a decision tree algorithm is used to evaluate the lateral movement anomalies of abnormal traffic behavior, such as frequent port switching access, and authority penetration, and a joint decision tree is established through multiple evaluations. The joint decision tree can first analyze the lateral movement of traffic data to make abnormal decision judgments, and then evaluate the final abnormal traffic network attack behavior based on these lateral movement abnormal decision judgment data and authority penetration behavior, such as attack type (such as DDoS, SQL injection, cross-site scripting attack, etc.), attack target, attack path, etc., to generate abnormal traffic network attack behavior evaluation data.

[0131] Step S55: Based on the abnormal traffic network attack behavior assessment data, network attack traffic identification is performed on the preliminary security traffic behavior data corresponding to the abnormal traffic behavior data to generate network attack traffic data;

[0132] In the embodiment of the present invention, the abnormal traffic network attack behavior assessment data is matched with the preliminary security traffic behavior data to identify the corresponding network attack traffic. The identified network attack traffic data is recorded and marked, including detailed information such as attack type, source IP address, destination IP address, attack time, attack characteristics, malicious encryption characteristics, etc.

[0133] Step S56: Design a network attack traffic security interception mechanism based on the network attack traffic data, and transmit the network attack traffic security interception mechanism to a preset network security detection system to perform malicious encrypted traffic interception operations.

[0134] In the embodiment of the present invention, based on the identified network attack traffic data, a security interception mechanism for malicious encrypted traffic is designed, including interception rules, strategies and execution processes, to ensure that malicious traffic can be accurately intercepted. The designed interception mechanism is transmitted to a preset network security detection system to ensure the correct configuration and deployment of the interception mechanism, and can automatically execute interception when malicious traffic is detected. The network security detection system receives and executes the malicious encrypted traffic interception mechanism, monitors and intercepts the detected malicious traffic in real time, and ensures network security.

[0135] Preferably, step S52 includes the following steps:

[0136] Step S521: performing frequency domain signal conversion according to the preliminary safety traffic behavior data to generate a preliminary safety traffic behavior frequency domain signal;

[0137] Step S522: performing frequency domain signal time series feature analysis on the preliminary safety traffic behavior frequency domain signal to generate frequency domain signal time series feature data;

[0138] Step S523: designing a frequency domain signal clustering label of the frequency domain signal of the preliminary safety traffic behavior according to the frequency domain signal time series feature data;

[0139] Step S524: Based on the clustering algorithm and the frequency domain signal clustering label, the preliminary safety traffic behavior frequency domain signal is clustered and pattern recognition is performed to generate clustered traffic behavior pattern data.

[0140] The present invention converts the preliminary safety traffic behavior data into frequency domain signals and extracts the frequency domain features in the traffic behavior, which helps to more accurately identify and analyze the traffic behavior. The frequency domain conversion can effectively filter out the noise in the time domain signal and improve the clarity of the data and the accuracy of the analysis. The frequency domain signal is subjected to time series feature analysis to reveal the time characteristics of the traffic behavior and help identify the periodicity and abnormal patterns of the traffic behavior. Through the generation of time series feature data, the pattern of preliminary safety traffic behavior is more deeply understood, providing rich data support for subsequent cluster analysis. Cluster labels are designed based on time series feature data to provide an accurate classification basis for the frequency domain signals of preliminary safety traffic behavior, which helps to improve the effect of cluster analysis, effectively label the frequency domain signals, and provide clear classification standards for subsequent cluster pattern recognition. Using clustering algorithms and frequency domain signal clustering labels, clustering pattern recognition is performed on the frequency domain signals of preliminary security traffic behavior to accurately distinguish different types of traffic behavior patterns. The generated clustered traffic behavior pattern data can identify typical patterns and abnormal patterns in traffic behavior, providing an important reference for threat detection. Through clustering pattern recognition, abnormal traffic behavior can be identified more accurately, thereby improving the accuracy and reliability of network security threat detection.

[0141] In an embodiment of the present invention, a frequency domain conversion method is selected, such as fast Fourier transform (FFT) or discrete wavelet transform (DWT), and the preliminary safety traffic behavior data is effectively converted into a frequency domain signal according to characteristic information such as the access frequency and access load status of the preliminary safety traffic behavior data, and the main frequency components of the frequency domain signal are extracted, and the amplitude and phase information of these components are recorded to generate a preliminary safety traffic behavior frequency domain signal. The time series characteristics of the frequency domain signal are analyzed, including frequency distribution, energy distribution, peak frequency, etc., and the changes of the frequency domain signal in different time periods are recorded to identify the time series characteristics of the frequency domain signal. The frequency domain signal is analyzed using a time series analysis method, such as time frequency analysis (TFA) or short-time Fourier transform (STFT), and the key time series characteristics are extracted, such as the periodic changes of the signal, the changes of the frequency peak, etc., to generate the time series characteristic data of the frequency domain signal. According to the time series feature data of the frequency domain signal, the clustering label of the frequency domain signal is designed. The label design should be based on key features, such as frequency distribution, energy distribution, peak frequency, etc., to ensure that different types of traffic behaviors can be effectively distinguished. The generation rules of clustering labels, including the name of the label, feature range, etc., are formulated in advance to ensure that the generated labels can accurately reflect the characteristics of the frequency domain signal, which is convenient for subsequent clustering analysis. The generation rules are applied to generate clustering labels from the time series feature data of the frequency domain signal. The generated clustering labels are attached to the frequency domain signal of the preliminary safety traffic behavior to ensure the consistency of the labels and the frequency domain signal data. Select a suitable clustering algorithm, such as K-means, DBSCAN or hierarchical clustering, to ensure that the algorithm can effectively identify the pattern of the frequency domain signal, and configure the parameters of the algorithm, including the number of cluster centers, distance measurement method, etc. The frequency domain signal and its clustering label are input into the clustering algorithm for clustering analysis. The clustering process should be able to cluster similar frequency domain signals in the same category, identify different traffic behavior patterns, generate clustered traffic behavior pattern data, ensure that the data accurately reflects different traffic behavior patterns, and facilitate subsequent anomaly detection and analysis.

[0142] Preferably, step S523 includes the following steps:

[0143] Frequency domain fluctuation feature analysis is performed based on the frequency domain signal time series feature data to generate frequency domain fluctuation feature data; frequency domain peak feature analysis is performed based on the frequency domain signal time series feature data to generate frequency domain peak feature data; frequency domain signal clustering labels for preliminary safety traffic behavior frequency domain signals are designed based on the frequency domain fluctuation feature data and the frequency domain peak feature data.

[0144] The present invention converts the preliminary safety traffic behavior data into frequency domain signals to extract the frequency domain features in the traffic behavior, which helps to more accurately identify and analyze the traffic behavior. The frequency domain conversion can effectively filter out the noise in the time domain signal, improve the clarity of the data and the accuracy of the analysis. Performing time series feature analysis on the frequency domain signal reveals the time characteristics of the traffic behavior and helps identify the periodicity and abnormal patterns of the traffic behavior. By generating time series feature data, the pattern of preliminary safety traffic behavior can be more deeply understood, providing rich data support for subsequent cluster analysis. Designing cluster labels based on time series feature data provides an accurate classification basis for the frequency domain signals of preliminary safety traffic behavior, which helps to improve the effect of cluster analysis. Clustering labels effectively mark frequency domain signals and provide clear classification standards for subsequent clustering pattern recognition. Clustering algorithms and frequency domain signal clustering labels are used to perform clustering pattern recognition on the frequency domain signals of preliminary security traffic behavior, accurately distinguishing different types of traffic behavior patterns. The generated clustered traffic behavior pattern data can identify typical patterns and abnormal patterns in traffic behavior, providing an important reference for threat detection. Through clustering pattern recognition, abnormal traffic behavior can be identified more accurately, improving the accuracy and reliability of network security threat detection.

[0145] In an embodiment of the present invention, the time series feature data of the frequency domain signal is analyzed, the fluctuation pattern of the signal is identified, and the changes of the frequency domain signal in different time periods are recorded, including the fluctuation of the frequency amplitude, the periodic fluctuation, etc. Time series analysis tools such as the moving average method (Moving Average), the weighted moving average method (Weighted Moving Average), etc. are used to analyze the fluctuation characteristics of the frequency domain signal, extract the fluctuation characteristics, such as the fluctuation amplitude, the fluctuation frequency, the fluctuation period, etc., to ensure that the characteristics can reflect the fluctuation of the signal, and the extracted fluctuation characteristic data is structured to generate frequency domain fluctuation characteristic data. The time series feature data of the frequency domain signal is analyzed, the peak characteristics of the signal are identified, and the peak frequency, peak amplitude and other information of the frequency domain signal in different time periods are recorded. The peak detection algorithm, such as the local maximum value detection (Local Maxima Detection), etc., is used to extract the peak characteristics in the frequency domain signal, to ensure that the detected peak characteristics include the main frequency components and amplitude information of the signal, and to generate frequency domain peak feature data. Integrate the frequency domain fluctuation feature data and the frequency domain peak feature data. Based on the integrated feature data, design the clustering labels of the frequency domain signal. The labels should be based on key features, such as fluctuation amplitude, fluctuation frequency, peak frequency, peak amplitude, etc., to ensure that the labels can effectively distinguish different types of traffic behaviors. Formulate the generation rules of clustering labels, including the name of the label, feature range, etc., to ensure that the generated labels can accurately reflect the characteristics of the frequency domain signal, facilitate subsequent clustering analysis, and apply the generation rules to generate clustering labels based on the frequency domain fluctuation feature data and the frequency domain peak feature data.

[0146] Preferably, step S54 includes the following steps:

[0147] Step S541: Analyze the abnormal traffic lateral movement behavior according to the abnormal traffic behavior data to generate the abnormal traffic lateral movement behavior data; analyze the traffic lateral movement evaluation parameters based on the abnormal traffic lateral movement behavior data to generate the traffic lateral movement evaluation parameters; establish a traffic lateral movement decision tree evaluation model through the traffic lateral movement evaluation parameters;

[0148] Step S542: analyzing the abnormal traffic penetration behavior according to the abnormal traffic behavior data to generate abnormal traffic penetration behavior data; analyzing the traffic penetration assessment parameters based on the abnormal traffic penetration behavior data to generate traffic penetration assessment parameters, and establishing a traffic penetration decision tree assessment model through the traffic penetration assessment parameters;

[0149] Step S543: establishing a joint network attack behavior decision tree evaluation model based on the traffic lateral movement evaluation decision tree model and the traffic penetration evaluation decision tree model;

[0150] Step S544: Perform network attack behavior analysis on the abnormal traffic behavior data according to the joint network attack behavior decision tree evaluation model to generate abnormal traffic network attack behavior evaluation data.

[0151] The present invention can identify the behavior pattern of attackers' lateral expansion inside the network by analyzing the lateral movement behavior in abnormal traffic, which is helpful to discover and prevent potential threats in advance. The generated traffic lateral movement evaluation parameters can quantify the lateral movement characteristics in the traffic behavior, such as the relevant information of network attacks moving between different ports, and provide accurate data support for the evaluation model. The decision tree evaluation model established by the traffic lateral movement evaluation parameters can systematically evaluate and identify lateral movement behaviors, and improve the systematicness and accuracy of detection. By analyzing the penetration behavior in abnormal traffic, the behavior pattern of attackers attempting to penetrate the network, such as authority penetration and other behaviors, is identified, and the defense capability is enhanced. The generated traffic penetration evaluation parameters provide quantitative evaluation criteria for penetration behavior, which is helpful to accurately identify penetration behavior. The decision tree evaluation model established by the traffic penetration evaluation parameters can systematically identify and evaluate penetration behavior, and improve the comprehensiveness and accuracy of detection. By combining the evaluation models of lateral movement and penetration behavior, a joint network attack behavior decision tree evaluation model is established to comprehensively evaluate and analyze complex network attack behaviors. The joint model comprehensively considers multiple attack behaviors, improves the comprehensiveness and accuracy of detection, reduces the possibility of missed reports and false reports, comprehensively identifies network attack behaviors, improves overall protection capabilities, and enhances network security. The joint network attack behavior decision tree evaluation model is used to accurately analyze abnormal traffic behavior data and identify potential network attack behaviors. The generated abnormal traffic network attack behavior evaluation data provides detailed risk assessment information for further protection measures to timely discover and respond to network attacks, improve the system's response speed and security, and facilitate the formulation of targeted protection strategies.

[0152] As an embodiment of the present invention, refer to Figure 3 As shown, Figure 2 Detailed implementation steps of step S54 are shown in the flowchart. In this embodiment, step S5 includes:

[0153] Step S541: Analyze the abnormal traffic lateral movement behavior according to the abnormal traffic behavior data to generate the abnormal traffic lateral movement behavior data; analyze the traffic lateral movement evaluation parameters based on the abnormal traffic lateral movement behavior data to generate the traffic lateral movement evaluation parameters; establish a traffic lateral movement decision tree evaluation model through the traffic lateral movement evaluation parameters;

[0154] In an embodiment of the present invention, abnormal traffic behavior data is collected, relevant features of lateral movement behavior, such as source IP, target IP, port number, protocol type, timestamp, etc., are extracted, and a behavior analysis algorithm is used to identify lateral movement behavior in the network. Lateral movement behavior is usually manifested as one source IP accessing multiple target IPs, or the same target IP being accessed by multiple source IPs in a short period of time. The identified lateral movement behavior data is structured to generate abnormal traffic lateral movement behavior data. Evaluation parameter analysis is performed on the abnormal traffic lateral movement behavior data to extract evaluation parameters, such as access frequency, access success rate, access duration, data transmission volume, etc., and lateral movement evaluation parameters are generated through statistics and analysis. Using the lateral movement evaluation parameters, a decision tree model is established. The decision tree model helps to systematically evaluate and identify lateral movement behavior, configure the nodes and branches of the decision tree, ensure that the model can effectively distinguish between normal behavior and abnormal traffic lateral movement behavior, and establish a traffic lateral movement decision tree evaluation model based on the configured nodes and branches.

[0155] Step S542: analyzing the abnormal traffic penetration behavior according to the abnormal traffic behavior data to generate abnormal traffic penetration behavior data; analyzing the traffic penetration assessment parameters based on the abnormal traffic penetration behavior data to generate traffic penetration assessment parameters, and establishing a traffic penetration decision tree assessment model through the traffic penetration assessment parameters;

[0156] In an embodiment of the present invention, abnormal traffic behavior data is collected, and relevant features of penetration behavior, such as source IP, target IP, port number, traffic access permission confidence, traffic penetration behavior, etc., are extracted. A behavior analysis algorithm is used to identify penetration behavior in the network. Penetration behavior is usually manifested as a continuous attack on a specific target or an attempt to access protected resources, and abnormal traffic penetration behavior data is generated. Evaluation parameter analysis is performed on the abnormal traffic penetration behavior data, and evaluation parameters such as attack frequency, attack success rate, attack duration, data leakage amount, etc. are extracted. Through nonlinear feature analysis, penetration assessment parameters are generated. Using the penetration assessment parameters, a decision tree model is established. The decision tree model can help systematically evaluate and identify penetration behavior, configure the nodes and branches of the decision tree, ensure that the model can effectively distinguish between normal behavior and abnormal traffic penetration behavior, and establish a traffic penetration decision tree assessment model based on the configured nodes and branches.

[0157] Step S543: establishing a joint network attack behavior decision tree evaluation model based on the traffic lateral movement evaluation decision tree model and the traffic penetration evaluation decision tree model;

[0158] In an embodiment of the present invention, the lateral movement decision tree evaluation model and the penetration decision tree evaluation model are integrated, such as according to the output characteristics of the traffic lateral movement evaluation decision tree model and the traffic penetration evaluation decision tree model, and the corresponding decision tree model weights are configured to ensure that the integrated model can simultaneously consider lateral movement and penetration behavior to establish a joint network attack behavior decision tree evaluation model. Alternatively, the traffic penetration evaluation decision tree model is optimized for deep penetration evaluation based on the output of the traffic lateral movement evaluation decision tree model to construct a network attack behavior decision tree evaluation model for evaluating network behavior.

[0159] Step S544: Perform network attack behavior analysis on the abnormal traffic behavior data according to the joint network attack behavior decision tree evaluation model to generate abnormal traffic network attack behavior evaluation data.

[0160] In the embodiment of the present invention, the joint network attack behavior decision tree evaluation model is applied to abnormal traffic behavior data, and the model is used to analyze the data to identify attack behaviors in the network. According to the analysis results of the model, the attack behaviors in the abnormal traffic are identified, and the types, targets, source IP addresses, attack times, attack characteristics, etc. of the attack behaviors are analyzed to generate abnormal traffic network attack behavior evaluation data.

[0161] This specification provides a network security threat detection system based on machine learning, which is used to execute the network security threat detection method based on machine learning as described above. The network security threat detection system based on machine learning includes:

[0162] The network traffic monitoring module is used to obtain network interface data; perform network data flow monitoring processing on the network interface data based on a preset network data monitoring script to generate traffic monitoring data;

[0163] The flow anomaly analysis module is used to parse the data packets of the flow monitoring data to generate flow analysis data; based on the supervised learning algorithm, the flow analysis data is classified into structured information anomalies of the analyzed flow to obtain structured abnormal flow analysis data and structured regular flow analysis data;

[0164] The traffic source tracing anomaly analysis module is used to obtain user network behavior data; the structured regular traffic analysis data is subjected to traffic source tracing anomaly classification processing based on the user network behavior data and the structured abnormal traffic analysis data, and the abnormal traffic source tracing analysis data and the regular traffic source tracing analysis data are obtained respectively;

[0165] The abnormal traffic interception module is used to extract abnormal traffic analysis data from the traffic monitoring data according to the structured abnormal traffic analysis data and the traced abnormal traffic analysis data to obtain abnormal traffic analysis data, and transmit the abnormal traffic analysis data to the preset network security detection system to perform analysis of abnormal traffic interception operations; extract preliminary safety traffic monitoring data from the traffic monitoring data according to the traced conventional traffic analysis data to generate preliminary safety traffic monitoring data;

[0166] The malicious encrypted traffic interception module is used to collect traffic behavior information corresponding to the preliminary security traffic monitoring data and mark it as preliminary security traffic behavior data; to identify abnormal traffic behavior patterns of the preliminary security traffic behavior data based on the clustering algorithm to obtain abnormal traffic behavior data; to identify network attack traffic based on the abnormal traffic behavior data to generate network attack traffic data; to design a network attack traffic security interception mechanism based on the network attack traffic data, and to transmit the network attack traffic security interception mechanism to the preset network security detection system to perform malicious encrypted traffic interception operations.

[0167] The beneficial effect of the present application is that the network security threat detection method based on machine learning of the present invention significantly improves the accuracy and timeliness of detection through deep feature analysis, multi-level threat detection and real-time response. The system uses preset network traffic monitoring scripts, clustering algorithms and decision tree evaluation models to automatically perform data parsing, feature extraction and threat identification, reduce manual intervention and improve efficiency. Combined with frequency domain signal conversion, timing feature analysis, fluctuation features and peak feature extraction, the traffic behavior characteristics are deeply mined, and a comprehensive decision model is used to comprehensively evaluate complex network attack behaviors. In addition, the adaptability and robustness of the abnormal analysis of the plaintext data structure of the traffic are improved by adversarial generative neural network models, and a network attack traffic security interception mechanism is designed and implemented to effectively prevent potential threats and ensure network security.

[0168] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.

[0169] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A network security threat detection method based on machine learning, characterized in that: The following steps are involved: Step S1: Obtain network interface data; Perform network data flow monitoring and processing on network interface data based on a preset network data monitoring script to generate flow monitoring data; Step S2: parsing the data packets of the traffic monitoring data to generate traffic parsing data; Based on the supervised learning algorithm, the traffic analysis data is subjected to structured information anomaly classification processing to obtain structured abnormal traffic analysis data and structured regular traffic analysis data respectively; Step S3: Obtain user network behavior data; According to the user network behavior data and the structured abnormal traffic analysis data, the structured regular traffic analysis data is analyzed for traffic source tracing abnormal classification processing, and the source tracing abnormal traffic analysis data and the source tracing regular traffic analysis data are obtained respectively; Step S4: extract abnormal traffic analysis data from the traffic monitoring data according to the structured abnormal traffic analysis data and the traceable abnormal traffic analysis data to obtain abnormal traffic analysis data, and transmit the abnormal traffic analysis data to a preset network security detection system to perform analysis of abnormal traffic interception operations; Extract preliminary safety flow monitoring data from flow monitoring data based on the conventional flow analysis data of traceability, and generate preliminary safety flow monitoring data; Step S5: collecting the traffic behavior information corresponding to the preliminary safety traffic monitoring data and marking it as preliminary safety traffic behavior data; Based on the clustering algorithm, the abnormal traffic behavior pattern is identified on the preliminary safety traffic behavior data to obtain the abnormal traffic behavior data; Based on the abnormal traffic behavior data, the preliminary security traffic behavior data is used to identify network attack traffic, and network attack traffic data is generated; A network attack traffic security interception mechanism is designed based on network attack traffic data, and the network attack traffic security interception mechanism is transmitted to the preset network security detection system to perform malicious encrypted traffic interception operations.

2. The network security threat detection method based on machine learning according to claim 1 is characterized in that: Step S1 includes the following steps: Step S11: Obtain network interface data; Step S12: performing initial network data flow monitoring processing on the network interface data according to a preset network data monitoring script to generate initial flow monitoring data; Step S13: collecting flow monitoring logs according to the initial flow monitoring data to generate flow monitoring log data; Step S14: extracting log features from the flow monitoring log data to generate flow monitoring log feature data; using the flow monitoring log feature data to identify monitoring log feature information of the initial flow monitoring data to generate flow monitoring data.

3. The network security threat detection method based on machine learning according to claim 1 is characterized in that: Step S2 includes the following steps: Step S21: parsing the data packets of the traffic monitoring data to generate preliminary traffic parsing data; Step S22: performing data preprocessing on the preliminary traffic analysis data, wherein the data preprocessing includes data cleaning, data format conversion, feature extraction, and data storage to generate traffic analysis data; Step S23: Obtain historical traffic analysis data; Step S24: using the adversarial generative neural network model to perform data generalization and enhancement processing on the historical traffic analysis data to generate generalized historical traffic analysis data; establishing a binary classification mathematical model for analyzing traffic structure anomalies based on the supervised learning algorithm and the generalized historical traffic analysis data to generate an analysis structure anomaly classification model; Step S25: using the analytical structure anomaly classification model to perform structural information anomaly classification processing on the traffic analysis data, and obtain structured abnormal traffic analysis data and structured regular traffic analysis data respectively.

4. The network security threat detection method based on machine learning according to claim 1 is characterized in that: Step S3 includes the following steps: Step S31: Obtain user network behavior data; Step S32: performing abnormal traffic source tracing feature analysis based on user network behavior data and structured abnormal traffic analysis data to generate abnormal traffic source tracing feature data; Step S33: performing tracing anomaly classification processing on the structured regular traffic parsing data according to the abnormal traffic tracing feature data to obtain tracing abnormal traffic parsing data and tracing regular traffic parsing data.

5. The network security threat detection method based on machine learning according to claim 4 is characterized in that: Step S32 includes the following steps: Analyze the abnormal traffic source tracing information of user network behavior based on user network behavior data, and generate abnormal traffic source tracing data of user network behavior; Based on the structured abnormal traffic analysis data and the abnormal traffic tracing data of user network behavior, abnormal traffic tracing feature analysis is performed to generate abnormal traffic tracing feature data.

6. The network security threat detection method based on machine learning according to claim 1 is characterized in that: Step S5 includes the following steps: Step S51: collecting traffic behavior information corresponding to preliminary safety traffic monitoring data and marking it as preliminary safety traffic behavior data; Step S52: performing clustering pattern analysis on the preliminary safety traffic behavior data based on a clustering algorithm to generate clustered traffic behavior pattern data; Step S53: performing abnormal traffic behavior pattern recognition on the preliminary safety traffic behavior data according to the clustered traffic behavior pattern data to obtain abnormal traffic behavior data; Step S54: Perform network attack behavior analysis on the abnormal traffic behavior data to generate abnormal traffic network attack behavior evaluation data; Step S55: Based on the abnormal traffic network attack behavior assessment data, network attack traffic identification is performed on the preliminary security traffic behavior data corresponding to the abnormal traffic behavior data to generate network attack traffic data; Step S56: Design a network attack traffic security interception mechanism based on the network attack traffic data, and transmit the network attack traffic security interception mechanism to a preset network security detection system to perform malicious encrypted traffic interception operations.

7. The network security threat detection method based on machine learning according to claim 6 is characterized in that: Step S52 includes the following steps: Step S521: performing frequency domain signal conversion according to the preliminary safety traffic behavior data to generate a preliminary safety traffic behavior frequency domain signal; Step S522: performing frequency domain signal time series feature analysis on the preliminary safety traffic behavior frequency domain signal to generate frequency domain signal time series feature data; Step S523: designing a frequency domain signal clustering label of the frequency domain signal of the preliminary safety traffic behavior according to the frequency domain signal time series feature data; Step S524: Based on the clustering algorithm and the frequency domain signal clustering label, the preliminary safety traffic behavior frequency domain signal is clustered and pattern recognition is performed to generate clustered traffic behavior pattern data.

8. The network security threat detection method based on machine learning according to claim 7 is characterized in that: Step S523 includes the following steps: Frequency domain fluctuation feature analysis is performed based on the frequency domain signal time series feature data to generate frequency domain fluctuation feature data; frequency domain peak feature analysis is performed based on the frequency domain signal time series feature data to generate frequency domain peak feature data; frequency domain signal clustering labels for preliminary safety traffic behavior frequency domain signals are designed based on the frequency domain fluctuation feature data and the frequency domain peak feature data.

9. The network security threat detection method based on machine learning according to claim 6, characterized in that: Step S54 includes the following steps: Step S541: Analyze the abnormal traffic lateral movement behavior according to the abnormal traffic behavior data to generate the abnormal traffic lateral movement behavior data; analyze the traffic lateral movement evaluation parameters based on the abnormal traffic lateral movement behavior data to generate the traffic lateral movement evaluation parameters; establish a traffic lateral movement decision tree evaluation model through the traffic lateral movement evaluation parameters; Step S542: analyzing the abnormal traffic penetration behavior according to the abnormal traffic behavior data to generate abnormal traffic penetration behavior data; analyzing the traffic penetration assessment parameters based on the abnormal traffic penetration behavior data to generate traffic penetration assessment parameters, and establishing a traffic penetration decision tree assessment model through the traffic penetration assessment parameters; Step S543: establishing a joint network attack behavior decision tree evaluation model based on the traffic lateral movement evaluation decision tree model and the traffic penetration evaluation decision tree model; Step S544: Perform network attack behavior analysis on the abnormal traffic behavior data according to the joint network attack behavior decision tree evaluation model to generate abnormal traffic network attack behavior evaluation data.

10. A network security threat detection system based on machine learning, characterized in that: Used to perform the network security threat detection method based on machine learning as claimed in claim 1, the network security threat detection system based on machine learning includes: The network traffic monitoring module is used to obtain network interface data; perform network data flow monitoring processing on the network interface data based on a preset network data monitoring script to generate traffic monitoring data; The flow anomaly analysis module is used to parse the data packets of the flow monitoring data to generate flow analysis data; based on the supervised learning algorithm, the flow analysis data is classified into structured information anomalies of the analyzed flow to obtain structured abnormal flow analysis data and structured regular flow analysis data; The traffic source tracing anomaly analysis module is used to obtain user network behavior data; the structured regular traffic analysis data is subjected to traffic source tracing anomaly classification processing based on the user network behavior data and the structured abnormal traffic analysis data, and the abnormal traffic source tracing analysis data and the regular traffic source tracing analysis data are obtained respectively; The abnormal traffic interception module is used to extract abnormal traffic analysis data from the traffic monitoring data according to the structured abnormal traffic analysis data and the traced abnormal traffic analysis data to obtain abnormal traffic analysis data, and transmit the abnormal traffic analysis data to the preset network security detection system to perform analysis of abnormal traffic interception operations; extract preliminary safety traffic monitoring data from the traffic monitoring data according to the traced conventional traffic analysis data to generate preliminary safety traffic monitoring data; The malicious encrypted traffic interception module is used to collect traffic behavior information corresponding to the preliminary security traffic monitoring data and mark it as preliminary security traffic behavior data; to identify abnormal traffic behavior patterns of the preliminary security traffic behavior data based on the clustering algorithm to obtain abnormal traffic behavior data; to identify network attack traffic based on the abnormal traffic behavior data to generate network attack traffic data; to design a network attack traffic security interception mechanism based on the network attack traffic data, and to transmit the network attack traffic security interception mechanism to the preset network security detection system to perform malicious encrypted traffic interception operations.