Method and system for detecting denial of service attacks on network
By performing clustering and multi-stage DoS attack detection algorithms on communication data sets that receive connection requests on the network, we can quickly identify and respond to DoS attacks, solve the problem of large detection delays in the existing technology, and achieve low-latency attack response and network stability.
Patent Information
- Application Number
- CN202410518515.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-21
- Filing Date
- 2024-04-28
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technologies suffer from large delays in detecting and mitigating network denial-of-service (DoS) attacks and are unable to respond quickly, resulting in mitigation measures being ineffective in many cases, especially when the attack duration is short.
By receiving communication data sets of connection requests on the network, clustering is performed to form connection clusters, and a multi-stage DoS attack detection algorithm is used to generate a confidence score. The confidence score is compared with the threshold to determine whether to generate a mitigation command or perform more detailed detection. Algorithms to quickly identify and respond to DoS attacks.
It achieves low-latency DoS attack detection and mitigation, reduces the impact on service providers and legitimate users, improves attack response speed, and ensures network stability.
Smart Images

Figure 00000000_0000
Abstract
Description
[0001] Cross-references
[0002] This application claims priority to EP application No. EP 23305381.8, filed on March 21, 2023, entitled “Method and system for detecting denial of service attacks on a network”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present technology relates to the field of Internet security, and in particular to a system and method for detecting denial of service (DoS) attacks and distributed denial of service (DDoS) attacks on a network. Background Art
[0004] As the reach of cloud computing continues to expand, more and more Internet services rely on cloud providers to ensure the availability of their services. Malicious attempts to disrupt the target server, service, or normal network traffic are one of the main threats to service availability. Denial of service (DoS) attacks and distributed denial of service (DDoS) attacks are among the most widespread attacks.
[0005] Botnets containing a large number of bots can be used to cause denial of service (DoS) attacks on service providers (e.g., servers). DoS attacks cause a service provider to receive a large number of unnecessary requests. When under such an attack, the processing and communication capabilities of the service provider may become overloaded, resulting in a temporary inability to provide services to legitimate users and clients. Because the attack is carried out through a large number of sources (i.e., a large number of bots, with thousands of different Internet Protocol (IP) addresses), it is impossible to stop the attack by blocking a single source. Given that a DoS attack may involve such a large number of IP addresses (some of which are assigned to legitimate devices before being infected), simply blacklisting potentially harmful IP addresses is not an effective solution. IP addresses are often assigned dynamically, so blacklisting may result in the eventual blocking of legitimate devices.
[0006] These attacks may be volumetric (high data rates) or target specific application vulnerabilities (low data rates). High-rate traffic attacks may be difficult to distinguish from sudden crowd events, as the characteristic differences between the two may be small and require knowledge of the service provider's nominal traffic. On the other hand, low-rate attacks may be difficult to distinguish from legitimate traffic, as such attacks tend to mimic legitimate traffic in order to bypass detection systems. In addition, the relatively high computational resources of these algorithms often make them unsuitable for standard mitigation operations. In fact, when it comes to malicious connection attempts, time is often of the essence. Traditional mitigation solutions react slowly. Although some solutions have been shown to react within 30 seconds, this delay may actually exceed the duration of the DDoS attack, in which case mitigation measures are essentially futile.
[0007] Therefore, there is a need for a system for verifying a target network at an access network to mitigate malicious connection attempts through a low latency decision process.
[0008] The subject matter discussed in the background section should not be assumed to be prior art simply because it is mentioned in the background section. Similarly, it should not be assumed that the problems mentioned in the background section or associated with the subject matter in the background section have been previously recognized in the prior art. The subject matter in the background section merely represents different approaches. Summary of the invention
[0009] The implementation of the present technology was developed based on the developer's recognition of shortcomings associated with existing technologies. In particular, such shortcomings may include delays in current mitigation solutions that may actually exceed the duration of a DoS attack.
[0010] In a first broad aspect, various embodiments of the present technology provide a computer-implemented method for detecting a denial of service (DoS) attack on a network. The method includes extracting a first communication data set from connection requests received at a network during a first collection time having a first time span, each first communication data set including a connection request and an indication of a corresponding target device, and clustering the connection requests based on the communication data set to form a plurality of connection clusters. The method includes, for at least one of the connection clusters: executing a first DoS attack detection algorithm to generate a first confidence score representing a first probability that the connection cluster is associated with a DoS attack based on a communication data set corresponding to a given connection cluster; comparing the first confidence score with a first threshold to determine whether to generate a mitigation command; adjusting the connection cluster by extracting a second communication data set from connection requests received at the network during a second collection time, the second collection time having a second time span longer than the first time span; and executing a second DoS attack detection algorithm to generate a second confidence score representing a second probability that the connection cluster is associated with a DoS attack based on a communication data set corresponding to a given connection cluster.
[0011] In some non-limiting embodiments, the communication data set for a given connection request also includes information about a source IP address of a corresponding device and information about a target IP address of a corresponding target device. The first DoS attack detection algorithm is a coarse DoS attack detection algorithm configured to aggregate connection requests by IP address to form connection clusters.
[0012] In some non-limiting embodiments, the second DoS attack detection algorithm is a fine-grained DoS attack detection algorithm configured to aggregate connection requests by source IP address / destination IP address pairs to adjust the connection cluster.
[0013] In some non-limiting embodiments, comparing the first confidence score to a first threshold to determine whether to generate a mitigation command includes comparing the first confidence score to the first threshold to determine whether to (i) generate a mitigation command or (ii) execute a flash cluster detection algorithm, the flash cluster detection algorithm being configured to verify whether the connection cluster is associated with a flash cluster event.
[0014] In some non-limiting embodiments, the method further includes comparing the second confidence score to a second threshold to determine whether to (i) generate a mitigation command or (ii) execute a third DoS attack detection algorithm, the third DoS attack detection algorithm being configured to generate a third confidence score representing a third probability that the connection cluster is associated with a DoS attack based on a communication data set corresponding to a given connection cluster.
[0015] In some non-limiting embodiments, the method further includes: in response to the third DoS attack detection algorithm being executed and the third DoS attack detection algorithm not detecting a DoS attack, executing a fourth DoS attack detection algorithm to generate a fourth confidence score based on a communication data set corresponding to a given connection cluster, the fourth confidence score representing a fourth probability that the connection cluster is associated with a DoS attack.
[0016] In some non-limiting embodiments, for a given connection cluster, execution of a first DoS attack detection algorithm is constrained within a first processing resource allocation, and for a given connection cluster, execution of a second DoS attack detection algorithm is constrained within a second processing resource allocation that is greater than the first processing resource allocation.
[0017] In some non-limiting embodiments, for a given connection cluster, execution of a third DoS attack detection algorithm is constrained within a third processing resource allocation, and for a given connection cluster, execution of a fourth DoS attack detection algorithm is constrained within a fourth processing resource allocation that is greater than the third processing resource allocation.
[0018] In some non-limiting embodiments, the third DoS attack detection algorithm is configured to generate a third confidence score based on a third communication data set corresponding to a given connection cluster extracted during a third collection time, the third collection time having a third time span. The method also includes, before executing the fourth DoS attack detection algorithm, adjusting the connection cluster by extracting a fourth communication data set from connection requests received at the network during a fourth collection time, the fourth collection time having a fourth time span longer than the third time span.
[0019] In some non-limiting embodiments, the method further includes comparing the fourth confidence score to a third threshold to determine whether to (i) generate a mitigation command or (ii) generate a network access authorization command for the network.
[0020] In some non-limiting embodiments, at least one of the first, second, third, and fourth DoS detection algorithms includes at least one of a neural network-based algorithm, a decision tree-based algorithm, and a support vector machine-based algorithm.
[0021] In some non-limiting embodiments, the method further includes comparing the third confidence score to a fourth threshold to determine whether to generate a network access authorization command for the network.
[0022] In some non-limiting embodiments, the method further includes comparing the first confidence score to a fifth threshold to determine whether to execute a third DoS attack detection algorithm after executing the first DoS attack detection algorithm.
[0023] In some non-limiting embodiments, the method further includes, in response to the flash clustering detection algorithm detecting the flash clustering event, executing a third DoS attack detection algorithm.
[0024] In some non-limiting embodiments, the communication data set for a given connection request also includes information about the source IP address of the corresponding device, information about the source port of the corresponding device, information about the target IP address of the corresponding target device, information about the target port of the corresponding target device, and information about the protocol used for communication between the corresponding device and the corresponding target device.
[0025] In some non-limiting embodiments, the data format of the given connection request is selected from the group consisting of a NetFlow data format, an SFlow data format, and a kFlow data format.
[0026] In some non-limiting embodiments, execution of the mitigation command results in activation of a dedicated DoS attack resistance system configured to perform mitigation measures.
[0027] In some non-limiting embodiments, clustering the connection requests includes: identifying a corresponding target device of each connection request, and dividing the connection requests into connection clusters based on the target devices corresponding to the connection requests, and the connection requests in the same connection cluster are associated with the same target device.
[0028] In some non-limiting embodiments, the first DoS attack detection algorithm is a high-rate DoS coarse detection algorithm, the second DoS attack detection algorithm is a high-rate DoS fine detection algorithm, the third DoS attack detection algorithm is a low-rate DoS coarse detection algorithm, and / or the fourth DoS attack detection algorithm is a low-rate DoS fine detection algorithm.
[0029] In some non-limiting embodiments, the DoS attack is a distributed denial of service (DDoS) attack.
[0030] In a second broad aspect, various embodiments of the present technology provide a system for detecting a denial of service (DoS) attack on a network, the system comprising a controller and a memory storing a plurality of executable instructions that, when executed by the controller, cause the system to perform the method.
[0031] In a third broad aspect, various embodiments of the present technology provide a non-transitory computer-readable medium comprising computer-readable instructions that, when executed by a system, cause the system to perform a method.
[0032] Each embodiment of the present technology has at least one of the above-mentioned purposes and / or aspects, but not necessarily all of them. It should be understood that some aspects of the present technology generated by attempting to achieve the above-mentioned purpose may not meet the purpose and / or may meet other purposes not specifically described herein.
[0033] Additional and / or alternative features, aspects, and advantages of embodiments of the present technology will become apparent from the following description, drawings, and appended claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] For a better understanding of the present technology and other aspects and further features thereof, reference is made to the following description taken in conjunction with the accompanying drawings, in which:
[0035] Figure 1 is a schematic representation of a communication environment according to some non-limiting embodiments of the present technology;
[0036] Figure 2 According to some non-limiting embodiments of the present technology Figure 1 A block diagram of an authentication protocol pipeline executed by a detection device of a communication environment;
[0037] Figure 3 A DoS detection pipeline for detecting DoS attacks according to some non-limiting embodiments of the present technology is shown;
[0038] Figure 4A and Figure 4B It is a non-limiting embodiment of the present technology. Figure 2 A high-level flow chart of the execution operations of the authentication protocol pipeline;
[0039] Figure 5 is a sequence diagram illustrating the operation of a method for detecting a malicious connection attempt from at least one device at an access network for accessing an infrastructure in accordance with some non-limiting embodiments of the present technology; and
[0040] Figure 6 According to some non-limiting embodiments of the present technology Figure 1 Block diagram of a device for detecting a communication environment.
[0041] It should be understood that throughout the drawings and corresponding description, like features are identified by like reference numerals. In addition, it should also be understood that the drawings and subsequent descriptions are intended for illustrative purposes only, and such disclosure is not intended to limit the scope of the claims. DETAILED DESCRIPTION
[0042] The examples and conditional language cited herein are primarily intended to help the reader understand the principles of the present technology, rather than to limit its scope to such specifically cited examples and conditions. It should be understood that a person skilled in the art may design various arrangements that, although not explicitly described or shown herein, embody the principles of the present technology and are included in its spirit and scope.
[0043] In addition, to facilitate understanding, the following description may describe relatively simplified implementations of the present technology. It will be appreciated by those skilled in the art that various implementations of the present technology may have greater complexity.
[0044] In some cases, useful examples that are considered modifications to the technology may also be set forth. This is done solely to aid understanding and, again, is not intended to define the scope of the technology or set forth the limits of the technology. These modifications are not an exhaustive list, and those skilled in the art may make other modifications while still within the scope of the technology. In addition, where examples of modifications are not set forth, it should not be interpreted that modifications are impossible and / or that what is described is the only way to implement that element of the technology.
[0045] In addition, all statements describing the principles, aspects, and embodiments of the present technology and specific examples thereof herein are intended to cover their structural and functional equivalents, whether they are currently known or developed in the future. Thus, for example, it will be understood by those skilled in the art that any block diagram herein represents a conceptual view of an illustrative circuit that embodies the principles of the present technology. Similarly, it should be understood that any flow chart, sequence diagram, state transition diagram, pseudocode, etc. represent various processes that can be substantially represented in a computer-readable medium and thus executed by a computer or processor, whether or not such a computer or processor is explicitly shown.
[0046] The functions of the various elements shown in the figure, including any functional blocks marked as "processors", can be provided by using dedicated hardware and hardware capable of executing software in association with appropriate software. When provided by a processor, the function can be provided by a single dedicated processor, by a single shared processor, or by multiple separate processors (some of which can be shared). In some embodiments of the present technology, the processor can be a general-purpose processor, such as a central processing unit (CPU), or a processor dedicated to a specific purpose, such as a digital signal processor (DSP). In addition, the explicit use of the term "processor" should not be interpreted as specifically referring to hardware capable of executing software, and may implicitly include, but is not limited to, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), read-only memories (ROMs), random access memories (RAMs) and non-volatile memories for storing software. Other conventional and / or customized hardware may also be included.
[0047] Software modules or simple modules implicitly being software may be represented herein as any combination of flow chart elements or other elements indicating the execution of process steps and / or textual descriptions. Such modules may be executed by hardware shown explicitly or implicitly. In addition, it should be understood that a module may include, for example, but not limited to, computer program logic, computer program instructions, software, stacks, firmware, hardware circuits, or combinations thereof that provide the desired capabilities.
[0048] In the context of this specification, unless otherwise explicitly stated, a computer system may refer to but is not limited to an "electronic device", "operating system", "system", "computer-based system", "controller unit", "monitoring device", "control device" and / or any combination thereof suitable for the currently relevant task.
[0049] In the context of this specification, unless otherwise expressly provided, the expressions "computer-readable medium" and "memory" are intended to include media of any nature and kind, non-limiting examples of which include RAM, ROM, disks (CD-ROM, DVD, floppy disks, hard disk drives, etc.), USB keys, flash memory cards, solid-state drives, and tape drives. Still in the context of this specification, "a" computer-readable medium and "the" computer-readable medium should not be interpreted as the same computer-readable medium. On the contrary, "a" computer-readable medium and "the" computer-readable medium may also be interpreted as a first computer-readable medium and a second computer-readable medium, as appropriate.
[0050] In the context of this specification, unless expressly specified otherwise, the words "first", "second", "third" etc. are used as adjectives merely to allow a distinction between the nouns they modify and are not intended to describe any particular relationship between these nouns.
[0051] In the context of this disclosure, a denial of service (DoS) refers to a malicious attack on a data processing component and may be a distributed denial of service (DDoS) attack. In other words, a DDoS attack is a DoS attack that overwhelms a target resource with a large number of computers or machines.
[0052] In the context of the present disclosure, the collection time of the system for data traffic is a time period during which the system collects information about the data traffic. The collection time can be associated with a corresponding time span. For example, but not limited to, the system can collect data packets of the data traffic and / or metadata associated therewith during the collection time.
[0053] With these basics in mind, some non-limiting examples of the present technology will now be considered.
[0054] Figure 11 is a schematic representation of a communication environment 1000 in which a plurality of devices 20 are communicatively connected to an infrastructure 200 via a communication network 50 via any wired or wireless communication link (including, for example, 4G, LTE, Wi-Fi, or any other suitable connection). The communication network 50 may be referred to as an “access network” of the infrastructure 200.
[0055] Infrastructure 200 may, for example, represent a data center, or may represent multiple data centers, for providing hosting services to one or more customers. Therefore, infrastructure 200 may be referred to as a "service provider." It should be understood that infrastructure 200 may include a large number of servers for providing hosting services to a large number of customers, and infrastructure 200 may be distributed across multiple data centers (not shown) for redundancy, reliability, and / or load sharing purposes. The data centers that form infrastructure 200 may be geographically distributed, for example, distributed around the world. For ease of illustration, Figure 1 The infrastructure 200 shown is greatly simplified.
[0056] In an embodiment, all components of infrastructure 200 may be co-located in the same facility, such as part of the same data center. In another embodiment, some components of infrastructure 200 may be remote from other components of infrastructure 200, with geographically separated infrastructure components communicating via the Internet or via a private network. In an illustrative but non-limiting example, servers providing services to customers of the infrastructure may be installed in large numbers at many locations, while in the same example, system components for defending against DoS attacks may be installed in a limited number of locations.
[0057] In some non-limiting embodiments of the present technology, the communication network 50 may be implemented as the Internet. In other embodiments of the present technology, the communication network 50 may be implemented in different ways, such as any wide area communication network, local area network communication network, dedicated communication network, etc. How to implement the communication link between the device 20 and the infrastructure 200 will depend in particular on how the device 20 and the infrastructure 200 are implemented. The infrastructure 200 includes one or more data processing entities 210 (e.g., servers) to provide a given service to the device 20. In some non-limiting implementations, the infrastructure 200 is a data center.
[0058] In use, each device 20 may send a connection request 22 to the infrastructure 200 via the communication network 50 to establish a communication session therewith. The collection of connection requests to the infrastructure 200 may be referred to as the "traffic" of that service provider 200. However, in some cases, one or more malicious devices 20 may send malicious connection requests 22' as part of a DoS attack. For example, a given malicious device 20 or a group of malicious devices 20 may send a relatively high number of concurrent connection requests to make the infrastructure 200, a given data processing entity 210 thereof, or a group of data processing entities 210 thereof, unavailable to other devices 20 by temporarily or indefinitely interrupting the service of the infrastructure 200.
[0059] In the context of the present disclosure, a given data processing entity 210 or a group of data processing entities 210, physical and / or virtual, with which a device 20 desires to establish a communication session is referred to as a “target device” of the device 20. For example, a data processing entity 210 may be a hardware device (e.g., a server) or a service (e.g., a website or a database) provided by a hardware device.
[0060] To mitigate attacks on the infrastructure 200, the communication environment 1000 includes a detection service 100 that can be communicatively connected to the infrastructure 200. The implementation of the detection service 100 is described in more detail below (see Figure 6 ). For example, but not limited to, the detection service 100 can be operated by one or more servers. In alternative non-limiting implementations of the present technology, the functionality of the detection service 100 can be distributed and can be implemented via multiple servers.
[0061] Although the detection service 100 is described separately from the service provider, the functionality of the detection service 100 described herein may be performed by the infrastructure 200 .
[0062] As will be described in more detail below, the detection service 100 can execute an authentication protocol pipeline that can utilize different computing resources at different stages of the authentication protocol pipeline and can effectively prevent DoS attacks and identify them before they cause substantial damage to the service provider and / or legitimate device 20. The detection service 100 receives the connection request 22 before a communication session is established between the device 20 that sent the connection request 22 and the infrastructure 200. Therefore, the detection service 100 can prevent the communication session from being established in response to identifying a malicious network event. As will be described in more detail below, the detection service 100 can execute the mitigation execution module 164 (see Figure 2 ).
[0063] Figure 2is a block diagram of an authentication protocol pipeline 150 that may be executed by the detection service 100 in response to receiving a new connection request 22. In this embodiment, each connection request 22 sent by a given device 20 desiring to establish a communication session with a target device includes a communication data set that includes:
[0064] information about the source IP address of a given device 20;
[0065] Information about the source port of a given device 20;
[0066] Information about the target IP address of the corresponding target device;
[0067] information about a target port of a corresponding target device; and
[0068] Information about the protocol used for communications between a given device 20 and a corresponding target device.
[0069] Now refer to Figure 2 , Figure 4A and Figure 4B An execution of the authentication protocol pipeline 150 is described. It should be noted that the authentication protocol pipeline 150 is a modular pipeline and that some of its modules may be executed in a different order and / or omitted in alternative implementations.
[0070] Event Merging Module
[0071] The authentication protocol pipeline 150 includes an event merging module 152, which receives connection requests 22 or "network events" and extracts the above information therefrom. The event merging module 152 can cluster the connection requests based on the source IP address, target IP address, target port and / or target port of each connection request 22. For example, the connection request 22 with the first target IP address is clustered by the event merging module 152 into a first connection cluster, and the connection request 22 with the second target IP address is clustered by the event merging module 152 into a second connection cluster. Subclusters can also be identified by the event merging module 152. For example, the connection request 22 with the first target IP address and the first source IP address is identified by the event merging module 152 as a first subcluster of the first connection cluster, and the connection request 22 with the first target IP address and the second source IP address is identified by the event merging module 152 as a second subcluster of the first connection cluster.
[0072] In summary, the event consolidation module 152 can deserialize network events and consolidate them into a given data format used by the detection service 100 for its statistical analysis. This module handles different input formats as they can vary depending on the type of device sending the connection request. For example, network events can have a NetFlow data format, an sFlow data format, or a kFlow data format.
[0073] In some embodiments, the event consolidation module 152 converts the data format of the received connection requests into the same given data format. This can further simplify the clustering of the connection requests. For example, the first connection request received at the event consolidation module 152 can have a NetFlow data format, while the second connection request received at the event consolidation module 152 can have an sFlow data format. The event consolidation module 152 can convert the data format of the first connection request and the second connection request into a kFlow data format (or any other data format) before determining whether the first connection request and the second connection request belong to the same connection cluster.
[0074] Event consolidation module 152 may also forward information about connection clusters to high rate DoS attack coarse detection module 154. In some non-limiting implementations, event consolidation module 152 forwards information about connection clusters to high rate DoS attack coarse detection module 154 only for groups including at least a predetermined number of connection requests 22.
[0075] High-rate DoS attack rough detection module
[0076] In this embodiment, the high-rate DoS attack coarse detection module 154 executes a high-rate DoS attack coarse detection algorithm that determines a first confidence score for each connection cluster based on a communication data set extracted from the connection requests 22 of the connection cluster. The first confidence score represents a first probability that the connection cluster is associated with a high-rate DoS attack. The high-rate DoS attack coarse detection algorithm may include a statistical test to determine the first confidence score, as described in "A New Detection Method for Distributed Denial-of-Service Attack Traffic based on Statistical Test" by Chin-Ling Chen, published in The Journal of Universal Computer Science in January 2009. Alternatively, the high-rate DoS attack coarse detection algorithm may be implemented in the manner described in "Real-time DoS attack detection using FPGA" by N. Hoquea, H. Kashyapb, and DK Hattacharyya, published in Computer Communications in September 2017, the entire contents of which are incorporated herein by reference for jurisdictions that allow such incorporation. Alternatively, a high-rate DoS attack coarse detection algorithm can be implemented in the manner described in the conference paper "Detecting Distributed Denial of Service Attacks by Shared Distributed Beliefs" by Tao Peng, Christopher Leckie and Kotagiri Ramamohanarao, published in January 2003, the entire contents of which are incorporated herein by reference for jurisdictions that permit such incorporation.
[0077] In summary, in some embodiments, the DoS detection algorithms described in the present disclosure may implement a threshold algorithm, where a threshold or set of thresholds is used to distinguish a range of values from which the values predicted by the model vary significantly. In use, the threshold algorithm may define a threshold of acceptable traffic and detect a DoS attack when the threshold is exceeded. The threshold algorithm is relatively easy to implement and resource-cheap, but may result in false positives or fail to detect low-rate attacks.
[0078] Additionally or alternatively, the DoS detection algorithm described in the present disclosure may implement a packet distribution analysis algorithm. The DoS detection algorithm detects anomalies in traffic data by parsing the statistical distribution of traffic packets (e.g., connection requests). The DoS detection algorithm may be suitable for detecting low-rate attacks, but may require a large amount of data for reliable statistical analysis. The DoS detection algorithm may also be affected by background noise.
[0079] Additionally or alternatively, the DoS detection algorithms described in the present disclosure may implement behavioral analysis algorithms that learn normal traffic patterns to detect anomalies and abnormal behavior. Behavioral analysis algorithms can detect low-rate attacks with high accuracy, but at the expense of large amounts of training data, and therefore, such behavioral analysis algorithms may be resource intensive.
[0080] Additionally or alternatively, the DoS detection algorithms described in this disclosure may implement sequence analysis algorithms that parse packet sequences to detect anomalies, such as repeated sequences of similar packets. These algorithms are effective in detecting low-rate attacks, but may require a large amount of memory to store packet sequences.
[0081] Additionally or alternatively, the DoS detection algorithm described in the present disclosure may implement a machine learning algorithm (MLA), such as a deep learning algorithm, a clustering algorithm, a neural network, a logistic regression algorithm, a decision tree, a principal component analysis, and / or a support vector machine (SVM)-based algorithm. More specifically, a neural network is a deep learning algorithm that can be used to detect DoS attacks by learning network traffic data. Neural networks can be used to detect anomalies in network traffic and distinguish between legitimate traffic and malicious traffic. Decision tree-based algorithms are classification algorithms that can detect DoS attacks by classifying network traffic into different categories. Decision tree-based algorithms can be trained on network traffic data to identify the characteristics of DoS attacks and use them to detect future attacks. SVM-based algorithms are classification algorithms that can also be used to detect DDoS attacks. SVMs can be trained based on network traffic data to find decision boundaries that distinguish between legitimate traffic and malicious traffic. These illustrative implementations of machine learning algorithms can detect complex attacks that signature-based methods cannot detect.
[0082] MLAs may have been trained to detect anomalies in traffic data using historical data. They can detect both low-rate and high-rate attacks with high accuracy, but require large amounts of training data and may be resource-intensive to implement. These algorithms can be used individually or in combination to more accurately detect both low-rate and high-rate DoS attacks. In addition, higher-performance DoS detection algorithms require more resources to implement, but may also provide more accurate and reliable detection of DoS attacks.
[0083] In summary, the DoS detection algorithm described in the present disclosure may implement one or more of the following algorithms individually or in collaboration: a threshold algorithm, a packet distribution analysis algorithm, a behavior analysis algorithm, a sequence analysis algorithm, and MLA.
[0084] In response to the first confidence score being below the first threshold (i.e., the first probability indicates that the connection cluster does not constitute a high-rate DoS attack), the high-rate DoS attack coarse detection module 154 does not treat the connection cluster as a high-rate DoS attack, and the detection service 100 can execute the low-rate DoS attack coarse detection module 160, which is described in more detail below. In an embodiment, the first threshold is 15%.
[0085] In the context of the present disclosure, the threshold associated with the confidence score of the DoS algorithm may be defined based on a number of parameters, including:
[0086] Data distribution parameters: Thresholds used for anomaly detection can be based at least in part on the statistical distribution of traffic data;
[0087] Detection target parameters: Thresholds for anomaly detection may be based at least in part on a desired alert rate and / or a tolerable false alarm rate;
[0088] Traffic history parameters: Thresholds used for anomaly detection may be based at least in part on traffic history used to determine normal and abnormal traffic changes;
[0089] Desired accuracy: The threshold used for anomaly detection may be based at least in part on the desired balance between accuracy and false positives; and / or
[0090] Attack type: The threshold used for anomaly detection may be based at least in part on the attack type.
[0091] Because some attacks may be more difficult to detect than others.
[0092] In summary, in the context of the present disclosure, for a given data processing entity 210 adapted to receive at most a maximum traffic data rate (e.g., the maximum number of connection requests that can be processed per second), a high-rate DoS attack has a rate greater than about one percent of the maximum traffic data rate, while a low-rate DoS attack (e.g., an Economic Denial of Sustainability (EDoS) attack) has a rate less than about one percent of the maximum traffic data rate. For a given service (e.g., a client of the infrastructure 200 providing the service hosted by the data processing entity 210), a DoS attack is considered a high-rate DoS attack when it constitutes more than 50% of the traffic for the service, and is considered a low-rate DoS attack when it constitutes less than 50% of the traffic for the service.
[0093] In response to the first confidence score being higher than the second threshold (i.e., the first probability indicates that the connection cluster constitutes a high-rate DoS attack), the high-rate DoS attack coarse detection module 154 treats the connection cluster as a high-rate DoS attack. The detection service 100 therefore executes the mitigation execution module 164. The execution of the mitigation execution module 164 may include generating mitigation commands and / or transmitting information about the connection cluster to a dedicated system for resisting DoS attacks (not shown). The dedicated system for resisting DoS attacks may perform additional analysis on the connection cluster received from the module of the authentication protocol pipeline 150. For example, the dedicated system for resisting DoS attacks may implement mitigation measures including filtering illegal connection requests while allowing legitimate connection requests to access the infrastructure 200. The dedicated system for resisting DoS attacks may be implemented as described in European patent application No. 3618355, entitled "SYSTEMS AND METHODS FOR OPERATING ANETWORKING DEVICE", filed on August 27, 2018, the entire contents of which are also incorporated herein by reference. In an embodiment, the second threshold is 85%.
[0094] In response to the first confidence score being above the first threshold and below the second threshold, the detection service 100 executes a flash-gather detection module 156 adapted to detect a flash-gather event. In the context of the present disclosure, a flash-gather event occurs when a substantial number of legitimate connection requests 22 are received to establish a communication session with the same target device. In general, a flash-gather event occurs when the target device is unable to handle a large number of legitimate connection requests. In contrast to malicious connection requests, the connection requests that form a flash-gather event are legitimate.
[0095] In summary, the high rate DoS attack coarse detection module 154 identifies high rate DoS attacks and uses limited computing resources and processing resource allocations (such as, but not limited to, power processing resource allocations and / or memory allocations) to distinguish suspicious traffic from legitimate traffic. In some embodiments, the high rate DoS attack coarse detection module 154 can use known heuristics. In use, the high rate DoS attack coarse detection module 154 can detect egress and ingress DoS attacks as well as outgoing DoS attacks. If the confidence of the high rate DoS attack coarse detection module 154 is above a predefined threshold, a mitigation event is directly issued. Otherwise, the detection service 100 continues to execute the authentication protocol pipeline 150.
[0096] Flash detection module
[0097] The flash cluster detection module 156 may execute a flash cluster detection algorithm to determine whether a cluster of connections is associated with a flash cluster event. The flash cluster detection algorithm may be implemented as described in "Detection of spoofed and non-spoofed DoS Attacks and discriminging those from flash groups" by Jaideep Gera and Bhanu Prakash Battula, published in EURASIP Journal on Information Security, July 2018. Alternatively, the flash cluster detection algorithm may be implemented as described in "Modeling Human Behavior for Defense Against Flash-Crowd Attacks" by G. Oikonomou and J. Mirkovic, published in 2009 IEEE International Conference on Communications, June 2009, the entire contents of which are incorporated herein by reference for jurisdictions that permit such incorporation. Alternatively, the flash crowd detection algorithm can be implemented in the manner described in “Flash Crowd Detection using Decoy Hyperlinks” by Dimitris Gavrilis, Ioannis Chatzis, and Evangelos Dermatas, published in 2007 IEEE International Conference on Networking, Sensing and Control in April 2007, the entire contents of which are incorporated herein by reference.
[0098] In this embodiment, the flash cluster detection algorithm determines a second confidence score based on a communication data set extracted from the connection requests 22 of the connection cluster for each connection cluster received from the high rate DoS attack coarse detection module 154. The second confidence score represents the flash cluster detection module 156's estimate of whether the connection cluster is associated with a flash cluster event.
[0099] In response to the second confidence score being lower than the third threshold, the flash cluster detection module 156 does not treat the connection cluster as a flash cluster event, and the detection service 100 executes the high-rate DoS attack fine detection module 158, which will be described in more detail below. In response to the second confidence score being higher than the third threshold, the detection service 100 treats the connection cluster as associated with the flash cluster event. The detection service 100 therefore executes the low-rate DoS attack coarse detection module 160. In an embodiment, the third threshold is 50%.
[0100] In summary, the flash-gathering detection module 156 indicates whether the suspicious traffic is associated with a flash-gathering event. If no flash-gathering is detected, the detection service 100 continues to analyze the connection request. Otherwise, the connection request is considered legitimate. In some embodiments, in response to the connection request being deemed legitimate by the flash-gathering detection module 156 (i.e., the occurrence of a flash-gathering event), the detection service 100 sends a message to the infrastructure 200 indicating that the suspicious traffic is a flash-gathering event.
[0101] High-rate DoS attack fine-grained detection module
[0102] In this embodiment, the high-rate DoS attack fine detection module 158 executes a high-rate DoS attack fine detection algorithm that generates a second confidence score representing a second probability that a connection cluster is associated with a DoS attack. More specifically, in some embodiments, the high-rate DoS attack fine detection algorithm determines a third confidence score for each connection cluster received from the flash cluster detection module 154 based on a communication data set extracted from the connection request 22 of the connection cluster. The third confidence score represents the high-rate DoS attack fine detection module 158's estimate of whether the connection cluster constitutes a high-rate DoS attack. The high-rate DoS attack fine detection algorithm can be implemented in the manner described in "DoS Detection Method Based on Chaos Analysis of Network Traffic Entropy" by Xinlei Ma and Yonghong Chen, published in IEEE Communications Letters in December 2013, the entire text of which is incorporated herein by reference. Alternatively, the high-rate DoS attack fine-grained detection algorithm can be implemented as described in “DoS Attack Detection Using Fast Entropy Approach on Flow-Based Network Traffic” by Jisa David and Ciza Thomas, published in Procedia Computer Science in May 2015, the entire contents of which are also incorporated herein by reference.
[0103] In summary, the high rate DoS attack fine detection module 158 differs from the high rate DoS attack coarse detection module 154 in the following respects. In an embodiment, the connection cluster used by the high rate DoS attack coarse detection module 154 is based on a first communication data set extracted from connection requests received at the network during a first collection time having a first time span. When sent to the high rate DoS attack fine detection module 158, the connection cluster is adjusted by extracting a second communication data set from connection requests received at the network during a second collection time, the second collection time having a second time span longer than the first time span. Therefore, the high rate DoS attack fine detection module 158 may be more accurate in detecting attacks, but may be slower in providing responses to the attacks.
[0104] In some implementations, adjusting a given connection cluster may include identifying device 20 / target device pairs based on the communication data set, and / or gathering additional information from traffic data regarding these pairs.
[0105] In fact, after the high rate DoS attack fine detection is adjusted with additional information, the connection clusters can include more recognizable patterns, providing more data that can be used by the high rate DoS attack fine detection module 158 (compared with the high rate DoS attack fine detection). It can be said that the high rate DoS attack coarse detection module 154 acts as a filter for the high rate DoS attack fine detection module 158. In use, the high rate DoS attack coarse detection module 154 can process terabytes of connection requests, while the high rate DoS attack fine detection module 158 can process gigabytes of connection requests. Therefore, the high rate DoS attack fine detection module 158 is less likely to analyze a relatively large number of connection clusters and connection requests. Therefore, compared with the high rate DoS attack coarse detection module 154, the high rate DoS attack fine detection module 158 uses more time and is able to provide a more detailed analysis.
[0106] In some implementations, the implementation complexity of the high-rate DoS attack fine detection module 158 may be greater than the implementation complexity of the high-rate DoS attack coarse detection module 154. For example, the execution of the high-rate DoS attack coarse detection module 154 may be constrained within a first processing resource allocation for a given connection cluster. In this example, for the adjusted given connection cluster during the second collection time, the execution of the high-rate DoS attack fine detection module 158 may be constrained within a second processing resource allocation that is greater than the first processing resource allocation.
[0107] In use, the high-rate DoS attack fine detection module 158 may require significant computing resources, such as memory, storage, and processing power, while the high-rate DoS attack coarse detection module 154 may require fewer resources.
[0108] In summary, increasing the collection time of the connection cluster used as input to the high-rate DoS attack coarse detection module 154 and the high-rate DoS attack fine detection module 158 can result in the following aspects. With a longer collection time, the high-rate DoS attack fine detection module 158 can analyze a larger amount of traffic data to improve attack detection. For example, by collecting data (i.e., the number of connection requests) over a longer period of time, the high-rate DoS attack fine detection module 158 can refine the analysis of normal traffic patterns and thus provide more accurate detection of anomalies that indicate a DoS attack.
[0109] In response to the third confidence score being lower than the fourth threshold, the high rate DoS attack fine detection module 158 does not treat the connection cluster as a high rate DoS attack, and the detection service 100 can execute the low rate DoS attack coarse detection module 160. In an embodiment, the fourth threshold is 50%. In response to the third confidence score being higher than the fourth threshold, the detection service 100 treats the connection cluster as a high rate DoS attack. The detection service 100 therefore executes the mitigation execution module 164.
[0110] It should be noted that for a given connection cluster, the execution of the high rate DoS attack coarse detection algorithm performed by the high rate DoS attack coarse detection module 154 is constrained within a first processing resource allocation. For a given connection cluster, the execution of the high rate DoS attack fine detection algorithm performed by the high rate DoS attack fine detection module 158 is constrained within a second processing resource allocation that is greater than the first processing resource allocation. In other words, the high rate DoS attack fine detection module 158 can provide a more accurate identification of malicious connection attempts. In use, in response to the high rate DoS attack coarse detection module 154 not being sure whether a DoS attack has occurred, the authentication protocol pipeline 150 causes the execution of the high rate DoS attack fine detection module 158 and involves an associated relatively large processing resource allocation. This can provide effective and accurate detection of DoS attacks with low computational latency.
[0111] In summary, in response to the confidence in the decisions of the previous modules (i.e., the high-rate DoS attack coarse detection module 154 and the flash detection module 156) being below a relevant threshold, the high-rate DoS attack fine detection module 158 is executed. In some embodiments, because a smaller portion of the traffic is analyzed at the high-rate DoS attack fine detection module 158, the developers of the present technology have designed more resource-intensive calculations to be performed by the high-rate DoS attack fine detection module 158 compared to the high-rate DoS attack coarse detection module 154. This can increase the accuracy of the decision of DoS attack detection.
[0112] In the context of the present disclosure, the distinction between high-rate attacks and low-rate attacks can be relied upon to improve the efficiency of attack detection. For example, in the case of a high-rate attack, it is easier to identify the attack using methods such as the Wilson continuity correction score method. In the case of a low-rate attack, the identification of the attack includes distinguishing between malicious traffic and legitimate traffic, because the two are statistically very close. Here, statistical pattern recognition methods can be used. In general, it can be said that a high-rate DoS attack is a traffic attack designed to saturate a communication link, while a low-rate DoS attack (such as a "Slowloris" attack) sends attack packets to the target device at a sufficiently low rate in an attempt to evade detection. A low-rate DoS attack may mimic the behavior of a legitimate user by issuing a connection request to a server or device without establishing the connection, thereby exploiting a defect to only consume the computing resources of the server or device.
[0113] Figure 3 A DoS pipeline 300 for detecting DoS attacks according to some non-limiting embodiments of the present technology is shown. The pipeline 300 includes a DoS attack coarse detection module 310 and a DoS attack fine detection module 320. The DoS attack coarse detection module 310 and the DoS attack fine detection module 320 can be, for example but not limited to, a high-rate DoS attack coarse detection module 154 and a high-rate DoS attack fine detection module 158, respectively, or a low-rate DoS attack coarse detection module 160 and a low-rate DoS attack fine detection module 162, respectively, which will be described in more detail below.
[0114] In an embodiment, the DoS attack rough detection module 310 receives information about the device 20 A , 20 B and 20 C With data processing entity 210 A and 210 B The communication data set 305 of the communication request between them. Figure 3 The arrows in the representation of the communication data set 305 in FIG. 3 represent communication requests and form a connection cluster. B To the data processing entity 210 A A relatively high number of communication requests are sent, and the data processing entity 210 B To device 20 C Sending a relatively high number of communication requests.
[0115] In use, the DoS attack rough detection module 310 identifies DoS attacks by source IP address and target IP address. More specifically, the DoS attack rough detection module 310 can identify communication requests involving traffic of the same source IP address. For a given source IP address, the DoS attack rough detection module 310 also executes the detection algorithm disclosed herein to mark the DoS attack. In addition, for a given target IP address, the DoS attack rough detection module 310 also executes the detection algorithm disclosed herein to mark the DoS attack. It can be said that the DoS attack rough detection module 310 aggregates the connection requests by IP address (source or target) to form a connection cluster for further analysis. In this embodiment, the DoS attack rough detection module 310 determines a first confidence score representing a first probability that the connection cluster is associated with the DoS attack. The DoS attack rough detection module 310 can also compare the first confidence score with a first threshold to determine whether to generate a mitigation command. The threshold used by the DoS attack rough detection module 310 to mark the IP address can be predetermined to reduce the computation time of the identification.
[0116] Otherwise, the DoS attack coarse detection module 310 may send the corresponding source IP address and the corresponding target IP address to the DoS attack fine detection module 320. In other words, the DoS attack coarse detection module 310 sends an indication of the following IP addresses: there is uncertainty as to whether the connection requests issued to and / or from the IP address are illegal. In some embodiments, the DoS attack coarse detection module 310 may remove the connection requests from the pipeline 300 in response to the confidence score being below the second threshold (i.e., the DoS attack coarse detection module 310 is confident that the connection requests are not part of a DoS attack).
[0117] The transmission of the connection cluster from the DoS attack rough detection module 310 to the DoS attack fine detection module 320 is Figure 3 307. In this embodiment, information about the devices 20 and data processing entities 210 involved in communications with the IP addresses marked by the DoS attack coarse detection module 310, as well as other devices 20 and other data processing entities 210 communicating with other devices 20 is included in the adjusted communication dataset 307.
[0118] It can be said that the execution of the DoS attack coarse detection module 310 is the "extensive detection stage" of the detection pipeline 300. For example, but not limited to, the DoS attack coarse detection module 310 may receive information of approximately 4 million to 5 million communication requests per second.
[0119] The DoS attack fine detection module 320 also performs a detection algorithm on the IP addresses marked by the DoS attack coarse detection module 310 and included in the adjusted communication data set 307. More specifically, for each IP address, the DoS attack fine detection module 320 parses (i) the device 20 and / or data processing entity from which the communication request is received, (ii) the amount of data exchanged with it, (iii) the device 20 and / or data processing entity to which the communication request is sent, and (iv) the amount of data exchanged with it. In this way, the DoS attack fine detection module 320 relies on IP address pairs (source and destination) to identify DoS attacks.
[0120] For example, but not limited to, the DoS attack fine detection module 320 may receive information about approximately 400,000 to 500,000 communication requests per second. It should also be noted that the collection time for collecting information about IP addresses flagged by the DoS attack coarse detection module 310 increases when the DoS attack fine detection module 320 is executed. In fact, assuming that the DoS attack fine detection module 320 has fewer communication requests to analyze, its collection time can be increased and still provide computing time suitable for detecting DoS attacks and protecting the infrastructure 200 from DoS attacks. It can be said that the connection cluster is adjusted by extracting a second communication data set from the connection requests received at the network during a second collection time having a second time span, the second time span of the second collection time being longer than the first time span of the first collection time.
[0121] In this embodiment, the DoS attack fine detection module 320 determines a second confidence score representing a second probability that the connection cluster is associated with a DoS attack. In response to the second confidence score being above the threshold, a mitigation command can be executed. Otherwise, the DoS attack fine detection module 320 considers the connection cluster to be legitimate. In the same or other embodiments, the threshold for marking the IP address by the DoS attack fine detection module 320 can be determined based on dynamic heuristics, such as the current bandwidth of the marked data processing entity, the current flow rate of the traffic received at the infrastructure 200, the reputation score of the data processing entity assigned by the operator of the infrastructure 200, and / or other dynamic heuristics, to increase the accuracy of the DoS attack fine detection module 320.
[0122] In summary, the DoS attack coarse detection module 310 uses data collected during a first collection time to mark IP addresses, and the DoS attack fine detection module 320 uses data collected during a second collection time greater than the first collection time to mark IP address pairs among the IP addresses marked by the DoS attack coarse detection module 310. The use of computing resources is thus significantly reduced (e.g., reduced by one-tenth).
[0123] It can therefore be said that the DoS attack coarse detection module 310 acts as a filter for the DoS attack fine detection module 320 by eliminating the connection clusters that are most likely (i.e., relatively high confidence scores) to be DoS attacks and causing the execution of mitigation commands in response. Therefore, the DoS attack fine detection module 320 analyzes the following connection clusters with greater computing resources and thus improved accuracy: for which the DoS attack coarse detection module 310 cannot make a decision as to whether the mitigation command should be executed. Therefore, compared with known detection pipelines, the "two-stage" structure of the detection pipeline 300 can reduce the requirements in terms of computing resources, cost, and latency for detecting DoS attacks.
[0124] As described herein, one of the differences between a DoS attack detection algorithm (also referred to as a "DOS attack "coarse" detection algorithm") and a DoS attack "fine" detection algorithm includes the adjustment of the collection time. On the other hand, the DoS attack "fine" detection algorithm is executed using a large number of samples, which increases the collection time and provides significantly fewer false positives than the coarse detection algorithm.
[0125] Low rate DoS attack rough detection module
[0126] In this embodiment, the low-rate DoS attack coarse detection module 160 executes a low-rate DoS attack coarse detection algorithm that determines a fourth confidence score for each connection cluster received from the high-rate DoS attack coarse detection module 154 or the high-rate DoS attack fine detection module 158 based on a communication data set extracted from the connection request 22 of the connection cluster.
[0127] The fourth confidence score represents a third probability that the connection cluster is associated with a DoS attack. The low-rate DoS attack coarse detection algorithm can be implemented as described in "An empirical evaluation of informationmetrics for low-rate and high-rate DoS attack detection" by Monowar H. Bhuyan, DK Hattacharyya, and JK Kalita, published in Pattern Recognition Letters in January 2015, the entire contents of which are incorporated herein by reference for jurisdictions that allow such incorporation. Alternatively, the low-rate DoS attack coarse detection algorithm can be implemented as described in "Detection of the botnets' low-rate DoS attacks based on self-similarity" by Sergii Lysenko, Kira Bobrovnikova, Serhii Matiukh, Ivan Hurman, and Oleh Savenko, published in International Journal of Electrical and Computer Engineering in August 2020, the entire contents of which are also incorporated herein by reference for jurisdictions that allow such incorporation.
[0128] In response to the fourth confidence score being lower than the fifth threshold, the low-rate DoS attack coarse detection algorithm does not consider the connection cluster as a low-rate DoS attack, and the detection service 100 can execute the access authorization module 166 to generate a network access authorization command, authorize the establishment of the communication session, and / or cause the execution of an additional authentication algorithm. In an embodiment, the fifth threshold is 15%.
[0129] In response to the fourth confidence score being higher than the sixth threshold, the low rate DoS attack coarse detection algorithm considers the connection cluster as a low rate DoS attack. The detection service 100 thus executes the mitigation execution module 164. In an embodiment, the sixth threshold is 85%.
[0130] In response to the first confidence score being above the fifth threshold and below the sixth threshold, the detection service 100 executes the low-rate fine detection module 162 .
[0131] In summary, typical heuristics upon which the low-rate fine-grained detection module 162 is based fail to make decisions when there is a significant amount of traffic to analyze. Thus, according to an embodiment of the authentication protocol pipeline 150, the low-rate fine-grained detection module 162 is executed when the previous modules of the authentication protocol pipeline 150 have not discovered a high-rate attack or have not deemed a high-rate attack legitimate.
[0132] Low-rate DoS attack fine-grained detection module
[0133] In this embodiment, the low-rate fine detection module 162 executes a low-rate fine detection algorithm that determines a fifth confidence score based on a communication data set extracted from the connection request 22 of the connection cluster for each connection cluster received from the low-rate DoS attack coarse detection module 160. The fifth confidence score represents a fourth probability that the connection cluster is associated with a DoS attack.
[0134] In summary, the fifth confidence score represents the low-rate fine detection module 162's estimate of whether a connection cluster is associated with a low-rate DoS attack. The low-rate fine detection algorithm can be implemented as described in "DoS Detection Method Based on Chaos Analysis of Network Traffic Entropy" by Xinlei Ma and Yonghong Chen, published in IEEE Communications Letters in December 2013, which is also incorporated herein by reference in its entirety for jurisdictions that allow such incorporation. Alternatively, the low-rate fine detection algorithm can be implemented as described in "An empirical evaluation of information metrics for low-rate and high-rate DoS attack detection" by Monowar H. Bhuyana, DK Hattacharyya, and JK Kalita, published in Pattern Recognition Letters in January 2015, which is also incorporated herein by reference in its entirety for jurisdictions that allow such incorporation.
[0135] In response to the fifth confidence score being below the seventh threshold, the low rate fine detection algorithm does not consider the connection cluster as a low rate DoS attack, and the detection service 100 can execute the access authorization module 166. In an embodiment, the seventh threshold is 50%. In response to the fifth confidence score being above the seventh threshold, the low rate DoS fine detection module 162 considers the connection cluster as a low rate DoS attack. The detection service 100 therefore executes the mitigation execution module 164. It can be said that when the confidence score of the decision relative to the previous module of the authentication protocol pipeline 150 is below the relevant threshold, the low rate fine detection module 162 is executed.
[0136] In summary, the low-rate DoS attack fine detection module 162 differs from the low-rate DoS attack coarse detection module 160 in the following respects. In an embodiment, the connection clusters used by the low-rate DoS attack coarse detection module 160 are based on a first communication data set extracted from connection requests received at the network during a first collection time having a first time span. The first collection time can be the same collection time as the collection time of the high-rate DoS attack coarse detection module 154, or a different collection time having another time span. In some embodiments, the collection time of the low-rate DoS attack coarse detection module 160 can have a higher time span than the collection time of the high-rate DoS attack coarse detection module 154 to provide improved detection of low-rate DoS attacks.
[0137] When sent to the low-rate DoS fine-grained detection module 162, the connection cluster is adjusted by extracting a second communication data set from connection requests received at the network during a second collection time having a second time span longer than the first time span. Therefore, the low-rate DoS fine-grained detection module 162 may be more accurate in detecting attacks, but may be slower in providing responses to the attacks.
[0138] In fact, after being adjusted with the additional information, the connection clusters may include more recognizable patterns than the input of the low-rate DoS attack coarse detection module 160, providing more data available for use by the low-rate DoS attack fine detection module 162. It can be said that the low-rate DoS attack coarse detection module 160 acts as a filter for the low-rate DoS attack fine detection module 162. In use, the low-rate DoS attack coarse detection module 160 can process connection requests at the terabyte level, while the low-rate DoS attack fine detection module 162 can process connection requests at the gigabyte level. Therefore, the low-rate DoS attack fine detection module 162 is less likely to analyze a relatively large number of connection clusters and connection requests. Therefore, compared with the low-rate DoS attack coarse detection module 160, the DoS fine detection module 162 uses more time and is able to provide a more detailed analysis.
[0139] In some implementations, the implementation complexity of the low-rate DoS fine detection module 162 may be greater than the implementation complexity of the low-rate DoS attack coarse detection module 160. For example, the execution of the low-rate DoS attack coarse detection module 160 may be constrained within a first processing resource allocation for a given connection cluster. In this example, for the adjusted given connection cluster during the second collection time, the execution of the low-rate DoS fine detection module 162 may be constrained within a second processing resource allocation that is greater than the first processing resource allocation.
[0140] In use, the low-rate DoS fine detection module 162 may require significant computing resources, such as memory, storage, and processing power, while the low-rate DoS attack coarse detection module 160 may require fewer resources.
[0141] In summary, increasing the collection time of the connection cluster used as input to the low-rate DoS attack coarse detection module 160 and the low-rate DoS fine detection module 162 can result in the following aspects. With a longer collection time, the low-rate DoS fine detection module 162 can analyze a larger amount of traffic data to improve attack detection. For example, by collecting data (i.e., the number of connection requests) over a longer period of time, the low-rate DoS fine detection module 162 can refine the analysis of normal traffic patterns and thus provide more accurate detection of anomalies that indicate a DoS attack. In addition, by increasing the collection time, the low-rate DoS fine detection module 162 can better detect low-rate attacks that may be difficult to detect using a relatively short collection time.
[0142] In summary, by executing the authentication protocol pipeline 150, the detection service 100 can detect low-rate and high-rate attacks with high confidence, distinguish between flash events and malicious attacks, and adjust the amount of running computing resources to determine the occurrence of an attack, thereby reducing computing latency. It can be seen that the authentication protocol pipeline 150 is a modular pipeline including multiple modules that can be changed in order and / or include other algorithms.
[0143] Figure 5 1 is a flow chart of a method 400 for detecting a denial of service (DoS) attack on a network such as a communication network 50 according to some embodiments of the present technology. In one or more aspects, the method 400 or one or more steps thereof can be performed by a processor or computer system (e.g., the detection service 100). The method 400 or one or more steps thereof can be embodied in computer executable instructions, which are stored in a computer readable medium (e.g., a non-transitory mass storage device), which is loaded into a memory and executed by a CPU. Some steps or portions of the steps in the flow chart can be omitted or changed in order.
[0144] The method 400 begins by extracting communication data sets from connection requests received at a network at operation 410. Each communication data set includes a corresponding connection request and an indication of a corresponding target device.
[0145] For example, but not limited to, the communication data set for a given connection request may include information about the source IP address of the corresponding device, information about the source port of the corresponding device, information about the target IP address of the corresponding target device, information about the target port of the corresponding target device, and information about the protocol used for communication between the corresponding device and the corresponding target device.
[0146] In some implementations, the data format of a given connection request may be a NetFlow data format, an SFlow data format, or a kFlow data format.
[0147] At operation 420, method 400 clusters the connection requests based on the communication data set to form a plurality of connection clusters. For example, the connection requests can be clustered by identifying a corresponding target device for each connection request and dividing the connection requests into connection clusters based on their corresponding target devices. Connection requests associated with the same target device can therefore be grouped in the same connection cluster.
[0148] At operation 430, the method 400 executes a first DoS attack detection algorithm (e.g., high rate DoS attack coarse detection module 154) for at least one connection cluster to generate a first confidence score representing a first probability that the connection cluster is associated with a DoS attack based on a communication data set corresponding to the given connection cluster. In some implementations, for the given connection cluster, execution of the first DoS attack detection algorithm is constrained within a first processing resource allocation.
[0149] At operation 440, method 400 compares the first confidence score to a first threshold to determine whether to generate a mitigation command.
[0150] In some embodiments, execution of the mitigation command results in activation of a DoS attack-resistant specialized system adapted to perform mitigation measures.
[0151] In some embodiments, comparing the first confidence score to a first threshold to determine whether to generate a mitigation command includes comparing the first confidence score to the first threshold to determine whether to (i) generate a mitigation command or (ii) execute a flash cluster detection algorithm, which is configured to determine whether the connection cluster is associated with a flash cluster event.
[0152] At operation 450, method 400 adjusts the connection cluster by extracting a second communication data set from the connection request received at the network during the second collection time, the second collection time having a second time span longer than the first time span. In some embodiments, the first collection time is included in the first collection time. For example, the second time span can be twice the first time span. The ratio of the first time span to the second time span is not limited.
[0153] At operation 460, method 400 executes a second DoS attack detection algorithm (e.g., high rate DoS attack fine detection module 158) to generate a second confidence score based on the communication data set corresponding to the given adjusted connection cluster, the second confidence score representing a second probability that the adjusted connection cluster is associated with a DoS attack. In some embodiments, for the given connection cluster, execution of the second DoS attack detection algorithm is constrained within a second processing resource allocation that is greater than the first processing resource allocation.
[0154] In some implementations, a second DoS attack detection algorithm is executed in response to not detecting a flash.
[0155] In use, after being adjusted with the additional information during the second time span compared to the input of the first DoS attack detection module, the connection clusters may include more recognizable patterns, providing more data available for use by the second DoS attack detection module. It can be said that the first DoS attack detection module acts as a filter for the second DoS attack detection module. Therefore, the second DoS attack detection module is less likely to analyze a relatively large number of connection clusters and connection requests. Therefore, compared to the first DoS attack detection module, the second DoS attack detection module uses more time and is able to provide a more detailed analysis.
[0156] In some implementations, the second DoS attack detection algorithm can adjust the number of connection requests included in the connection cluster by collecting additional connection requests received at the network.
[0157] In some embodiments, the method 400 further includes comparing the second confidence score to a second threshold to determine whether to (i) generate a mitigation command or (ii) execute a third DoS attack detection algorithm (e.g., low-rate DoS attack coarse detection module 160). In use, the third DoS attack detection algorithm generates a third confidence score representing a third probability that the connection cluster is associated with a DoS attack based on a communication data set corresponding to a given connection cluster collected during a third collection time. The third collection time may correspond to the first collection time or a different collection time. The third collection time may be, for example, but not limited to, based on the first and / or second confidence scores. For a given connection cluster, execution of the third DoS attack detection algorithm is constrained within a third processing resource allocation.
[0158] The method 400 may also include, in response to the third DoS attack detection algorithm not detecting the DoS attack, adjusting the connection cluster by extracting a fourth communication data set from the connection requests received at the network during a fourth collection time, the fourth collection time having a fourth time span longer than the third time span. In some embodiments, the third collection time is included in the fourth collection time. For example, the fourth time span may be twice the third time span. The ratio of the third time span to the fourth time span is not limited.
[0159] At operation 460, method 400 executes a fourth DoS attack detection algorithm (e.g., low-rate DoS attack fine-grained detection module 162) to generate a fourth confidence score representing a fourth probability that the connection cluster is associated with a DoS attack based on a communication data set corresponding to the given connection cluster during a fourth collection time. For the given connection cluster, execution of the fourth DoS attack detection algorithm is constrained within a fourth processing resource allocation that is greater than the third processing resource allocation.
[0160] In use, after being adjusted with the additional information during the fourth time span, the connection clusters may include more recognizable patterns compared to the input of the third DoS attack detection module, providing more data available for use by the fourth DoS attack detection module. It can be said that the third DoS attack detection module acts as a filter for the fourth DoS attack detection module. Therefore, the fourth DoS attack detection module is less likely to analyze a relatively large number of connection clusters and connection requests. Therefore, compared with the third DoS attack detection module, the fourth DoS attack detection module uses more time and is able to provide a more detailed analysis.
[0161] In some embodiments, method 400 further comprises comparing the fourth confidence score to a third threshold to determine whether to (i) generate a mitigation command or (ii) generate a network access authorization command.In the same or other embodiments, the low rate DoS fine-grained detection algorithm comprises a machine learning algorithm.
[0162] In some implementations, method 400 further includes comparing the third confidence score to a fourth threshold to determine whether to generate a network access authorization command.
[0163] In the same or other embodiments, the third DoS attack detection algorithm is executed directly after executing the first DoS attack detection algorithm. More specifically, method 400 may include comparing the first confidence score with a fifth threshold to determine whether to execute the third DoS attack detection algorithm after executing the first DoS attack detection algorithm.
[0164] The method 400 may further include, in response to the flash clustering detection algorithm detecting the flash clustering event, executing a third DoS attack detection algorithm.
[0165] Although the above embodiments have been described and illustrated with reference to specific steps performed in a specific order, it should be understood that these steps can be combined, subdivided, or reordered without departing from the teachings of the present technology. At least some steps can be performed in parallel or in series. Therefore, the order and grouping of steps are not limitations of the present technology.
[0166] It should be understood that at least some of the operations of method 400 may also be performed by a computer program, which may exist in various forms, including active and inactive. For example, a computer program may exist as a software program consisting of program instructions in source code, object code, executable code, or other formats. Any of the above may be embodied on a computer-readable medium, which includes a storage device and a signal in compressed or uncompressed form. Representative computer-readable storage devices include conventional computer system RAM (random access memory), ROM (read-only memory), EPROM (erasable programmable ROM), EEPROM (electrically erasable programmable ROM), and magnetic or optical disks or tapes. Representative computer-readable signals, whether or not modulated using a carrier wave, are signals that a computer system hosting or running a computer program can be configured to access, including signals downloaded via the Internet or other networks. The specific examples above include distributing programs on CDROMs or by downloading them via the Internet. In a sense, the Internet itself, as an abstract entity, is a computer-readable medium. In general, the same is true for computer networks.
[0167] Figure 61 is a schematic representation of a detection service 100 according to some non-limiting embodiments of the present technology. In alternative embodiments, the detection service 100 may include additional components. Some components may be omitted in alternative embodiments. The detection service 100 includes a computing unit 105, which can receive traffic to be analyzed and execute the authentication protocol pipeline 150. In some embodiments, the computing unit 105 can be composed of a conventional personal computer, a controller and / or an electronic device (e.g., a server, a controller unit, a control device, a monitoring device, etc.) and / or any combination thereof suitable for the current relevant task. In some embodiments, the computing unit 105 includes various hardware components, including one or more single-core or multi-core processors collectively represented by a processor 110, a solid-state drive 170, a random access memory (RAM) 130, a dedicated memory 140, and an input / output interface 180. The computing unit 105 can be a computer specially designed to analyze traffic to one or more infrastructures (e.g., infrastructure 200) and detect malicious attacks. The computing unit 105 can be a general-purpose computer system.
[0168] In some other embodiments, the computing unit 105 may be an "off-the-shelf" general-purpose computer system. In some embodiments, the computing unit 105 may also be distributed across multiple systems. The computing unit 105 may also be dedicated to the implementation of the present technology. It will be appreciated by those skilled in the art that many variations on how to implement the computing unit 105 may be envisioned without departing from the scope of the present technology.
[0169] Communications between the various components of computing unit 105 may occur via one or more internal and / or external buses 190 (e.g., a PCI bus, a Universal Serial Bus, an IEEE 1394 "FireWire" bus, a SCSI bus, a Serial ATA bus, an ARINC bus, etc.) to which the various hardware components are electronically coupled.
[0170] The input / output interface 180 can provide networking capabilities such as wired or wireless access. As an example, the input / output interface 180 may include a network interface, such as but not limited to one or more network ports, one or more network sockets, one or more network interface controllers, etc. In use, the input / output interface 180 can be used by the detection service 100 to receive and send data through the communication network 50. It will become apparent to those skilled in the art how to implement multiple examples of networking interfaces. For example, but not limited to, the networking interface can implement specific physical layer and data link layer standards, such as Ethernet, Fiber Channel, Wi-Fi or Token Ring. Specific physical layer and data link layer can provide the basis for a complete network protocol stack, allowing communication between small groups of computers on the same local area network (LAN), and large-scale network communication (IP) through routable protocols (such as Internet Protocol).
[0171] According to an embodiment of the present technology, the solid state drive 170 stores program instructions suitable for loading into the RAM 130 and being executed by the processor 110. Although shown as a solid state drive 170, any type of memory may be used, such as a hard disk, an optical disk, and / or a removable storage medium. According to an embodiment of the present technology, the solid state drive 170 stores program instructions suitable for loading into the RAM 130 and being executed by the processor 110 to perform the generation of a 3D representation of an object. For example, the program instructions may be part of a library or an application.
[0172] The processor 110 may be a general purpose processor, such as a central processing unit (CPU) or a processor dedicated to a specific purpose, such as a digital signal processor (DSP) for traffic analysis. In some embodiments, the processor 110 may also rely on an accelerator 120 dedicated to certain given tasks, such as executing the methods described in the following paragraphs. In some embodiments, the processor 110 or the accelerator 120 may be implemented as one or more field programmable gate arrays (FPGAs). In addition, the explicit use of the term "processor" should not be interpreted as referring specifically to hardware capable of executing software, and may implicitly include, but is not limited to, application specific integrated circuits (ASICs), read-only memories (ROMs) for storing software, RAM, and non-volatile storage. Other conventional and / or customized hardware may also be included.
[0173] The device 10 may include a memory 12 that is communicatively connected to the computing unit 105 and is configured to store values such as, but not limited to, the first threshold, the second threshold, the third threshold, the fourth threshold, the sixth threshold, and the seventh threshold. The memory 12 may be Figure 6The computing unit 105 may be configured to access the contents of the memory 12 via a network (not shown) such as a local area network (LAN) and / or a wireless connection such as a wireless local area network (WLAN).
[0174] Modifications and improvements to the above-described embodiments of the present technology will be apparent to those skilled in the art. The foregoing description is intended to be illustrative rather than limiting. Therefore, the scope of the present technology is intended to be limited only by the scope of the appended claims.
Claims
1. A computer-implemented method for detecting a denial of service (DoS) attack on a network, the method comprising: extracting first communication data sets from connection requests received at the network during a first collection time, the first collection time having a first time span, each first communication data set comprising a connection request and an indication of a corresponding target device; clustering the connection requests based on the communication data set to form a plurality of connection clusters; For at least one of the connection clusters: executing a first DoS attack detection algorithm to generate a first confidence score based on a communication data set corresponding to a given connection cluster, the first confidence score representing a first probability that the connection cluster is associated with a DoS attack; comparing the first confidence score to a first threshold to determine whether to generate a mitigation order; adjusting the connection cluster by extracting a second communication data set from connection requests received at the network during a second collection time, the second collection time having a second time span longer than the first time span; as well as A second DoS attack detection algorithm is executed to generate a second confidence score based on the communication data set corresponding to a given connection cluster, the second confidence score representing a second probability that the connection cluster is associated with a DoS attack.
2. The computer-implemented method of claim 1 , wherein: The communication data set for a given connection request also includes: Information about the source IP address of the corresponding device; and information about the target IP address of the corresponding target device; and The first DoS attack detection algorithm is a coarse DoS attack detection algorithm configured to aggregate connection requests by IP address to form the connection cluster.
3. The computer-implemented method of claim 2, wherein: The second DoS attack detection algorithm is a fine DoS attack detection algorithm, which is configured to: aggregate connection requests according to pairs of source IP addresses / destination IP addresses to adjust the connection cluster.
4. The computer-implemented method of claim 1 , wherein: Comparing the first confidence score to a first threshold to determine whether to generate a mitigation command includes: The first confidence score is compared to a first threshold to determine whether to (i) generate a mitigation command or (ii) execute a flash cluster detection algorithm configured to ascertain whether the connection cluster is associated with a flash cluster event.
5. The computer-implemented method of claim 1 , wherein: For a given connection cluster, execution of the first DoS attack detection algorithm is constrained within a first processing resource allocation; as well as For a given connection cluster, execution of the second DoS attack detection algorithm is constrained within a second processing resource allocation, the second processing resource allocation being greater than the first processing resource allocation.
6. The computer-implemented method of claim 1 , further comprising: The second confidence score is compared to a second threshold to determine whether to (i) generate a mitigation command or (ii) execute a third DoS attack detection algorithm, wherein the third DoS attack detection algorithm is configured to generate a third confidence score based on a communication data set corresponding to a given connection cluster, the third confidence score representing a third probability that the connection cluster is associated with a DoS attack.
7. The computer-implemented method of claim 6, wherein: In response to the third DoS attack detection algorithm being executed and no DoS attack is detected by the third DoS attack detection algorithm, a fourth DoS attack detection algorithm is executed to generate a fourth confidence score based on the communication data set corresponding to the given connection cluster, the fourth confidence score representing a fourth probability that the connection cluster is associated with a DoS attack.
8. The computer-implemented method of claim 7, wherein: For a given connection cluster, execution of the third DoS attack detection algorithm is constrained within a third processing resource allocation; as well as For a given connection cluster, execution of the fourth DoS attack detection algorithm is constrained within a fourth processing resource allocation, the fourth processing resource allocation being greater than the third processing resource allocation.
9. The computer-implemented method of claim 7, wherein: The third DoS attack detection algorithm is configured to: generate the third confidence score based on the extracted third communication data set corresponding to the given connection cluster during a third collection time, the third collection time having a third time span; The method further includes, before executing the fourth DoS attack detection algorithm, adjusting the connection cluster by extracting a fourth communication data set from connection requests received at the network during a fourth collection time, the fourth collection time having a fourth time span longer than the third time span.
10. The computer-implemented method of claim 7, further comprising: The fourth confidence score is compared to a third threshold to determine whether to (i) generate a mitigation command or (ii) generate a network access authorization command for the network.
11. The computer-implemented method of claim 5, further comprising: The third confidence score is compared to a fourth threshold to determine whether to generate a network access authorization command for the network.
12. The computer-implemented method of claim 1 , further comprising: The first confidence score is compared to a fifth threshold to determine whether to execute the third DoS attack detection algorithm after executing the first DoS attack detection algorithm.
13. The computer-implemented method of claim 1, wherein: The first DoS attack detection algorithm is a high-rate DoS rough detection algorithm, The second DoS attack detection algorithm is a high-rate DoS fine detection algorithm, the third DoS attack detection algorithm is a low-rate DoS coarse detection algorithm, and / or the fourth DoS attack detection algorithm is a low-rate DoS fine detection algorithm.
14. A system for detecting a denial of service (DoS) attack on a network, the system comprising a controller and a memory storing a plurality of executable instructions, the plurality of executable instructions causing the system to perform the method according to claim 1 when executed by the controller.
15. A non-transitory computer-readable medium comprising computer-readable instructions that, when executed by a system, cause the system to perform the method of claim 1.
Citation Information
Patent Citations
SDN-oriented cross-plane cooperation DDOS detection and defense method and system
CN111614627A
Method and apparatus for large-scale automated distributed denial of service attack detection
US20070283436A1
IP prioritization and scoring system for ddos detection and mitigation
US20120079592A1
METHODS AND SYSTEMS FOR DETECTING AND MITIGATING A HIGH-RATE DISTRIBUTED DENIAL OF SERVICE (DDoS) ATTACK
US20120216282A1
Detecting and mitigating application layer ddos attacks
US20210360023A1
