A method and device for identifying cross-region malicious streaming IP
Through operator traffic collection and periodic detection of deep learning recurrent neural networks, combined with volatility analysis, the accuracy and real-time problem of cross-regional malicious streaming identification is solved, and efficient identification of malicious streaming IPs is achieved, ensuring Fairness and service quality of network resources.
Patent Information
- Application Number
- CN202411055533.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Existing technologies have problems with low accuracy, many misjudgments, high latency, and insufficient real-time performance when identifying and preventing malicious cross-regional streaming of bandwidth-based services. They cannot effectively detect and prevent malicious streaming behaviors.
Obtain IP time series data through the operator's traffic collection and analysis system, perform pre-processing and cluster analysis, combine dynamic time warping and periodic detection of deep learning recurrent neural networks, screen out suspected malicious IPs, and use volatility Test confirmation.
It achieves accurate, efficient and real-time identification of cross-regional malicious IPs, improves identification accuracy and efficiency, ensures fairness and resource utilization efficiency of cross-regional bandwidth-based services, and improves network service quality.
Smart Images

Figure CN118590317B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a method and device for identifying cross-region malicious streaming IP addresses. Background Art
[0002] In today's digital information age, the widespread cross-regional application of bandwidth-based services plays a vital role in meeting user needs and promoting economic development. However, as networks become increasingly complex and diverse, some malicious behaviors have emerged, among which malicious traffic pulling is particularly prominent.
[0003] In the cross-regional settlement scenario of bandwidth-based services, malicious traffic pulling behavior seriously affects normal business operations and resource allocation. Some malicious users or entities use improper means to frequently and massively access resources in other regions, causing network congestion and resource waste, while also bringing unreasonable cost burdens to the regions that provide resources. This malicious traffic pulling behavior not only harms the interests of operators, but also reduces the overall network service quality and user experience.
[0004] At present, there are certain limitations in the identification and prevention of malicious cross-regional traffic pulling for bandwidth-based services. Traditional detection methods have problems such as low accuracy, many misjudgments, high latency, or difficulty adapting to complex and changing network environments and the continuous updating of malicious traffic pulling methods. In addition, some existing solutions are also lacking in real-time and comprehensiveness, and are unable to timely and effectively detect and prevent the occurrence of malicious traffic pulling behaviors. Summary of the invention
[0005] In order to effectively solve the problem of malicious cross-regional traffic pulling for bandwidth-based services, ensure the fairness and rationality of cross-regional settlement, and improve the utilization efficiency and service quality of network resources, the present invention proposes a more accurate, efficient and real-time malicious traffic pulling IP identification method and device.
[0006] In order to achieve the above object, the present invention is implemented by the following technical solutions:
[0007] A method for identifying a malicious IP address for streaming across regions of the present invention includes the following operations:
[0008] The operator's traffic collection and analysis system is used to obtain time series data of IP addresses in some areas and network segments within a given time range, including timestamp, inbound port type, outbound port type, source end area, target end area, source end type, target end type, routing area, router type, and traffic rate time series data;
[0009] Preprocess the time series data, including: based on the storage and computing pressure caused by the data granularity, aggregate and resample the time series data to convert the second-level data into hour-level data; filter the records of time series data with a flow rate less than the set value, and calculate the average daily flow rate of each IP after filtering;
[0010] A clustering algorithm based on dynamic time warping is used to perform cluster analysis on the time series data after all IPs are filtered. The clustering feature is the average daily traffic rate of each IP within the set number of days.
[0011] Data analysis was performed on the sample set of each category obtained by cluster analysis, and characteristic indicators of time series data of each category were calculated, including the daily average skewness coefficient, daily average maximum value, daily average minimum value, daily average flow rate, daily average standard deviation, daily average quantile, daily average approximate entropy, and daily average kurtosis coefficient of the flow rate time series number;
[0012] Based on the data analysis results and business experience, we identify the categories of traffic pullers among all categories. Based on the time series data of all IPs in the corresponding category, we summarize and extract the basic characteristics of malicious traffic pullers, including the fluctuation amplitude and the lack of periodicity in the traffic rate time series data.
[0013] Determine whether the daily average traffic rate is greater than the maximum set threshold. If so, determine that the corresponding IP is a potential malicious traffic pulling IP, that is, a suspected malicious traffic pulling IP. If not, use the periodic detection algorithm to perform periodic inspections, including:
[0014] Design a periodicity detection algorithm based on statistics and time series analysis technology based on deep neural networks, and obtain periodicity detection based on autocorrelation coefficient and periodicity detection based on deep learning recurrent neural network LSTM;
[0015] The periodicity test of any IP time series data is performed using two detection methods: autocorrelation coefficient periodicity test and deep learning recurrent neural network LSTM periodicity test. If the test results of the two detection methods are consistent, the periodicity test result is considered valid, otherwise the periodicity test result is considered invalid.
[0016] Perform fluctuation detection on IPs that are determined to be non-periodic, filter out suspected malicious traffic-pulling IPs based on the fluctuation amplitude, and obtain a list of suspected malicious traffic-pulling IPs;
[0017] According to the list of suspected malicious traffic-pulling IPs, the source IPs of the corresponding suspected malicious traffic-pulling IPs are obtained through the operator's traffic collection and analysis system, and the DNS resolves the domain name accessed by the source IP.
[0018] A further improvement of the present invention is to perform cluster analysis on the time series data after all IP filtering using a clustering algorithm based on dynamic time warping, where the clustering feature is the average daily traffic rate of each IP within a set number of days, specifically including the following steps:
[0019] Step a: Standardize and reduce the dimension of time series data to remove noise. The expression is:
[0020]
[0021] in, For data The mean of For data The variance of is the processed data;
[0022] Step b: Determine the optimal number of clusters in the clustering algorithm by the elbow method. The expression is:
[0023]
[0024] Among them, SSE is the clustering effect, For the Clusters, For the The centroid of the cluster, Belong to the cluster data points, is the number of clusters;
[0025] Step c: Calculate the silhouette coefficient of each sample in the cluster. The expression is:
[0026]
[0027] in, is the average distance between the sample and other samples in the same cluster, b is the average distance between the sample and the cluster where the nearest sample is located, is the silhouette coefficient, To obtain , the maximum value in b;
[0028] Repeat steps b and c to perform cluster analysis on all IP-filtered time series data.
[0029] A further improvement of the present invention is that: the autocorrelation coefficient periodicity detection includes setting a plurality of different periods, i.e., the length of the time series data, calculating the autocorrelation coefficients under different period hysteresis, and when the autocorrelation coefficients under different period hysteresis are all less than 0, determining that the flow rate time series data in the IP time series data is non-periodic;
[0030] Among them, the calculation expression of the autocorrelation coefficient is:
[0031]
[0032] in, The lag order is The autocorrelation coefficient of is the flow rate time series data at time The value of is the mean of the flow rate time series data, that is, the average daily flow rate, is the length of the time series data.
[0033] A further improvement of the present invention is that the design of periodicity detection of the deep learning recurrent neural network LSTM specifically includes:
[0034] According to the business characteristics, the time series data of each IP record is periodically annotated and labeled. The periodic data category is 1, and the non-periodic data category is 0 to form a data set.
[0035] Build an LSTM neural network model;
[0036] Use the data set to train the LSTM neural network model, monitor the inference effect of the LSTM neural network model, and calculate the accuracy and recall of the LSTM neural network model.
[0037] A further improvement of the present invention is to perform fluctuation detection on the IP determined to be aperiodic, and the specific operation includes:
[0038] For the time series data of IPs that are determined to be non-periodic, determine whether the average daily traffic rate is less than the minimum set threshold. If so, determine that the IP is not a malicious traffic-pulling IP and skip the volatility detection. If not, perform the volatility detection.
[0039] For the IP to be tested for volatility, sort the time series data of the IP by date and perform the difference, that is, calculate the volatility of the next day compared with the previous day. The expression is:
[0040]
[0041] Filter out the dates corresponding to the time series data with fluctuations exceeding 100%, which are the dates of traffic surges;
[0042] If the fluctuation range exceeds minus 10% for several consecutive days starting from the date of traffic surge, the IP address will be considered as a suspected malicious traffic pulling IP address.
[0043] A device for identifying a malicious IP address across regions of a stream of traffic according to the present invention comprises:
[0044] The data collection module is used to obtain the time series data of IP addresses in some areas and network segments within a given time range through the operator's traffic collection and analysis system, including timestamp, inbound port type, outbound port type, source end area, target end area, source end type, target end type, routing area, router type and traffic rate time series data;
[0045] Data preprocessing module, used to preprocess the time series data of IP;
[0046] A data analysis module is used to analyze the pre-processed time series data, including clustering analysis of the flow rate time series data in the processed time series data using a clustering algorithm based on dynamic time warping, data analysis of each category of sample sets obtained by clustering analysis, and calculation of characteristic indicators of each category of flow rate time series data, including the daily average skewness coefficient, daily average maximum value, daily average minimum value, daily average flow rate, daily average standard deviation, daily average quantile, daily average approximate entropy, and daily average kurtosis coefficient of the flow rate time series data;
[0047] The feature extraction module is used to find the category of traffic pulling from all categories based on the data analysis results and business experience. It summarizes and extracts the basic features of malicious traffic pulling IPs based on the time series data of all IPs under the corresponding category, including the fluctuation amplitude and the lack of periodicity of the traffic rate time series data.
[0048] The IP identification module is used to identify any IP suspected of malicious traffic pulling, including autocorrelation periodicity detection, deep learning recurrent neural network LSTM periodicity detection, and volatility detection;
[0049] The output display module is used to display the output of the analysis data, including the time series trend display of suspected malicious IPs, various data analysis results, and the distribution display of the source IPs of suspected malicious IPs.
[0050] A further improvement of the present invention is that the operations performed by the data preprocessing module include:
[0051] Based on the storage and computing pressure caused by data granularity, the time series data is aggregated and resampled to convert second-level data into hour-level data;
[0052] Filter the records of time series data whose traffic rate is less than the set value, and count the average daily traffic rate of each IP after filtering.
[0053] A further improvement of the present invention is that the operations performed by the data analysis module include:
[0054] Step a: Standardize and reduce the dimension of time series data to remove noise. The expression is:
[0055]
[0056] in, For data The mean of For data The variance of is the processed data;
[0057] Step b: Determine the optimal number of clusters in the clustering algorithm by the elbow method. The expression is:
[0058]
[0059] Among them, SSE is the clustering effect, For the Clusters, For the The centroid of the cluster, Belong to the cluster data points, is the number of clusters;
[0060] Step c: Calculate the silhouette coefficient of each sample in the cluster. The expression is:
[0061]
[0062] in, is the average distance between the sample and other samples in the same cluster, b is the average distance between the sample and the cluster where the nearest sample is located, is the silhouette coefficient, To obtain , the maximum value in b;
[0063] Repeat steps b and c to perform cluster analysis on the traffic rate time series data in all IP filtered time series data;
[0064] Data analysis is performed on the sample set of each category obtained by cluster analysis, and the characteristic indicators of the flow rate time series data of each category are calculated, including the daily average skewness coefficient, daily average maximum value, daily average minimum value, daily average flow rate, daily average standard deviation, daily average quantile, daily average approximate entropy, and daily average kurtosis coefficient of the flow rate time series data.
[0065] A further improvement of the present invention is that the specific operations performed by the IP identification module include:
[0066] A periodicity detection algorithm is designed based on statistics and time series analysis technology based on deep neural networks, and autocorrelation coefficient periodicity detection and deep learning recurrent neural network LSTM periodicity detection are obtained, specifically including: the autocorrelation coefficient periodicity detection includes setting a plurality of different periods, i.e., the length of the time series data, calculating the autocorrelation coefficients under different period lags, and when the autocorrelation coefficients under different period lags are all less than 0, it is determined that the flow rate time series data in the IP time series data is non-periodic;
[0067] Among them, the calculation expression of the autocorrelation coefficient is:
[0068]
[0069] in, The lag order is The autocorrelation coefficient of is the flow rate time series data at time The value of is the mean of the flow rate time series data, that is, the average daily flow rate, is the length of the time series data.
[0070] The design of periodicity detection of the deep learning recurrent neural network LSTM specifically includes:
[0071] According to the business characteristics, the time series data of each IP record is periodically annotated and labeled. The periodic data category is 1, and the non-periodic data category is 0 to form a data set.
[0072] Build an LSTM neural network model;
[0073] Use the data set to train the LSTM neural network model, monitor the inference effect of the LSTM neural network model, and calculate the accuracy and recall of the LSTM neural network model;
[0074] The periodicity test of any IP time series data is performed using two detection methods: autocorrelation coefficient periodicity test and deep learning recurrent neural network LSTM periodicity test. If the test results of the two detection methods are consistent, the periodicity test result is considered valid, otherwise the periodicity test result is considered invalid.
[0075] Perform fluctuation detection on IPs that are determined to be non-periodic, filter out suspected malicious traffic-pulling IPs based on the fluctuation amplitude, and obtain a list of suspected malicious traffic-pulling IPs;
[0076] According to the list of suspected malicious traffic-pulling IPs, the source IPs of the corresponding suspected malicious traffic-pulling IPs are obtained through the operator's traffic collection and analysis system, and the DNS resolves the domain name accessed by the source IP.
[0077] A further improvement of the present invention is to perform fluctuation detection on the IP determined to be aperiodic, and the specific operation includes:
[0078] For the time series data of IPs that are determined to be non-periodic, determine whether the average daily traffic rate is less than the minimum set threshold. If so, determine that the IP is not a malicious traffic-pulling IP and skip the volatility detection. If not, perform the volatility detection.
[0079] For the IP to be tested for volatility, sort the time series data of the IP by date and perform the difference, that is, calculate the volatility of the next day compared with the previous day. The expression is:
[0080]
[0081] Filter out the dates corresponding to the time series data with fluctuations exceeding 100%, which are the dates of traffic surges;
[0082] If the fluctuation range exceeds minus 10% for several consecutive days starting from the date of traffic surge, the IP address will be considered as a suspected malicious traffic pulling IP address.
[0083] The beneficial effects of the present invention are as follows: the present invention can effectively improve the accuracy and efficiency of identifying malicious cross-regional IP traffic, timely discover and handle malicious traffic pulling behaviors, and realize real-time monitoring of network traffic. The present invention is conducive to ensuring the fairness and rationality of cross-regional bandwidth service settlement, optimizing network resource allocation, improving network service quality and stability, and at the same time, it is conducive to avoiding resource waste and additional cost expenditure caused by malicious traffic pulling, and realizing effective cost control. It can be widely used in related scenarios of cross-regional settlement of bandwidth-based services in the field of network communications, and has important application value and practical significance. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] Figure 1 is a flow chart of a method in an embodiment of the present invention;
[0085] Figure 2 It is a schematic diagram of the structure of the deep learning recurrent neural network LSTM in an embodiment of the present invention;
[0086] Figure 3 Schematic diagram of average daily traffic rates of different IPs in an embodiment of the present invention;
[0087] Figure 4 is a schematic diagram of the result of determining the optimal number of clusters using the elbow method in an embodiment of the present invention;
[0088] Figure 5 It is a schematic diagram of the trend of malicious streaming IP displayed by the device in the embodiment of the present invention;
[0089] Figure 6It is a schematic diagram of the principle structure of the device in an embodiment of the present invention. DETAILED DESCRIPTION
[0090] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0091] like Figure 1 As shown, a method for identifying a malicious IP address for pulling traffic across regions in this embodiment includes the following steps:
[0092] S1, through the operator's traffic collection and analysis system, obtain the time series data of IP in some network segments of two different regions within a given time range, including timestamp, inbound port type, outbound port type, source end region, target end region, source end type, target end type, routing area, router type and traffic rate time series data, where the inbound port type includes uplink port, downlink port and parallel port. Among them, the inbound port type and the outbound port type indicate whether the traffic flows in and out from the uplink port, downlink port or parallel port, etc., and the source end type and the target end type indicate whether the source and target end IPs belong to the data center (IDC), metropolitan area network (home broadband, enterprise broadband, dedicated line, etc.) or others. The routing area indicates the area where the router is located, and the router type indicates whether the router IP belongs to the data center or metropolitan area network.
[0093] S2, preprocess the time series data, that is, data cleaning, including resampling, outlier detection, missing value processing, etc. Specifically, based on the storage and computing pressure caused by data granularity, aggregate and resample the time series data to convert second-level data into hourly data. Since the statistics are about the traffic rate of the downstream port, that is, the downstream traffic rate, the unit is Mbps / s (megabits per second), and not every IP has a downstream traffic rate within 24 hours a day, in order to increase the accuracy of the calculation, the records of time series data with a traffic rate less than 1Mbps / s are filtered, and the average daily traffic rate of each IP after filtering is calculated. The calculation expression is:
[0094]
[0095] in, is the traffic rate of the filtered IP in a certain hour, To filter the number of records within one day, is the average daily traffic rate of IP, The average daily traffic rate of some IPs is as follows: Figure 3 shown.
[0096] S3, average daily traffic rate in IP On this basis, in order to timely discover and reflect the changes in patterns and trends in time series data, the clustering algorithm TimeSeriesKMeans based on dynamic time warping is used to perform cluster analysis on the time series data of all IPs. The clustering feature is the average daily traffic rate of each IP within the set number of days, including:
[0097] S3-1, standardize and reduce the dimension of time series data, remove noise to ensure data quality. This includes converting time series data into a normal distribution with a mean of 0 and a variance of 1. The expression is:
[0098]
[0099] in, For data The mean of For data The variance of is the processed data;
[0100] S3-2, such as Figure 4 As shown in the figure, the optimal number of clusters in the clustering algorithm, that is, the K value, is determined by the elbow method. The expression is:
[0101]
[0102] Among them, SSE is the clustering effect, For the Clusters, For the The centroid of the cluster, Belong to the cluster data points, is the number of clusters;
[0103] S3-3, calculate the silhouette coefficient of each sample in the cluster, the expression is:
[0104]
[0105] in, is the average distance between the sample and other samples in the same cluster, b is the average distance between the sample and the cluster where the nearest sample is located, To obtain , the maximum value in b, is the silhouette coefficient. The value of the silhouette coefficient of the clustering result is between [-1, 1]. The larger the value, the closer the samples of the same type are to each other. The farther the samples of different types are from each other, the better the clustering effect is. In this embodiment, the silhouette coefficients corresponding to the number of cluster centers 2, 3, 4, and 5 are 0.99, 0.97, 0.89, and 0.87, respectively. .
[0106] S3-4, repeat S3-2 and S3-3 to perform cluster analysis on the traffic rate time series data in all IP filtered time series data, and cluster them into 5 categories.
[0107] S4, perform data analysis on the sample set of each category obtained by cluster analysis, and calculate the characteristic indicators of the flow rate time series data of each category, including the daily average skewness coefficient, daily average maximum value, daily average minimum value, daily average flow rate, daily average standard deviation, daily average quantile, daily average approximate entropy, and daily average kurtosis coefficient of the flow rate time series data.
[0108] S5, based on the data analysis results and business experience, find the category of traffic pulling in all categories. If the average daily traffic rate of a certain category of IP exceeds the normal range of the average daily traffic rate of normal business, then the category is determined to be a category of traffic pulling. For the time series data of all IPs under this category, summarize and extract the basic characteristics of malicious traffic pulling IPs, including that the average daily traffic rate is much higher than other normal IPs, and that it maintains a high traffic state for many consecutive days without periodicity.
[0109] S6, in order to identify whether any IP to be detected is a potential malicious streaming IP, based on the recent historical time series data of the IP to be detected, calculate the average daily traffic rate of each IP every day, and judge whether the corresponding IP is a potential malicious streaming IP according to the size of the average daily traffic rate. If the average daily traffic rate is greater than 3Gbps / s, the IP is directly determined to be a potential malicious streaming IP, that is, a suspected malicious streaming IP. If the average daily traffic rate is less than or equal to 3Gbps / s, execute S7.
[0110] S7, based on statistics and time series analysis technology based on deep neural network, a periodicity detection algorithm is designed to obtain the periodicity detection algorithm of autocorrelation coefficient periodicity detection and deep learning recurrent neural network LSTM periodicity detection. Specifically including:
[0111] S7-1, autocorrelation coefficient periodicity detection, including:
[0112] S7-1-1, obtaining the time series data of the IP to be detected, preprocessing the time series data, and obtaining the average daily traffic rate of the IP to be detected;
[0113] S7-1-2, calculate the autocorrelation coefficient of the time series data of the IP to be detected, where the autocorrelation coefficient is used to measure the correlation between a time series data and the time series data at different lag orders, that is, to examine the correlation between the data at the current moment and the data at a certain moment in the past. The expression is:
[0114]
[0115] in, The lag order is The autocorrelation coefficient of is the flow rate time series data at time The value of is the mean of the flow rate time series data, that is, the average daily flow rate, is the length of the time series data.
[0116] S7-1-3, in order to improve the calculation accuracy, this embodiment specifies three different periods when calculating the autocorrelation coefficient, namely 24h, 48h and 72h. When the autocorrelation coefficients under the three periods are all less than 0, it is determined that the time series data of the IP to be detected is a non-periodic sequence.
[0117] S7-2, Periodicity detection using deep learning recurrent neural network LSTM, including:
[0118] S7-2-1, obtain as much time series data of IPs as possible through the operator's traffic collection and analysis system, repeat S2, and obtain the average daily traffic rate of each IP;
[0119] S7-2-2, according to the business characteristics, the time series data of each IP record is periodically marked and labeled, with the periodic data category being 1 and the non-periodic data category being 0, to form a data set.
[0120] S7-2-3, build an LSTM neural network model, such as Figure 2 As shown in the figure, tanh represents the hyperbolic tangent function. represents the activation function, represents the element-wise product, , Respectively represent the previous moment output and the current output, , Represents the memory information of the previous moment and the memory information of the current moment respectively. The LSTM neural network model processes time series data through internal memory units and gating mechanisms. When faced with periodic data, it can learn pattern features that appear repeatedly at different time steps. Specifically, when there is periodicity in time series data, the LSTM neural network model can gradually capture repeated features during the training process, such as similar data change trends after a specific time interval. Adapt to periodic patterns by adjusting the connection weights between neurons. When encountering new data, determine whether there is periodicity based on the learned pattern features.
[0121] S7-2-4, use the data set to train the LSTM neural network model, monitor the inference effect of the LSTM neural network model, and calculate the accuracy and recall of the LSTM neural network model. The calculation expression of the accuracy is:
[0122]
[0123] The calculation expression of recall is:
[0124]
[0125] in, is the accuracy, is the recall rate, is the number of predicted pairs in the positive samples, is the number of wrong predictions in negative samples, is the number of mispredicted samples in the positive samples. In this embodiment, both the precision and recall rates are greater than 88%.
[0126] The periodicity test of any IP's time series data is performed using two detection methods: autocorrelation coefficient periodicity test and deep learning recurrent neural network LSTM periodicity test. In order to improve the accuracy of the results, the periodicity test result is only judged to be valid when the test results of the two detection methods are consistent, otherwise the periodicity test result is judged to be invalid, that is, it is judged to be non-periodic. For example: if the result of an IP under the autocorrelation coefficient periodicity test is that it has periodicity, and the result of the deep learning recurrent neural network LSTM periodicity test is that it does not have periodicity, then the periodicity result is ultimately judged to be invalid.
[0127] S8, performing fluctuation detection on the IPs determined to be non-periodic, filtering out suspected malicious streaming IPs based on the fluctuation amplitude, and obtaining a list of suspected malicious streaming IPs. The fluctuation detection on the IPs determined to be non-periodic includes:
[0128] S8-1, for the time series data of the IP determined to be non-periodic, in order to reduce the amount of calculation, first determine whether the average daily traffic rate is less than the minimum set threshold. If so, determine that the IP is not a malicious traffic pulling IP and skip the volatility detection. If not, perform volatility detection; the minimum set threshold of this embodiment is 100Mbps / s.
[0129] S8-2, for the IP to be tested for volatility, sort the time series data of the IP by date, perform differential analysis, and calculate the volatility of the next day compared to the previous day. The expression is:
[0130]
[0131] Filter out the dates corresponding to the time series data with fluctuations exceeding 100%, which are the dates of traffic surges;
[0132] If the fluctuation range exceeds minus 10% for several consecutive days starting from the date of traffic surge, the IP address will be considered as a suspected malicious traffic pulling IP address.
[0133] S9. Based on the suspected malicious traffic-pulling IP list, the source IP of the suspected malicious traffic-pulling IP is obtained through the operator's traffic collection and analysis system. The DNS (Domain Name System) resolves the domain name accessed by the source IP, helping the operator to monitor and analyze abnormal access traffic and behavior in real time through technical means. Figure 5 The trend of malicious traffic-pulling IP addresses is shown.
[0134] The above method is implemented by a cross-region malicious streaming IP identification device of this embodiment, such as Figure 6 As shown, the device comprises:
[0135] The data collection module is used to obtain the time series data of IP addresses in some areas and network segments within a given time range through the operator's traffic collection and analysis system, including timestamp, inbound port type, outbound port type, source end area, target end area, source end type, target end type, routing area, router type and traffic rate time series data;
[0136] Data preprocessing module, used to preprocess the time series data of IP;
[0137] The data analysis module is used to analyze the pre-processed time series data, including clustering analysis of the flow rate time series data in the processed time series data using a clustering algorithm based on dynamic time warping, data analysis of each category of sample sets obtained by clustering analysis, calculation of characteristic indicators of each category of flow rate time series data, including the daily average skewness coefficient, daily average maximum value, daily average minimum value, daily average flow rate, daily average standard deviation, daily average quantile, daily average approximate entropy, and daily average kurtosis coefficient of the flow rate time series data, and drawing graphs according to the analysis results and needs;
[0138] The feature extraction module is used to find the category of traffic pulling from all categories based on the data analysis results and business experience. It summarizes and extracts the basic features of malicious traffic pulling IPs based on the time series data of all IPs under the corresponding category, including the fluctuation amplitude and the lack of periodicity of the traffic rate time series data.
[0139] The IP identification module is used to identify any IP suspected of malicious traffic pulling, including autocorrelation periodicity detection, deep learning recurrent neural network LSTM periodicity detection, and volatility detection;
[0140] The output display module is used to display the output of the analysis data, including the time series trend display of suspected malicious IPs, various data analysis results, and the distribution display of the source IPs of suspected malicious IPs.
[0141] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have the same meaning as in the context of the prior art, and will not be interpreted with an idealized or overly formal meaning unless defined similarly here.
[0142] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for identifying cross-region malicious streaming IP, characterized by: The following operations are included: The operator's traffic collection and analysis system is used to obtain time series data of IP addresses in some areas and network segments within a given time range, including timestamp, inbound port type, outbound port type, source end area, target end area, source end type, target end type, routing area, router type, and traffic rate time series data; Preprocess the time series data, including: based on the storage and computing pressure caused by the data granularity, aggregate and resample the time series data to convert the second-level data into hour-level data; filter the records of time series data with a flow rate less than the set value, and calculate the average daily flow rate of each IP after filtering; A clustering algorithm based on dynamic time warping is used to perform cluster analysis on the traffic rate time series data in the time series data after all IPs are filtered. The clustering feature is the average daily traffic rate of each IP within the set number of days. Perform data analysis on the sample set of each category obtained by cluster analysis, and calculate the characteristic indicators of the flow rate time series data of each category, including the daily average skewness coefficient, daily average maximum value, daily average minimum value, daily average flow rate, daily average standard deviation, daily average quantile, daily average approximate entropy, and daily average kurtosis coefficient of the flow rate time series data; Based on the data analysis results and business experience, we identify the categories of traffic pullers among all categories. Based on the time series data of all IPs in the corresponding category, we summarize and extract the basic characteristics of malicious traffic pullers, including the fluctuation amplitude and the lack of periodicity in the traffic rate time series data. Determine whether the daily average traffic rate is greater than the maximum set threshold. If so, determine that the corresponding IP is a potential malicious traffic pulling IP, that is, a suspected malicious traffic pulling IP. If not, use the periodic detection algorithm to perform periodic inspections, including: Design a periodicity detection algorithm based on statistics and time series analysis technology based on deep neural networks, and obtain periodicity detection based on autocorrelation coefficient and periodicity detection based on deep learning recurrent neural network LSTM; The periodicity test of any IP time series data is performed using two detection methods: autocorrelation coefficient periodicity test and deep learning recurrent neural network LSTM periodicity test. If the test results of the two detection methods are consistent, the periodicity test result is considered valid, otherwise the periodicity test result is considered invalid. Perform fluctuation detection on IPs that are determined to be non-periodic, filter out suspected malicious traffic-pulling IPs based on the fluctuation amplitude, and obtain a list of suspected malicious traffic-pulling IPs; According to the list of suspected malicious traffic-pulling IPs, the source IPs of the corresponding suspected malicious traffic-pulling IPs are obtained through the operator's traffic collection and analysis system, and the DNS resolves the domain name accessed by the source IP.
2. According to claim 1, a method for identifying cross-region malicious streaming IPs is characterized by: The clustering algorithm based on dynamic time warping is used to perform cluster analysis on the traffic rate time series data in the time series data after all IPs are filtered. The clustering feature is the average daily traffic rate of each IP within the set number of days. Specifically, the steps include: Step a: Standardize and reduce the dimension of the traffic rate time series data in the time series data to remove noise. The expression is: ; in, Traffic rate time series data The mean of Traffic rate time series data The variance of is the processed data; Step b: Determine the optimal number of clusters in the clustering algorithm by the elbow method. The expression is: ; Among them, SSE is the clustering effect, For the Clusters, For the The centroid of the cluster, Belong to the cluster data points, is the number of clusters; Step c: Calculate the silhouette coefficient of each sample in the cluster. The expression is: ; in, is the average distance between the sample and other samples in the same cluster, b is the average distance between the sample and the cluster where the nearest sample is located, is the silhouette coefficient, To obtain , the maximum value in b; Repeat steps b and c to perform cluster analysis on the traffic rate time series data in all IP filtered time series data.
3. According to claim 1, a method for identifying cross-region malicious streaming IPs is characterized in that: The autocorrelation coefficient periodicity detection includes setting a plurality of different periods, i.e., the length of the time series data, calculating the autocorrelation coefficients under different period hysteresis, and when the autocorrelation coefficients under different period hysteresis are all less than 0, determining that the flow rate time series data in the IP time series data is non-periodic; Among them, the calculation expression of the autocorrelation coefficient is: ; in, The lag order is The autocorrelation coefficient of is the flow rate time series data at time The value of is the mean of the flow rate time series data, that is, the average daily flow rate, is the length of the time series data.
4. According to claim 1, a method for identifying cross-region malicious streaming IPs is characterized by: The design of periodicity detection of the deep learning recurrent neural network LSTM specifically includes: According to the business characteristics, the time series data of each IP record is periodically annotated and labeled. The periodic data category is 1, and the non-periodic data category is 0 to form a data set. Build an LSTM neural network model; Use the data set to train the LSTM neural network model, monitor the inference effect of the LSTM neural network model, and calculate the accuracy and recall of the LSTM neural network model.
5. According to claim 1, a method for identifying cross-region malicious streaming IPs is characterized in that: The fluctuation detection of the IP determined to be non-periodic includes: For the time series data of IPs that are determined to be non-periodic, determine whether the average daily traffic rate is less than the minimum set threshold. If so, determine that the IP is not a malicious traffic-pulling IP and skip the volatility detection. If not, perform the volatility detection. For the IP to be tested for volatility, sort the time series data of the IP by date and perform the difference, that is, calculate the volatility of the next day compared with the previous day. The expression is: ; Filter out the dates corresponding to the time series data with fluctuations exceeding 100%, which are the dates of traffic surges; If the fluctuation range exceeds minus 10% for several consecutive days starting from the date of traffic surge, the IP address will be considered as a suspected malicious traffic pulling IP address.
6. A device for identifying malicious IP addresses in cross-region streaming, characterized in that: The device comprises: The data collection module is used to obtain the time series data of IP addresses in some areas and network segments within a given time range through the operator's traffic collection and analysis system, including timestamp, inbound port type, outbound port type, source end area, target end area, source end type, target end type, routing area, router type and traffic rate time series data; Data preprocessing module, used to preprocess the time series data of IP; A data analysis module is used to analyze the pre-processed time series data, including clustering analysis of the flow rate time series data in the processed time series data using a clustering algorithm based on dynamic time warping, data analysis of each category of sample sets obtained by clustering analysis, and calculation of characteristic indicators of each category of flow rate time series data, including the daily average skewness coefficient, daily average maximum value, daily average minimum value, daily average flow rate, daily average standard deviation, daily average quantile, daily average approximate entropy, and daily average kurtosis coefficient of the flow rate time series data; The feature extraction module is used to find the category of traffic pulling from all categories based on data analysis results and business experience. It summarizes and extracts the basic features of malicious traffic pulling IPs based on the time series data of all IPs in the corresponding category, including the fluctuation amplitude and the lack of periodicity of the traffic rate time series data. The IP identification module is used to identify any IP suspected of malicious traffic pulling, including autocorrelation periodicity detection, deep learning recurrent neural network LSTM periodicity detection, and volatility detection; The output display module is used to display the output of the analysis data, including the time series trend display of suspected malicious IPs, various data analysis results, and the distribution display of the source IPs of suspected malicious IPs; The operations performed by the data analysis module include: Step a: Standardize and reduce the dimension of the traffic rate time series data in the time series data to remove noise. The expression is: ; in, Traffic rate time series data The mean of Traffic rate time series data The variance of is the processed data; Step b: Determine the optimal number of clusters in the clustering algorithm by the elbow method. The expression is: ; Among them, SSE is the clustering effect, For the Clusters, For the The centroid of the cluster, Belong to the cluster data points, is the number of clusters; Step c: Calculate the silhouette coefficient of each sample in the cluster. The expression is: ; in, is the average distance between the sample and other samples in the same cluster, b is the average distance between the sample and the cluster where the nearest sample is located, is the silhouette coefficient, To obtain , the maximum value in b; Repeat steps b and c to perform cluster analysis on all IP-filtered time series data; Data analysis is performed on the sample set of each category obtained by cluster analysis, and the characteristic indicators of the flow rate time series data of each category are calculated, including the skewness coefficient, maximum value, minimum value, flow rate, standard deviation, quantile, approximate entropy, and kurtosis coefficient of the flow rate time series data.
7. The device for identifying cross-region malicious IP stream pulling according to claim 6, characterized in that: The operations performed by the data preprocessing module include: Based on the storage and computing pressure caused by data granularity, the time series data is aggregated and resampled to convert second-level data into hour-level data. Filter the records of time series data whose traffic rate is less than the set value, and count the average daily traffic rate of each IP after filtering.
8. The device for identifying cross-region malicious IP stream pulling according to claim 6, characterized in that: The specific operations performed by the IP identification module include: A periodicity detection algorithm is designed based on statistics and time series analysis technology based on deep neural networks, and autocorrelation coefficient periodicity detection and deep learning recurrent neural network LSTM periodicity detection are obtained, specifically including: the autocorrelation coefficient periodicity detection includes setting a plurality of different periods, i.e., the length of the time series data, calculating the autocorrelation coefficients under different period lags, and when the autocorrelation coefficients under different period lags are all less than 0, it is determined that the flow rate time series data in the IP time series data is non-periodic; Among them, the calculation expression of the autocorrelation coefficient is: ; in, The lag order is The autocorrelation coefficient of is the flow rate time series data at time The value of is the mean of the flow rate time series data, that is, the average daily flow rate, is the length of the time series data; The design of periodicity detection of the deep learning recurrent neural network LSTM specifically includes: According to the business characteristics, the time series data of each IP record is periodically annotated and labeled. The periodic data category is 1, and the non-periodic data category is 0 to form a data set. Build an LSTM neural network model; Use the data set to train the LSTM neural network model, monitor the inference effect of the LSTM neural network model, and calculate the accuracy and recall of the LSTM neural network model; The periodicity test of any IP time series data is performed using two detection methods: autocorrelation coefficient periodicity test and deep learning recurrent neural network LSTM periodicity test. If the test results of the two detection methods are consistent, the periodicity test result is considered valid, otherwise the periodicity test result is considered invalid. Perform fluctuation detection on IPs that are determined to be non-periodic, filter out suspected malicious traffic-pulling IPs based on the fluctuation amplitude, and obtain a list of suspected malicious traffic-pulling IPs; According to the list of suspected malicious traffic-pulling IPs, the source IPs of the corresponding suspected malicious traffic-pulling IPs are obtained through the operator's traffic collection and analysis system, and the DNS resolves the domain name accessed by the source IP.
9. The device for identifying cross-region malicious IP stream pulling according to claim 8, characterized in that: The fluctuation detection of the IP determined to be non-periodic includes: For the time series data of IPs that are determined to be non-periodic, determine whether the average daily traffic rate is less than the minimum set threshold. If so, determine that the IP is not a malicious traffic-pulling IP and skip the volatility detection. If not, perform the volatility detection. For the IP to be tested for volatility, sort the time series data of the IP by date and perform the difference, that is, calculate the volatility of the next day compared with the previous day. The expression is: ; Filter out the dates corresponding to the time series data with fluctuations exceeding 100%, which are the dates of traffic surges; If the fluctuation range exceeds minus 10% for several consecutive days starting from the date of traffic surge, the IP address will be considered as a suspected malicious traffic pulling IP address.
Citation Information
Patent Citations
Network anomaly flow detection and defense system based on SDN (software defined networking)
CN106357622A
Flow-based abnormal communication behavior detection method and system
CN110149343A
Anomaly analysis method and device for network data
CN111245793A
Anomaly detection method and system based on stream data
CN113079143A
Malicious DNS tunnel recognition method for internal network traffic
CN113141370A
