A monitoring and detection system for distributed denial of service attacks

By designing a monitoring and detection system for distributed denial-of-service attacks, the calculation of semi-connection entropy and access time entropy is used to accurately identify abnormal traffic, solve the problem of misjudgment in the existing technology, and achieve accurate and rapid detection of DDoS attacks. response, reducing the false detection rate.

CN117997644BInactive Publication Date: 2024-09-24BOHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410287760.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the existing technology detects distributed denial-of-service attacks, it is easy to cause misjudgment. Normal mutation traffic is judged as attack abnormal traffic, affecting normal user experience.

Method used

A monitoring and detection system is designed, including a traffic acquisition module, a traffic monitoring module, a traffic detection module and a result generation module. By acquiring network communication traffic in real time, and comparing it with the preset attack threshold, the semi-connection entropy and access time entropy are calculated to determine abnormalities. traffic, and send alert information to the application server or cancel the alert information.

Benefits of technology

It achieves accurate identification of DDoS attacks, reduces the false detection rate, and ensures the stability of normal user experience, rapid response and resource saving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117997644B
    Figure CN117997644B
Patent Text Reader

Abstract

The present invention discloses a monitoring and detection system for distributed denial of service attacks, which belongs to the field of network security technology, and specifically includes real-time acquisition of communication traffic in a network system; when the communication traffic is greater than a preset attack threshold, the communication traffic is marked as pending communication traffic; the pending communication traffic is divided into a number of sub-communication traffics, the access request status data of the target IP address server is acquired in sequence, the connection status and connection time of any access request are obtained, the first probability of a semi-connected access request is calculated, and if the semi-connected entropy is less than a preset threshold, the communication traffic corresponding to the target IP is determined to be abnormal traffic; the request status information is establishment of connection, semi-connection and closing of connection; if there is abnormal traffic, abnormal alarm information is sent to the application server. The present invention realizes the accurate identification of distributed denial of service attacks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network security, and in particular to a monitoring and detection system for distributed denial of service attacks. Background Art

[0002] Distributed denial of service attack refers to the use of client / server technology, Trojan virus technology, botnet technology, etc. to combine multiple computers, servers, and network devices as attack platforms to launch distributed denial of service attacks on one or more network targets. The attacker controls multiple network devices through control software and programs to repeatedly send a large number of abnormal messages, connection requests, and service requests to a certain network device at the same time, causing the bandwidth of the attacked network device to be congested, hardware resources to be exhausted, and services to be paralyzed, thereby achieving the attacker's purpose of destruction.

[0003] Network layer DDoS attacks have a greater impact on cloud service providers and Internet data center service providers. Since cloud service providers and IDC service providers provide network services to multiple tenants through centralized Internet access points, when a certain IP is attacked, if it is not handled in time, it may affect the network services of all other tenants. In the prior art, in order to prevent such DDOS attacks, a dynamic baseline detection method is usually used to detect whether a DDOS attack has occurred. A certain predicted value is obtained through model prediction, and then the predicted value is used as a reference to calculate the deviation between the actual observed value and the predicted value. If the deviation exceeds a certain range, it is considered to be under attack. When the network traffic has normal mutation traffic similar to the attack, it is very easy to cause the detection algorithm to misjudge, resulting in the normal mutation traffic also being judged as attack abnormal traffic, affecting the actual experience of normal users. Summary of the invention

[0004] The purpose of the present invention is to provide a monitoring and detection system for distributed denial of service attacks to solve the following technical problems:

[0005] When normal mutation traffic similar to attack traffic appears in network traffic, it is very easy to cause misjudgment of the detection algorithm, resulting in the normal mutation traffic also being judged as attack abnormal traffic, affecting the actual experience of normal users.

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] A monitoring and detection system for distributed denial of service attacks, comprising a controlled object, an observer, a controller and an application server, wherein the observer is connected to the controller, the application server is arranged between the observer and the controller and is connected to the observer and the controller respectively, and further comprising:

[0008] The traffic acquisition module is used to acquire the communication traffic in the network system within a unit time t in real time;

[0009] A flow monitoring module is used to compare the communication flow with a preset attack threshold. When the communication flow is greater than the preset attack threshold, the communication flow is marked as pending communication flow and an early warning message is issued to the application server; the attack threshold includes a flow bandwidth threshold and a transmission packet number threshold;

[0010] The traffic detection module is used to divide the pending communication traffic into several sub-communication traffics according to the target IP address, sort the target IP addresses in turn according to the size of the divided sub-communication traffics, obtain the access request status data of the target IP address server in turn, obtain the connection status and connection time of any access request, calculate the first probability of the semi-connected access request, calculate the semi-connected entropy by the information entropy formula, and if the semi-connected entropy is less than a preset threshold, the communication traffic corresponding to the target IP is determined to be abnormal traffic; the request status information is to establish a connection, a semi-connected connection, and a closed connection;

[0011] The result generation module is used to send abnormal alarm information to the application server if there is abnormal traffic, and send cancellation warning information to the application server if there is no abnormal traffic.

[0012] As a further solution of the present invention: in the traffic detection module, the first probability calculation process of the access request is:

[0013] The number of all semi-connections of the target IP address server within a unit time t and the corresponding semi-connection time are obtained and marked as T1, T2, ..., Tn, where T≤t and n is a positive integer, and the first probability is calculated according to the connection time.

[0014] As a further solution of the present invention: in the flow detection module, the calculation process of the semi-connection time entropy is:

[0015]

[0016] H is the semi-connection entropy, and Pi is the connection probability corresponding to any half connection time.

[0017] As a further solution of the present invention: in the traffic detection module, if the semi-connection entropy is greater than or equal to a preset threshold, the connection duration of each access request to the server corresponding to the target IP address and the total connection duration are obtained, and the first probability corresponding to each connection duration is determined. According to each of the first probabilities, the access time entropy is calculated. If the access time entropy is less than the preset threshold, the communication traffic corresponding to the target IP is judged to be abnormal traffic. If the access time entropy is greater than or equal to the preset threshold, the communication traffic corresponding to the target IP is judged to be normal traffic.

[0018] As a further solution of the present invention: the calculation process of the first probability of the connection duration is:

[0019] The duration and number of times the target IP address server establishes a connection with any source IP are obtained, and they are sorted in sequence by connection duration to generate a connection time series, the proportion of each connection duration to the total connection duration is calculated, and the first probability of any connection duration is obtained.

[0020] As a further solution of the present invention: in the result generation module, when it is detected that the communication flow corresponding to the first destination IP address is abnormal flow, the target IP address flow control information is sent to the controller.

[0021] As a further solution of the present invention: when it is detected that the communication flow corresponding to the first destination IP address is abnormal flow, the communication flow detection of the next target IP address is continued in sequence. When abnormal flow exists, abnormal alarm information of the next target IP address is continued to be sent to the application server. When there is no abnormal flow, a cancellation warning information is sent to the application server.

[0022] As a further solution of the present invention: when the controller receives traffic control information of the target IP address, the access traffic of the target IP address is blocked.

[0023] Beneficial effects of the present invention:

[0024] The present invention obtains the communication flow in the network system in real time, and compares the communication flow with a preset attack threshold. When the communication flow is greater than the preset attack threshold, the communication flow is marked as pending communication flow, and early warning information is sent to an application server. The pending communication flow is detected, and access request state data of a target IP address server is obtained in sequence, and the connection state and connection time of any access request are obtained, and the first probability of a semi-connected access request is calculated. The semi-connected entropy is calculated by an information entropy formula. If the semi-connected entropy is less than the preset threshold, the communication flow corresponding to the target IP is determined to be abnormal flow. If there is abnormal flow, abnormal alarm information is sent to the application server. Behavior recognition is performed on the connection request data of the target IP address server, and according to the phenomenon that when the server is attacked by DDoS, the server will receive a large number of abnormal semi-connected applications, and the server must wait for a period of time before disconnecting these semi-connections, resulting in the semi-connected entropy deviating from the normal entropy during the current detection time, it is determined that the server is attacked by DDoS within the detection period, and accurate recognition of DDOS attacks is achieved, and the false detection rate is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The present invention will be further described below in conjunction with the accompanying drawings.

[0026] Figure 1It is a flow chart of a monitoring and detection system for distributed denial of service attacks of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] See also Figure 1 As shown, the present invention is a monitoring and detection system for distributed denial of service attacks, including a controlled object, an observer, a controller and an application server, characterized in that the observer is connected to the controller, the application server is arranged between the observer and the controller and is connected to the observer and the controller respectively, and further includes:

[0029] The traffic acquisition module is used to acquire the communication traffic in the network system within a unit time t in real time;

[0030] A flow monitoring module is used to compare the communication flow with a preset attack threshold. When the communication flow is greater than the preset attack threshold, the communication flow is marked as pending communication flow and an early warning message is issued to the application server; the attack threshold includes a flow bandwidth threshold and a transmission packet number threshold;

[0031] The traffic detection module is used to divide the pending communication traffic into several sub-communication traffics according to the target IP address, sort the target IP addresses in turn according to the size of the divided sub-communication traffics, obtain the access request status data of the target IP address server in turn, obtain the connection status and connection time of any access request, calculate the first probability of the semi-connected access request, calculate the semi-connected entropy by the information entropy formula, and if the semi-connected entropy is less than a preset threshold, the communication traffic corresponding to the target IP is determined to be abnormal traffic; the request status information is to establish a connection, a semi-connected connection, and a closed connection;

[0032] The result generation module is used to send abnormal alarm information to the application server if there is abnormal traffic, and send cancellation warning information to the application server if there is no abnormal traffic.

[0033] The present invention obtains the communication flow in the network system in real time, and compares the communication flow with a preset attack threshold. When the communication flow is greater than the preset attack threshold, the communication flow is marked as pending communication flow, and early warning information is sent to an application server. The pending communication flow is detected, and access request state data of a target IP address server is obtained in sequence, and the connection state and connection time of any access request are obtained, and the first probability of a semi-connected access request is calculated. The semi-connection entropy is calculated by an information entropy formula. If the semi-connection entropy is less than the preset threshold, the communication flow corresponding to the target IP is determined to be abnormal flow. If there is abnormal flow, abnormal alarm information is sent to the application server. Behavior recognition is performed on the connection request data of the target IP address server, and according to the phenomenon that when the server is attacked by DDoS, the server will receive a large number of abnormal semi-connection applications, and the server must wait for a period of time before disconnecting these semi-connections, resulting in the semi-connection entropy deviating from the normal entropy during the current detection time, it is determined that the server is attacked by DDoS within the detection period, thereby ensuring the accuracy of DDoS attack detection and reducing the false detection rate.

[0034] As is common knowledge in this field, the TCP protocol is usually used for denial of service attacks, and the SYN Flood attack is implemented by taking advantage of the defects of the three-way handshake of the TCP protocol. TCP establishes a connection, which requires the client and the server to complete three handshakes. When the client wants to establish a TCP connection with the server, it first sends a SYN message to the server. If the server agrees to establish the connection, it replies with a corresponding response SYN-ACK. After the client receives the SYN-ACK reply from the server, it sends an ACK to the server. After the server receives the message, a complete TCP connection is completed. Attackers often use the means of forging addresses to forge the source IP address of the attack data packet into an IP address that does not exist or is not running on the host, and send requests to the server. The server must wait for a period of time before disconnecting these half-open connections after the timeout. If the attacker sends many such connection requests to the victim, the connection stack of the server will be exhausted, so that other connection requests cannot be accepted, causing a denial of service attack. Or through a large number of access requests for normal connections with extremely short access time, the server power-off bandwidth and resources are transferred, thereby causing a denial of service attack.

[0035] It is worth noting that because the original data IP address of the data packet caused by DDOS attack is usually forged, it is very common to use one or several identical IP addresses to access the same server. Randomizing the source IP address or using a forged source IP address can reduce the value of the source IP entropy to make it look closer to normal traffic, thereby bypassing the source IP entropy being in a normal range. Therefore, the present invention uses semi-connection entropy, a network behavior that is not affected by source IP and traffic, to accurately identify DDOS attacks.

[0036] In another preferred embodiment of the present invention, in the traffic detection module, the first probability calculation process of the access request is:

[0037] The number of all semi-connections of the target IP address server within a unit time t and the corresponding semi-connection time are obtained and marked as T1, T2, ..., Tn, where T≤t and n is a positive integer, and the first probability is calculated according to the connection time.

[0038] Obtain any half connection time, obtain the number of times i that the half connection time appears in the sequence, and obtain the first probability of the connection time according to the calculation formula Pi=i / n.

[0039] In another preferred embodiment of the present invention, in the flow detection module, the calculation process of the semi-connection time entropy is:

[0040]

[0041] H is the semi-connection entropy, and Pi is the connection probability corresponding to any half connection time.

[0042] DDoS attacks usually have certain characteristics and patterns. For example, the frequency, source distribution, and protocol type of attack traffic may be significantly different from normal traffic. By analyzing information entropy, these attack patterns can be revealed, which helps to identify and respond to DDoS attacks in a timely manner. Abnormal behavior detection: DDoS attacks may cause changes in the statistical characteristics of network traffic, such as source IP address distribution, target port occupancy, and packet size distribution. By detecting these abnormal behaviors through information entropy, possible signs of attacks or DDOS attacks that have already occurred can be quickly discovered.

[0043] In another preferred embodiment of the present invention, in the traffic detection module, if the semi-connection entropy is greater than or equal to a preset threshold, the connection duration of each access request to the server corresponding to the target IP address and the total connection duration are obtained, and the first probability corresponding to each connection duration is determined. According to each of the first probabilities, the access time entropy is calculated. If the access time entropy is less than the preset threshold, the communication traffic corresponding to the target IP is judged to be abnormal traffic. If the access time entropy is greater than or equal to the preset threshold, the communication traffic corresponding to the target IP is judged to be normal traffic.

[0044] DDOS attacks mainly occupy a large amount of server bandwidth by making abnormal connections to the target server, thereby causing congestion in the target server. When the semi-connection entropy is greater than or equal to the preset threshold, it means that there are two situations in the current traffic anomaly. One is the traffic mutation caused by normal traffic, and the other is that the DDOS attack establishes a large number of short-term connection requests with the target server, disconnects from the server and reconnects, and repeatedly consumes the connection stack on the server, causing the server to be unable to accept other connection requests, causing a denial of service attack. The access time of normal traffic has irregular periodicity. Therefore, when a DDOS attack occurs, the access time entropy of the server is much smaller than the normal access time entropy. Therefore, if the access time entropy is less than the preset threshold, it can be determined that the server corresponding to the IP address has abnormal traffic.

[0045] In another preferred embodiment of the present invention, the calculation process of the first probability of the connection duration is:

[0046] The duration and number of times the target IP address server establishes a connection with any source IP are obtained, and they are sorted in sequence by connection duration to generate a connection time series, the proportion of each connection duration to the total connection duration is calculated, and the first probability of any connection duration is obtained.

[0047] In another preferred embodiment of the present invention, in the result generating module, when it is detected that the communication flow corresponding to the first destination IP address is abnormal flow, the target IP address flow control information is sent to the controller.

[0048] In another preferred embodiment of the present invention, when it is detected that the communication traffic corresponding to the first destination IP address is abnormal traffic, the communication traffic detection of the next target IP address is continued in sequence. When abnormal traffic exists, abnormal alarm information of the next target IP address is continued to be sent to the application server. When there is no abnormal traffic, a cancellation warning information is sent to the application server.

[0049] The existing technology usually provides network services for multiple tenants at centralized Internet entrances and exits. If a certain IP is attacked and not handled in time, it will affect the network services of all other tenants. Through the cascaded abnormal traffic detection and alarm mechanism, when abnormal traffic is found, alarm information is quickly sent to the application server, which speeds up the response to abnormal situations and helps to take necessary measures to deal with abnormal situations in time. After the abnormal traffic of the first target IP address is found, the next target IP address is continuously detected to obtain all abnormal IP addresses, while avoiding repeated detection of all target IP addresses. Only when abnormal traffic is detected will the alarm information be triggered to be sent to the application server, thereby saving the consumption of system resources and improving the efficiency of the system.

[0050] In another preferred embodiment of the present invention, when the information received by the controller is target IP address traffic control information, the access traffic of the target IP address is blocked.

[0051] When the controller detects traffic anomalies at a target IP address, it immediately blocks access to the target IP address, which can quickly stop the transmission of abnormal traffic, effectively curb the development of attacks or abnormal behaviors, reduce server load, and prevent these behaviors from causing greater damage and risks to the system. It achieves precise control of abnormal traffic and, at the same time, selectively blocks specific target IP addresses as needed to meet different security and business needs.

[0052] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A monitoring and detection system for distributed denial of service attacks, comprising a controlled object, an observer, a controller and an application server, characterized in that: The observer is connected to the controller, and the application server is arranged between the observer and the controller and is connected to the observer and the controller respectively, and further includes: The traffic acquisition module is used to acquire the communication traffic in the network system within a unit time t in real time; A traffic monitoring module is used to compare the communication traffic with a preset attack threshold. When the communication traffic is greater than the preset attack threshold, the communication traffic is marked as pending communication traffic and an early warning message is sent to the application server. The attack threshold includes a traffic bandwidth threshold and a transmission packet number threshold. The traffic detection module is used to divide the pending communication traffic into multiple sub-communication traffics according to the target IP address, sort the target IP address according to the size of each sub-communication traffic, obtain the access request status data of the server where the target IP address is located in sequence according to the arrangement order, obtain the connection status and connection time of any access request, calculate the first probability of the semi-connected access request, calculate the semi-connected entropy by the information entropy formula, and if the semi-connected entropy is less than a preset threshold, the communication traffic corresponding to the target IP is determined to be abnormal traffic; the request status information is to establish a connection, a semi-connected connection, and a closed connection; If the semi-connection entropy is greater than or equal to the preset threshold, obtain the connection duration of each access request of the server corresponding to the target IP address and the total connection duration, determine the first probability corresponding to each connection duration, and calculate the access time entropy according to each of the first probabilities. If the access time entropy is less than the preset threshold, the communication traffic corresponding to the target IP is judged to be abnormal traffic. If the access time entropy is greater than or equal to the preset threshold, the communication traffic corresponding to the target IP is judged to be normal traffic. The result generation module is used to send abnormal alarm information to the application server if there is abnormal traffic, and send cancellation warning information to the application server if there is no abnormal traffic.

2. A monitoring and detection system for distributed denial of service attacks according to claim 1, characterized in that: In the traffic detection module, the first probability calculation process of the access request is: The number of all semi-connections of the target IP address server within a unit time t and the corresponding semi-connection time are obtained and marked as T1, T2, ..., Tn, where T≤t and n is a positive integer, and the first probability is calculated according to the connection time.

3. A monitoring and detection system for distributed denial of service attacks according to claim 1, characterized in that: In the flow detection module, the calculation process of the semi-connection entropy is: H is the semi-connection entropy, Pi is the first connection probability corresponding to any half connection time, and n is the number of semi-connections.

4. A monitoring and detection system for distributed denial of service attacks according to claim 3, characterized in that: The calculation process of the first probability of the connection duration is: The duration and number of times the target IP address server establishes a connection with any source IP are obtained, and they are sorted in sequence by connection duration to generate a connection time series, the proportion of each connection duration to the total connection duration is calculated, and the first probability of any connection duration is obtained.

5. A monitoring and detection system for distributed denial of service attacks according to claim 1, characterized in that: In the result generation module, when it is detected that the communication flow corresponding to the first destination IP address is abnormal flow, the target IP address flow control information is sent to the controller.

6. A monitoring and detection system for distributed denial of service attacks according to claim 5, characterized in that: When it is detected that the communication flow corresponding to the first destination IP address is abnormal flow, the communication flow detection of the next target IP address is continued in sequence. When abnormal flow exists, abnormal alarm information of the next target IP address is continuously sent to the application server.

7. A monitoring and detection system for distributed denial of service attacks according to claim 6, characterized in that: When the information received by the controller is target IP address traffic control information, the access traffic of the target IP address is blocked.