Method for detecting slow HTTP denial of service attacks in backbone networks

By extracting unidirectional traffic characteristic data and Count-min Sketch technology, combined with machine learning algorithms, the problem of accuracy and efficiency of slow HTTP denial-of-service attack detection in the backbone network is solved, and it is realized in high-traffic and asymmetric routing environments. Rapid detection and defense.

WO2024174432A1PCT designated stage expired Publication Date: 2024-08-29SOUTHEAST UNIV

Patent Information

Application Number
PCT/CN2023/102350
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-20
Filing Date
2023-06-26
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Existing slow HTTP denial-of-service attack detection methods have insufficient accuracy, computational efficiency, and adaptability in backbone networks. Especially in the case of high traffic and asymmetric routing, it is difficult to effectively detect, resulting in attack traffic not being detected in time or Inaccurate detection may lead to network node downtime and communication interruption.

Method used

The offline training phase is used to extract unidirectional traffic characteristic data, combined with Count-min Sketch technology for data storage, and a machine learning algorithm is used to build a detection model. It can perform real-time detection of unidirectional traffic in the backbone network during the online detection phase, improving detection accuracy. Accuracy and efficiency.

Benefits of technology

It achieves fast and accurate detection of slow HTTP denial-of-service attacks in massive traffic scenarios, reduces calculation and storage overhead, adapts to the characteristics of one-way traffic in the backbone network, can detect attack traffic in time and provides defense basis, and adapts to encryption Traffic trends.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023102350_29082024_PF_FP_ABST
    Figure CN2023102350_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention is method for detecting slow HTTP denial of service (Slow HTTP DoS,SHD) attacks in backbone networks. The method provided by the present invention can complete the detection for three different types of SHD attacks. The detection method of the present invention is divided into an offline training stage and an online detection stage: in the offline training stage, according to attack characteristics of different SHD types, extracting a plurality of representative one-way traffic feature data and constructing corresponding feature groups, the features all being capable of effectively coping with the situation of a large amount of one-way traffic in backbone network nodes; performing system sampling on a public backbone network traffic data set and, on the basis of Count-min Sketch technology, storing the data, so as to solve to a great extent the problem of backbone networks requiring a large computation amount and a large storage space; and finally, performing training by using a specific machine learning method to obtain attack detection models. The present invention can be used for SHD attack behavior detection and early warning in the scenario of mass traffic of backbone networks, etc., providing a basis for maintaining the network security status.
Need to check novelty before this filing date? Find Prior Art

Description

A Detection Method for Slow HTTP Denial of Service Attacks in Backbone Networks Technical Field

[0001] The present invention relates to a detection method for slow HTTP denial of service attacks in a backbone network, and belongs to the technical field of network space security. Background Art

[0002] Today, DDoS (DDoS) has become one of the most directly harmful and widespread attacks on the internet. Traditional DDoS attacks, such as SYN floods, often generate large amounts of traffic. Detection technology for these high-volume DDoS attacks has matured, leading attackers to devise newer, more advanced, and more advantageous DDoS attacks. Slow HTTP Denial of Service (SHD) attacks are one such example of a stealthy, low-rate, low-volume attack operating at the application layer. SHD targets are often located at key nodes in backbone networks, where the volume of traffic passing through them is substantial, making SHD traffic a smaller proportion of the total traffic. Detecting SHD traffic in backbone networks is challenging, but accurate and timely detection can strengthen backbone network security and prevent significant losses. Therefore, efficient detection of SHD attacks in backbone networks is crucial.

[0003] In recent years, several researchers have proposed several SHD detection methods. Most existing methods observe detailed bidirectional flow data, such as the number of uplink and downlink packets, uplink and downlink TTLs, and the interval between uplink and downlink packets, and select features from these data to best characterize the state of each flow. These methods can achieve relatively good results in small-scale networks with low traffic volumes. However, with today's fast backbone networks, where critical network nodes typically handle data volumes of Gbps or more per second, the following existing SHD attack detection methods all have limitations in high-traffic backbone networks.

[0004] (1) Detection method based on potential traffic patterns.

[0005] This method requires careful observation of SHD attack behavior and traffic patterns, and uses rigorous mathematical methods to infer the underlying mathematical patterns within SHD traffic patterns, such as the periodicity of SHD traffic, the relationship between packet lengths, and the relationship between packet intervals. This method works well in non-sampling environments, but in backbone networks, where large-scale sampling is required, traffic patterns can change after sampling. A lower sampling rate results in greater changes in traffic patterns, leading to greater instability and a sharp drop in detection rates. Therefore, this method is difficult to apply to detecting SHD attacks on backbone networks.

[0006] (2) Detection methods based on artificial intelligence.

[0007] This method uses artificial intelligence to classify traffic. Researchers typically manually or automatically identify the signatures of SHD traffic. This method leverages the powerful learning capabilities of artificial intelligence and the superior performance of specific algorithms for classification problems, achieving good detection accuracy. However, existing AI-based methods are difficult to apply to backbone networks. For one thing, existing deep learning-based detection methods, due to the inherent complexity of their algorithms, struggle to achieve real-time detection with the massive amounts of data in backbone networks. Furthermore, existing machine learning-based detection methods typically use a large number of parameters as feature data, which further increases the computational load and makes them difficult to apply to backbone networks. The excessive number of features also means they lack sufficient representativeness and hinder subsequent traffic analysis during the defense phase. Furthermore, these methods are all based on bidirectional traffic and fail to account for situations where only unidirectional traffic can be captured, i.e., asymmetric routing, which is common in backbone networks. Therefore, existing AI-based methods are difficult to apply to detecting SHD attacks in backbone networks.

[0008] The detection of SHD attacks in backbone networks places high demands on the accuracy of the methods, the adaptability of the network environment, and the efficiency of the calculations. The current difficulties can be summarized as follows: (1) The backbone network environment further reduces the proportion of SHD traffic, making it more concealed; (2) Existing methods are only applicable to small networks that use full traffic. Using full traffic in the backbone network consumes a lot of resources and is difficult to achieve real-time detection. In the case of low sampling rates, the accuracy of existing methods cannot meet the detection requirements; (3) Most existing methods are based on bidirectional flow data and do not take into account that the traffic passing through key nodes of the backbone network is often unidirectional, that is, they do not consider the asymmetry of routing. If the method cannot solve any of these three difficulties, it may result in the attack traffic not being accurately detected or detected in a timely manner, which may lead to problems such as node downtime and the inability to communicate normally between networks.

[0009] The detection method for SHD attacks provided by the present invention can solve the difficulty in effectively discovering SHD traffic in the backbone network in the current network security field.

[0010] Summary of the Invention

[0011] To solve the above problems, the present invention discloses a detection method for slow HTTP denial of service attacks (Slow HTTP DoS, SHD) in backbone networks. According to different ways of utilizing the protocol, common SHD attacks can be divided into three types: Slow Header (Slowloris), Slow Message Body (RUDY) and SlowREAD. The method proposed by the present invention can respectively complete the detection of three different attacks. The detection method in the present invention is divided into an offline training stage and an online detection stage. In the offline training stage, according to the attack characteristics of different SHD types, several representative unidirectional traffic feature data are extracted and corresponding feature groups are constructed. These features can effectively deal with the situation where there is a large amount of unidirectional traffic in the backbone network nodes; the public backbone network traffic data set is systematically sampled and the data is stored in combination with the Count-min Sketch technology, which greatly improves the problem of the backbone network requiring large computing power and high storage space; finally, a specific machine learning method is used for training to obtain an attack detection model. In the online detection stage, similar data preprocessing is performed on the traffic captured in the actual backbone network node to obtain a traffic feature vector, which is input into the attack detection model to detect whether there is attack traffic in the current traffic. The present invention can be used for SHD attack behavior detection and early warning in massive traffic scenarios such as backbone networks, providing a basis for maintaining the security status of the network.

[0012] To achieve the purpose of the present invention, the specific technical steps of this solution are as follows: A method for detecting slow HTTP denial of service attacks in a backbone network, the method comprising the following steps:

[0013] Step (1) Obtain the currently public authoritative backbone network data set and attack data set, and extract the traffic data therein; according to the specific scenario requirements, The traffic is systematically sampled at a ratio of 100 to 200, and the sampled traffic data is obtained. Sampling can reduce the massive amount of computing caused by backbone network traffic on the one hand, and on the other hand, it can also reduce the required storage space.

[0014] Step (2) Analyze the principle of the SHD attack, extract several one-way traffic feature data that can reflect the overall characteristics of the attack, such as the number of TCP packets without payload, the number of TCP packets with payload, the <IP, port> distribution of the traffic, etc. Based on the original feature data, according to the differences of different SHD attack types, expand specific one-way traffic feature data, so as to construct a feature group for each SHD attack;

[0015] Step (3) Based on the sampled traffic, according to different attack types, use the FarmHash function, Bitmap, and a custom Count-min Sketch data structure to extract and store the feature data described in step (2). The custom Sketch structure can also reduce the storage overhead;

[0016] Step (4) According to the actual type of the traffic, add labels to the feature data to form a labeled feature vector. The labels include three types of attack traffic and normal traffic;

[0017] Step (5) In order to further improve the processing speed, the present invention selects a machine learning algorithm with lower complexity, and inputs the feature vector obtained in step (4) into the machine learning algorithm for training to obtain traffic models for three types of SHD attacks;

[0018] Step (6) Capture real-time traffic from real backbone network nodes, and perform traffic sampling and feature data acquisition operations respectively according to the processes of step (1) and step (3). The feature data here can still be obtained from one-way traffic;

[0019] Step (7) Input the unlabeled feature vector generated in real time into the three attack traffic models obtained in step (5), and label the feature vector according to the prediction output of the model to identify the corresponding traffic type, and perform subsequent defense work according to the generated results.

[0020] Furthermore, in the said step (1), the steps of obtaining the traffic data for training are as follows:

[0021] (1.1) Obtain an authoritative backbone network dataset as background traffic. However, since the forms of the publicly available backbone network datasets on the Internet are not completely unified at present, it is necessary to select or organize the data in a unified format according to actual needs for subsequent processing;

[0022] (1.2) Build a distributed attack environment to simulate real-time attacks, use authoritative SHD attack tools to implement three types of SHD attacks, obtain attack traffic, and make it unified with the format of the background traffic in (1.1);

[0023] (1.3) Merge the background traffic and the attack traffic to obtain mixed traffic data. According to specific scenario requirements, systematically sample the mixed traffic at a ratio of to obtain the sampled traffic data.

[0024] Further, in step (2), the steps of constructing corresponding feature groups according to the attack type are as follows:

[0025] (2.1) Analyze the overall principle of the SHD attack, observe the similar behaviors of different attack traffics, and extract several unidirectional traffic feature data that can reflect common characteristics. These features do not involve the specific content of the application layer, such as the number of TCP packets without payload, the number of TCP packets with payload, the <IP, port> distribution of the traffic, etc.;

[0026] (2.2) Since the characteristics of different types of SHD attacks are not exactly the same, it is necessary to utilize the differences they exhibit in traffic to further refine specific unidirectional traffic feature data for each attack, such as the packet sending rate, the number of packets with RWND value of 0, etc.;

[0027] (2.3) According to the attack type, combine the common characteristics of SHD with the corresponding specific features to construct a specific feature group for each attack.

[0028] Further, in step (3), the steps of extracting and storing data features are as follows:

[0029] (3.1) There are multiple storage units in the custom Count-min Sketch structure. Each storage unit contains several Bitmaps and counters to save various types of feature data; each time a packet is obtained, the Count-min Sketch structure is updated once;

[0030] (3.2) For the traffic distribution in step (2.1), it cannot be directly obtained. It is necessary to hash <IP, port>. To improve the processing speed and reduce memory consumption, the FarmHash function is used here. Then, map the hash value to the Bitmap of the custom Sketch according to specific processing rules. Finally, use the number of 1s in the Bitmap to represent the traffic distribution;

[0031] (3.3) For other features in step (2), they can be directly obtained through specific formulas or stored using the counters in the custom Sketch;

[0032] (3.4) The Count-min Sketch structure requires that the unit corresponding to each keyword be updated k times before data is extracted once. Therefore, when the unit corresponding to the same <protocol, IP> data packet is updated k times cumulatively, a feature vector is obtained.

[0033] Furthermore, in step (4), the feature data is extracted using the <protocol, IP> of the data packet as a keyword, and when simulating an attack, each type of attack traffic is generated by a specific IP, so the feature data can be labeled with an attack type based on the <protocol, IP>. If the IP of the feature data does not belong to a specific attack IP, then the traffic is background traffic and can be identified as normal traffic.

[0034] Furthermore, in step (5), a machine learning algorithm is used to train the feature data. The selection of the algorithm needs to take into account processing speed, good classification performance, and the ability to prevent overfitting. In this step, the random forest algorithm is selected to train the sample features in step (4) to obtain the traffic models of the three SHD attacks.

[0035] Furthermore, in step (6), to detect whether there is SHD attack traffic in the backbone network, it is necessary to deploy relevant software and hardware at several important nodes of the backbone network, such as backbone network core routers, firewalls, large Web servers, etc., to capture real-time traffic data; the traffic data can be unidirectional, and its format should be consistent with step (1.1); The system samples the traffic flow in a systematic manner according to the ratio of , and extracts and stores the characteristic data of the sampled traffic flow according to step (3).

[0036] Furthermore, in step (7), the steps of predicting the current traffic and taking corresponding measures are as follows:

[0037] (7.1) During the training phase, we obtained three traffic models for SHD attacks. Here, we input the real-time feature data into each of these three attack traffic models for prediction. By integrating the prediction results from all models, we assign corresponding labels to the current feature data and complete the SHD traffic detection.

[0038] (7.2) Execute the corresponding strategy based on the actual prediction results. If it is normal traffic, it will be released. If it is attack traffic, an alarm will be generated to notify the network administrator. In addition, since the feature data is extracted using <protocol, IP> as the keyword, it can be decided whether to output the corresponding attack IP according to actual needs, providing a basis for further defense operations.

[0039] Compared with the prior art, the technical solution of the present invention has the following beneficial technical effects.

[0040] (1) The present invention proposes a method for quickly and accurately detecting slow HTTP denial of service attacks in scenarios where there is massive traffic, such as backbone networks. The method can analyze the traffic statistical characteristics on the current backbone network and, based on these characteristic data, efficiently detect SHD traffic, providing data basis for network security personnel.

[0041] (2) This invention extracts a few highly representative features through in-depth observation and analysis of the characteristics of SHD traffic. Combined with sampling technology, this method effectively addresses the high computational complexity associated with the massive traffic on the backbone network. Even at low sampling rates, these features maintain robustness and effectively detect SHD traffic. Furthermore, this invention uses a custom Count-min Sketch structure to record traffic information, significantly reducing storage overhead.

[0042] (3) All features extracted by the present invention can be obtained from unidirectional traffic, which means that even if there are a large number of asymmetric routes on the backbone network and the key nodes of the backbone network can only capture unidirectional flow data, the method of the present invention is still effective. Most existing studies are based on bidirectional traffic and do not consider the case of unidirectional traffic, which is relatively common in practice. In addition, since only unidirectional traffic is required, the present invention does not require flow grouping operations, which can further speed up the detection time and enable network security personnel to take defensive measures more promptly, which is also highly consistent with the needs of the backbone network.

[0043] (4) The method of the present invention can extract the required features without reading specific plaintext information at the application layer. SHD attacks occur at the application layer, where data may be encrypted. Existing methods that use plaintext information for identification cannot effectively deal with encrypted situations. The method of the present invention avoids using plaintext information at the application layer. Therefore, even if the data is encrypted, it can still stably detect attack traffic, adapting to the current trend of increasing encrypted traffic on backbone networks. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] FIG1 is a system framework diagram of a method for detecting slow HTTP denial of service attacks in a backbone network;

[0045] Figure 2 is a diagram of the custom Count-min Sketch structure;

[0046] Figure 3 is a diagram of the Bitmap update process;

[0047] Figure 4 is the topology diagram of the attack environment. DETAILED DESCRIPTION

[0048] The technical solutions provided by the present invention will be described in detail below with reference to specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.

[0049] Example: The present invention provides a method for detecting slow HTTP denial of service attacks in a backbone network. The overall system structure is shown in FIG1 and includes the following steps:

[0050] Step (1) obtain the currently public authoritative backbone network data set and attack data set, and extract the traffic data therein; according to the specific scenario requirements, systematically sample the traffic according to the ratio to obtain the sampled traffic data; sampling can reduce the massive amount of computing caused by the backbone network traffic on the one hand, and on the other hand, it can also reduce the required storage space;

[0051] In one embodiment of the present invention, the steps for obtaining traffic data used for training are as follows:

[0052] (1.1) Obtain an authoritative backbone network dataset as background traffic. However, since the formats of backbone network datasets currently available on the Internet are not completely unified, it is necessary to select or organize data in a unified format according to actual needs for subsequent processing. Here, the MAWI dataset is selected;

[0053] (1.2) Build a distributed attack environment to simulate real-time attacks. Use authoritative SHD attack tools to implement three types of SHD attacks, obtain attack traffic, and unify the format with the background traffic in (1.1). Here, the slowhttptest tool is selected. In this example, the host with IP address in the 192.168.137.0 / 24 network segment implements the Slowloris attack, the host with IP address in the 192.168.138.0 / 24 network segment implements the RUDY attack, and the host with IP address in the 192.168.139.0 / 24 network segment implements the SlowREAD attack. The attacked IP address is 192.168.102.1.

[0054] (1.3) The background traffic and attack traffic are combined to obtain mixed traffic data. Some parameters of the mixed traffic are shown in Table 1. According to the specific scenario requirements, n is set to 64, and The mixed flow is systematically sampled in proportion to obtain the sampled flow data;

[0055] Table 1: Some parameters of mixed flow

[0056] Step (2) Analyze the principle of the SHD attack, extract several one-way traffic feature data that can reflect the overall characteristics of the attack, such as the number of TCP packets without payload, the number of TCP packets with payload, the <IP, port> distribution of the traffic, etc. Based on the original feature data, according to the differences in different SHD attack types, expand specific one-way traffic feature data, so as to construct a feature group for each SHD attack;

[0057] In one embodiment of the present invention, the steps of constructing a corresponding feature group according to the attack type are as follows:

[0058] (2.1) Analyze the overall principle of the SHD attack, observe the similar behaviors of different attack traffic, extract several one-way traffic feature data that can reflect the common characteristics, and these features do not involve the specific content of the application layer, such as the number of TCP packets without payload, the number of TCP packets with payload, the <IP, port> distribution of the traffic, etc.;

[0059] (2.2) Since the characteristics of different types of SHD attacks are not exactly the same, it is necessary to use the differences reflected in the traffic to further refine specific one-way traffic feature data for each attack, such as the packet sending rate, the number of packets with RWND value of 0, etc.;

[0060] (2.3) According to the attack type, combine the common characteristics of SHD with the corresponding specific features to construct a specific feature group for each attack; Table 2 lists some feature names and their meanings.

[0061] Table 2: Some Feature Names and Their Meanings

[0062] Step (3) Based on the sampled traffic, according to different attack types, use the FarmHash function, Bitmap, and the custom Count-min Sketch data structure to extract and store the feature data described in step (2). The custom Sketch structure can also reduce the storage overhead;

[0063] In one embodiment of the present invention, the steps of extracting and storing data features are as follows: [[ID=*23]]

[0064] (3.1) There are multiple storage units in the custom Count-min Sketch structure. Each storage unit contains several Bitmaps and counters to save various types of feature data; every time a packet is obtained, the Count-min Sketch structure is updated once. Figure 2 shows the custom Count-min Sketch structure and the update process;

[0065] (3.2) For the traffic distribution in step (2.1), it cannot be directly obtained. The <IP, port> needs to be hashed. To improve the processing speed and reduce memory consumption, the 32-bit FarmHash function is used here. To save the computational amount and storage space, the 32-bit FarmHash function is selected. Then, according to specific processing rules, the hash value is mapped into the Bitmap of the custom Sketch. Finally, the number of 1s in the Bitmap is used to represent the traffic distribution. Figure 3 shows the structure and update process of the Bitmap;

[0066] (3.3) For other features in step (2), they can be directly obtained through specific formulas or stored using counters in the custom Sketch. Table 3 shows the meanings, types, and occupied space sizes of the contents in the custom Sketch;

[0067] Table 3: Contents of the Custom Count-min Sketch

[0068] (3.4) In the Count-min Sketch structure, it is required to extract data once after each keyword corresponding cell is updated k times. Therefore, when the cell corresponding to the same <protocol, IP> data packet is updated cumulatively k times, a feature vector is obtained. Here, k is set to 100.

[0069] Step (4) According to the actual type of traffic, add labels to the feature data to form a labeled feature vector. The labels include three types of attack traffic and normal traffic;

[0070] In an embodiment of the present invention, the feature data is extracted with the <protocol, IP> of the data packet as the keyword. And during the simulated attack, each type of attack traffic is generated by hosts in three network segments: 192.168.137.0 / 24, 192.168.138.0 / 24, and 192.168.139.0 / 24. Therefore, the attack type label can be added to the feature data according to <protocol, IP>. If the IP of the feature data does not belong to these three network segments or 192.168.102.1, then the traffic is background traffic and can be marked as normal traffic.

[0071] Step (5) To further improve the processing speed, the present invention selects a machine learning algorithm with a lower complexity and inputs the feature vector obtained in step (4) into the machine learning algorithm for training to obtain traffic models for three types of SHD attacks;

[0072] In one embodiment of the present invention, a machine learning algorithm is used to train the feature data. The selection of the algorithm needs to take into account the processing speed, good classification performance and the ability to prevent overfitting. In this step, the random forest algorithm is selected to train the sample features in step (4) to obtain the traffic models of three SHD attacks.

[0073] Step (6) captures real-time traffic from the real backbone network node, and performs traffic sampling and feature data acquisition operations according to the processes of steps (1) and (3). The feature data here can still be obtained from unidirectional traffic;

[0074] In one embodiment of the present invention, to detect whether there is SHD attack traffic in the backbone network, it is necessary to deploy relevant software and hardware at several important nodes of the backbone network, such as backbone network core routers, firewalls, large Web servers, etc.; the traffic data is unidirectional and its format should be consistent with step (1.1); The attack relationship diagram of the backbone network can be simplified as the network topology shown in Figure 4. Through the key nodes of the backbone network, a total of 50 hosts are captured accessing another node on the backbone network, of which hosts 1 to 25 are normal users and hosts 26 to 50 are attackers.

[0075] Step (7) inputs the unlabeled feature vectors generated in real time into the three attack traffic models obtained in step (5), and labels the feature vectors accordingly based on the predicted output of the model to identify the corresponding traffic type, and performs subsequent defense work according to the generated results;

[0076] In one embodiment of the present invention, the steps of predicting the current traffic and taking corresponding measures are as follows:

[0077] (7.1) During the training phase, we obtained three traffic models for SHD attacks. Here, we input the real-time feature data into each of these three attack traffic models for prediction. By integrating the prediction results from all models, we assign corresponding labels to the current feature data and complete the SHD traffic detection.

[0078] (7.2) Execute the corresponding strategy based on the actual prediction results. The traffic generated by hosts 1 to 25 is legitimate and is released normally. The traffic generated by hosts 26 to 50 is attack traffic, and the current key node will generate an alarm to notify the network administrator. In addition, since the feature data is extracted using <protocol, IP> as the keyword, it can be decided whether to output the IP addresses of hosts 26 to 50 based on actual needs, providing a basis for further defense operations, such as adding these IP addresses to the blacklist.

[0079] The technical means disclosed in the solutions of the present invention are not limited to those disclosed in the above-mentioned embodiments, but also include technical solutions composed of any combination of the above-mentioned technical features. It should be noted that those skilled in the art may make various improvements and modifications without departing from the principles of the present invention, and such improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A detection method for slow HTTP denial of service attacks in backbone networks. It is characterized in that The method comprises the following steps: Step (1) Obtain the currently public authoritative backbone network data set and attack data set, and extract the traffic data therein; according to the specific scenario requirements, The flow rate is systematically sampled in proportion to obtain the sampled flow data; Step (2) analyzing the principle of the SHD attack, extracting a number of one-way traffic feature data that can reflect the overall characteristics of the attack, and based on the original feature data, expanding specific one-way traffic feature data according to the differences of different SHD attack types, thereby constructing a feature group for each SHD attack; Step (3) extracts and stores the feature data described in step (2) based on the sampled traffic and according to different attack types using the FarmHash function, Bitmap, and a custom Count-min Sketch data structure. The custom Sketch structure also reduces storage overhead. Step (4) adding labels to the feature data according to the actual type of traffic to form a labeled feature vector, where the labels include three types of attack traffic and normal traffic; Step (5) In order to further improve the processing speed, a machine learning algorithm with lower complexity is selected, and the feature vector obtained in step (4) is input into the machine learning algorithm for training to obtain the traffic models of the three SHD attacks; Step (6) captures real-time traffic from the real backbone network node, and performs traffic sampling and feature data acquisition operations according to the processes of steps (1) and (3), respectively. The feature data here can still be obtained from unidirectional traffic; Step (7) inputs the unlabeled feature vector generated in real time into the three attack traffic models obtained in step (5), and labels the feature vector accordingly based on the predicted output of the model to identify the corresponding traffic type, and performs subsequent defense work according to the generated results.

2. A method for detecting slow HTTP denial of service attacks in a backbone network according to claim 1, It is characterized in that The step (1) specifically comprises the following sub-steps: (1.1) Obtain authoritative backbone network data sets as background traffic. Since the formats of backbone network data sets currently available on the Internet are not completely unified, it is necessary to select or organize data in a unified format according to actual needs for subsequent processing; (1.2) Build a distributed attack environment to simulate real-time attacks, use authoritative SHD attack tools to implement three types of SHD attacks, obtain attack traffic, and unify the format with the background traffic in (1.1); (1.3) Combine background traffic and attack traffic to obtain mixed traffic data. According to specific scenario requirements, The mixed flow is systematically sampled in proportion to obtain the sampled flow data.

3. A method for detecting slow HTTP denial of service attacks in a backbone network according to claim 1, It is characterized in that The step (2) specifically comprises the following sub-steps: (2.1) Analyze the overall principle of the SHD attack, observe the similar behaviors of different attack traffic, extract several unidirectional traffic feature data that can reflect common characteristics, and these features do not involve the specific content of the application layer, such as the number of TCP packets without payload, the number of TCP packets with payload, and the <IP, port> distribution of the traffic; (2.2) Since the characteristics of different types of SHD attacks are not exactly the same, it is necessary to utilize the differences they exhibit in traffic to further refine specific unidirectional traffic feature data for each attack; (2.3) According to the attack type, combine the common characteristics of SHD with the corresponding specific characteristics to construct a specific feature group for each attack.

4. A detection method for slow HTTP denial-of-service attacks in the backbone network according to claim 1, characterized in that, the step (3) specifically includes the following sub-steps: (3.1) There are multiple storage units in the custom Count-min Sketch structure, and each storage unit contains several Bitmaps and counters to save various types of feature data; each time a packet is obtained, the Count-min Sketch structure is updated once; (3.2) For the traffic distribution in step (2.1), it cannot be directly obtained. It is necessary to hash <IP, port>. In order to improve the processing speed and reduce memory consumption, the FarmHash function is used here, and then the hash value is mapped into the Bitmap of the custom Sketch according to specific processing rules. Finally, the number of 1s in the Bitmap is used to represent the traffic distribution; (3.3) For other features in step (2), they are directly obtained through specific formulas or stored using the counters in the custom Sketch; (3.4) In the Count-min Sketch structure, it is required to extract data once after each keyword corresponding unit is updated k times. Therefore, when the unit corresponding to the same <protocol, IP> packet is updated cumulatively k times, a feature vector is obtained.

5. A detection method for slow HTTP denial-of-service attacks in the backbone network according to claim 1, characterized in that, in the step (4), the feature data is extracted with <protocol, IP> of the packet as the keyword, and during the simulated attack, each type of attack traffic is generated by a specific IP. Therefore, the attack type label is added to the feature data according to <protocol, IP>. If the IP of the feature data does not belong to the specific attack IP, then the traffic is background traffic, and it can be labeled as normal traffic.

6. A detection method for slow HTTP denial-of-service attacks in the backbone network according to claim 1, characterized in that, in the step (5), a machine learning algorithm is used to train the feature data. The selection of the algorithm needs to take into account the processing speed, good classification performance, and the characteristics of preventing overfitting. In this step, the random forest algorithm is selected to train the sample features in step (4) to obtain the traffic models of three SHD attacks.

7. A method for detecting slow HTTP denial of service attacks in a backbone network according to claim 1, It is characterized in that In step (6), to detect whether there is SHD attack traffic in the backbone network, relevant software and hardware deployment is required at certain important nodes of the backbone network to capture real-time traffic data; the traffic data can be unidirectional, and its format should be consistent with step (1.1); The system performs systematic sampling according to the ratio, and extracts and stores the characteristic data of the sampled flow according to step (3).

8. A method for detecting slow HTTP denial of service attacks in a backbone network according to claim 1, It is characterized in that The step (7) specifically comprises the following sub-steps: (7.1) In the training phase, three traffic models of SHD attacks are obtained. Here, the feature data generated in real time are input into these three attack traffic models for prediction. The prediction results of all models are integrated, and the current feature data is labeled accordingly to complete the detection of SHD traffic. (7.2) Execute the corresponding strategy according to the actual prediction results. If it is normal traffic, it will be released. If it is attack traffic, an alarm will be generated to notify the network administrator. In addition, since the feature data is extracted with <protocol, IP> as the keyword, it is decided whether to output the corresponding attack IP according to actual needs, providing a basis for further defense operations.

Citation Information

Patent Citations

  • Detection method and system for low-rate DDoS attack

    CN113206859A

  • Method for defending IP address deception DDoS attack in high-speed network

    CN114172697A

  • KR20200009366A

Cited By

  • Network traffic auditing optimization defense method based on traffic feature camouflage

    CN120546982A

  • Flow scheduling system and method based on SLO driving

    CN121509364A

  • A SLO-driven flow scheduling system and method

    CN121509364B

  • Systems and methods for detection of denial of service attacks for protocols with high burst data rates

    US12732534B2

  • Systems and methods for detection of denial of service attacks for protocols with high burst data rates

    US20240414197A1