Method for evaluating protection effect by linkage of DDoS attack-resistant protection system and WAF
By introducing the SYNPROXY module into the anti-DDoS attack protection system to simulate the TCP server, the problem that WAF cannot evaluate the domain name protection effect is solved, request analysis of the attack source IP and CC protection evaluation are realized, and the display of the protection effect and user trust are improved. .
Patent Information
- Application Number
- CN202410864134.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-30
AI Technical Summary
Under the infrastructure of the anti-DDoS attack protection system linked to WAF, because the traffic is discarded, the attacking client cannot perform the TCP three-way handshake normally, causing WAF to be unable to evaluate the actual effect of domain name protection. For example, it cannot evaluate the protective effect of CC attacks, which affects customers. The accuracy of the protective effect.
The anti-DDoS attack protection system simulates the TCP server through the SYNPROXY module, implements the TCP three-way handshake of the attack source IP, and forwards subsequent packets carrying payload to the HTTP/HTTPS parsing module to perform CC protection analysis, statistics, and reporting to the management platform. Make up for the defect that dropped traffic cannot be evaluated.
It realizes the actual request analysis of the attack source IP, evaluates the protection effect of CC attacks, helps users more comprehensively understand the attack and protection situation of domain names, and enhances the display of protection effects and user trust.
Smart Images

Figure CN118646582A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of an anti-DDoS attack protection system linked with a WAF to perform protection effect evaluation, and in particular to a method for an anti-DDoS attack protection system linked with a WAF to perform protection effect evaluation. Background Art
[0002] With the rapid development of Internet technology, the functions of web applications are becoming more and more abundant. Web servers have become the main targets of attacks due to their powerful computing power, processing performance and high value. In this context, WAF came into being. WAF is mainly deployed in front of web servers and can provide protection for web applications by executing a series of security policies for HTTP / HTTPS. In the protection process, WAF generates some suspicious attack source IPs through real-time analysis or offline analysis, and then directly blacklists or limits the speed of these IPs on the WAF system, which has the effect of rapid protection. Since WAF is an application layer protection, blacklisting or limiting the speed of the above attack source IPs is relatively easy. It is relatively lagging, so it is generally necessary to link the anti-DDoS attack protection system deployed in front of it for front-end protection, that is, WAF or a management platform can collect the analyzed attack source IPs and transfer them to the anti-DDoS attack protection system for packet loss or speed limit. The anti-DDoS attack protection system (abbreviated as anti-D) is mainly deployed at the entrance of each network node, serving as the first line of defense for traffic. It can also be deployed on a load balancing server, such as a load balancing server deployed in front of a web server (such as LVS, etc.). The black and white list protection function is generally a basic function of anti-D, which can drop packets or limit the speed of the attack source IP at the third layer of the network, thereby achieving the effect of quickly protecting the back-end business and preventing the attack traffic from reaching the WAF and then the back-end server.
[0003] Web traffic is generally transmitted based on the TCP protocol. Under the above-mentioned infrastructure of joint protection of attack source IP by anti-D and WAF, since the traffic has been discarded by the anti-D, the attack client cannot perform the TCP three-way handshake normally, that is, it cannot send the actual HTTP / HTTPS attack request. The front-end anti-D cannot see the actual request content, and WAF cannot continue to evaluate the effect of domain name protection. In other words, the actual traffic generated by this part of the blacklisted source IP cannot reach WAF, and the actual protection effect cannot be evaluated by WAF. For example, it cannot evaluate the protection effect against CC attacks. When customers use WAF products, the protection effect cannot be fully demonstrated, and customers may doubt the accuracy of the protection effect. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and invention title of this application to avoid blurring the purpose of this section specification abstract and invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the problems existing in the above-mentioned existing method of evaluating the protection effect of an anti-DDoS attack protection system linked with a WAF, the present invention is proposed.
[0006] Therefore, the purpose of the present invention is to provide a method for evaluating the protection effect of an anti-DDoS attack protection system in conjunction with WAF, which is suitable for solving the problem that Web traffic is generally transmitted based on the TCP protocol. Under the above-mentioned infrastructure of anti-D and WAF for joint protection of the attack source IP, since the traffic has been discarded on the anti-D side, the attack client cannot perform the TCP three-way handshake normally, that is, it cannot send the actual HTTP / HTTPS attack request, the front anti-D cannot see the actual request content, and WAF cannot continue to evaluate the effect of domain name protection, that is, the actual traffic that may be generated by this part of the blacklisted source IP cannot reach the WAF, and the actual protection effect WAF cannot evaluate it, for example, it cannot evaluate the protection effect against CC attacks. When customers use WAF products, the protection effect cannot be fully displayed, and customers may doubt the accuracy of the protection effect.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for evaluating the protection effect of an anti-DDoS attack protection system in conjunction with a WAF, which is specifically applicable to optimizing a management platform using an anti-DDoS attack protection system;
[0008] In the process of protection through WAF, the management platform generally generates the attack source IP through threshold judgment or other offline analysis methods and reports it to the management platform;
[0009] Among them, the anti-DDoS attack protection system can collect statistics on IP and domain name granularity and output relevant statistical logs, and finally report them to the management platform through log collection. At the same time, other data reporting methods can also be used;
[0010] The anti-DDoS attack protection system includes an anti-D IP protection module, an anti-D SYNPROXY protection module, an anti-D HTTP / HTTPS parsing module, an anti-D CC protection module and an anti-D attack protection evaluation module.
[0011] As a preferred solution of the method of evaluating the protection effect of an anti-DDoS attack protection system linked to WAF described in the present invention, the management platform sends the attack source IP to the anti-DDoS attack protection system, and the anti-DDoS attack protection system protects these attack source IPs and directly drops packets. The anti-DDoS attack protection system needs to discard the data packets sent by these attack source IPs and also assume the proxy server function to facilitate the reception of web requests that may be initiated by the attack source IP and perform analysis and statistics.
[0012] As a preferred solution of the method for evaluating the protection effect of an anti-DDoS attack protection system linked to WAF described in the present invention, wherein: the management platform integrates the anti-DDoS attack protection system and WAF to make a final summary and display of the protection effect of the served IP and domain name, and the anti-D IP protection module: this module can be used as the first processing module of the anti-D system for the traffic flowing through, responsible for receiving the attack source IP issued by WAF or the management platform and marking whether further analysis is required. When it is marked that further analysis is required, the TCP SYN and other three-way handshake traffic is forwarded to the SYNPROXY module, and other TCP data packets carrying payload are forwarded to the HTTP / HTTPS parsing module and marked as the final processing strategy as packet loss. Other matching attack source IP traffic is directly discarded after statistics.
[0013] As a preferred solution of the method of evaluating the protection effect of an anti-DDoS attack protection system linked to WAF described in the present invention, the anti-D SYNPROXY protection module: this module is used to simulate the TCP server, and the proxy implements the normal TCP three-way handshake of the client where the attack source IP is located. If the handshake fails, the data packet is directly discarded. If the handshake succeeds, the subsequent message carrying the payload is jumped to the HTTP / HTTPS parsing module.
[0014] As a preferred solution of the method of linking an anti-DDoS attack protection system with WAF to evaluate the protection effect described in the present invention, the anti-D HTTP / HTTPS parsing module: for data packets that can parse HTTP plaintext, parse the HTTP related information and jump to the WAF protection parsing process; for unresolvable ones, try SSL parsing, parse the domain name field in the SSL negotiation and count the domain name granularity traffic information, and finally jump to the attack protection evaluation module.
[0015] As a preferred solution of the method for evaluating the protection effect of an anti-DDoS attack protection system linked to WAF described in the present invention, the anti-D CC protection module: this module can be used as a part of the WAF protection analysis process, and is a module for performing CC protection analysis on HTTP plaintext request packets. This module can be configured with the same CC protection logic as WAF, so that the web request initiated by the attack source IP can be matched with the same configuration as WAF, thereby counting the data of domain name triggering CC protection. Similar protection statistics can also include WAF protection analysis such as URL protection, access control, and website injection attacks.
[0016] As a preferred solution of the method of linking an anti-DDoS attack protection system with WAF to evaluate the protection effect described in the present invention, the anti-D attack protection evaluation module: counts the data of network layer packet loss, counts the data of HTTP access, counts the domain name SSL negotiation data, counts the data triggering CC attack protection and other scalable WAF protection data, and finally reports it to WAF or the management platform.
[0017] As a preferred solution of the method of linking a WAF with an anti-DDoS attack protection system to evaluate the protection effect described in the present invention, wherein: the entrance of the anti-D IP protection module is the DPVS protocol stack PREROUTING, this module is responsible for parsing the attack source IP that needs to be further evaluated for the protection effect issued by the system configuration such as WAF or management platform, and can support configuration overloading. The network data packet of the DPVS first passes through the IP protection module. If the source IP of the data packet is not within the configured range, it is forwarded normally according to other DPVS processes. Otherwise, it is further determined whether it is a TCP message, that is, whether the PROTO field in the IP header is a TCP representation value of 6.
[0018] As a preferred solution of the method of linking a WAF with an anti-DDoS attack protection system to evaluate the protection effect described in the present invention, the TCP message counts the traffic information at the destination IP granularity, and finally enters the attack protection evaluation module for storage. When the IP protection module matches the attack source IP, the TCP message enters the SYNPROXY protection module. This module can adopt the default SYNPROXY logic of DPVS, that is, a processing flow similar to the normal TCP / IP protocol stack SYN cookie check. Through this module, the proxy server simulates the process of establishing a TCP connection with the attack source IP, providing a possibility for the subsequent HTTP / HTTPS parsing module to obtain the attack source IP request message.
[0019] As a preferred solution of the method for evaluating the protection effect of the anti-DDoS attack protection system linked with WAF described in the present invention, the specific steps of the HTTP / HTTPS parsing module obtaining the attack source IP request message are:
[0020] S1. The attack source IP client initiates a TCP connection, that is, sends the first TCP handshake packet SYN packet, and the client is in the SYN_SENT state;
[0021] S2. The SYNPROXY protection module receives the TCP message from the IP protection module, parses the TCP header, and determines whether the syn field in the TCP header is set to 1, that is, a SYN message. It uses the general cookie algorithm to generate a SYNACK message and sends it back to the client. At this time, TCP is in the SYN_RCVD state. Next, it waits for the 3rd ACK message in the TCP three-way handshake to arrive and verify it.
[0022] S3. The attack source IP client receives the above SYNACK packet and responds with the 3rd ACK message. At this time, the client is in the ESTABLISHED state and can send subsequent actual request content normally;
[0023] S4. When the SYNPROXY protection module receives the ACK message and cannot find the session, it enters the cookie verification process. When the verification succeeds, it creates a session with the TCP status set to ESTABLISHED and forwards it to the HTTP / HTTPS parsing module.
[0024] S5. When the session cannot be found and the cookie verification fails, it can be considered that the source IP may be conducting a network layer attack. The relevant destination IP statistics are recorded and sent to the attack protection assessment module for recording;
[0025] S6. For the data packets that find the session, they are sent to the HTTP / HTTPS parsing module;
[0026] S7. The above steps are all the TCP three-way handshake process in the general TCP / IP protocol. Since DPVS is a high-performance processing framework based on DPDK, it needs to implement its own simple protocol stack function. This realizes a function similar to bypassing the ordinary kernel protocol stack. The performance has a qualitative leap compared to the ordinary kernel protocol stack. This is also one of the reasons why anti-D is more efficient than application systems such as WAF.
[0027] Beneficial effects of the present invention:
[0028] 1. WAF reports the attack source IP to the anti-D system for pre-protection. The anti-D system can execute further analysis strategies for these source IPs instead of pure packet loss. Packet loss is the result, but it is impossible to evaluate the actual attack situation of these source IPs;
[0029] 2. The anti-D system distinguishes the TCP connection packets from the traffic coming from the attack source IP and uses the SYNPROXY proxy technology to simulate the TCP server to perform a TCP three-way handshake with the client where the attack source IP is located, so that the attack source IP can send possible web attack requests normally. This is the technical point that distinguishes the anti-D system of this solution from general anti-D.
[0030] 3. The anti-D system can further perform HTTP / HTTPS analysis on the TCP traffic of the attack source IP that successfully establishes the connection, analyze the actual request message, such as CC attack protection analysis, and finally report the relevant data to the WAF management platform to make up for the defect that the discarded traffic cannot evaluate the web protection effect;
[0031] 4. It helps users to have a more complete understanding of the attack and protection effects of the domain name used, and can make users stick to the products of this solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0033] Figure 1 This is a simplified diagram of an example of the linkage between DDoS and WAF, which is a method for evaluating the protection effect of an anti-DDoS attack protection system linked with WAF proposed by the present invention;
[0034] Figure 2 The present invention proposes a method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF, in which the restarted anti-D system performs protection and effect evaluation on the attack source IP. DETAILED DESCRIPTION
[0035] In order to make the above-mentioned objectives, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0037] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature structure or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it an embodiment that is mutually exclusive with other embodiments alone or selectively.
[0038] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional space dimensions of length, width and depth should be included.
[0039] Reference Figure 1-2 , is an embodiment of the present invention, and provides a method for evaluating the protection effect of an anti-DDoS attack protection system linked with a WAF. The method is specifically applicable to optimizing a management platform using an anti-DDoS attack protection system.
[0040] In the process of protection through WAF, the management platform generally generates the attack source IP through threshold judgment or other offline analysis methods and reports it to the management platform;
[0041] Among them, the anti-DDoS attack protection system can collect statistics on IP and domain name granularity and output relevant statistical logs, and finally report them to the management platform through log collection. At the same time, other data reporting methods can also be used;
[0042] The anti-DDoS attack protection system includes an anti-D IP protection module, an anti-D SYNPROXY protection module, an anti-D HTTP / HTTPS parsing module, an anti-D CC protection module and an anti-D attack protection evaluation module.
[0043] Furthermore, the management platform integrates the anti-DDoS attack protection system and WAF to make a final summary of the served IP and domain names to display the protection effect. The anti-D IP protection module: this module can be used as the first processing module of the anti-D system for the flowing traffic. It is responsible for receiving the attack source IP issued by WAF or the management platform and marking whether further analysis is required. When it is marked that further analysis is required, the TCP SYN and other three-way handshake traffic is forwarded to the SYNPROXY module, and other TCP data packets carrying payload are forwarded to the HTTP / HTTPS parsing module and marked as the final processing strategy for packet loss. Other matching attack source IP traffic is directly discarded after statistics.
[0044] Furthermore, the anti-D SYNPROXY protection module: This module is used to simulate the TCP server and proxy the normal TCP three-way handshake of the client where the attack source IP is located. If the handshake fails, the data packet is directly discarded. If the handshake succeeds, the subsequent message carrying the payload is jumped to the HTTP / HTTPS parsing module.
[0045] Furthermore, the anti-D HTTP / HTTPS parsing module: for data packets that can parse HTTP plaintext, parse the HTTP related information and jump to the WAF protection parsing process. For those that cannot be parsed, try SSL parsing, parse the domain name field in the SSL negotiation and count the domain name granularity traffic information and finally jump to the attack protection evaluation module.
[0046] Furthermore, the anti-D CC protection module: this module can be used as a part of the WAF protection analysis process. It is a module that performs CC protection analysis on HTTP plaintext request packets. This module can be configured with the same CC protection logic as WAF, so that the web requests initiated by the attack source IP can be matched with the same configuration as WAF, thereby counting the data of domain name triggering CC protection. Similar protection statistics can also include WAF protection analysis such as URL protection, access control, and website injection attacks.
[0047] Furthermore, the anti-D attack protection evaluation module: counts the data of network layer packet loss, counts the data of HTTP access, counts the data of domain name SSL negotiation, counts the data triggering CC attack protection and other scalable WAF protection data, and finally reports it to WAF or the management platform.
[0048] Furthermore, the entrance of the anti-D IP protection module is the DPVS protocol stack PREROUTING. This module is responsible for parsing the attack source IP issued by the system configuration such as WAF or management platform, which needs to further evaluate the protection effect. It can support configuration overload. The network data packet of the DPVS first passes through the IP protection module. If the source IP of the data packet is not in the configured range, it is forwarded normally according to other DPVS processes. Otherwise, it is further determined whether it is a TCP message, that is, whether the PROTO field in the IP header is the TCP representation value 6.
[0049] Furthermore, the TCP message counts the traffic information at the destination IP granularity, and finally enters the attack protection evaluation module for storage. When the IP protection module matches the attack source IP, the TCP message enters the SYNPROXY protection module. This module can adopt the DPVS default SYNPROXY logic, that is, a processing flow similar to the normal TCP / IP protocol stack SYN cookie check. Through this module, the proxy server simulates the process of establishing a TCP connection with the attack source IP, providing the possibility for the subsequent HTTP / HTTPS parsing module to obtain the attack source IP request message.
[0050] Further, the specific steps of the HTTP / HTTPS parsing module obtaining the attack source IP request message are:
[0051] S1. The attack source IP client initiates a TCP connection, that is, sends the first TCP handshake packet SYN packet, and the client is in the SYN_SENT state;
[0052] S2. The SYNPROXY protection module receives the TCP message from the IP protection module, parses the TCP header, and determines whether the syn field in the TCP header is set to 1, that is, a SYN message. It uses the general cookie algorithm to generate a SYNACK message and sends it back to the client. At this time, TCP is in the SYN_RCVD state. Next, it waits for the 3rd ACK message in the TCP three-way handshake to arrive and verify it.
[0053] S3. The attack source IP client receives the above SYNACK packet and responds with the 3rd ACK message. At this time, the client is in the ESTABLISHED state and can send subsequent actual request content normally;
[0054] S4. When the SYNPROXY protection module receives the ACK message and cannot find the session, it enters the cookie verification process. When the verification succeeds, it creates a session with the TCP status set to ESTABLISHED and forwards it to the HTTP / HTTPS parsing module.
[0055] S5. When the session cannot be found and the cookie verification fails, it can be considered that the source IP may be conducting a network layer attack. The relevant destination IP statistics are recorded and sent to the attack protection assessment module for recording;
[0056] S6. For the data packets that find the session, they are sent to the HTTP / HTTPS parsing module;
[0057] S7. The above steps are all the TCP three-way handshake process in the general TCP / IP protocol. Since DPVS is a high-performance processing framework based on DPDK, it needs to implement its own simple protocol stack function. This realizes a function similar to bypassing the ordinary kernel protocol stack. The performance has a qualitative leap compared to the ordinary kernel protocol stack. This is also one of the reasons why anti-D is more efficient than application systems such as WAF.
[0058] This embodiment is modified based on the DPVS load balancer, and can also be used for other DPDK programs or modified on LVS.
[0059] At the very beginning of the DPVS protocol stack PREROUTING, an anti-D IP protection module is inserted. This module is responsible for parsing the attack source IPs that require further evaluation of the protection effect issued by the WAF or management platform and other system configurations, and supports configuration reloading.
[0060] For network data packets entering DPVS, they first pass through the IP protection module. If the source IP of the data packet is not in the configured range, it is forwarded normally according to other DPVS processes. Otherwise, it is further determined whether it is a TCP message, that is, whether the PROTO field in the IP header is a TCP representation value of 6. For non-TCP messages, the traffic information at the destination IP granularity is counted, and finally enters the attack protection evaluation module for storage.
[0061] After the IP protection module matches the attack source IP, the TCP message enters the SYNPROXY protection module. This module can use the default SYNPROXY logic of DPVS, which is a processing flow similar to the normal TCP / IP protocol stack SYN cookie check. Through this module, the proxy server simulates the process of establishing a TCP connection with the attack source IP, providing the possibility for the subsequent HTTP / HTTPS parsing module to obtain the attack source IP request message:
[0062] The attack source IP client initiates a TCP connection, that is, sends the first TCP handshake packet SYN packet, and the client is in the SYN_SENT state.
[0063] The SYNPROXY protection module receives the TCP message passed by the IP protection module, parses the TCP header (for example, IPV4 obtains the TCP header struct tcphdr by offsetting 20 BYTES in the IP header), determines whether the syn field in the TCP header is assigned a value of 1, that is, a SYN message, and uses a common cookie algorithm to generate a SYNACK message and send it back to the client (the original SYN packet does not need to be forwarded to the backend RS). At this time, TCP is in the SYN_RCVD state, and then waits for the 3rdACK message in the TCP three-way handshake to arrive and verify.
[0064] The attack source IP client receives the above SYNACK packet and responds to the 3rd ACK message. At this time, the client is in the ESTABLISHED state and can send subsequent actual request content normally.
[0065] When the SYNPROXY protection module receives an ACK message, the ack field in the TCP header of the data packet is marked as 1. If the session cannot be found, the cookie verification process is entered. If the verification is successful, a session is created and the TCP status is ESTABLISHED, and it is forwarded to the HTTP / HTTPS parsing module.
[0066] If the session cannot be found and the cookie verification fails, it can be considered that the source IP may be conducting a network layer attack. The relevant destination IP statistics are recorded and sent to the attack protection assessment module for recording.
[0067] For data packets that find session, they are sent to the HTTP / HTTPS parsing module.
[0068] The above steps are all the TCP three-way handshake process in the general TCP / IP protocol. Since DPVS is a high-performance processing framework based on DPDK, it needs to implement its own simple protocol stack function, which achieves a function similar to bypassing the ordinary kernel protocol stack, and its performance is a qualitative leap compared to the ordinary kernel protocol stack. This is also one of the reasons why anti-D is more efficient than WAF, an application system.
[0069] The SYNPROXY protection module creates a session table with the dimension of 〈AF, proto, src_ip, dst_ip, src_port, dst_port〉, commonly known as the IP quintuple, for the ACK packets that pass the cookie verification. Further optimization can be done here to only pass TCP packets carrying payload to the HTTP / HTTPS parsing module, that is, TCP packets that may carry web request packets.
[0070] The HTTP / HTTPS parsing module first parses whether it is the HTTP protocol or the SSL negotiation information. For SSL messages, since the HTTP protocol plain text cannot be parsed, the domain name field can only be parsed from the SSL negotiation information and sent to the domain name granularity statistics process. Here, the possible visits to the domain name HTTPS can be counted.
[0071] The HTTP / HTTPS module can clearly parse out HTTP plaintext data packets. In this module, various fields related to the HTTP protocol can be parsed as much as possible, such as domain names, URIs and other key information, to facilitate the subsequent WAF protection analysis process to perform protection statistics.
[0072] Taking the CC protection module as an example, this module can match the same CC protection policy of the WAF system from the HTTP plaintext information obtained above, so as to evaluate how many CC attacks the corresponding domain name has triggered in the traffic of these attack source IPs and generate statistical information.
[0073] The above protection statistics at the IP granularity and domain name granularity are finally summarized in the anti-D attack protection evaluation module. This module is responsible for the final statistics of the IP granularity and domain name granularity, and regularly outputs relevant logs to the file system. Finally, it is pushed to the management platform for summary and display through log collection and reporting.
[0074] All traffic that hits the attack source IP configuration of the IP protection module will eventually be discarded, thereby achieving both efficient packet loss protection and proxy forgery to obtain attack statistics of the source IP.
[0075] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for evaluating the protection effect of an anti-DDoS attack protection system in conjunction with a WAF, characterized in that: This method is specifically applicable to optimizing the management platform with an anti-DDoS attack protection system; In the process of protection through WAF, the management platform generally generates the attack source IP through threshold judgment or other offline analysis methods and reports it to the management platform; Among them, the anti-DDoS attack protection system can collect statistics on IP and domain name granularity and output relevant statistical logs, and finally report them to the management platform through log collection. At the same time, other data reporting methods can also be used; The anti-DDoS attack protection system includes an anti-D IP protection module, an anti-D SYNPROXY protection module, an anti-D HTTP / HTTPS parsing module, an anti-D CC protection module and an anti-D attack protection evaluation module.
2. According to claim 1, a method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF is characterized in that: The management platform sends the attack source IP to the anti-DDoS attack protection system, which protects these attack source IPs and directly drops packets. The anti-DDoS attack protection system must discard the data packets sent by these attack source IPs and also assume the proxy server function to facilitate the receipt of web requests initiated by the attack source IP and perform analysis and statistics.
3. According to claim 1, the method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF is characterized in that: The management platform integrates the anti-DDoS attack protection system and WAF to make a final summary of the served IP and domain names to display the protection effect. The anti-D IP protection module: This module can be used as the first processing module of the anti-D system for the flowing traffic. It is responsible for receiving the attack source IP sent by WAF or the management platform and marking whether to further analyze it. When it is marked that further analysis is required, the TCP SYN and other three-way handshake traffic is forwarded to the SYNPROXY module, and other TCP data packets carrying payload are forwarded to the HTTP / HTTPS parsing module and marked as the final processing strategy for packet loss. Other matching attack source IP traffic is directly discarded after statistics.
4. According to claim 1, a method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF is characterized in that: The anti-D SYNPROXY protection module: This module is used to simulate the TCP server and proxy the normal TCP three-way handshake of the client where the attack source IP is located. If the handshake fails, the data packet is directly discarded. If the handshake succeeds, the subsequent message carrying the payload is jumped to the HTTP / HTTPS parsing module.
5. According to claim 1, a method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF is characterized in that: The anti-D HTTP / HTTPS parsing module: for data packets that can parse HTTP plaintext, parse the HTTP related information and jump to the WAF protection parsing process. For unparseable ones, try SSL parsing, parse the domain name field in the SSL negotiation and count the domain name granularity traffic information and finally jump to the attack protection evaluation module.
6. According to claim 1, a method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF is characterized in that: The anti-D CC protection module: This module can be used as a part of the WAF protection analysis process. It is a module that performs CC protection analysis on HTTP plaintext request packets. This module can be configured with the same CC protection logic as WAF, so that the web requests initiated by the attack source IP can be matched with the same configuration as WAF, thereby counting the data of domain name triggering CC protection. Similar protection statistics can also include WAF protection analysis such as URL protection, access control, and website injection attacks.
7. According to claim 1, a method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF is characterized in that: The anti-D attack protection evaluation module: counts network layer packet loss data, HTTP access data, domain name SSL negotiation data, CC attack protection triggering data and other scalable WAF protection data, and finally reports to WAF or management platform.
8. According to claim 1, a method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF is characterized in that: The entrance of the anti-D IP protection module is the DPVS protocol stack PREROUTING. This module is responsible for parsing the attack source IP that needs to be further evaluated for the protection effect issued by the system configuration such as WAF or management platform, and can support configuration overload. The network data packet of the DPVS first passes through the IP protection module. If the source IP of the data packet is not in the configured range, it is forwarded normally according to other DPVS processes. Otherwise, it is further determined whether it is a TCP message, that is, whether the PROTO field in the IP header is the TCP representation value 6.
9. The method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF according to claim 8, characterized in that: The TCP message then counts the traffic information at the destination IP granularity, and finally enters the attack protection assessment module for storage. When the IP protection module matches the attack source IP, the TCP message enters the SYNPROXY protection module. This module can adopt the DPVS default SYNPROXY logic, that is, a processing flow similar to the normal TCP / IP protocol stack SYN cookie check. Through this module, the proxy server simulates the process of establishing a TCP connection with the attack source IP, providing the possibility for the subsequent HTTP / HTTPS parsing module to obtain the attack source IP request message.
10. The method for evaluating the protection effect of an anti-DDoS attack protection system linked to a WAF according to claim 1, characterized in that: The specific steps for the HTTP / HTTPS parsing module to obtain the attack source IP request message are: S1. The attack source IP client initiates a TCP connection, that is, sends the first TCP handshake packet SYN packet, and the client is in the SYN_SENT state; S2. The SYNPROXY protection module receives the TCP message from the IP protection module, parses the TCP header, and determines whether the syn field in the TCP header is set to 1, that is, a SYN message. It uses the general cookie algorithm to generate a SYNACK message and sends it back to the client. At this time, TCP is in the SYN_RCVD state. Next, it waits for the 3rd ACK message in the TCP three-way handshake to arrive and verify it. S3. The attack source IP client receives the above SYNACK packet and responds with the 3rd ACK message. At this time, the client is in the ESTABLISHED state and can send subsequent actual request content normally; S4. When the SYNPROXY protection module receives the ACK message and cannot find the session, it enters the cookie verification process. When the verification succeeds, it creates a session with the TCP status set to ESTABLISHED and forwards it to the HTTP / HTTPS parsing module. S5. When the session cannot be found and the cookie verification fails, it can be considered that the source IP may be conducting a network layer attack. The relevant destination IP statistics are recorded and sent to the attack protection assessment module for recording; S6. For the data packets that find the session, they are sent to the HTTP / HTTPS parsing module; S7. The above steps are all the TCP three-way handshake process in the general TCP / IP protocol. Since DPVS is a high-performance processing framework based on DPDK, it needs to implement its own simple protocol stack function. This realizes a function similar to bypassing the ordinary kernel protocol stack. The performance has a qualitative leap compared to the ordinary kernel protocol stack. This is also one of the reasons why anti-D is more efficient than application systems such as WAF.
Citation Information
Patent Citations
Network security protection method, device and system
CN112351012A
Whole-flow processing system and method based on network security alarm event
CN117614717A
System for protecting DNS random sub-domain name DDoS attack, electronic equipment and storage medium
CN118018323A
Method and system for defeating denial of service attacks
US20140215599A1
Non-disruptive ddos testing
US20180046811A1
