A network traffic supervision anomaly identification and early warning method and system
By performing feature derivation processing and data merging on network traffic, combined with detection analysis and global analysis of multiple anomaly identification tags, the shortcomings of traditional methods in identifying unknown or deformed network attacks are solved, and more accurate and comprehensive anomaly identification and early warning are achieved. , improving the reliability of network security management.
Patent Information
- Application Number
- CN202411088176.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-09
AI Technical Summary
When faced with complex and changeable network environments and advanced network attacks, traditional network traffic monitoring methods are difficult to effectively identify unknown or deformed attacks, and lack in-depth analysis and global perspective, resulting in limitations in the accuracy and comprehensiveness of abnormal identification and early warning. .
Through feature derivation processing, data merging, detection and analysis of multiple anomaly identification tags, and global analysis of network traffic, anomaly warning data is generated to improve the accuracy and comprehensiveness of anomaly identification. Specific steps include performing feature derivation processing on basic network data flows, merging and generating mixed data flows, conducting traffic pattern recognition, data transmission rate anomaly detection and packet structure anomaly detection, and conducting global analysis to generate anomaly warning data.
It improves the accuracy and comprehensiveness of network traffic anomaly identification, can discover single anomalies and correlations between anomalies, provides more accurate and comprehensive anomaly warnings, and enhances the reliability of network security management.
Smart Images

Figure CN118631589B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network service technology, and in particular to a method and system for identifying and warning of abnormalities in network traffic supervision. Background Art
[0002] With the rapid development and popularization of network technology, network traffic has shown explosive growth. However, the resulting network security issues are also becoming increasingly serious, including network attacks, data leakage, malware propagation, etc. These security issues not only pose a threat to personal privacy, but may also have a significant impact on the stability and security of the entire society. Therefore, it is particularly important to develop an effective network traffic supervision anomaly identification and early warning method.
[0003] Traditional network traffic monitoring methods mainly rely on simple traffic statistics and analysis, which often seem inadequate when faced with complex and ever-changing network environments and advanced network attacks. These methods can usually only detect known attack patterns, but may not be able to effectively identify unknown or deformed attacks. In addition, traditional methods also lack in-depth analysis and a global perspective of network traffic, which limits the accuracy and comprehensiveness of anomaly identification and warning. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a network traffic supervision anomaly identification and early warning method and system, which aims to improve the accuracy and comprehensiveness of anomaly identification through a series of steps such as feature derivation processing, data merging, detection and analysis of multiple anomaly identification labels, and global analysis of network traffic, and provide more reliable technical support for network security management.
[0005] According to a first aspect of the present application, a method for identifying and warning of abnormalities in network traffic supervision is provided, the method comprising:
[0006] Performing feature derivation processing on the first basic network data flow to generate a first derived network data flow;
[0007] Merging the first derived network data flow and the first basic network data flow to generate a hybrid network data flow;
[0008] Performing detection and analysis of multiple anomaly identification tags on the hybrid network data flow to generate detection data corresponding to each of the anomaly identification tags, wherein the detection and analysis of the multiple anomaly identification tags includes: traffic pattern recognition, data transmission rate anomaly detection, and data packet structure anomaly detection;
[0009] The detection data of the plurality of abnormal identification tags are globally analyzed to generate abnormal warning data of the first derivative network data flow.
[0010] According to the second aspect of the present application, a network traffic supervision anomaly identification and warning system is provided, the network traffic supervision anomaly identification and warning 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 network traffic supervision anomaly identification and warning system implements the aforementioned network traffic supervision anomaly identification and warning method.
[0011] 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 network traffic supervision anomaly identification and early warning method is implemented.
[0012] According to any one of the above aspects, the technical effect of the present application is:
[0013] The present application generates a first derivative network data stream containing richer information by performing feature derivative processing on the first basic network data stream, which greatly improves the feature dimension of the data and the meticulousness of the information, and provides a more accurate data basis for subsequent abnormal identification. Secondly, the first derivative network data stream is merged with the first basic network data stream to generate a hybrid network data stream, which retains all the information of the original data and the derivative data, and provides comprehensive data support for subsequent abnormal detection, taking into account both the characteristics of the original network traffic and the characteristics of the network traffic after derivative processing. Furthermore, the hybrid network data stream is subjected to detection and analysis of multiple abnormal identification tags, including traffic pattern recognition, data transmission rate abnormality detection, and data packet structure abnormality detection, thereby realizing all-round and multi-angle abnormal identification of network traffic. This comprehensive abnormal detection method greatly improves the accuracy and comprehensiveness of abnormal identification. Finally, the detection data of multiple abnormal identification tags is globally analyzed to generate abnormal warning data of the first derivative network data stream. This global analysis method can not only find a single abnormality, but also find the correlation between abnormalities, thereby providing a more accurate and comprehensive abnormal warning. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] 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.
[0015] Figure 1 A flowchart of a network traffic supervision anomaly identification and early warning method provided in an embodiment of the present application.
[0016] Figure 2 A schematic diagram of the component structure of the network traffic supervision anomaly identification and early warning system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] 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.
[0018] Figure 1 The flowchart of the network traffic supervision anomaly identification and early warning method provided by the embodiment of the present application is shown. It should be understood that in other embodiments, the order of some steps of the network traffic supervision anomaly identification and early warning method 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 supervision anomaly identification and early warning method include:
[0019] Step S110, performing feature derivation processing on the first basic network data flow to generate a first derived network data flow.
[0020] In this embodiment, the server receives a first basic network data stream, which contains a large amount of network transmission data. In order to extract more useful information from the first basic network data stream, the server starts to perform feature derivation processing.
[0021] For example, the server extracts key feature data from the first basic network data flow, such as shallow features such as packet size, transmission time, source IP address, destination IP address, port number, and protocol type. At the same time, the server also uses complex algorithms to mine deep features, such as the periodic and burst characteristics of network traffic, and the time interval characteristics between data packets.
[0022] Next, the server uses time series analysis technology to calculate statistics such as mean and standard deviation for these feature data within a set time window. These statistics are regarded as the first derived features. In addition, the server also applies the independent component analysis algorithm to transform the key feature data to obtain a set of independent components, and selects the independent components related to the network traffic anomaly detection task as the second derived features.
[0023] Finally, the server merges the original features and the derived features to form multiple target feature vectors. Each feature vector represents a data point in the network data stream. The data set composed of these feature vectors is the first derived network data stream.
[0024] Step S120: merge the first derived network data flow and the first basic network data flow to generate a hybrid network data flow.
[0025] In this embodiment, after generating the first derivative network data stream, the server needs to merge the derivative data stream with the original first basic network data stream.
[0026] First, the server obtains a data fusion framework, which defines how to merge two data streams. Then, according to the data fusion framework, the server merges the first basic network data stream and the first derived network data stream.
[0027] During the merging process, the server ensures that each data point contains both original and derived features, thus forming a more information-rich hybrid network data stream.
[0028] Step S130, performing detection and analysis of multiple anomaly identification tags on the hybrid network data flow to generate detection data corresponding to each of the anomaly identification tags, wherein the detection and analysis of the multiple anomaly identification tags includes: traffic pattern recognition, data transmission rate anomaly detection, and data packet structure anomaly detection.
[0029] In this embodiment, the server now determines a mixed network data flow including original features and derived features. Next, the server needs to perform detection and analysis of multiple anomaly identification tags on the mixed network data flow.
[0030] First, the server identifies traffic patterns, for example, analyzing the packet transmission patterns in the data stream to identify whether there are abnormal traffic patterns, such as sudden traffic surges or long periods of low traffic.
[0031] Secondly, the server performs data transmission rate anomaly detection. For example, it monitors the transmission rate of the data stream and if it finds that the transmission rate suddenly slows down or speeds up, it is considered that there may be an anomaly.
[0032] Finally, the server performs data packet structure anomaly detection. For example, each transmission data packet is digitally encoded to generate a coding vector sequence, and the structural features of the data packet are mined from it. If the structure of the data packet does not match the normal pattern, it is considered to have a structural anomaly.
[0033] For each anomaly identification label, the server generates corresponding detection data, which reflects the anomaly of the mixed network data flow on the anomaly identification label.
[0034] Step S140: globally analyzing the detection data of the plurality of abnormal identification tags to generate abnormal warning data of the first derived network data flow.
[0035] In this embodiment, the server has now obtained the detection data of multiple abnormal identification tags. In order to generate comprehensive abnormal warning data, the server needs to perform a global analysis on these detection data.
[0036] First, the server obtains a predefined anomaly recognition template, which contains the influence coefficient of each anomaly recognition label. These influence coefficients reflect the importance of different labels in anomaly detection.
[0037] Then, the server fuses the detection data based on these influence coefficients. Specifically, the detection data of each abnormal identification tag is multiplied by its corresponding influence coefficient, and then the results are added to obtain a comprehensive abnormal warning data, which reflects the comprehensive abnormal situation of the first derivative network data flow on multiple abnormal identification tags, providing an important reference for subsequent abnormal processing.
[0038] Based on the above steps, the embodiment of the present application generates a first derivative network data stream containing richer information by performing feature derivation processing on the first basic network data stream, which greatly improves the feature dimension of the data and the meticulousness of the information, and provides a more accurate data basis for subsequent abnormal identification. Secondly, the first derivative network data stream is merged with the first basic network data stream to generate a hybrid network data stream, which retains all the information of the original data and the derivative data, and provides comprehensive data support for subsequent abnormal detection, taking into account both the characteristics of the original network traffic and the characteristics of the network traffic after the derivative processing. Furthermore, the hybrid network data stream is subjected to detection and analysis of multiple abnormal identification tags, including traffic pattern recognition, data transmission rate abnormality detection, and data packet structure abnormality detection, thereby realizing all-round and multi-angle abnormal identification of network traffic. This comprehensive abnormal detection method greatly improves the accuracy and comprehensiveness of abnormal identification. Finally, the detection data of multiple abnormal identification tags is globally analyzed to generate abnormal warning data of the first derivative network data stream. This global analysis method can not only find a single abnormality, but also find the correlation between abnormalities, thereby providing a more accurate and comprehensive abnormal warning.
[0039] In a possible implementation, step S120 may include:
[0040] Step S121, obtaining a data fusion framework.
[0041] Step S122: According to the data fusion framework, the first basic network data flow and the first derived network data flow are merged to generate the hybrid network data flow.
[0042] In this embodiment, the server first accesses its internal storage or external resources to retrieve and obtain a predefined data fusion framework, which is a set of rules, algorithms and processes for guiding how to effectively merge different types of network data streams. For example, the framework may include data stream format conversion rules, timestamp synchronization methods, data cleaning strategies, etc.
[0043] In this scenario, the server can download the data fusion framework from its own configuration file, database, or remote repository. Once the data fusion framework is obtained, the server can parse and verify it to ensure its integrity and correctness, and prepare for the next step of data stream merging.
[0044] After obtaining and verifying the data fusion framework, the server begins to perform the merge operation. First, the server can receive or read two network data streams to be merged: the first basic network data stream and the first derived network data stream. According to the guidance of the data fusion framework, the server can perform a series of data preprocessing operations, such as format conversion, timestamp alignment, etc., to ensure that the two data streams can be merged correctly. For example, if the timestamp of the first basic network data stream is in milliseconds, and the timestamp of the first derived network data stream is in seconds, then the server can unify the timestamps of the two to the same unit according to the rules in the data fusion framework.
[0045] Next, the server can merge the processed first basic network data stream and the first derivative network data stream according to the algorithm defined in the data fusion framework. This merging process may include data interpolation, filtering, weighted averaging and other operations to ensure that the merged hybrid network data stream contains both the information of the basic data stream and the characteristics of the derivative data stream.
[0046] After the above-mentioned merging process, the server can generate a new hybrid network data stream. This hybrid network data stream combines the information of the first basic network data stream and the first derivative network data stream, and has richer and more comprehensive data features. This hybrid network data stream can be used for subsequent data analysis, model training and other tasks, providing more accurate and comprehensive data support for various network applications.
[0047] For example, if the first basic network data stream is an access log of a website, and the first derivative network data stream is a user's purchase record on the website, then the merged hybrid network data stream can be used to analyze the correlation between the user's access behavior and purchase behavior, thereby optimizing the website's layout and marketing strategy.
[0048] In a possible implementation, the data packet structure anomaly detection includes:
[0049] Step S131, digitally encode each transmission data packet in the hybrid network data stream, generate a coding vector sequence for each transmission data packet, and combine the coding vector sequences of multiple transmission data packets into a hybrid coding vector sequence.
[0050] In this embodiment, the server may perform digital processing on each transmission data packet in the mixed network data stream, specifically, for example, converting the content of each transmission data packet into a digital form, that is, a coding vector sequence.
[0051] For example, a transmission data packet may contain multiple fields, such as source IP address, destination IP address, port number, transmitted data content, etc. The server can convert these fields into digital or vector form according to predetermined rules. For example, the IP address can be converted into a set digital sequence, and the data content can be encoded according to its byte value.
[0052] After completing the digital encoding of each transmitted data packet, the server can combine these coding vector sequences to form a mixed coding vector sequence, which is similar to splicing multiple individual data blocks into a larger data set.
[0053] The benefit of this is that it allows the server to analyze the data stream from a global perspective, rather than just a single transmission packet. By combining the encoding vectors of multiple transmission packets, the server can observe the overall pattern and trend of the data stream.
[0054] Step S132, performing data packet structure feature mining on the hybrid coding vector sequence to generate data packet structure features corresponding to the hybrid network data flow.
[0055] Next, the server can perform in-depth analysis of the mixed encoding vector sequence to mine the structural characteristics of the data packet, which usually involves using machine learning or data analysis algorithms to identify patterns and relationships in the vector sequence.
[0056] For example, the server can look for frequently occurring vector patterns, or detect correlations between vectors. These structural features may include the length distribution of data packets, the frequency distribution of field values, the time interval between data packets, etc.
[0057] Through feature mining, the server can generate a feature set that describes the packet structure of a mixed network data flow. These packet structure features may include statistical information (such as mean, standard deviation, etc.), frequency distribution, correlation coefficient, etc. These packet structure features are crucial for understanding the nature and behavior of data flows and can be used as the basis for subsequent anomaly detection, traffic classification, or other network analysis tasks.
[0058] Step S133, performing data packet anomaly prediction on the data packet structure features to generate data packet structure anomaly detection data.
[0059] Once the server obtains the structural features of the data packet, it can use these features to predict whether the packet is abnormal, which usually involves using machine learning models (such as classifiers, clustering algorithms, etc.) to identify data packets that do not conform to normal patterns.
[0060] For example, if the structural characteristics of a transmitted packet differ significantly from previously observed normal patterns (such as an unusual combination of field values, a sudden change in packet size, etc.), the packet may be considered an anomaly.
[0061] Finally, the server can generate data packet structure anomaly detection data, which may include information such as the identification of abnormal data packets, the type of anomaly, the degree of anomaly, etc. This data is very valuable to the network security team because it can help identify potential attacks, failures or improper behaviors and take corresponding countermeasures.
[0062] In a possible implementation, step S131 may include:
[0063] Step S1311: for each transmission data packet, perform feature knowledge encoding on the transmission data packet to generate a feature knowledge encoding of the transmission data packet.
[0064] In this embodiment, when processing a mixed network data stream, the server first performs feature knowledge encoding for each transmission data packet, which means that the server can identify key features in the data packet, such as source IP, destination IP, port, protocol type, etc., and convert these features into set codes.
[0065] For example, the server can encode the source IP address "192.168.1.1" as "0001", the destination IP address "192.168.1.2" as "0010", and so on. These encodings are based on a predefined feature knowledge base that maps set fields in network data packets to corresponding encodings.
[0066] Step S1312, performing context coding processing on the transmission data packet according to the context relationship data packet of the transmission data packet in the hybrid network data stream, and generating context coding of the transmission data packet, wherein the context relationship data packet originates from the hybrid network data stream.
[0067] Next, the server can consider the contextual relationship of each transmitted packet in the mixed network data flow, which involves analyzing other transmitted packets before and after the transmitted packet to determine the relationship between them. The server can generate a context code for each transmitted packet based on these relationships.
[0068] For example, if a transmission packet is one of a series of TCP handshake packets, its context encoding can reflect this, indicating its position and role in the handshake process. Such encoding helps understand the role of the packet in the entire communication session.
[0069] Step S1313, performing timing coding processing on the transmission data packet according to the timing node of the transmission data packet in the hybrid network data flow, and generating a timing node code of the transmission data packet.
[0070] In this embodiment, the server also considers the timing position of the data packet in the data stream. Each transmission data packet has a set sending or receiving time, and this timestamp is very important for understanding network activities and identifying abnormal patterns. Therefore, the server can generate a timing node code for each transmission data packet to reflect its time position in the data stream.
[0071] For example, if a transmission packet is sent within a set time period, its timing encoding can contain this information, which helps analyze network activity during that time period.
[0072] Step S1314, globally analyzing the feature knowledge coding, the context coding and the timing node coding corresponding to the transmission data packet to generate a coding vector sequence corresponding to the transmission data packet.
[0073] After completing feature knowledge encoding, context encoding, and timing node encoding, the server can perform global analysis, which means that the server can comprehensively consider these three encodings to generate a comprehensive encoding vector sequence that can more accurately describe the characteristics and behavior of each transmitted data packet in the network data flow.
[0074] For example, through global analysis, the server can identify whether a transmitted data packet is an abnormal packet, because it may have a different combination of feature knowledge encoding, context encoding, and timing node encoding from normal data packets. Such analysis helps to promptly detect anomalies in the network and take corresponding countermeasures.
[0075] In a possible implementation, step S132 may include:
[0076] Step S1321, for each transmission data packet coding vector in the mixed coding vector sequence, if the transmission data packet corresponding to the data packet coding vector is the starting transmission data packet of the mixed network data flow, the data packet coding vector is mined for data packet structure features to generate the target data packet structure features of the transmission data packet.
[0077] Step S1322: If the transmission data packet corresponding to the data packet encoding vector is not the starting transmission data packet of the hybrid network data stream, data packet structure feature mining is performed on the data packet encoding vector and the forward transmission data packet in the hybrid network data stream that is arranged before the transmission data packet to generate the target data packet structure feature of the transmission data packet.
[0078] Step S1323: Using the target data packet structure feature of the terminal transmission data packet in the hybrid network data stream as the data packet structure feature of the hybrid network data stream.
[0079] In this embodiment, the server first traverses each data packet encoding vector in the mixed encoding vector sequence. These encoding vectors are generated by the previous steps, and each encoding vector represents a transmission data packet in the mixed network data flow.
[0080] In detail, the server can check whether the encoding vector of the currently processed data packet corresponds to the initial transmission data packet of the mixed network data flow. The initial transmission data packet is the first data packet in the data flow, which has no forward transmission data packets.
[0081] For example, suppose that the mixed network data stream contains 5 transmission packets, and the server is currently processing the encoding vector of the third packet. Since this is not the starting transmission packet of the data stream, the server can enter the next judgment logic.
[0082] If the data packet encoding vector currently being processed corresponds to the starting transmission data packet, the server can only perform data packet structure feature mining on this data packet encoding vector. This involves analyzing each dimension in the encoding vector and extracting features that can represent the data packet structure, such as the length, type, transmission direction, etc. of the data packet.
[0083] For example, if the server is processing the encoding vector of the first data packet of a mixed network data stream, it can analyze the components of this vector to find out the structural features of the data packet, such as the size and type of the data packet, and use these features as the target data packet structural features.
[0084] If the encoding vector of the currently processed packet does not correspond to the initial transmission packet, the server may consider both the encoding vector of the current packet and the encoding vector of the forward transmission packet. The forward transmission packet is a packet that is ordered before the currently transmitted packet in the mixed network data stream.
[0085] For example, continuing with the previous example, when the server processes the encoding vector of the third data packet, it will simultaneously analyze the encoding vector of the second (i.e., the previous) data packet. By comparing and analyzing the encoding vectors of these two data packets, the server can mine the structural change characteristics of the third data packet relative to the second data packet, such as whether the length of the data packet has increased, whether the type has changed, etc.
[0086] Regardless of whether it is a starting transmission data packet or a non-starting transmission data packet, after mining the data packet structure features, the server will generate a target data packet structure feature, which is a vector or a set of values that can represent the structural characteristics of the data packet.
[0087] After processing all the data packet coding vectors in the mixed coding vector sequence, the server can use the target data packet structure characteristics of the end transmission data packet (i.e., the last data packet) in the mixed network data stream as the data packet structure characteristics of the entire mixed network data stream, which can be used to represent the structural characteristics of the entire data stream.
[0088] For example, assuming that a mixed network data stream contains five transmission data packets, after processing the encoding vectors of these five data packets, the server will use the target data packet structure features of the fifth (i.e., the last) data packet as the data packet structure features of the entire mixed network data stream. This data packet structure feature may include information such as the average length, type distribution, and transmission direction of the data packets in the data stream, which is of great significance for subsequent tasks such as network behavior analysis and anomaly detection.
[0089] In a possible implementation, step S133 may include:
[0090] Step S1331, performing full-connection mapping output on the data packet structure features to generate an abnormal risk value corresponding to the hybrid network data flow.
[0091] Step S1332, performing standardization processing on the abnormal risk value according to the standardization rule function, generating a data packet structure abnormality detection score, and using the data packet structure abnormality detection score as the data packet structure abnormality detection data.
[0092] In this embodiment, after obtaining the data packet structure features of the hybrid network data flow, the server will use the fully connected layer to map and output these features. The fully connected layer is a structure in the neural network that can map the input features to a new space, so that different categories can be more easily distinguished in this new space.
[0093] For example, suppose the server has extracted the structural features of the data packets of the mixed network data flow, which may include the average size of the data packets, type distribution, transmission frequency, etc. The server can input these features into a fully connected layer, which will perform linear transformation and nonlinear activation function processing on these features according to the pre-trained weights and biases, and finally output an abnormal risk value, which indicates the possibility of abnormal data packets in the current mixed network data flow.
[0094] After obtaining the abnormal risk value, the server will use the standardization rule function to standardize the value in order to make it more intuitive, explainable and comparable. Standardization can convert the original data to the same scale, so that different data can be directly compared.
[0095] For example, suppose the anomaly risk value output by the server through the fully connected layer is 0.8 (this value may be a probability value between 0 and 1, indicating the possibility of anomaly), but this value itself has no direct meaning because it may be affected by multiple factors such as the magnitude of data features and model parameters. Therefore, the server can use a standardized rule function, such as Z-score standardization or Min-Max standardization, to convert this anomaly risk value to a standard scale. For example, through Z-score standardization, this value can be converted to a Z value of a standard normal distribution, so that the degree of anomaly of the current data stream can be judged based on the size of the Z value.
[0096] After standardization, the server can obtain a packet structure anomaly detection score, which is a quantitative indicator that can be directly used to evaluate the degree of anomaly of mixed network data flows. The server can output this score as packet structure anomaly detection data for subsequent analysis and decision-making.
[0097] For example, after standardization, the server obtains a packet structure anomaly detection score of 2.5 (this value is a hypothetical example value, and the actual score may vary depending on the specific standardization method and data characteristics). This score indicates that the current mixed network data flow has a high degree of anomaly and may pose a potential security risk. The server can output this score as packet structure anomaly detection data and may trigger a corresponding security warning mechanism to respond to potential network attacks or abnormal behaviors in a timely manner.
[0098] In a possible implementation, the detection data of the plurality of abnormal identification tags include traffic pattern detection data, data transmission rate abnormality detection data, and data packet structure abnormality detection data, and step S140 may include:
[0099] Step S141, obtaining an influence coefficient sequence matching a predefined anomaly identification template, wherein the influence coefficient sequence includes a first influence coefficient corresponding to the traffic pattern detection data, a second influence coefficient corresponding to the data transmission rate anomaly detection data, and a third influence coefficient corresponding to the data packet structure anomaly detection data.
[0100] Step S142, fusing the traffic pattern detection data, the data transmission rate anomaly detection data and the data packet structure anomaly detection data according to the influence coefficient sequence to generate anomaly warning data of the first derived network data flow.
[0101] In this embodiment, before executing the anomaly detection task, the server will first load a predefined anomaly identification template. The anomaly identification template contains influence coefficients set for different types of anomaly identification labels (such as traffic patterns, data transmission rate anomalies, data packet structure anomalies, etc.). These influence coefficients reflect the importance of various types of anomalies in determining whether the network data flow is abnormal.
[0102] For example, the server loads an anomaly identification template from the storage, which sets different impact coefficients for different types of anomaly detection data. For example, for traffic pattern detection data, the first impact coefficient set in the template is 0.4; for data transmission rate anomaly detection data, the second impact coefficient set is 0.3; for data packet structure anomaly detection data, the third impact coefficient set is 0.3. These impact coefficients are set based on historical data and expert experience, reflecting the relative importance of various types of anomaly detection data when identifying network data flow anomalies.
[0103] After obtaining the influence coefficient sequence, the server can use these influence coefficients to perform weighted fusion on the traffic pattern detection data, data transmission rate anomaly detection data, and data packet structure anomaly detection data. The purpose of weighted fusion is to comprehensively consider the information of various types of anomaly detection data, so as to obtain a more comprehensive and accurate anomaly warning result.
[0104] For example, the server first obtains three types of anomaly detection data: traffic pattern detection data, data transmission rate anomaly detection data, and data packet structure anomaly detection data, all of which are processed and analyzed in the previous steps. Then, the server performs weighted fusion on these three types of data according to the influence coefficient sequence in the predefined anomaly identification template (the first influence coefficient is 0.4, the second influence coefficient is 0.3, and the third influence coefficient is 0.3). Specifically, each type of detection data is multiplied by its corresponding influence coefficient, and then the results are added to obtain a comprehensive anomaly warning value, which can comprehensively reflect the abnormal conditions of network data flows in multiple aspects and provide an important basis for subsequent anomaly processing.
[0105] After weighted fusion, the server obtains a comprehensive abnormal warning value, which will be output as the abnormal warning data of the first derivative network data flow for subsequent analysis and decision-making. If the warning value exceeds the preset threshold, it means that the network data flow may be abnormal and corresponding processing measures need to be taken.
[0106] For example, the server obtains an abnormal warning value, such as 0.7, through weighted fusion (this value is a hypothetical example value, and the actual value may vary depending on the specific detection data and impact coefficient). This value exceeds the server's preset threshold of 0.5, so the server determines that the first derivative network data flow may be abnormal. Therefore, the server can output this abnormal warning value and related detection data together for further analysis and processing by the network administrator or other related systems. At the same time, the server can also trigger corresponding security mechanisms, such as isolating abnormal data flows, sending alarm notifications, etc., to ensure network security.
[0107] In a possible implementation, the method further includes:
[0108] Step A110: Acquire a second derived network data stream, wherein the second derived network data stream is generated by performing feature derivation processing on the second basic network data stream.
[0109] In this embodiment, the server obtains second derivative network data streams from the network monitoring system. These second derivative network data streams are obtained through deep analysis and feature extraction of the original second basic network data streams in the network, and contain various detailed information in network communications, such as traffic patterns, data transmission rates, and data packet structures.
[0110] For example, in a large enterprise network, the server captures the second basic network data flow in the network in real time. In order to analyze these second basic network data flows more deeply, the server uses advanced algorithms and technologies to process the original second basic network data flows and generate second derivative network data flows. These second derivative network data flows not only contain the original communication data, but also extract various key features, such as the time distribution of traffic, the average size of data packets, and the fluctuation of transmission rate.
[0111] Step A120: merge the second derived network data flow and the second basic network data flow to generate a sample mixed network data flow.
[0112] In this embodiment, the server merges the second derivative network data stream with the second basic network data stream to generate a more comprehensive and richer sample mixed network data stream. The sample mixed network data stream not only retains the basic information of the original data, but also adds the characteristic details of the derivative data, providing a more sufficient data basis for subsequent anomaly identification.
[0113] For example, on the server, the second basic network data stream and the second derivative network data stream are accurately merged into a sample mixed network data stream, which not only contains the basic information of network communication (such as source IP address, destination IP address, transmission protocol, etc.), but also integrates the key features in the derivative data (such as traffic patterns, data transmission rate anomalies, etc.). In this way, the server can perform more accurate anomaly identification and analysis based on this comprehensive data stream.
[0114] Step A130, forward pass analysis is performed on the sample hybrid network data stream in the initialized neural network to generate anomaly recognition prediction data of the sample hybrid network data stream in the target anomaly recognition label, wherein the target anomaly recognition label is derived from the multiple anomaly recognition labels.
[0115] In this embodiment, the server inputs the sample mixed network data stream into the initialization neural network for forward pass analysis. The initialization neural network generates anomaly recognition prediction data on the target anomaly recognition tag (such as traffic pattern recognition, data transmission rate anomaly detection, data packet structure anomaly detection, etc.) by learning and processing these sample mixed network data streams.
[0116] For example, the server inputs the sample mixed network data stream into a carefully designed neural network model, which gradually extracts the deep features in the data stream through multiple layers of nonlinear transformation and learning. Finally, at the output layer of the neural network, the server obtains the anomaly recognition prediction data for each target anomaly recognition label, which reflects the probability of the sample mixed network data stream on different anomaly labels.
[0117] Step A140, obtaining the prior anomaly labeling data of the sample hybrid network data flow in the target anomaly identification label.
[0118] In order to verify the prediction accuracy of the neural network model, the server needs to obtain the prior anomaly annotation data of the sample mixed network data flow on the target anomaly identification label from a reliable data source. This data is annotated by experts based on known abnormal behavior characteristics and has high accuracy.
[0119] Step A150, determining a training error parameter based on the anomaly recognition prediction data and the prior anomaly labeling data of the target anomaly recognition label, training the initialized neural network based on the training error parameter, and generating an anomaly recognition network, wherein the anomaly recognition network is used to perform an anomaly recognition task of the target anomaly recognition label on the hybrid network data stream.
[0120] In this embodiment, the server determines the training error parameters based on the difference between the anomaly recognition prediction data and the prior anomaly annotation data, and uses these training error parameters to train and optimize the initialized neural network. Through multiple iterations of training and adjustment of model parameters, the server eventually generates an anomaly recognition network that can accurately identify various network anomalies.
[0121] For example, the server uses a gradient descent algorithm to minimize the difference between the predicted data and the prior labeled data. During the training process, the server continuously adjusts the weights and bias parameters of the neural network to make the model's predictions closer to the prior labeled data. After multiple rounds of training and optimization, the server obtains a high-performance anomaly recognition network model that can automatically identify various abnormal behaviors in the input network data flow and provide timely security warnings and protection measures for enterprises.
[0122] In a possible implementation, step A140 includes:
[0123] Step A141: when the second basic network data flow and the second derived network data flow are in consistent relationship in the target anomaly identification label, the first feature identifier is annotated as the prior anomaly annotation data of the sample mixed network data flow in the target anomaly identification label.
[0124] In this embodiment, the server first needs to determine whether the second basic network data flow and the second derivative network data flow have a consistent connection in the target anomaly identification label (such as traffic pattern anomaly, data transmission rate anomaly, data packet structure anomaly, etc.), which usually involves comparing and analyzing the features in the data flow.
[0125] The server obtains the second basic network data stream and the second derived network data stream for a period of time. It first extracts features from these data streams to obtain their respective feature performances on the target anomaly identification label. Then, the server uses a set algorithm (such as correlation analysis, cluster analysis, etc.) to determine whether the two data streams are consistent on the target anomaly identification label.
[0126] If the server determines that the second basic network data flow and the second derived network data flow have a consistent relationship on the target anomaly identification label, the server will use the first feature identifier to mark the prior anomaly of the sample mixed network data flow on the label.
[0127] For example, suppose the server finds that the second basic network data flow and the second derived network data flow show a high degree of consistency in the label of abnormal traffic pattern, which means that when the basic data flow shows abnormal traffic pattern, the derived data flow also reflects the same abnormal situation. Therefore, the server can use this consistent feature (i.e., the first feature identifier, such as 0) as the prior anomaly annotation data of the sample mixed network data flow on the abnormal traffic pattern label.
[0128] Step A142: when the second basic network data flow and the second derived network data flow are inconsistently connected in the target anomaly identification label, the second feature identifier is marked as the prior anomaly marking data of the sample mixed network data flow in the target anomaly identification label.
[0129] If the server determines that the second basic network data flow and the second derived network data flow do not have a consistent relationship on the target anomaly identification label, it will use the second feature identifier to mark the sample mixed network data flow as a priori anomaly on the label.
[0130] For example, suppose that on the label of abnormal data transmission rate, the server finds that the second basic network data flow is normal, but the second derived network data flow is abnormal. This inconsistency may mean that some deep-level abnormal behaviors are not directly reflected in the basic data flow, but are captured in the derived data flow. Therefore, the server can use this inconsistent feature (i.e., the second feature identifier, such as 1) as the prior abnormal annotation data of the sample mixed network data flow on the label of abnormal data transmission rate.
[0131] Through such processing, the server can more comprehensively understand and label the prior anomalies of the sample mixed network data flow on the target anomaly identification label, providing stronger support for subsequent anomaly identification and network security protection.
[0132] In a possible implementation, step A130 may include:
[0133] Step A131, digitally encode each sample transmission data packet in the sample mixed network data stream through the initialized neural network, generate a sample coding vector sequence for each sample transmission data packet, and combine the sample coding vector sequences of multiple sample transmission data packets into a sample mixed coding vector sequence.
[0134] In this embodiment, the server first performs digital encoding processing on each sample transmission data packet in the sample mixed network data stream by initializing the neural network. The purpose of this step is to convert the original network data packet into a digital format that can be processed by the neural network.
[0135] For example, the server digitally encodes each sample transmission packet using the encoding layer in the initialized neural network. Each encoded sample transmission packet is converted into a sequence of sample encoding vectors that capture the key features of the sample transmission packet.
[0136] Next, the server combines the sample encoding vector sequences of multiple sample transmission data packets into a larger sample mixed encoding vector sequence. This is done to enable multiple data packets to be processed simultaneously in the neural network, thereby improving the efficiency and accuracy of anomaly identification.
[0137] For example, after completing the digital encoding of a single sample transmission data packet, the server combines these coding vector sequences in chronological order or other logical order into a larger sample mixed coding vector sequence, which contains information of multiple data packets, providing a rich data foundation for subsequent label association feature mining.
[0138] Step A132, performing label association feature mining corresponding to the target anomaly identification label on the sample mixed coding vector sequence, and generating sample label association features of the target anomaly identification label.
[0139] In this embodiment, the server performs label association feature mining corresponding to the target anomaly identification label on the sample mixed encoding vector sequence. The purpose of this step is to extract features related to the target anomaly identification label from the encoded data.
[0140] For example, the server processes the sample mixed coding vector sequence using a set algorithm (such as convolution operation, pooling operation, etc.) to extract features related to the target anomaly identification label, which can reflect the abnormal behavior patterns that may exist in the data packet.
[0141] Step A133, performing a fully connected mapping output on the sample label associated features, and generating a training anomaly risk value corresponding to the sample hybrid network data flow in the target anomaly identification label.
[0142] The server performs a fully connected mapping output on the extracted sample label-associated features to generate a training anomaly risk value for the corresponding sample hybrid network data flow in the target anomaly recognition label. The purpose of this step is to convert the extracted features into specific risk values for subsequent anomaly detection.
[0143] For example, the server inputs the extracted sample label-associated features into the fully connected layer for processing. The fully connected layer uses the learned weights and biases to perform linear transformation and nonlinear activation function processing on these features, and finally outputs a training anomaly risk value, which reflects the degree of anomaly of the sample hybrid network data flow on the target anomaly identification label.
[0144] Step A134, normalizing the training anomaly risk value according to the normalization rule function to generate a training anomaly detection score.
[0145] Step A135, using the training anomaly detection score as anomaly recognition prediction data of the sample hybrid network data flow in the target anomaly recognition label.
[0146] In this embodiment, the server normalizes the training anomaly risk value according to the standardized rule function to generate a training anomaly detection score. The purpose of this step is to convert the risk value into a unified scoring standard to facilitate comparison and evaluation between different data streams.
[0147] For example, the server uses the set standardization rule function (such as Min-Max standardization, Z-Score standardization, etc.) to process the training anomaly risk value. The processed score is limited to a set range (such as between 0 and 1). This score is the training anomaly detection score, which can intuitively reflect the degree of anomaly of the sample mixed network data flow on the target anomaly identification label, providing an important reference for subsequent anomaly identification and network security protection.
[0148] In a possible implementation, step S110 may include:
[0149] Step S111, extracting key feature data from the first basic network data stream, the key feature data including shallow features and deep features, the shallow features including packet size, transmission time, source / destination IP address, port number, protocol type, the deep features including periodicity and burstiness characteristics of network traffic, time interval characteristics between transmitted data packets, size distribution characteristics, duration characteristics of network sessions, number of data packets characteristics, byte transmission volume characteristics, autocorrelation characteristics, skewness characteristics, and kurtosis characteristics of network traffic.
[0150] In this embodiment, the server extracts key feature data from the first basic network data stream. These data include shallow features such as packet size and transmission time, as well as deep features such as periodic features of network traffic and time interval features between packets.
[0151] In detail, the server receives a first basic network data stream containing a large amount of network communication data. In order to extract key features from it, the server first parses each data packet in the data stream and records their shallow features such as size, transmission time, source / destination IP address, port number and protocol type. Then, the server uses more complex algorithms to analyze the periodicity and burstiness of network traffic, as well as deep features such as the time interval and size distribution between data packets. These features provide rich information for subsequent anomaly detection.
[0152] Step S112, based on the extracted key feature data, using time series analysis, calculate the statistics within the set time window as the first derived feature, and apply the independent component analysis algorithm to transform the key feature data to obtain the second derived feature.
[0153] In this embodiment, based on the extracted key feature data, the server uses time series analysis to calculate the statistics within a set time window as the first derived feature, and applies an independent component analysis algorithm to transform the key feature data to obtain the second derived feature.
[0154] For example, after extracting the key feature data, the server starts to calculate the derived features. First, it selects a suitable time window (such as 5 minutes) and performs statistics on each key feature within this time window, such as calculating the mean value, standard deviation, etc. These statistics constitute the first derived features. Then, the server uses the independent component analysis algorithm to process the key feature data to eliminate the correlation between features and extract more independent feature components, which are called second derived features.
[0155] Step S113: extracting a target feature set that is significantly associated with anomaly detection tasks from the first derived features and the second derived features using a feature importance evaluation algorithm based on a tree model.
[0156] In this embodiment, the server extracts a target feature set that is significantly associated with the anomaly detection task from the first derived feature and the second derived feature based on a feature importance evaluation algorithm of a tree model.
[0157] For example, the server has calculated the first derived features and the second derived features, but not all features have a significant impact on the anomaly detection task. In order to filter out the most important features, the server uses a feature importance evaluation algorithm based on a tree model, which can analyze the contribution of each feature to the prediction result, thereby selecting the most significant feature set for the anomaly detection task.
[0158] Step S114: merge each original feature in the key feature data with the corresponding derived feature in the target feature set to form a plurality of target feature vectors, each of which represents a data point of the first derived network data flow.
[0159] In this embodiment, the server merges each original feature in the key feature data with the corresponding derived feature in the target feature set to form multiple target feature vectors.
[0160] For example, after determining the target feature set, the server begins to merge the target feature set with the original key feature data. For example, each original feature is first matched with the corresponding target derived feature, and then they are combined into a complete target feature vector, and the process is repeated until all data points are converted into target feature vectors.
[0161] Step S115: generating the first derived network data flow based on the multiple target feature vectors.
[0162] For example, after all data points are converted into target feature vectors, the server rearranges these vectors in the order they appeared in the original data stream to form a new data stream - the first derivative network data stream. This first derivative network data stream not only contains the key information of the original data, but also incorporates the derived features calculated by complex algorithms, providing a richer and more comprehensive data foundation for subsequent anomaly detection.
[0163] In a possible implementation, step S112 may include:
[0164] Step S1121, determining the time window size according to the previous analysis requirements of the network traffic.
[0165] In this embodiment, the server first needs to determine the size of the time window according to the previous analysis requirements of the network traffic, in order to capture the time variation characteristics of the network traffic so as to better analyze the network behavior.
[0166] For example, considering the daily fluctuations and periodic changes in network traffic, the server sets an appropriate time window, such as 5 minutes, which is selected to capture short-term changes in network traffic while avoiding overly frequent data processing.
[0167] Step S1122: Divide the key feature data according to the selected time window size, and the feature data in each time window constitutes a subset.
[0168] The server divides the extracted key feature data according to the selected time window size, and the feature data in each time window constitutes a subset.
[0169] For example, the server divides the key feature data according to a 5-minute time window. For example, if the original data contains one hour of network traffic data, then this data will be divided into 12 subsets, each of which contains network traffic feature data within 5 minutes.
[0170] Step S1123, for each subset in the time window, a corresponding statistic is calculated, and the statistic is used as a first derived feature to describe the network traffic feature in the time window.
[0171] For each subset within the time window, the server calculates corresponding statistics, such as the mean, standard deviation, maximum, minimum, etc., and uses these statistics as the first derived features to describe the network traffic characteristics within the time window.
[0172] For example, for each data subset within a 5-minute time window, the server calculates statistics such as the mean and standard deviation of the packet size within the time window, as well as the maximum and minimum transmission time. These statistics can reflect the overall situation and fluctuation range of network traffic within the time period and are therefore used as the first derived features.
[0173] Step S1124: normalize the calculated statistics using a z-score normalization algorithm to generate the first derived feature.
[0174] The server uses the z-score normalization algorithm to normalize the calculated statistics to eliminate the dimensional differences and numerical range differences between different features and generate a standardized first derivative feature.
[0175] For example, the server performs z-score normalization on each statistic, that is, subtracting the mean of the statistic and dividing it by its standard deviation. This ensures that all first-derived features have the same scale, which facilitates subsequent data analysis and model training.
[0176] And, step S1125, using the ICA algorithm to transform the key feature data to obtain a set of independent component sequences, each independent component represents an independent characteristic in the key feature data.
[0177] Step S1126: In the independent component sequence obtained after the ICA transformation, an independent component related to the network traffic anomaly detection task is selected as the second derived feature.
[0178] In this embodiment, the server uses an independent component analysis (ICA) algorithm to transform the key feature data to obtain a set of independent component sequences. Each independent component represents an independent characteristic in the key feature data. Then, in the independent component sequence obtained after the ICA transformation, the server selects the independent component related to the network traffic anomaly detection task as the second derived feature.
[0179] For example, the server applies the ICA algorithm to process key feature data and decomposes a series of independent components, which represent different characteristics in network traffic data, such as burstiness, periodicity, etc. By analyzing the correlation between these independent components and the network traffic anomaly detection task, the server selects the most representative independent components as the second derived features, which can provide deeper insights into network traffic behavior and help subsequent anomaly detection work.
[0180] Figure 2 The network traffic supervision anomaly identification and early warning system 100 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 supervision anomaly identification and early warning system 100 may also include a transceiver 1004, and the transceiver 1004 can be used for data interaction between the server and other servers, such as data sending and / or data receiving. It should be noted that in actual scheduling, the transceiver 1004 is not limited to one, and the structure of the network traffic supervision anomaly identification and early warning system 100 does not constitute a limitation on the embodiments of the present application.
[0181] 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.
[0182] 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.
[0183] The memory 1003 may be a ROX (Read Only Xemory) or other types of static storage devices that can store static information and instructions, a RAX (Random Access Xemory) or other types of dynamic storage devices that can store information and instructions, or an EEPROX (Electrically Erasable Programmable Read Only Xemory), a CD-ROX (Compact Disc Read Only Xemory) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media, 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.
[0184] 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.
[0185] 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.
[0186] 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.
[0187] 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 monitoring anomaly identification and early warning method, characterized in that: The method comprises: Performing feature derivation processing on the first basic network data flow to generate a first derived network data flow; Merging the first derived network data flow and the first basic network data flow to generate a hybrid network data flow; Performing detection and analysis of multiple anomaly identification tags on the hybrid network data flow to generate detection data corresponding to each of the anomaly identification tags, wherein the detection and analysis of the multiple anomaly identification tags includes: traffic pattern recognition, data transmission rate anomaly detection, and data packet structure anomaly detection; Performing a global analysis on the detection data of the plurality of abnormal identification tags to generate abnormal warning data of the first derived network data flow; The step of performing feature derivation processing on the first basic network data flow to generate a first derived network data flow includes: Extracting key feature data from the first basic network data stream, the key feature data including shallow features and deep features, the shallow features including packet size, transmission time, source / destination IP address, port number, and protocol type, and the deep features including periodicity and burstiness of network traffic, time interval between transmission packets, size distribution, duration of network sessions, number of packets, byte transmission volume, autocorrelation, skewness, and kurtosis of network traffic; Based on the extracted key feature data, using time series analysis, calculating the statistics within a specific time window as the first derived feature, and applying an independent component analysis algorithm to transform the key feature data to obtain a second derived feature; A feature importance evaluation algorithm based on a tree model extracts a target feature set that is significantly associated with anomaly detection tasks from the first derived features and the second derived features; Merging each original feature in the key feature data with a corresponding derived feature in the target feature set to form a plurality of target feature vectors, each of the target feature vectors representing a data point of the first derived network data flow; generating the first derived network data flow based on the plurality of target feature vectors; The step of calculating the statistics in a specific time window as the first derived feature based on the extracted key feature data by using time series analysis, and transforming the key feature data by applying an independent component analysis algorithm to obtain the second derived feature includes: Determine the time window size based on the prior analysis requirements of network traffic; Dividing the key feature data according to the selected time window size, the feature data in each time window constitutes a subset; For each subset in the time window, a corresponding statistic is calculated, and the statistic is used as a first derived feature to describe the network traffic characteristics in the time window; Normalize the calculated statistics using a z-score normalization algorithm to generate the first derived feature; and, transforming the key feature data using an ICA algorithm to obtain a set of independent component sequences, each independent component representing an independent characteristic in the key feature data; In the independent component sequence obtained after ICA transformation, the independent component related to the network traffic anomaly detection task is selected as the second derived feature.
2. The network traffic monitoring anomaly identification and early warning method according to claim 1 is characterized in that: The step of merging the first derived network data stream and the first basic network data stream to generate a hybrid network data stream includes: Get data fusion framework; According to the data fusion framework, the first basic network data flow and the first derived network data flow are merged to generate the hybrid network data flow.
3. The network traffic monitoring anomaly identification and early warning method according to claim 1 is characterized in that: The data packet structure anomaly detection includes: Performing digital encoding processing on each transmission data packet in the hybrid network data stream to generate a coding vector sequence for each transmission data packet, and combining the coding vector sequences of multiple transmission data packets into a hybrid coding vector sequence; Performing data packet structure feature mining on the hybrid coding vector sequence to generate data packet structure features corresponding to the hybrid network data flow; The data packet structure features are used to predict data packet anomalies, and data packet structure anomaly detection data is generated.
4. The network traffic monitoring anomaly identification and early warning method according to claim 3 is characterized in that: The step of performing digital encoding processing on each transmission data packet in the hybrid network data stream to generate a coding vector sequence for each transmission data packet comprises: For each of the transmission data packets, performing feature knowledge encoding on the transmission data packet to generate a feature knowledge encoding of the transmission data packet; According to the context relationship data packet of the transmission data packet in the hybrid network data stream, the transmission data packet is subjected to context coding processing to generate the context coding of the transmission data packet, wherein the context relationship data packet is derived from the hybrid network data stream; According to the timing node of the transmission data packet in the hybrid network data flow, performing timing coding processing on the transmission data packet to generate a timing node code of the transmission data packet; The feature knowledge coding, the context coding and the timing node coding corresponding to the transmission data packet are globally analyzed to generate a coding vector sequence corresponding to the transmission data packet.
5. The network traffic monitoring anomaly identification and early warning method according to claim 3 is characterized in that: The performing data packet structure feature mining on the hybrid coding vector sequence to generate data packet structure features corresponding to the hybrid network data flow includes: For each transmission data packet coding vector in the hybrid coding vector sequence, if the transmission data packet corresponding to the data packet coding vector is the starting transmission data packet of the hybrid network data flow, data packet structure feature mining is performed on the data packet coding vector to generate target data packet structure features of the transmission data packet; If the transmission data packet corresponding to the data packet encoding vector is not the starting transmission data packet of the hybrid network data flow, performing data packet structure feature mining on the data packet encoding vector and the forward transmission data packet in the hybrid network data flow that is sequenced before the transmission data packet to generate a target data packet structure feature of the transmission data packet; The target data packet structure characteristics of the terminal transmission data packet in the mixed network data flow are used as the data packet structure characteristics of the mixed network data flow.
6. The network traffic monitoring anomaly identification and early warning method according to claim 3 is characterized in that: The step of performing data packet anomaly prediction on the data packet structure feature to generate data packet structure anomaly detection data includes: Performing full-connection mapping output on the structural features of the data packet to generate an abnormal risk value corresponding to the hybrid network data flow; The abnormal risk value is standardized according to a standardized rule function to generate a data packet structure abnormality detection score, and the data packet structure abnormality detection score is used as the data packet structure abnormality detection data.
7. The network traffic monitoring anomaly identification and early warning method according to claim 1 is characterized in that: The detection data of the plurality of abnormal identification tags include flow pattern detection data, data transmission rate abnormality detection data, and data packet structure abnormality detection data. The global analysis of the detection data of the plurality of abnormal identification tags to generate abnormal warning data of the first derived network data flow includes: Acquire an influence coefficient sequence matching a predefined anomaly identification template, the influence coefficient sequence comprising a first influence coefficient corresponding to the traffic pattern detection data, a second influence coefficient corresponding to the data transmission rate anomaly detection data, and a third influence coefficient corresponding to the data packet structure anomaly detection data; The traffic pattern detection data, the data transmission rate anomaly detection data and the data packet structure anomaly detection data are fused according to the influence coefficient sequence to generate anomaly warning data of the first derived network data flow.
8. The network traffic monitoring anomaly identification and early warning method according to claim 3 is characterized in that: The method further comprises: Acquire a second derived network data stream, wherein the second derived network data stream is generated by performing feature derivation processing on the second basic network data stream; Merging the second derived network data stream and the second basic network data stream to generate a sample mixed network data stream; Performing forward pass analysis on the sample hybrid network data stream in an initialized neural network to generate anomaly recognition prediction data of the sample hybrid network data stream in a target anomaly recognition label, wherein the target anomaly recognition label is derived from the multiple anomaly recognition labels; Obtaining prior anomaly annotation data of the sample hybrid network data flow at the target anomaly identification label; Determine a training error parameter based on the anomaly recognition prediction data and the prior anomaly annotation data of the target anomaly recognition label, train the initialized neural network based on the training error parameter, and generate an anomaly recognition network, wherein the anomaly recognition network is used to perform an anomaly recognition task of the target anomaly recognition label on the hybrid network data stream; The obtaining of the prior anomaly labeling data of the sample hybrid network data flow at the target anomaly identification label includes: When the second basic network data flow and the second derived network data flow are in consistent connection with the target anomaly identification label, marking the first feature identifier as the prior anomaly marking data of the sample mixed network data flow in the target anomaly identification label; When the second basic network data flow and the second derived network data flow are in an inconsistent relationship in the target anomaly identification label, marking the second feature identifier as the prior anomaly marking data of the sample mixed network data flow in the target anomaly identification label; The forward transfer analysis of the sample hybrid network data stream in the initialized neural network to generate abnormality recognition prediction data of the sample hybrid network data stream in the target abnormality recognition label includes: Performing digital encoding processing on each sample transmission data packet in the sample hybrid network data stream by means of the initialized neural network, generating a sample encoding vector sequence for each sample transmission data packet, and combining the sample encoding vector sequences of a plurality of the sample transmission data packets into a sample hybrid encoding vector sequence; Performing label association feature mining corresponding to the target anomaly identification label on the sample mixed coding vector sequence to generate sample label association features of the target anomaly identification label; Performing a fully connected mapping output on the sample label associated features to generate a training anomaly risk value corresponding to the sample hybrid network data flow in the target anomaly identification label; The training anomaly risk value is standardized according to a standardized rule function to generate a training anomaly detection score; The training anomaly detection score is used as anomaly recognition prediction data of the sample hybrid network data flow in the target anomaly recognition label.
9. A network traffic monitoring anomaly identification and early warning system, 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 supervision anomaly identification and early warning method described in any one of claims 1-8 is implemented.
Citation Information
Patent Citations
Method and apparatus for sketch-based detection of changes in network traffic
CA2474827A1
Big data security analysis system based on massive network monitoring data
CN108259462A
Virtual currency mining flow detection method based on deep learning
CN116208356A
Malicious traffic detection method and device based on LSTM
CN117014182A
Network message analysis and user behavior portrait network attack risk research and judgment method
CN117081846A
Cited By
Automatic identification and warning system for large-flow network information dissemination
CN119584130A
An automatic recognition and warning system for large-flow network information dissemination
CN119584130B
