Network traffic data mining method and system based on artificial intelligence

Through the network traffic data mining method based on deep learning, a network threat event prediction network is constructed to generate presumed intrusion paths and threat logic explanation data, which solves the problem of difficulty in detecting unknown attack behaviors with existing technologies and improves network security early warning and protection capabilities. .

CN118509266BActive Publication Date: 2024-09-24SICHUAN YUNHU FUTURE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410977888.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-09-24
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing network threat detection methods are difficult to detect unknown or mutated attack behaviors, and lack an in-depth understanding of network threat behaviors, resulting in ineffective defense measures.

Method used

The network traffic data mining method based on deep learning is used to build a network threat event prediction network through multiple network learning stages, generate presumed intrusion paths and threat logic explanation data, and combine the confidence estimation of threat logic data to provide more accurate defense strategies.

Benefits of technology

It realizes early warning of unknown attack behaviors and detailed threat logic explanation, improves the early warning capability and protection efficiency of network security, and provides a more accurate basis for decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118509266B
    Figure CN118509266B
Patent Text Reader

Abstract

The present application provides a network traffic data mining method and system based on artificial intelligence, which uses a sample network traffic log sequence to train a network threat event prediction network. Each log contains network traffic data, network threat label data, and threat logic data. During the learning process, an inferred intrusion path is generated through a first network traffic behavior logic diagram, and threat logic explanation data is generated in combination with the first and second network traffic behavior logic diagrams. At the same time, the confidence of each threat logic data is estimated and sorted using a third network traffic behavior logic diagram sequence. Finally, the network threat event prediction network is trained using each inferred intrusion path, each threat logic explanation data, and each estimated arrangement data to improve the early warning and response capabilities of network security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to an artificial intelligence-based network traffic data mining method and system. Background Art

[0002] With the rapid development of information technology and the widespread popularity of network applications, network security issues have become increasingly prominent. The means of network attacks are constantly evolving, threatening the information security of enterprises and individuals. Therefore, how to effectively detect and prevent network threats has become an urgent problem to be solved.

[0003] Traditional network threat detection methods mainly rely on known attack patterns and signatures, but this method is often helpless in the face of unknown or mutated attacks. In recent years, data mining technology based on artificial intelligence has been widely used in the field of network security, providing new ideas for detecting and preventing network threats.

[0004] At present, although there are some AI-based network threat detection methods, they can only detect known attack behaviors, and the detection effect on unknown attack behaviors or mutated attack behaviors is not ideal. In addition, existing methods usually lack in-depth understanding and explanation of network threat behaviors, making it difficult for defenders to formulate effective preventive measures. Summary of the invention

[0005] In view of this, the purpose of this application is to provide a network traffic data mining method and system based on artificial intelligence, which aims to mine potential network threat behaviors from massive network traffic data through deep learning technology, and provide stronger protection for network security. Compared with the prior art, it can not only detect known attack behaviors, but also warn unknown attack behaviors, and provide defenders with detailed threat logic interpretation data, which helps to formulate more accurate defense strategies. Specifically, the network traffic data is deeply mined by artificial intelligence technology, and an accurate network threat event prediction network is constructed through network parameter learning in multiple network learning stages. By deeply analyzing the logical behavior of network traffic data, the inferred intrusion path and threat logic interpretation data are generated, so as to more comprehensively understand the nature and pattern of network threats. In addition, the confidence of threat logic data can be estimated and arranged to provide defenders with more accurate decision-making basis. That is, this application aims to solve the shortcomings of the prior art in network threat detection and provide more efficient and accurate defense means for the field of network security.

[0006] According to a first aspect of the present application, a network traffic data mining method based on artificial intelligence is provided, the method comprising:

[0007] The initialized network threat event prediction network is subjected to network parameter learning in multiple network learning phases according to the sample network traffic log sequence; wherein each sample network traffic log comprises: sample network traffic data, one or more network threat label data and a corresponding threat logic data sequence, wherein the one or more network threat label data at least comprises actual network threat behavior, and the actual network threat behavior is used to reflect the actual intrusion path of the sample network traffic data for the calibrated service node, and each threat logic data sequence comprises one or more threat logic data, and each threat logic data comprises threat logic knowledge data between the corresponding network threat label data and the sample network traffic data;

[0008] Among them, in the network parameter learning of a network learning phase, based on the first network traffic behavior logic diagram of each selected sample network traffic data, the estimated intrusion path of the corresponding sample network traffic data for the calibrated service node is generated respectively;

[0009] Generate threat logic interpretation data corresponding to the corresponding actual network threat behavior based on the second network traffic behavior logic diagram of the target threat logic data corresponding to each actual network threat behavior, combined with the corresponding first network traffic behavior logic diagram;

[0010] According to the third network traffic behavior logic diagram sequence of one or more threat logic data sequences corresponding to each sample network traffic data, respectively, the confidence of each threat logic data corresponding to the corresponding sample network traffic data is estimated and arranged to generate estimated arrangement data corresponding to each sample network traffic data;

[0011] The network threat event prediction network is trained according to each inferred intrusion path, each threat logic explanation data and each estimated arrangement data.

[0012] In a possible implementation manner of the first aspect, each threat logic data is composed of one or more logic chains, the second network traffic behavior logic diagram of the threat logic data includes the second network traffic behavior logic diagram of each logic chain in the threat logic data, and each threat logic interpretation data is used to reflect the confidence of each logic chain in the corresponding target threat logic data; the step of determining the confidence of each logic chain in each threat logic interpretation data includes:

[0013] If the currently determined confidence is the confidence of the first logical chain in the target threat logic data, then obtaining the confidence of the first logical chain according to the first network traffic behavior logic diagram of the sample network traffic data corresponding to the target threat logic data;

[0014] If the currently determined confidence is the confidence of a non-first logical chain in the target threat logical data, the confidence of the non-first logical chain is obtained based on the first network traffic behavior logic diagram of the sample network traffic data corresponding to the target threat logical data, and the second network traffic behavior logic diagram corresponding to other logical chains before the current logical chain in the target threat logical data.

[0015] In a possible implementation manner of the first aspect, each threat logic data is composed of one or more logic chains, and the confidence of each threat logic data corresponding to the corresponding sample network traffic data is estimated and arranged according to the third network traffic behavior logic graph sequence of the one or more threat logic data sequences corresponding to each sample network traffic data, including:

[0016] According to the network threat event prediction network, a behavior logic diagram is generated for each threat logic data in one or more threat logic data sequences corresponding to each sample network traffic data, and a third network traffic behavior logic diagram sequence corresponding to each threat logic data sequence is generated; each third network traffic behavior logic diagram sequence contains a third network traffic behavior logic diagram corresponding to each threat logic data in the corresponding threat logic data sequence;

[0017] According to the third network traffic behavior logic diagram sequences corresponding to the threat logic data sequences, respectively, combined with the corresponding first network traffic behavior logic diagram, predict the confidence of each logic chain respectively included in each threat logic data in the corresponding threat logic data sequence;

[0018] According to the confidence of each logic chain in each threat logic data respectively included in each threat logic data sequence, the confidence of each threat logic data corresponding to the corresponding threat logic data sequence is estimated and arranged.

[0019] In a possible implementation manner of the first aspect, the step of determining the confidence level of each threat logic data includes:

[0020] Obtaining the network traffic behavior weight of the confidence level corresponding to each logic chain in the threat logic data;

[0021] The confidence of the threat logic data is generated based on the weights of each network traffic behavior and the number of logic chains contained in the threat logic data. The confidence of the threat logic data is positively correlated with the weights of each network traffic behavior and negatively correlated with the number of logic chains.

[0022] In a possible implementation manner of the first aspect, each threat logic interpretation data is used to reflect the confidence of each logic chain in the corresponding target threat logic data, and the training of the network threat event prediction network according to each inferred intrusion path, each threat logic interpretation data and each estimated arrangement data includes:

[0023] Obtaining a first error parameter according to a characteristic distance between each network threat event prediction data and the corresponding actual network threat label data;

[0024] Obtaining confidences of respective logic chains respectively included in each threat logic interpretation data, and obtaining a second error parameter according to each confidence, wherein the confidence is negatively correlated with the second error parameter;

[0025] Obtaining a third error parameter according to a characteristic distance between each estimated arrangement data and the corresponding labeled arrangement data;

[0026] The network threat event prediction network is trained according to the first error parameter, the second error parameter, and the third error parameter.

[0027] In a possible implementation of the first aspect, the annotated arrangement data is obtained by loading each threat logic data corresponding to the corresponding sample network traffic data into a previously trained network traffic behavior sorting model.

[0028] In a possible implementation of the first aspect, the first network traffic behavior logic diagram corresponding to each sample network traffic data includes: a global behavior pattern vector of the corresponding sample network traffic data, and an associated event vector of each network behavior event in the corresponding sample network traffic data, and the first network traffic behavior logic diagram of each selected sample network traffic data is used to generate an estimated intrusion path of the corresponding sample network traffic data for the calibrated service node, including:

[0029] Generate a behavior logic diagram for each selected sample network traffic data according to the network threat event prediction network, and generate a first network traffic behavior logic diagram for each sample network traffic data;

[0030] According to each global behavior pattern vector in each first network traffic behavior logic diagram, respectively generate an estimated intrusion path of the corresponding sample network traffic data for the calibrated service node;

[0031] The second network traffic behavior logic diagram based on the target threat logic data corresponding to each actual network threat behavior is combined with the corresponding first network traffic behavior logic diagram to generate threat logic interpretation data corresponding to the corresponding actual network threat behavior, including:

[0032] Generate a behavior logic diagram for each target threat logic data corresponding to each actual network threat behavior according to the network threat event prediction network, and generate a second network traffic behavior logic diagram for the target threat logic data corresponding to each actual network threat behavior;

[0033] Based on the second network traffic behavior logic diagram of the target threat logic data corresponding to each actual network threat behavior, the threat logic interpretation data corresponding to the corresponding actual network threat behavior is generated by combining the corresponding global behavior pattern vector and the associated event vector of each corresponding network behavior event.

[0034] In a possible implementation of the first aspect, the step of generating, according to each global behavior pattern vector in each first network traffic behavior logic graph, an estimated intrusion path of the corresponding sample network traffic data for the calibrated service node includes:

[0035] Parsing the global behavior pattern vector in the first network traffic behavior logic diagram of each sample network traffic data, wherein the global behavior pattern vector includes the overall behavior characteristics of the sample network traffic data, and the overall behavior characteristics include traffic size, duration, distribution of source IP and destination IP, and port usage;

[0036] Parsing the global behavior pattern vector to extract key vector data related to network threat behavior;

[0037] Cluster the parsed key vector data to identify different path patterns, which represent different network threat intrusion paths.

[0038] Based on the identified path patterns, combined with the time sequence and logical relationship in the sample network traffic data, the candidate intrusion paths are reconstructed, wherein in the reconstruction process, the candidate intrusion paths are generated using the shortest path algorithm in graph theory;

[0039] Evaluate the reconstructed multiple candidate intrusion paths, wherein the evaluation criteria include at least one of the complexity of the path, similarity with known threat patterns, and frequency of abnormal behavior;

[0040] According to the evaluation results, the presumed intrusion paths for the calibrated business nodes are screened out;

[0041] In a possible implementation of the first aspect, the step of generating threat logic interpretation data corresponding to the corresponding actual network threat behavior based on the second network traffic behavior logic graph of the target threat logic data corresponding to each actual network threat behavior, combining the corresponding global behavior pattern vector and the associated event vector of each corresponding network behavior event, includes:

[0042] Analyze a second network traffic behavior logic graph of the target threat logic data corresponding to the actual network threat behavior, and identify key nodes and key edges in the second network traffic behavior logic graph, wherein the key nodes and key edges represent key steps in the network threat behavior and logical relationships between the key steps;

[0043] Extracting a global behavior pattern vector from a first network traffic behavior logic graph of the sample network traffic data, wherein the global behavior pattern vector reflects the overall behavior characteristics of the sample network traffic data;

[0044] Extracting the correlation event vector of each network behavior event, wherein the sample network traffic data represents the correlation relationship between different network behavior events;

[0045] The second network traffic behavior logic graph is merged with the global behavior pattern vector and the associated event vector, and the target network traffic characteristics and target associated event vector having a significant effect in the actual network threat behavior are identified by comparing the corresponding relationship between the key nodes and key edges in the second network traffic behavior logic graph and the global behavior pattern vector and the associated event vector;

[0046] Based on the fusion result, a framework of threat logic interpretation data is constructed, the target network traffic characteristics and target associated event vectors are filled in the framework, and each logical chain in the threat logic interpretation data of the actual network threat behavior is constructed.

[0047] In a possible implementation of the first aspect, the method further includes:

[0048] Loading the target network traffic data into the network threat event prediction network that has completed network parameter learning;

[0049] Based on the network threat event prediction network that has completed network parameter learning, a first network traffic behavior logic diagram of the target network traffic data is obtained, and based on the first network traffic behavior logic diagram, an estimated intrusion path and threat logic interpretation data of the target network traffic data for the calibrated business node is generated.

[0050] According to the second aspect of the present application, there is provided an artificial intelligence-based network traffic data mining system, the artificial intelligence-based network traffic data mining system comprising a machine-readable storage medium and a processor, the machine-readable storage medium storing machine-executable instructions, and when the processor executes the machine-executable instructions, the artificial intelligence-based network traffic data mining system implements the aforementioned artificial intelligence-based network traffic data mining method.

[0051] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, the aforementioned artificial intelligence-based network traffic data mining method is implemented.

[0052] According to any one of the above aspects, the technical effect of the present application is:

[0053] The embodiments of the present application can effectively learn and extract the characteristics of network threat events from sample network traffic data, and build an accurate network threat event prediction network. Secondly, by generating presumed intrusion paths, potential network threat behaviors can be simulated and predicted, thereby improving the early warning capability of network security. Furthermore, by combining the threat logic interpretation data generated by the first network traffic behavior logic diagram and the second network traffic behavior logic diagram, the logic and pattern of network threat behavior can be more deeply understood, which helps to formulate more effective preventive measures. In addition, by estimating and arranging the confidence of the threat logic data and generating estimated arrangement data, the severity and urgency of network threats can be more accurately assessed. Finally, the training effect of the network threat event prediction network can be comprehensively improved, and the protection capability and response speed of network security can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0055] Figure 1 A flowchart of an artificial intelligence-based network traffic data mining method provided in an embodiment of the present application.

[0056] Figure 2 A schematic diagram of the component structure of an artificial intelligence-based network traffic data mining system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical scheme and advantages of the embodiment of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below according to the drawings in the embodiment of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description, and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the embodiment of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add multiple other operations to the flowchart under the guidance of the content of the present application, and can also destroy multiple operations from the flowchart.

[0058] Figure 1 The flowchart of the network traffic data mining method based on artificial intelligence provided by the embodiment of the present application is shown. It should be understood that in other embodiments, the order of some steps in the network traffic data mining method based on artificial intelligence of this embodiment can be shared with each other according to actual needs, or some steps can be omitted or maintained. The detailed steps of the network traffic data mining method based on artificial intelligence include:

[0059] Step S110, based on the sample network traffic log sequence, the initialized network threat event prediction network is subjected to network parameter learning in multiple network learning stages. Each sample network traffic log contains: sample network traffic data, one or more network threat label data and a corresponding threat logic data sequence, wherein the one or more network threat label data at least contain actual network threat behavior, and the actual network threat behavior is used to reflect the actual intrusion path of the sample network traffic data for the calibrated service node, and each threat logic data sequence contains one or more threat logic data, and each threat logic data includes threat logic knowledge data between the corresponding network threat label data and the sample network traffic data.

[0060] In detail, the sample network traffic log sequence is a series of network traffic logs, each of which records network activity data within a period of time, usually including information such as source IP, destination IP, port, protocol type, network transmission characteristics, etc., to reflect the communication situation in the network. For example, within a certain period of time, a large number of TCP SYN packets were sent from the computer with IP address 192.168.1.100 to the computer with IP address 192.168.1.101. This record is a sample in the network traffic log sequence.

[0061] The network threat event prediction network is a neural network model designed specifically for predicting network threat events. It predicts possible network threats in the future by learning patterns in network traffic log sequences.

[0062] The sample network traffic data is network activity data within a specific time period extracted from network traffic logs, and is used to train and verify a network threat event prediction network.

[0063] The network threat label data is a label corresponding to the network traffic data, which is used to indicate whether the network traffic contains a certain network threat. For example, if a certain section of network traffic data is marked as "DDoS attack", then this label is the network threat label data of this section of network traffic.

[0064] The threat logic data sequence is a series of data describing the logical relationship between network threats and network traffic. The threat logic knowledge data is data describing the specific logical relationship between network threats and network traffic, and is a component of the threat logic data sequence. The actual network threat behavior refers to the network threat behavior that actually occurs in the network traffic data, such as DDoS attacks, port scanning, etc.

[0065] Among them, in the network, some key business processing points or servers may be regarded as important nodes. If these nodes are attacked or invaded, they can have a serious impact on the entire network. These nodes are called designated business nodes. For example, a company's database server is a designated business node because it stores a large amount of sensitive data. If it is attacked, it can lead to data leakage or service interruption.

[0066] The actual intrusion path refers to the path that the attacker actually takes to invade the network and reach the designated service node. For example, the attacker may first find the network's weaknesses by scanning open ports, and then use these weaknesses to conduct further attacks, and finally reach and destroy the designated service node. This process is the actual intrusion path.

[0067] Based on the above explanations, in this embodiment, the server first initializes a network threat event prediction network. Then, the server obtains a series of sample network traffic log sequences from the database. Each sample network traffic log records various information of network traffic in detail. These sample network traffic logs not only contain the original sample network traffic data, but also are marked with one or more network threat label data. These network threat label data reflect the actual threat behavior in the network, such as DDoS attacks, malware infections, etc. More importantly, each network threat label data is also accompanied by a corresponding threat logic data sequence, which describes in detail how the threat spreads and evolves in the network.

[0068] As a result, the server began to use these rich sample network traffic log sequences to train the network threat event prediction network. During the training process, the network threat event prediction network gradually learned how to identify potential threat patterns from complex network traffic and how to predict future threat behaviors based on these patterns.

[0069] Step S120, in a network parameter learning phase, based on the first network traffic behavior logic diagram of each selected sample network traffic data, respectively generate an estimated intrusion path of the corresponding sample network traffic data for the calibrated service node.

[0070] In detail, the first network traffic behavior logic diagram is a logic diagram generated based on the sample network traffic data, which shows the behavior pattern and possible relationship of the network traffic, and can help analyze the direction, source, destination and possible abnormal behavior of the network traffic. For example, for a certain sample network traffic data, the first network traffic behavior logic diagram may show the data flow from a specific IP address to a calibrated service node, including the network devices such as routers and switches passed through, as well as the size and frequency of the traffic and other information.

[0071] The inferred intrusion path refers to the possible intrusion path inferred based on the first network traffic behavior logic diagram, which can be the intrusion route that the attacker may take by analyzing the behavior pattern of the network traffic and identifying abnormal or suspicious activities. For example, if the first network traffic behavior logic diagram shows that there is a large amount of abnormal traffic from the same IP pointing to the marked service node, it can be inferred that this is an inferred intrusion path, indicating that the IP may be trying to attack this node.

[0072] That is, in this embodiment, in a specific network learning phase, the server selects a portion of representative sample network traffic data. First, using the trained network threat event prediction network, a first network traffic behavior logic diagram is generated for these sample network traffic data, and these first network traffic behavior logic diagrams show various behaviors in the sample network traffic data and the relationships between them.

[0073] Next, based on the information in these first network traffic behavior logic diagrams, the server begins to infer the intrusion path of the marked business nodes that the network traffic may target. For example, in the scenario of an e-commerce website, the server may find a series of abnormal network requests that attempt to access and modify user account information. By analyzing the source, target, and behavior patterns of these requests, the server can infer how the attacker bypasses security measures step by step and finally reaches and tampers with user data.

[0074] Step S130, based on the second network traffic behavior logic diagram of the target threat logic data corresponding to each actual network threat behavior, combined with the corresponding first network traffic behavior logic diagram, generates threat logic interpretation data corresponding to the corresponding actual network threat behavior.

[0075] In detail, the second network traffic behavior logic diagram is a logic diagram generated based on the target threat logic data corresponding to the actual network threat behavior, showing the specific manifestation and logical association of the actual threat behavior in the network. For example, for an actual DDoS attack, the second network traffic behavior logic diagram may show information such as the source, target, attack time and intensity of the attack traffic, helping analysts understand the full picture of the attack.

[0076] The threat logic interpretation data is data generated by combining the first network traffic behavior logic diagram and the second network traffic behavior logic diagram, and is used to interpret the confidence of each logic chain in the corresponding target threat logic data.

[0077] That is, in this embodiment, after analyzing the estimated intrusion path of the sample network traffic, the server then needs to deeply understand the actual network threat behavior. For example, it extracts the target threat logic data corresponding to each actual threat behavior and generates a second network traffic behavior logic graph for these target threat logic data.

[0078] These second network traffic behavior logic diagrams reveal the actual execution path and key steps of the threat behavior in the network. By comparing these second network traffic behavior logic diagrams with the previous first network traffic behavior logic diagrams, the server can generate threat logic interpretation data that describes in detail how the threat spreads, evolves, and ultimately achieves its malicious purpose in the network.

[0079] Step S140, estimates and arranges the confidence of each threat logic data corresponding to the corresponding sample network traffic data according to the third network traffic behavior logic diagram sequence of one or more threat logic data sequences corresponding to each sample network traffic data, and generates estimated arrangement data corresponding to each sample network traffic data.

[0080] In detail, the third network traffic behavior logic diagram sequence is a logic diagram sequence generated according to the threat logic data sequence corresponding to the sample network traffic data, and each logic diagram shows the performance and association of a certain threat logic data in the network traffic. For example, for a sample network traffic data containing multiple threat logic data, the third network traffic behavior logic diagram sequence may include multiple logic diagrams, each logic diagram showing a different threat behavior or pattern.

[0081] The confidence level is a measure of the credibility of threat logic data. It represents the system's assessment of the possibility and accuracy of the threat logic data. For example, for a threat logic data, if it appears frequently in network traffic and highly matches a known attack pattern, its confidence level will be high.

[0082] The estimated arrangement data is generated by sorting the confidence of each threat logic data, which can help analysts prioritize the threat logic data with high confidence, so as to more effectively deal with network threats. For example, a series of threat logic data can be sorted according to confidence to generate an estimated arrangement data list. Based on this list, analysts can start investigation and response from the threat logic data with the highest confidence.

[0083] That is, in this embodiment, next, the server needs to evaluate and rank the confidence of the threat logic data corresponding to each sample network traffic data. First, a third network traffic behavior logic diagram sequence is generated for each threat logic data sequence. These third network traffic behavior logic diagram sequences not only show the overall behavior of the threat, but also go deep into each logic chain and details of the threat.

[0084] By analyzing these third network traffic behavior logic graph sequences and combining them with the previous first network traffic behavior logic graph, the server can predict the confidence of each logic chain in each threat logic data. Then, based on these confidences, the server sorts the threat logic data and generates estimated arrangement data, which reflects the server's judgment and confidence on different threat behaviors.

[0085] Step S150 , training the network threat event prediction network according to each inferred intrusion path, each threat logic explanation data and each estimated arrangement data.

[0086] Finally, the server uses all the information collected in the previous steps - the inferred intrusion path, threat logic interpretation data, and estimated arrangement data - to further train and optimize the network threat event prediction network. By continuously adjusting the parameters and structure of the network, the server enables the network threat event prediction network to more accurately identify and predict future network threat behaviors.

[0087] In this way, when new, unknown network traffic data appears, the server can quickly and accurately determine whether it contains potential threats and take corresponding defensive measures in a timely manner.

[0088] Based on the above steps, the embodiment of the present application can effectively learn and extract the characteristics of network threat events from the sample network traffic data, and build an accurate network threat event prediction network. Secondly, by generating an inferred intrusion path, it is possible to simulate and predict potential network threat behaviors, thereby improving the early warning capability of network security. Furthermore, by combining the threat logic interpretation data generated by the first network traffic behavior logic diagram and the second network traffic behavior logic diagram, the logic and pattern of network threat behavior can be more deeply understood, which helps to formulate more effective preventive measures. In addition, by estimating and arranging the confidence of the threat logic data and generating estimated arrangement data, the severity and urgency of the network threat can be more accurately assessed. Finally, the training effect of the network threat event prediction network can be comprehensively improved, and the protection capability and response speed of network security can be improved.

[0089] In a possible implementation, each threat logic data is composed of one or more logic chains, the second network traffic behavior logic diagram of the threat logic data includes the second network traffic behavior logic diagram of each logic chain in the threat logic data, and each threat logic interpretation data is used to reflect the confidence of each logic chain in the corresponding target threat logic data. The step of determining the confidence of each logic chain in each threat logic interpretation data includes:

[0090] Step A110, if the currently determined confidence is the confidence of the first logical chain in the target threat logical data, the confidence of the first logical chain is obtained according to the first network traffic behavior logic diagram of the sample network traffic data corresponding to the target threat logical data.

[0091] In this embodiment, the server first selects a target threat logic data from the threat logic data warehouse for processing, and the target threat logic data includes multiple logic chains, each of which represents a possible network threat path or behavior pattern.

[0092] Next, the server checks whether the confidence level to be determined belongs to the first logic chain in the target threat logic data. In this scenario, it is assumed to be the first logic chain. The server retrieves the first network traffic behavior logic diagram of the sample network traffic data corresponding to the target threat logic data from the storage, and the first network traffic behavior logic diagram shows the behavior pattern and possible relationship of the network traffic in detail.

[0093] The server carefully analyzes this first network traffic behavior logic diagram, especially the part related to the first logic chain. For example, you can view information such as the traffic source, destination, data type transmitted, time and frequency. Based on the analysis of the first network traffic behavior logic diagram, the server uses preset algorithms and models to calculate the confidence of the first logic chain, which reflects the possibility and accuracy of the actual existence of the logic chain in the network traffic. The server records the calculated confidence in the threat logic interpretation data and stores it in the database for subsequent analysis and use.

[0094] Step A120, if the currently determined confidence is the confidence of the non-first logical chain in the target threat logical data, then the confidence of the non-first logical chain is obtained based on the first network traffic behavior logic diagram of the sample network traffic data corresponding to the target threat logical data, and the second network traffic behavior logic diagram corresponding to other logical chains before the current logical chain in the target threat logical data.

[0095] Further, the server continues to process the target threat logic data, and after processing the first logic chain, the server continues to process the next (non-first) logic chain in the target threat logic data.

[0096] The server confirms that the confidence to be determined currently does not belong to the first logical chain. In addition to obtaining the first network traffic behavior logic diagram of the sample network traffic data, the server also needs to obtain the second network traffic behavior logic diagram corresponding to other logical chains before the current logical chain. The server combines the first network traffic behavior logic diagram with the second network traffic behavior logic diagram of the previous logical chain for comprehensive analysis. For example, the relationship between different logical chains, the consistency of traffic patterns, and whether there is evidence that supports or contradicts each other can be compared. Based on the results of the comprehensive analysis, the server calculates the confidence of the current logical chain, which takes into account the impact of the previous logical chain and the actual performance of the current logical chain in the network traffic. The server adds the newly calculated confidence to the threat logic interpretation data and updates the records in the database, so that the confidence of each logical chain is accurately recorded in the threat logic interpretation data.

[0097] In a possible implementation, each threat logic data is composed of one or more logic chains, and step S140 may include:

[0098] Step S141, based on the network threat event prediction network, a behavior logic diagram is generated for each threat logic data in one or more threat logic data sequences corresponding to each sample network traffic data, and a third network traffic behavior logic diagram sequence corresponding to each threat logic data sequence is generated. Each third network traffic behavior logic diagram sequence contains a third network traffic behavior logic diagram corresponding to each threat logic data in the corresponding threat logic data sequence.

[0099] In this embodiment, for each sample network traffic data, the server first identifies the threat logic data sequences therein, and these threat logic data sequences represent possible network threat behaviors and patterns.

[0100] Next, the server uses a pre-trained network threat event prediction network to process the identified threat logic data sequence. For each threat logic data in the threat logic data sequence, the server generates a corresponding behavior logic graph, namely, the third network traffic behavior logic graph.

[0101] As the server processes each threat logic data, a complete third network traffic behavior logic diagram sequence is gradually formed, which clearly shows the threat behaviors in the network traffic and the logical relationships between them.

[0102] Step S142, predicting the confidence of each logic chain respectively included in each threat logic data in the corresponding threat logic data sequence based on the third network traffic behavior logic diagram sequence corresponding to each threat logic data sequence and combining with the corresponding first network traffic behavior logic diagram.

[0103] In this embodiment, for each sample network traffic data, the server again obtains its corresponding first network traffic behavior logic diagram, and the first network traffic behavior logic diagram provides an overall perspective and baseline behavior of the network traffic.

[0104] The server combines and analyzes the first network traffic behavior logic diagram with the third network traffic behavior logic diagram sequence. By comparing and contrasting, the server can more accurately understand the actual performance of the logic chain in each threat logic data in the network traffic.

[0105] Based on the above analysis, the server can predict the confidence of each logical chain in each threat logic data, which reflects the possibility and accuracy of the logical chain existing in the network traffic.

[0106] Step S143 , estimating and arranging the confidences of the threat logic data corresponding to the corresponding threat logic data sequences according to the confidences of the respective logic chains in the threat logic data respectively included in the threat logic data sequences.

[0107] The server first summarizes the confidence information of each logical chain in all threat logic data, which provides a data basis for subsequent estimation and arrangement. Based on the confidence information of the logical chain, the server further estimates the overall confidence of each threat logic data, which takes into account the correlation and impact between logical chains.

[0108] Finally, the server sorts each threat logic data according to its confidence. High-confidence threat logic data is prioritized so that analysts can focus on the most likely network threats more quickly.

[0109] In a possible implementation, the step of determining the confidence level of each threat logic data includes:

[0110] Step B110, obtaining the network traffic behavior weight of the confidence level corresponding to each logic chain in the threat logic data.

[0111] In this embodiment, for each logical chain in the threat logic data, the server analyzes the corresponding network traffic behavior, which includes key information such as the source and destination of the traffic, the type of data transmitted, the size and frequency of the traffic.

[0112] Based on the in-depth analysis of network traffic behavior, the server can assign a network traffic behavior weight to each logical chain, which reflects the importance or influence of the logical chain in the network traffic. For example, a logical chain that appears frequently and transmits a large amount of sensitive data can be given a higher weight.

[0113] For example, for each logical chain, a network traffic behavior weight can be assigned to it according to multiple characteristics of its network traffic behavior (such as traffic size, frequency, data type, etc.), and the weight can be calculated by a weighted scoring system. For example:

[0114] Network traffic behavior weight (W_i) = α * traffic size score + β * frequency score + γ * data type score + ...

[0115] Among them, Wi is the network traffic behavior weight of the ith logical chain, α, β, γ, etc. are the weight coefficients of each feature score, which can be determined by experience or machine learning algorithms to ensure that they can accurately reflect the contribution of each feature in judging the importance of the logical chain.

[0116] Step B120, generates the confidence of the threat logic data based on the weights of each network traffic behavior and the number of logic chains contained in the threat logic data, wherein the weights of each network traffic behavior and the confidence of the threat logic data are positively correlated, and the number of logic chains and the confidence of the threat logic data are negatively correlated.

[0117] After obtaining the network traffic behavior weights of all logical chains, the server can summarize these network traffic behavior weights. This process may involve weighted averaging of the weights or other statistical methods to ensure that the weight of each logical chain can be reasonably considered.

[0118] The server also considers the number of logical chains in the threat logic data. Generally speaking, the more logical chains there are, the more complex the threat behavior is, but it may also increase the risk of false positives. Therefore, there is a negative correlation between the number of logical chains and the confidence of the threat logic data.

[0119] Combining the summary results of network traffic behavior weights and the number of logic chains, the server begins to calculate the confidence of threat logic data. This process balances the weights between various factors to ensure the accuracy of the confidence. Finally, the server can output the calculated confidence result, which can determine the credibility of the threat logic data and make more accurate decisions.

[0120] For example, after obtaining the network traffic behavior weights of each logic chain, the confidence of the threat logic data can be calculated in combination with the number of logic chains. Here, a simple formula can be used, which takes into account the sum of all logic chain weights and the number of logic chains:

[0121] Confidence (C) = (Σ(W_i) / N) * (1 / (1 + exp(-k * (N - N_0))))

[0122] In this formula:

[0123] Σ(W_i) is the sum of the network traffic behavior weights of all logical chains.

[0124] N is the number of logical chains.

[0125] exp(-k * (N - N_0)) is an adjustment factor to account for the effect of the number of logical chains on the confidence. When the number of logical chains increases, this factor decreases, thereby reducing the confidence (because the number of logical chains is negatively correlated with the confidence).

[0126] k is a scaling factor that controls the sensitivity of the number of logical chains to the impact of confidence.

[0127] N_0 is a benchmark number. When the number of logical chains is equal to this value, the adjustment factor is 1, which means that the confidence level is not affected.

[0128] The purpose of this formula is to adjust the confidence by considering the number of logical chains based on the weight of the logical chain network traffic behavior. When the number of logical chains is small, the confidence is mainly affected by the weight; when the number of logical chains increases, the confidence will be reduced to a certain extent.

[0129] It is worth noting that these formulas are only exemplary and may need to be adjusted and optimized according to specific circumstances in actual applications.

[0130] In a possible implementation, each threat logic interpretation data is used to reflect the confidence of each logic chain in the corresponding target threat logic data. Step S150 may include:

[0131] Step S151 , obtaining a first error parameter according to a characteristic distance between each network threat event prediction data and the corresponding actual network threat label data.

[0132] In this embodiment, the server calculates the characteristic distance between each network threat event prediction data and the corresponding actual network threat label data. The characteristic distance can measure the difference between the predicted data and the real data.

[0133] Based on the calculated characteristic distance, the server obtains a first error parameter, which reflects the accuracy of the network threat event prediction network in predicting network threat events.

[0134] Step S152, obtaining the confidence of each logic chain respectively included in each threat logic interpretation data, and obtaining a second error parameter according to each confidence, wherein the confidence is negatively correlated with the second error parameter.

[0135] In this embodiment, the server calculates the second error parameter according to the confidence of each logic chain. Since the confidence and the second error parameter are negatively correlated, the error parameter corresponding to a high confidence will be relatively low.

[0136] Step S153 , obtaining a third error parameter according to a characteristic distance between each estimated arrangement data and the corresponding labeled arrangement data.

[0137] In this embodiment, the server calculates the characteristic distance between the estimated arrangement data and the labeled arrangement data, and obtains a third error parameter based on the characteristic distance, which reflects the accuracy of the network threat event prediction network in event sorting estimation.

[0138] Step S154: training the network threat event prediction network according to the first error parameter, the second error parameter, and the third error parameter.

[0139] Based on the aggregated error parameters, the server adjusts the parameters of the network threat event prediction network in order to reduce these errors and improve the prediction accuracy of the network threat event prediction network.

[0140] The server continuously optimizes the network parameters through multiple iterative training processes until the network's prediction performance reaches a satisfactory level.

[0141] Exemplarily, the formula of the first error parameter is as follows:

[0142] The first error parameter (sum from i=1 to n)

[0143] Where: n is the number of samples, yi is the actual network threat label data of the i-th sample, and ŷi is the prediction value of the network threat event prediction network for the i-th sample

[0144] The second error parameter is related to the confidence of each logic chain in the threat logic interpretation data, and the formula is as follows:

[0145] The second error parameter (The outer layer sums from i=1 to n, and the inner layer sums from j=1 to m)

[0146] Where: n is the number of samples, m is the number of logical chains, cij is the confidence of the jth logical chain in the ith sample (usually normalized), and pij is the network's predicted probability of the jth logical chain in the ith sample.

[0147] The third error parameter measures the difference between the estimated permutation data and the labeled permutation data, and the formula is as follows:

[0148] The third error parameter (The outer layer sums from i=1 to n, the middle layer sums from j=1 to m-1, and the inner layer sums from k=j+1 to m)

[0149] Where: n is the number of samples, m is the length of the sorted list, sij and sik are the scores (or sorting criteria) of the jth and kth elements in the ith sample respectively.

[0150] When training the network threat event prediction network, the above three error parameters are combined to form a total loss function, which can be a weighted sum of the three error parameters:

[0151] Total loss = α*first error parameter + β*second error parameter + γ*third error parameter

[0152] Among them, α, β, and γ are hyperparameters used to balance the importance of different error parameters. Then, gradient descent or other optimization algorithms are used to minimize this total loss function to train the network threat event prediction network. By iteratively updating the weight parameters of the network, the difference between the predicted data and the actual data is gradually reduced, and the prediction accuracy of the network is improved.

[0153] In a possible implementation, the annotated arrangement data is obtained by loading each threat logic data corresponding to the corresponding sample network traffic data into a previously trained network traffic behavior sorting model.

[0154] In this embodiment, the server has a pre-trained network traffic behavior sorting model, which is trained on the basis of a large amount of historical network traffic data and is used to sort and evaluate network traffic behavior.

[0155] The server inputs the loaded threat logic data into the network traffic behavior sorting model, which processes and analyzes the threat logic data.

[0156] Based on the processing results of the network traffic behavior sorting model, the server obtains a set of labeled arrangement data. These labeled arrangement data are the sorting annotations of each threat logic data in the sample network traffic data, reflecting their possibility and importance in network threat events.

[0157] The server stores the generated annotation arrangement data for subsequent use. These data can be used to train the network threat event prediction network to improve its prediction accuracy and reliability. At the same time, they can also be used as benchmark data for evaluating the performance of the network threat event prediction network.

[0158] In a possible implementation, the first network traffic behavior logic diagram corresponding to each sample network traffic data includes: a global behavior pattern vector of the corresponding sample network traffic data, and an associated event vector of each network behavior event in the corresponding sample network traffic data. Step S120 may include:

[0159] Step S121, generating a behavior logic diagram for each selected sample network traffic data according to the network threat event prediction network, and generating a first network traffic behavior logic diagram for each sample network traffic data.

[0160] Step S122, based on each global behavior pattern vector in each first network traffic behavior logic diagram, generate an estimated intrusion path for the corresponding sample network traffic data for the calibrated service node.

[0161] In this embodiment, the server inputs these sample network traffic data into the network threat event prediction network. Through the processing of the network threat event prediction network, the server obtains the first network traffic behavior logic diagram corresponding to each sample network traffic data. These first network traffic behavior logic diagrams graphically display the global behavior pattern of network traffic, including the association and interaction between various network behavior events.

[0162] From the generated first network traffic behavior logic diagram, the server extracts the global behavior pattern vectors of each sample network traffic data. These global behavior pattern vectors are the key features of the logic diagram and represent the overall behavior trend and pattern of the network traffic.

[0163] The server analyzes specific calibrated business nodes, which are key parts of the network and may be potential intrusion targets or attack weaknesses. The server needs to understand the location and role of these calibrated business nodes in the network.

[0164] Combining the global behavior pattern vector and the information of the calibrated business nodes, the server begins to generate the corresponding sample network traffic data for the estimated intrusion paths of these nodes. These estimated intrusion paths reveal how potential attackers may exploit the behavior patterns of network traffic to invade the calibrated business nodes.

[0165] Once the presumed intrusion paths are generated, the server can store them and conduct in-depth analysis. These paths are of great value in understanding the security status of the network, identifying potential threats, and formulating defense strategies.

[0166] Step S130 may include:

[0167] Step S131, based on the network threat event prediction network, a behavior logic diagram is generated for each target threat logic data corresponding to each actual network threat behavior, to generate a second network traffic behavior logic diagram of the target threat logic data corresponding to each actual network threat behavior.

[0168] Step S132, based on the second network traffic behavior logic diagram of the target threat logic data corresponding to each actual network threat behavior, combined with the corresponding global behavior pattern vector and the associated event vector of each corresponding network behavior event, generates threat logic interpretation data corresponding to the corresponding actual network threat behavior.

[0169] In this embodiment, the server will first select the corresponding target threat logic data for each actual network threat behavior, and the server will input these target threat logic data into the network threat event prediction network. Through the processing of the network threat event prediction network, the server generates a second network traffic behavior logic diagram for the target threat logic data corresponding to each actual network threat behavior. These second network traffic behavior logic diagrams show in detail the behavior patterns and logical relationships of network traffic under specific threat behaviors.

[0170] Next, the server extracts the global behavior pattern vector and the associated event vector of each network behavior event from the first network traffic behavior logic diagram generated previously, and combines the second network traffic behavior logic diagram with the global behavior pattern vector and the associated event vector extracted from the first network traffic behavior logic diagram. The specific logic of the actual network threat behavior can be compared and analyzed with the behavior pattern of the overall network traffic.

[0171] Through comparison and analysis, the server generates threat logic interpretation data corresponding to the actual network threat behavior. The server stores the generated threat logic interpretation data and conducts in-depth analysis. These data are crucial for understanding the causes of network threat behaviors, predicting future threat trends, and formulating effective defense strategies.

[0172] In a possible implementation, step S122 may include:

[0173] Step S1221, parse the global behavior pattern vector in the first network traffic behavior logic diagram of each sample network traffic data, wherein the global behavior pattern vector contains the overall behavior characteristics of the sample network traffic data, and the overall behavior characteristics include traffic size, duration, distribution of source IP and destination IP, and port usage.

[0174] In this embodiment, the server first loads the first network traffic behavior logic diagram corresponding to a certain sample network traffic data, and the first network traffic behavior logic diagram contains the global behavior pattern vector of the network traffic. The server begins to parse this global behavior pattern vector, which contains the overall behavior characteristics of the network traffic, such as traffic size, duration, distribution of source IP and destination IP, port usage, etc. For example, the server finds that the traffic volume increases abnormally in a certain time period, the duration is long, and the source IP is mainly concentrated in several specific address segments, and the destination ports are mostly common service ports.

[0175] Step S1222: parse the global behavior pattern vector to extract key vector data related to network threat behavior.

[0176] After parsing the complete behavioral pattern vectors, the server further analyzes these behavioral features to find data related to network threat behavior. For example, the server noticed that certain ports were used at an unusually high frequency, which are usually related to remote command execution or file transfer.

[0177] Based on the analysis results, the server extracts key vector data that is closely related to network threat behaviors, such as abnormal port usage and source IP addresses.

[0178] Step S1223 , clustering the parsed key vector data to identify different path patterns, where different path patterns represent different network threat intrusion paths.

[0179] The server uses a clustering algorithm to cluster the extracted key vector data, with the goal of grouping similar data points into one category. Through clustering, the server discovered several different behavior patterns, each of which may represent the prototype of a network threat intrusion path. Based on clustering, the server further identifies different path patterns, which reflect the intrusion strategies that network threat actors may adopt.

[0180] Step S1224, based on the identified path patterns, combined with the time sequence and logical relationship in the sample network traffic data, reconstruct the candidate intrusion path, wherein in the reconstruction process, the shortest path algorithm in graph theory is used to generate the candidate intrusion path.

[0181] The server begins to reconstruct candidate intrusion paths based on the time sequence and logical relationships in the sample network traffic data. For example, the server finds that a source IP first attempts to access multiple ports for detection, and then focuses on attacking a specific port. During the reconstruction process, the server uses the shortest path algorithm in graph theory to generate candidate intrusion paths, which helps to find the most effective path that an attacker may choose.

[0182] Step S1225, evaluating the reconstructed multiple candidate intrusion paths, wherein the evaluation criteria include at least one of the complexity of the path, the similarity with the known threat pattern, and the frequency of occurrence of abnormal behavior.

[0183] Step S1226: Filter out the estimated intrusion path for the calibrated service node according to the evaluation result.

[0184] The server evaluates the reconstructed candidate intrusion paths. The evaluation criteria include the complexity of the path, the similarity to known threat patterns, the frequency of abnormal behavior, etc. For example, although a path is complex, it is highly similar to a known advanced persistent threat (APT) attack pattern and is therefore considered risky.

[0185] Based on the evaluation results, the server screens out presumed intrusion paths for the calibrated business nodes. These presumed intrusion paths are considered to be the most likely intrusion methods taken by attackers and require special attention and prevention.

[0186] In a possible implementation, step S132 may include:

[0187] Step S1321, analyze the second network traffic behavior logic graph of the target threat logic data corresponding to the actual network threat behavior, identify key nodes and key edges in the second network traffic behavior logic graph, and the key nodes and key edges represent the key steps in the network threat behavior and the logical relationship between the key steps.

[0188] In this embodiment, the server first loads the second network traffic behavior logic graph of the target threat logic data corresponding to a certain actual network threat behavior, analyzes the second network traffic behavior logic graph, and identifies the key nodes and key edges in the graph. For example, in the second network traffic behavior logic graph of a DDoS attack, the key nodes may include the attack source, the attacked target, the amplifier, etc., and the key edges represent the data flow direction and logical relationship between these nodes.

[0189] Step S1322: extracting a global behavior pattern vector from the first network traffic behavior logic diagram of the sample network traffic data, wherein the global behavior pattern vector reflects the overall behavior characteristics of the sample network traffic data.

[0190] The server loads the first network traffic behavior logic diagram of the sample network traffic data corresponding to the second network traffic behavior logic diagram. From the first network traffic behavior logic diagram, the server extracts a global behavior pattern vector, which reflects the overall behavior characteristics of the sample network traffic.

[0191] Step S1323: extracting the correlation event vector of each network behavior event, wherein the sample network traffic data represents the correlation relationship between different network behavior events.

[0192] The server deeply analyzes the sample network traffic data and identifies different network behavior events, such as SYN request, ACK response, etc. For each network behavior event, the server extracts its associated event vector, which describes the time sequence and association relationship between different events.

[0193] Step S1324, merge the second network traffic behavior logic graph with the global behavior pattern vector and the associated event vector, and identify the target network traffic characteristics and target associated event vector that play a significant role in the actual network threat behavior by comparing the correspondence between the key nodes and key edges in the second network traffic behavior logic graph and the global behavior pattern vector and the associated event vector.

[0194] The server fuses the second network traffic behavior logic graph with the global behavior pattern vector and the associated event vector, and identifies target network traffic features (such as abnormal traffic peaks) and target associated event vectors (such as abnormal SYN request frequency) that play a significant role in actual network threat behaviors by comparing the correspondence between key nodes and key edges in the second network traffic behavior logic graph and the global behavior pattern vector and the associated event vector.

[0195] Step S1325, based on the fusion result, construct a framework of threat logic explanation data, fill in the target network traffic characteristics and target associated event vectors in the framework, and construct various logical chains in the threat logic explanation data of the actual network threat behavior.

[0196] Based on the fusion results, the server constructs a framework for threat logic interpretation data, which will contain all the key steps and logical relationships of actual network threat behaviors. Fill in the identified target network traffic characteristics and target association event vectors in the framework to construct various logical chains in the threat logic interpretation data of actual network threat behaviors. For example, in the threat logic interpretation data of a DDoS attack, the logical chain may include multiple links such as the attack source initiating a large number of SYN requests, amplifying traffic through amplifiers, and ultimately causing denial of service to the attacked target.

[0197] In a possible implementation, the method further includes:

[0198] Step S160, loading the target network traffic data into the network threat event prediction network that has completed network parameter learning.

[0199] Step S170, based on the network threat event prediction network that has completed network parameter learning, obtain the first network traffic behavior logic diagram of the target network traffic data, and based on the first network traffic behavior logic diagram, generate the estimated intrusion path and threat logic interpretation data of the target network traffic data for the calibrated business node.

[0200] In this embodiment, in the application stage, the server first obtains target network traffic data from security equipment, network monitoring tools or other data sources, loads the target network traffic data into a network threat event prediction network that has completed network parameter learning, and outputs a first network traffic behavior logic diagram of the target network traffic data through calculation and processing of the network threat event prediction network. This logic diagram graphically displays various behavior patterns and logical relationships in the network traffic.

[0201] Next, the first network traffic behavior logic diagram is analyzed to identify key nodes and key paths. These key nodes may represent important network behaviors or events, while key paths may represent potential intrusion paths. Based on the analysis of the first network traffic behavior logic diagram, the server infers possible intrusion paths. These paths start from the initial attack entry and reach the demarcated business node, showing the steps and strategies that the attacker may take. In addition to inferring the intrusion path, the server also generates threat logic interpretation data based on the first network traffic behavior logic diagram.

[0202] Finally, the server outputs the inferred intrusion path and threat logic interpretation data to the user interface or stores it in the database for further analysis and response by the security team.

[0203] Figure 2 The network traffic data mining system 100 based on artificial intelligence shown includes: a processor 1001 and a memory 1003. Among them, the processor 1001 and the memory 1003 are connected, such as through a bus 1002. Optionally, the network traffic data mining system 100 based on artificial intelligence may also include a transceiver 1004, which can be used for data interaction between the server and other servers, such as data transmission and / or data reception. It should be noted that the transceiver 1004 is not limited to one in actual scheduling, and the structure of the network traffic data mining system 100 based on artificial intelligence does not constitute a limitation on the embodiments of the present application.

[0204] Processor 1001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0205] The bus 1002 may include a path to transmit information between the above components. The bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0206] The memory 1003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to carry or store program code and can be read by a computer, without limitation herein.

[0207] The memory 1003 is used to store program codes for executing the embodiments of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the program codes stored in the memory 1003 to implement the steps shown in the above method embodiments.

[0208] An embodiment of the present application provides a computer-readable storage medium having program code stored thereon. When the program code is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0209] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless there is clear explanation in this article, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders based on demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages according to the actual implementation scenario, and some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured based on demand, and the embodiment of the present application does not limit this.

[0210] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A network traffic data mining method based on artificial intelligence, characterized in that: The method comprises: The initialized network threat event prediction network is subjected to network parameter learning in multiple network learning phases according to the sample network traffic log sequence; wherein each sample network traffic log comprises: sample network traffic data, one or more network threat label data and a corresponding threat logic data sequence, wherein the one or more network threat label data at least comprises actual network threat behavior, and the actual network threat behavior is used to reflect the actual intrusion path of the sample network traffic data for the calibrated service node, and each threat logic data sequence comprises one or more threat logic data, and each threat logic data comprises threat logic knowledge data between the corresponding network threat label data and the sample network traffic data; Among them, in the network parameter learning of a network learning stage, based on the first network traffic behavior logic diagram of each selected sample network traffic data, the estimated intrusion path of the corresponding sample network traffic data for the calibration service node is generated respectively, and the first network traffic behavior logic diagram is a logic diagram generated based on the sample network traffic data, which shows the behavior pattern and possible relationship of the network traffic; A second network traffic behavior logic diagram based on the target threat logic data corresponding to each actual network threat behavior is combined with the corresponding first network traffic behavior logic diagram to generate threat logic interpretation data corresponding to the corresponding actual network threat behavior, wherein the second network traffic behavior logic diagram is a logic diagram generated based on the target threat logic data corresponding to the actual network threat behavior, and shows the specific manifestation and logical association of the actual threat behavior in the network; According to the third network traffic behavior logic diagram sequence of one or more threat logic data sequences corresponding to each sample network traffic data, the confidence of each threat logic data corresponding to the corresponding sample network traffic data is estimated and arranged to generate estimated arrangement data corresponding to each sample network traffic data, wherein the third network traffic behavior logic diagram sequence is a logic diagram sequence generated according to the threat logic data sequence corresponding to the sample network traffic data, and each logic diagram shows the performance and association of the threat logic data in the network traffic; The network threat event prediction network is trained according to each inferred intrusion path, each threat logic explanation data and each estimated arrangement data.

2. The network traffic data mining method based on artificial intelligence according to claim 1 is characterized in that: Each threat logic data is composed of one or more logic chains, the second network traffic behavior logic diagram of the threat logic data includes the second network traffic behavior logic diagram of each logic chain in the threat logic data, and each threat logic interpretation data is used to reflect the confidence of each logic chain in the corresponding target threat logic data; The steps for determining the confidence of each logical chain in each threat logic interpretation data include: If the currently determined confidence is the confidence of the first logic chain in the target threat logic data, then obtaining the confidence of the first logic chain according to the first network traffic behavior logic diagram of the sample network traffic data corresponding to the target threat logic data; If the currently determined confidence is the confidence of a non-first logical chain in the target threat logical data, the confidence of the non-first logical chain is obtained based on the first network traffic behavior logic diagram of the sample network traffic data corresponding to the target threat logical data, and the second network traffic behavior logic diagram corresponding to other logical chains before the current logical chain in the target threat logical data.

3. The network traffic data mining method based on artificial intelligence according to claim 1 is characterized in that: Each threat logic data is composed of one or more logic chains, and the confidence of each threat logic data corresponding to the corresponding sample network traffic data is estimated and arranged according to the third network traffic behavior logic diagram sequence of the one or more threat logic data sequences corresponding to each sample network traffic data, including: According to the network threat event prediction network, a behavior logic diagram is generated for each threat logic data in one or more threat logic data sequences corresponding to each sample network traffic data, and a third network traffic behavior logic diagram sequence corresponding to each threat logic data sequence is generated; each third network traffic behavior logic diagram sequence contains a third network traffic behavior logic diagram corresponding to each threat logic data in the corresponding threat logic data sequence; According to the third network traffic behavior logic diagram sequences corresponding to the threat logic data sequences, respectively, combined with the corresponding first network traffic behavior logic diagram, predict the confidence of each logic chain respectively included in each threat logic data in the corresponding threat logic data sequence; According to the confidence of each logic chain in each threat logic data respectively included in each threat logic data sequence, the confidence of each threat logic data corresponding to the corresponding threat logic data sequence is estimated and arranged.

4. The network traffic data mining method based on artificial intelligence according to claim 3 is characterized in that: The steps to determine the confidence level of each threat logic data include: Obtaining the network traffic behavior weight of the confidence level corresponding to each logic chain in the threat logic data; The confidence of the threat logic data is generated based on the weights of each network traffic behavior and the number of logic chains contained in the threat logic data. The confidence of the threat logic data is positively correlated with the weights of each network traffic behavior and negatively correlated with the number of logic chains.

5. The method for network traffic data mining based on artificial intelligence according to any one of claims 1 to 4, characterized in that: Each threat logic explanation data is used to reflect the confidence of each logic chain in the corresponding target threat logic data. The network threat event prediction network is trained according to each inferred intrusion path, each threat logic explanation data and each estimated arrangement data, including: Obtaining a first error parameter according to a characteristic distance between each network threat event prediction data and the corresponding actual network threat label data; Obtaining confidences of respective logic chains respectively included in each threat logic interpretation data, and obtaining a second error parameter according to each confidence, wherein the confidence is negatively correlated with the second error parameter; Obtaining a third error parameter according to a characteristic distance between each estimated arrangement data and the corresponding labeled arrangement data; The network threat event prediction network is trained according to the first error parameter, the second error parameter, and the third error parameter.

6. The network traffic data mining method based on artificial intelligence according to claim 5 is characterized in that: The annotated arrangement data is obtained by loading each threat logic data corresponding to the corresponding sample network traffic data into a previously trained network traffic behavior sorting model.

7. The network traffic data mining method based on artificial intelligence according to claim 1 is characterized in that: The first network traffic behavior logic diagram corresponding to each sample network traffic data includes: a global behavior pattern vector of the corresponding sample network traffic data, and an associated event vector of each network behavior event in the corresponding sample network traffic data. The first network traffic behavior logic diagram of each selected sample network traffic data generates an estimated intrusion path of the corresponding sample network traffic data for the calibrated service node, including: Generate a behavior logic diagram for each selected sample network traffic data according to the network threat event prediction network, and generate a first network traffic behavior logic diagram for each sample network traffic data; According to each global behavior pattern vector in each first network traffic behavior logic diagram, respectively generate an estimated intrusion path of the corresponding sample network traffic data for the calibrated service node; The second network traffic behavior logic diagram based on the target threat logic data corresponding to each actual network threat behavior is combined with the corresponding first network traffic behavior logic diagram to generate threat logic interpretation data corresponding to the corresponding actual network threat behavior, including: Generate a behavior logic diagram for each target threat logic data corresponding to each actual network threat behavior according to the network threat event prediction network, and generate a second network traffic behavior logic diagram for the target threat logic data corresponding to each actual network threat behavior; Based on the second network traffic behavior logic diagram of the target threat logic data corresponding to each actual network threat behavior, the threat logic interpretation data corresponding to the corresponding actual network threat behavior is generated by combining the corresponding global behavior pattern vector and the associated event vector of each corresponding network behavior event.

8. The network traffic data mining method based on artificial intelligence according to claim 7 is characterized in that: The step of generating the estimated intrusion path of the corresponding sample network traffic data for the calibrated service node according to each global behavior pattern vector in each first network traffic behavior logic diagram comprises: Parsing the global behavior pattern vector in the first network traffic behavior logic diagram of each sample network traffic data, wherein the global behavior pattern vector includes the overall behavior characteristics of the sample network traffic data, and the overall behavior characteristics include traffic size, duration, distribution of source IP and destination IP, and port usage; Parsing the global behavior pattern vector to extract key vector data related to network threat behavior; Cluster the parsed key vector data to identify different path patterns, which represent different network threat intrusion paths. Based on the identified path patterns, combined with the time sequence and logical relationship in the sample network traffic data, the candidate intrusion paths are reconstructed, wherein in the reconstruction process, the candidate intrusion paths are generated using the shortest path algorithm in graph theory; Evaluate the reconstructed multiple candidate intrusion paths, wherein the evaluation criteria include at least one of the complexity of the path, similarity with known threat patterns, and frequency of abnormal behavior; According to the evaluation results, the presumed intrusion paths for the calibrated business nodes are screened out; The step of generating threat logic interpretation data corresponding to the corresponding actual network threat behavior in combination with the corresponding global behavior pattern vector and the associated event vector of each corresponding network behavior event according to the second network traffic behavior logic diagram of the target threat logic data corresponding to each actual network threat behavior comprises: Analyze a second network traffic behavior logic graph of the target threat logic data corresponding to the actual network threat behavior, and identify key nodes and key edges in the second network traffic behavior logic graph, wherein the key nodes and key edges represent key steps in the network threat behavior and logical relationships between the key steps; Extracting a global behavior pattern vector from a first network traffic behavior logic graph of the sample network traffic data, wherein the global behavior pattern vector reflects the overall behavior characteristics of the sample network traffic data; Extracting the correlation event vector of each network behavior event, wherein the sample network traffic data represents the correlation relationship between different network behavior events; The second network traffic behavior logic graph is merged with the global behavior pattern vector and the associated event vector, and the target network traffic characteristics and target associated event vector having a significant effect in the actual network threat behavior are identified by comparing the corresponding relationship between the key nodes and key edges in the second network traffic behavior logic graph and the global behavior pattern vector and the associated event vector; Based on the fusion result, a framework of threat logic interpretation data is constructed, the target network traffic characteristics and target associated event vectors are filled in the framework, and each logical chain in the threat logic interpretation data of the actual network threat behavior is constructed.

9. The network traffic data mining method based on artificial intelligence according to claim 1 is characterized in that: The method further comprises: Loading the target network traffic data into the network threat event prediction network that has completed network parameter learning; Based on the network threat event prediction network that has completed network parameter learning, a first network traffic behavior logic diagram of the target network traffic data is obtained, and based on the first network traffic behavior logic diagram, an estimated intrusion path and threat logic interpretation data of the target network traffic data for the calibrated business node is generated.

10. A network traffic data mining system based on artificial intelligence, characterized in that: It includes a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the network traffic data mining method based on artificial intelligence according to any one of claims 1 to 9 is implemented.