CC attack identification method and device based on off-line calculation and electronic equipment

Through the CC attack identification method based on offline computing, multi-dimensional aggregation processing and attack scenario identification modes are used to solve the problem of missed and false positives in CC attack identification in the existing technology, and achieve more efficient and accurate CC attack identification and protection. .

CN118740503AActive Publication Date: 2024-10-01CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411008902.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-01
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing CC attack protection products have a single traffic detection strategy, which can easily lead to missed and false positives, making it difficult to effectively identify and respond to different types of CC attacks.

Method used

The CC attack identification method based on offline computing is used to obtain and multi-dimensional aggregation and processing of traffic log data, determine comprehensive traffic indicators and hot source indicators, determine the target identification mode according to different attack scenarios, conduct staged attack identification on the basic traffic data, and generate High-risk IP list.

Benefits of technology

It improves the accuracy and system flexibility of CC attack identification, enhances protection capabilities, ensures the reliability of identification results, and can respond to different types of CC attacks more effectively.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740503A_ABST
    Figure CN118740503A_ABST
Patent Text Reader

Abstract

The invention provides a CC attack recognition method and device based on offline calculation and electronic equipment. The method comprises the following steps: acquiring traffic log data of a target protection object, and performing multi-dimensional aggregation processing on the traffic log data to obtain a plurality of basic traffic data; determining a comprehensive flow index and a hotspot source index of the flow log data, and determining a display condition of the hotspot source index when the comprehensive flow index displays that the flow log data is abnormal; and determining a target identification mode of the traffic log data based on the display condition of the hotspot source index, and performing staged attack identification on the plurality of basic traffic data according to the target identification mode to obtain a high-risk IP list. According to the method provided by the invention, attack identification aiming at different attack scenes is realized, different types of CC attacks can be more effectively coped with, the flexibility and the protection capability of a CC protection system are enhanced, the accuracy and the identification precision of CC attack identification are improved, and the reliability of an identification result is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a CC attack identification method, device and electronic device based on offline computing. Background Art

[0002] A CC (Challenge Collapsar) attack is a denial of service (DDoS) attack launched against the application layer of the target network. It overloads the target system by sending a large number of HTTP and HTTPS requests, making it unable to work normally and causing the business system to be paralyzed. This type of attack is usually launched by a large botnet or distributed denial of service attack tool and is highly anonymous and destructive.

[0003] At present, the industry's protection against CC attacks mostly adopts the method of real-time statistics of the data plane online protection engine, and the detection strategies of most CC protection products are generally simple. For example, attack judgments are made based on basic access frequency or basic characteristics. However, with the emergence of various application scenarios of upper-layer services, the single traffic detection strategy can easily lead to CC attack omissions and false alarms. Summary of the invention

[0004] The present application provides a CC attack identification method, device and electronic device based on offline calculation, which are used to solve the technical problem that the traffic detection strategy of existing CC protection products is single, which easily leads to CC attack omissions and false alarms.

[0005] In a first aspect, the present application provides a CC attack identification method based on offline calculation, comprising:

[0006] Obtaining traffic log data of a target protected object, and performing multi-dimensional aggregation processing on the traffic log data to obtain multiple basic traffic data;

[0007] Determine the comprehensive traffic index and hotspot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determine the display of the hotspot source index, the hotspot source index is used to determine whether there is a hotspot source in the traffic log data;

[0008] Determine a target recognition mode of the traffic log data according to the display of the hotspot source indicator, wherein the target recognition mode is used to perform CC attack recognition on the traffic log data;

[0009] The plurality of basic traffic data are subjected to staged attack identification according to the target identification mode, and a high-risk IP list is generated, wherein the high-risk IP list is used to store IPs that need to be blocked.

[0010] Optionally, determining the target identification mode of the traffic log data according to the display of the hotspot source indicator includes:

[0011] Determine the attack scenario of the target protection object according to the display of the hotspot source indicator, and the attack scenario is used to indicate the network attack environment in which the target protection object is located;

[0012] According to the attack scenario, the target identification pattern of the traffic log data is determined.

[0013] Optionally, the display of the hotspot source indicator includes: the presence of a hotspot source and the absence of a hotspot source, the attack scenario includes: a first attack scenario and a second attack scenario, and determining the attack scenario of the target protection object according to the display of the hotspot source indicator includes:

[0014] If the hotspot source indicator indicates that there is a hotspot source, the attack scenario of the target protection object is determined to be the first attack scenario, where the first attack scenario is used to indicate a high-frequency attack of a hotspot attack source or an attack scenario with a hotspot attack source;

[0015] If the hotspot source indicator shows that there is no hotspot source, the attack scenario of the target protection object is determined to be the second attack scenario, which is used to indicate a scenario of low-frequency attacks by massive distributed attack sources without hotspot source IPs.

[0016] Optionally, the identification mode includes: a single IP identification mode and a full-site identification mode, and the target identification mode of the traffic log data is determined according to the attack scenario, including:

[0017] If the attack scenario is the first attack scenario, determining the single IP identification mode as the target identification mode of the traffic log data, the single IP identification mode is used to indicate that CC attack identification is performed on a single IP address in the traffic log data;

[0018] If the attack scenario is the second attack scenario, the whole-station identification mode is determined to be the target identification mode of the traffic log data, and the whole-station identification mode is used to indicate CC attack identification based on the overall data information of the traffic log data.

[0019] Optionally, performing phased attack identification on the plurality of basic traffic data according to the target identification mode and generating a high-risk IP list includes:

[0020] Determine a basic flow index of the flow log data according to the multiple basic flow data, wherein the basic flow index is used to reflect the operation status and flow characteristics of the target protection object;

[0021] Performing basic attack identification on the basic traffic indicator according to the target identification mode to obtain a target IP list, wherein the target IP list is used to store IP addresses participating in the CC attack;

[0022] The target IP list is subjected to deep attack identification according to the target identification mode to obtain the high-risk IP list.

[0023] Optionally, the basic traffic indicators include: page views per second (PV) and queries per second (QPS), and the basic attack identification is performed on the basic traffic indicators according to the target identification mode to obtain a target IP list, including:

[0024] Get the PV abnormal range and QPS abnormal range of single IP traffic, as well as the PV abnormal range and QPS abnormal range of the entire site traffic;

[0025] Based on the PV abnormal range and the QPS abnormal range of the single IP traffic, a traffic abnormality condition of the single IP traffic is generated, and based on the PV abnormal range and the QPS abnormal range of the whole site traffic, a traffic abnormality condition of the whole site traffic is generated;

[0026] If the target identification mode is the single IP identification mode, the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic are obtained;

[0027] For each IP in the traffic log data, if the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic meet the traffic anomaly condition of the single IP traffic, the corresponding IP is determined as a suspicious IP and added to the target IP list;

[0028] If the target identification mode is the whole-station identification mode, the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the whole-station flow are obtained;

[0029] If the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the entire site traffic meet the traffic anomaly condition of the entire site traffic, the IP in the traffic log data is added to the target IP list.

[0030] Optionally, performing deep attack identification on the target IP list according to the target identification mode to obtain the high-risk IP list includes:

[0031] Perform strong feature recognition on the target IP list according to the target recognition mode;

[0032] If there is an IP matching the strong feature recognition in the target IP list, the corresponding IP is determined as a high-risk IP and added to the high-risk IP list;

[0033] If there is no IP matching the strong feature identification in the target IP list, the target IP list is cleaned of weak features and a dynamic protection strategy is generated.

[0034] In a second aspect, the present application provides a CC attack identification device based on offline calculation, comprising:

[0035] The acquisition module is used to obtain the traffic log data of the target protection object.

[0036] The processing module is used to perform multi-dimensional aggregation processing on the traffic log data to obtain multiple basic traffic data.

[0037] A determination module is used to determine the comprehensive traffic index and hot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determine the display status of the hot source index, and the hot source index is used to determine whether there is a hot source in the traffic log data.

[0038] The determination module is also used to determine the target identification mode of the traffic log data according to the display of the hotspot source indicator, and the target identification mode is used to identify CC attacks on the traffic log data.

[0039] The processing module is also used to perform phased attack identification on the multiple basic traffic data according to the target identification mode, and generate a high-risk IP list, and the high-risk IP list is used to store IPs that need to be banned.

[0040] Optionally, the determination module is further used to determine the attack scenario of the target protection object according to the display of the hotspot source indicator, and the attack scenario is used to indicate the network attack environment in which the target protection object is located.

[0041] The determination module is further used to determine the target identification mode of the traffic log data according to the attack scenario.

[0042] Optionally, if the hotspot source indicator displays that a hotspot source exists, the determination module is also used to determine that the attack scenario of the target protection object is the first attack scenario, and the first attack scenario is used to indicate a high-frequency attack of a hotspot attack source or an attack scenario with a hotspot attack source.

[0043] If the hotspot source indicator shows that there is no hotspot source, the determination module is also used to determine that the attack scenario of the target protection object is the second attack scenario, and the second attack scenario is used to indicate a scenario of low-frequency attacks by massive distributed attack sources without hotspot source IPs.

[0044] Optionally, if the attack scenario is the first attack scenario, the determination module is also used to determine the single IP identification mode as the target identification mode of the traffic log data, and the single IP identification mode is used to indicate CC attack identification for a single IP address in the traffic log data.

[0045] If the attack scenario is the second attack scenario, the determination module is further used to determine the whole-station identification mode as the target identification mode of the traffic log data, and the whole-station identification mode is used to indicate CC attack identification based on the overall data information of the traffic log data.

[0046] Optionally, the determination module is further used to determine the basic flow index of the flow log data based on the multiple basic flow data, and the basic flow index is used to reflect the operating status and flow characteristics of the target protection object.

[0047] The processing module is further used to perform basic attack identification on the basic traffic indicator according to the target identification mode to obtain a target IP list, and the target IP list is used to store IP addresses participating in the CC attack.

[0048] The processing module is further used to perform deep attack identification on the target IP list according to the target identification mode to obtain the high-risk IP list.

[0049] Optionally, the acquisition module is also used to obtain the PV abnormal range and QPS abnormal range of single IP traffic, as well as the PV abnormal range and QPS abnormal range of the entire site traffic.

[0050] The processing module is also used to generate the traffic abnormality condition of the single IP traffic based on the PV abnormality range and QPS abnormality range of the single IP traffic, and to generate the traffic abnormality condition of the entire site traffic based on the PV abnormality range and QPS abnormality range of the entire site traffic.

[0051] If the target identification mode is the single IP identification mode, the acquisition module is further used to obtain the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic.

[0052] For each IP in the traffic log data, if the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic meet the traffic anomaly condition of the single IP traffic, the processing module is also used to determine the corresponding IP as a suspicious IP and add it to the target IP list.

[0053] If the target identification mode is the whole-station identification mode, the acquisition module is further used to obtain the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the whole-station flow.

[0054] If the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the entire site traffic meet the traffic anomaly condition of the entire site traffic, the processing module is also used to add the IP in the traffic log data to the target IP list.

[0055] Optionally, the processing module is further used to perform strong feature recognition on the target IP list according to the target recognition mode.

[0056] If there is an IP matching the strong feature recognition in the target IP list, the determination module is also used to determine the corresponding IP as a high-risk IP.

[0057] The processing module is also used to add the high-risk IP to a high-risk IP list.

[0058] If there is no IP matching the strong feature recognition in the target IP list, the processing module is also used to perform weak feature cleaning on the target IP list.

[0059] The processing module is also used to generate a dynamic protection strategy.

[0060] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0061] The memory stores computer-executable instructions;

[0062] The processor executes the computer-executable instructions stored in the memory to implement the CC attack identification method based on offline calculation as described in the above first aspect and various possible implementations of the first aspect.

[0063] In a fourth aspect, the present application provides a computer-readable storage medium having computer execution instructions stored thereon, which, when executed by a processor, are used to implement the CC attack identification method based on offline calculation as described in the above-mentioned first aspect and various possible implementation methods of the first aspect.

[0064] In a fifth aspect, the present application provides a program product, including a computer program, which, when executed by a processor, implements the CC attack identification method based on offline calculation as described above.

[0065] The CC attack identification method based on offline calculation provided by the present application obtains the traffic log data of the target protection object and performs multi-dimensional aggregation processing on the traffic log data to obtain multiple basic traffic data; determines the comprehensive traffic index and hot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determines the display status of the hot source index, and the display status of the hot source index includes: the existence of the hot source and the non-existence of the hot source; if the display status of the hot source index is the existence of the hot source, then the attack scenario of the target protection object is determined to be the first attack scenario; if the display status of the hot source index is the non-existence of the hot source, then the attack scenario of the target protection object is determined to be the second attack scenario, and then determines the target identification mode of the traffic log data based on different attack scenarios; performs basic attack identification on the basic traffic index according to the target identification mode to obtain a target IP list, and then performs deep attack identification on the target IP list according to the target identification mode to obtain a high-risk IP list. This method realizes attack identification for different attack scenarios, can deal with different types of CC attacks more effectively, enhances the flexibility and protection capability of the CC protection system, improves the accuracy of CC attack identification, and further improves the accuracy of identification through a phased attack identification method, ensuring the reliability of the identification results. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0067] Figure 1 A schematic diagram of a CC attack identification method based on offline calculation provided in this application;

[0068] Figure 2 A schematic diagram of the structure of the forwarding plane provided for this application;

[0069] Figure 3 Schematic diagram of the CC attack identification method based on offline calculation provided in this application Figure 1 ;

[0070] Figure 4 Schematic diagram of the CC attack identification method based on offline calculation provided in this application Figure 2 ;

[0071] Figure 5 It is a schematic diagram of the basic attack identification process based on the target identification mode provided by the present application;

[0072] Figure 6 It is a schematic diagram of the deep attack identification process based on the single IP identification mode provided by this application;

[0073] Figure 7 It is a schematic diagram of the deep attack identification process based on the full-station identification mode provided by this application;

[0074] Figure 8 A schematic diagram of the structure of a CC attack identification device based on offline calculation provided by this application;

[0075] Fig. 9 A schematic diagram of the structure of a CC attack identification device based on offline calculation provided in this application.

[0076] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0077] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0078] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.

[0079] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0080] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0081] First, the terms involved in this application are explained.

[0082] CC attack: Challenge Collapsar attack, also known as challenge black hole attack, generally referred to as CC attack, is a common network attack method. It is a type of DDoS (distributed denial of service) attack. It mainly uses proxy servers to simulate multiple users continuously accessing the target website and generate legitimate requests directed to the victim host, thereby achieving DDoS and camouflage attacks. This attack method aims to occupy all bandwidth and resources of the target system through a large number of legitimate requests, resulting in normal users being unable to access or accessing the website at an extremely slow speed, or even causing the server to crash.

[0083] Forwarding plane: also known as the data plane, is a key component in computer networks. It is mainly responsible for receiving data packets from input links and forwarding them to output links according to certain rules or policies.

[0084] HTTP: HyperText Transfer Protocol, Hypertext Transfer Protocol, is an application layer protocol for distributed, collaborative and hypermedia information systems.

[0085] HTTP request: refers to the request message from the client (such as a browser) to the server (such as a Web server). It is a basic component of the HTTP communication process and is used to implement data interaction between the client and the server.

[0086] HTTP traffic: refers to data transmitted over the network via HTTP; specifically includes all requests and responses made through the HTTP protocol, such as web page loading, API calls, file downloads, etc.

[0087] Web server: A computer hardware or software that runs on the Internet and is specifically used to store, process, and transmit web pages and other website content. It is one of the key components for building and providing web services, and mainly communicates with clients (such as browsers) through HTTP or HTTPS (encrypted HTTP).

[0088] A CC (Challenge Collapsar) attack is a denial of service (DDoS) attack launched against the application layer of the target network. It overloads the target system by sending a large number of HTTP and HTTPS requests, making it unable to work normally and causing the business system to be paralyzed. This type of attack is usually launched by a large botnet or distributed denial of service attack tool and is highly anonymous and destructive.

[0089] At present, the industry's protection against CC attacks mostly adopts the method of real-time statistics of the data plane online protection engine; when the data packet flows through the gateway, the gateway device performs real-time statistics on the traffic situation. If the gateway device or external control module finds abnormal fluctuations in the traffic, it will take corresponding protection measures to release normal traffic and block abnormal traffic.

[0090] The current related technologies have the following three difficulties in CC attack protection:

[0091] First, it is difficult to obtain multi-dimensional traffic statistics that can be flexibly customized: In the current CC attack protection method, the collection of basic data depends on the statistics of the gateway, and the hardware resources of the gateway are mainly used to process network forwarding. It is difficult to allocate too many resources for multi-dimensional business data statistics, and gateway devices developed based on C language are usually difficult to customize and develop refined and complex statistical strategies;

[0092] Second, the traffic detection strategy is rigid, which is prone to omissions and false positives: Since it is difficult to obtain multi-dimensional traffic statistics, the current CC protection product detection strategy is generally simple. For example, attack judgments are made based on basic access frequencies or basic features. With the emergence of various application scenarios for upper-layer services, it is easy to cause omissions and false positives.

[0093] Third, since the detection plane and forwarding plane of some CC protection products are together, it is easy for updating and upgrading the detection policy to affect the normal business of the forwarding plane, making it difficult to deploy quickly.

[0094] The method for CC attack identification based on offline calculation provided in this application is intended to solve the above technical problems in the prior art.

[0095] First, the implementation scenarios involved in this application are described.

[0096] Figure 1 Schematic diagram of the CC attack identification method based on offline calculation provided by this application. Figure 1As shown, the open source stream computing platform is provided with a stream computing layer and a central control layer, and the stream computing layer and the central control layer together constitute a detection plane that can identify whether there is a CC attack in the traffic log data; wherein, the stream computing layer includes a multi-dimensional aggregation service, and in the process of identifying CC attacks, the multi-dimensional aggregation service can classify and integrate the traffic data in multiple dimensions; the central control layer includes a time series database and an attack identification service, and the time series database can perform persistent processing on the integrated traffic data of various dimensions to ensure the reliability and integrity of the traffic data, and the attack identification service can perform attack identification on the persistent traffic log data, thereby determining the high-risk IP in the traffic log data, and the attack identification service can also generate a corresponding banned IP list and dynamic protection strategy based on the high-risk IP obtained at that time, and send the banned IP list and dynamic protection strategy to the forwarding plane; specifically, the detection plane can receive the traffic log data sent by the forwarding plane, and perform multi-dimensional aggregation processing and attack identification on the traffic log data, and send the banned IP list and dynamic protection strategy generated based on the attack identification result to the forwarding plane.

[0097] Exemplarily, the open source stream computing platform can be a Flink platform, and the Flink platform is provided with a CC attack identification module, which specifically includes: a computing submodule and an identification submodule, and the computing submodule is arranged in the stream computing layer, and the identification submodule is arranged in the central control layer; the stream computing layer is implemented by the open source stream computing platform Flink, and in the stream computing layer, an HTTP traffic log processing job is developed separately for the CC attack scenario, and the job will perform multi-dimensional aggregation statistics on the original traffic log, which can be specifically grouped and counted according to the protection site, grouped and counted according to the IP address, grouped and counted according to the URL, grouped and counted according to the geographic information of the access source, grouped and counted according to the type of the access client device, grouped and counted according to the abnormal characteristics, abnormal behavior, etc., and all the traffic logs will be aggregated and counted. Each grouping indicator is used as basic data for the central control layer to make attack judgments in combination with the identification method in the attack identification service. The central control layer consists of two components: a time series database and an attack identification service. The time series database is implemented by the open source database InfluxDB, and the attack identification service is developed by the agile development language (go language). The purpose of the time series database is to store the calculation results of the stream computing layer, that is, the statistical data of each dimension, for persistence. The attack identification service can query these persistent data and perform CC attack identification according to the preset attack identification method, and generate a dynamic protection strategy based on factors such as the attack source and send it to the forwarding plane. The CC protection engine of the forwarding plane executes the dynamic protection strategy to clean the CC attack traffic.

[0098] Specifically, the essence of the forwarding plane is the part of the gateway device that is responsible for receiving, processing, encapsulating and forwarding data packets. Figure 2This is a schematic diagram of the structure of the forwarding plane provided by this application. Figure 2 As shown in the figure, the forwarding plane is usually a 7-layer gateway device that processes HTTP traffic, including: presentation layer, central control layer, stream computing layer, engine layer, application layer, network layer, and operating environment. It can complete the reception of HTTP requests and forwarding to the backend web server. Among them, the detection plane composed of the stream computing layer and the central control layer is deployed offline, which will not affect the forwarding plane traffic. Therefore, the normal business of the forwarding plane can be quickly deployed during the online process.

[0099] It can be understood that the forwarding plane and the detection plane are logically separated and each has different responsibilities. The forwarding plane focuses on efficient forwarding and processing of traffic, while the detection plane focuses on identifying CC attacks in traffic. The detection plane discovers potential security issues by analyzing the traffic data of the forwarding plane, and the forwarding plane adjusts its traffic processing strategy based on the feedback from the detection plane to ensure the security and stability of the network. Therefore, the detection plane composed of the flow computing layer and the central control layer is deployed offline, which not only ensures the efficiency and stability of the forwarding plane, but also enables the detection plane to flexibly identify and locate attacks on network traffic, thereby improving the security and reliability of the entire network system.

[0100] The present application provides a CC attack identification method based on offline computing, which uses offline computing to perform multi-dimensional aggregation processing on traffic log data to obtain multi-dimensional traffic indicators, and combines attack identification services to determine the CC attack scenario in which the protected object is currently located; for the CC attack scenario, the single IP identification mode and the whole site identification mode are screened to determine the target identification mode used at the time; based on the multi-dimensional traffic indicators, the protected object is subjected to staged basic attack identification and deep attack identification according to the target identification mode, so as to determine the high-risk IP in the traffic log data. This method realizes attack identification for different attack scenarios, can more effectively deal with different types of CC attacks, enhances the flexibility and protection capabilities of the CC protection system, improves the accuracy of CC attack identification, and further improves the accuracy of identification through staged attack identification, ensuring the reliability of the identification results.

[0101] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0102] Figure 3 Schematic diagram of the process of CC attack identification method based on offline calculation provided in the embodiment of the present application Figure 1The execution subject of this embodiment may be, for example, a detection plane provided with a CC attack identification module. Figure 3 As shown, the CC attack identification method based on offline calculation provided in this embodiment includes:

[0103] S301: Obtain traffic log data of a target protected object, and perform multi-dimensional aggregation processing on the traffic log data to obtain a plurality of basic traffic data.

[0104] Among them, the target protection object is used to indicate the network resources or services that need to be protected, the traffic log data is used to indicate the information about HTTP traffic captured and recorded through the network, and the basic traffic data is used to indicate traffic log data of various different dimensions.

[0105] It can be understood that the executor of this step is the detection plane, which can receive traffic log data from the forwarding plane and process the traffic log data; HTTP traffic refers to data transmitted on the network through HTTP, and by analyzing HTTP traffic, the purpose of understanding network activities and identifying abnormal behaviors can be achieved; when performing multi-dimensional analysis on traffic log data, the detection plane pre-stores the adoptable analysis dimensions, and the analysis dimensions may include, for example: the source IP address of the HTTP request, the URL visited, the geographic location, the client device type, abnormal characteristics and behaviors, etc.

[0106] The traffic log data of the target protection object is obtained, and the traffic log data is aggregated in multiple dimensions according to the multiple analysis dimensions pre-stored on the detection plane to obtain multiple basic traffic data. The multiple basic traffic data obtained at this time provide a comprehensive view of network activities, which is helpful for CC attack identification operations.

[0107] For example, the target protection object can be a Web server, and the multiple analysis dimensions pre-stored on the computing sub-module of the detection plane include: protection site, IP address, URL, access source geographic information, access client device type, abnormal characteristics, and abnormal behavior; the detection plane receives the traffic log data sent by the forwarding plane, and regroups the obtained traffic log data based on the multiple analysis dimensions, integrates the traffic log data belonging to the same dimension, and adds them to the same data set, that is, according to the analysis dimensions of protection site, IP address, URL, access source geographic information, access client device type, abnormal characteristics, and abnormal behavior, the traffic log data can be re-divided into traffic log data 1, traffic log data 2, traffic log data 3, traffic log data 4, traffic log data 5, traffic log data 6, and traffic log data 7, and the traffic log data of the above different analysis dimensions are all basic traffic data as the corresponding analysis dimensions, so that the identification sub-module of the detection plane can perform CC attack identification.

[0108] S302: Determine the comprehensive traffic index and hotspot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determine the display status of the hotspot source index.

[0109] S303: Determine a target recognition mode of the traffic log data according to the display status of the hotspot source indicator.

[0110] Among them, the comprehensive traffic indicator is used to reflect whether the traffic of the target protection object is abnormal, the hot source indicator is used to determine whether there is a hot source IP in the traffic log data, and the target identification mode is used to identify CC attacks on the traffic log data.

[0111] It can be understood that the comprehensive traffic indicators can determine the overall traffic situation of the target protection object to determine whether there is abnormal traffic. For example, when the target protection object is attacked by CC, the comprehensive traffic indicators show abnormalities, and the corresponding traffic log data may show an abnormally high number of requests, abnormally high bandwidth usage or abnormally high server load.

[0112] A hotspot source IP usually refers to an IP address that generates a large amount of network traffic or requests within a specific time period. Therefore, the traffic log data obtained at that time can be analyzed and processed. Specifically, by analyzing the network activities, traffic or request frequency of different IP addresses in the traffic log data, it can be determined whether the IP address recorded in the traffic log data corresponds to a hotspot source IP. In other words, the IP address with abnormal traffic behavior among multiple IP addresses can be obtained through analysis information such as the traffic or request frequency corresponding to different IP addresses, and the IP address with abnormal traffic behavior is the hotspot source IP; based on whether the hotspot source IP exists, The hot source index of the current traffic log data can be obtained to facilitate the determination of the attack scenario of the current target protection object; wherein, the attack scenario specifically includes high-frequency attacks and low-frequency attacks, and high-frequency attacks use a small number of attack sources to launch attacks at high frequency and high intensity, and low-frequency attacks use a large number of dispersed attack sources to launch attacks at low frequency but continuously; therefore, when the hot source index determines that the traffic log data has a hot source IP, the attack scenario of the current target protection object is a high-frequency attack; when the hot source index determines that the traffic log data does not have a hot source IP, the attack scenario of the current target protection object is a low-frequency attack.

[0113] Perform an overall analysis on the traffic log data obtained at that time to determine the comprehensive traffic indicators of the traffic log data, that is, determine whether there are any abnormalities in the traffic log recorded at that time; if there are no abnormalities in the traffic log recorded at that time, it indicates that the target protection object does not need to perform CC attack identification. At this time, continue to obtain the traffic log data sent by the forwarding plane, and analyze the comprehensive traffic indicators of the traffic log data to determine whether a preliminary judgment on CC attack identification is needed; if there are abnormalities in the traffic log recorded at that time, it indicates that the target protection object needs to perform CC attack identification. After completing the preliminary judgment on whether CC attack identification is needed, determine the target identification mode of the traffic log data based on the display of the hot source indicators corresponding to the traffic log data at that time.

[0114] It can be understood that different CC attack identification modes can be used for different attack scenarios of the target protection object. Based on the attack scenario of the traffic log data determined at that time, a CC attack identification mode matching the attack scenario can be determined, and the CC attack identification mode can be determined as the target identification mode adopted for the traffic log data at that time.

[0115] For example, when the target protected object is attacked by CC, the abnormal traffic situation is usually manifested as a large number of HTTP requests pouring in within a short period of time, resulting in a sharp increase in server load, a longer response time, and even possible service unavailability. At this time, the comprehensive traffic indicator may show an abnormally high number of requests, an abnormally high bandwidth utilization rate, or an abnormally high server load; the traffic log data obtained at that time is analyzed and processed as a whole. If the above abnormal behavior exists, it indicates that the target protected object has received a CC attack and the traffic log data is abnormal. At this time, combined with the display of the hotspot source indicator, it can be further determined which IP addresses are the main sources of traffic, that is, the hotspot source IP, so as to more accurately identify the attack source; if the hotspot source indicator shows that there is a hotspot source IP in the traffic log data, it indicates that there are prominent abnormal IP addresses in the traffic log data. At this time, the CC attack identification mode adopted for the traffic log data is to detect each IP address; if the hotspot source indicator shows that there is no hotspot source IP in the traffic log data, it indicates that there are no prominent abnormal IP addresses in the traffic log data. At this time, the CC attack identification mode adopted for the traffic log data is to detect all IP addresses in the traffic log data. This application does not impose any special restrictions on the method for determining the comprehensive flow index.

[0116] S304: Perform phased attack identification on the multiple basic traffic data according to the target identification mode, and generate a high-risk IP list.

[0117] Among them, the high-risk IP list is used to store IPs that need to be banned.

[0118] It can be understood that phased attack identification utilizes multiple basic traffic data of different dimensions to generate key data information required for different identification modes, and utilizes the key data information obtained to perform attack identification.

[0119] Analyze and process multiple basic traffic data to determine the key data information required for the current staged attack identification, and perform preliminary attack identification on the key data information according to the target identification mode. Perform preliminary screening on multiple IP addresses in the traffic log data to obtain multiple abnormal IP addresses, and then further screen the obtained multiple abnormal IP addresses to determine the specific abnormal situations of the multiple abnormal IP addresses, so as to generate a high-risk IP list.

[0120] It can be understood that when IP addresses are preliminarily screened according to different target identification modes, if the target identification mode is for high-frequency attack scenarios, the preliminary screening is for each IP address. If the target identification mode is for low-frequency attack scenarios, the preliminary screening object is all IP addresses in the traffic log data for overall screening.

[0121] For example, the traffic log data 1, traffic log data 2, traffic log data 3, traffic log data 4, traffic log data 5, traffic log data 6, and traffic log data 7 of different dimensions obtained this time are analyzed and processed to determine the key data information required for the current staged attack identification, and the key data information can be a website traffic-related indicator, which can reflect the service request situation of different IP addresses for the target protection object; if the target identification mode is determined to be the CC attack identification mode corresponding to the high-frequency attack scenario, then for different IP addresses, the key data information of a single IP address is determined, and the key data information corresponding to each IP address is respectively The data information is used for preliminary attack identification; if the target identification mode is determined to be the CC attack identification mode corresponding to the low-frequency attack scenario, then for all the traffic log data obtained at that time, the unique key data information corresponding to all the IP addresses is determined, and the preliminary attack identification is performed using the unique key data information; wherein, the purpose of preliminary attack identification is to determine the existence of abnormal IP addresses in the IP addresses corresponding to the traffic log data, based on the obtained multiple abnormal IP addresses, further screening the obtained multiple abnormal IP addresses, determining the specific abnormal situations of the multiple abnormal IP addresses, and thereby generating a high-risk IP list.

[0122] The CC attack identification method based on offline calculation provided in this embodiment obtains the traffic log data of the target protection object and performs multi-dimensional aggregation processing on the traffic log data to obtain multiple basic traffic data; determines the comprehensive traffic index and hot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determines the display of the hot source index; based on the display of the hot source index, determines the target identification mode of the traffic log data, and performs phased attack identification on multiple basic traffic data according to the target identification mode to obtain a high-risk IP list. This method realizes attack identification for different attack scenarios, can more effectively deal with different types of CC attacks, improves the accuracy of CC attack identification, and further improves the accuracy of identification through phased attack identification.

[0123] Figure 4 Schematic diagram of the process of CC attack identification method based on offline calculation provided in the embodiment of the present application Figure 2 .like Figure 4 As shown, in this embodiment Figure 3 Based on the embodiment, a CC attack identification method based on offline calculation is described in detail. The CC attack identification method based on offline calculation shown in this embodiment includes:

[0124] S401: Obtain traffic log data of a target protection object, and perform multi-dimensional aggregation processing on the traffic log data to obtain a plurality of basic traffic data.

[0125] S402: Determine the comprehensive traffic index and hotspot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determine the display status of the hotspot source index.

[0126] Steps S401-S402 are similar to the above-mentioned steps S301-S302 and will not be described in detail here.

[0127] S403: Determine the attack scenario of the target protection object according to the display status of the hotspot source indicator.

[0128] S404: Determine the target identification mode of the traffic log data according to the attack scenario.

[0129] It is understandable that different attack scenarios correspond to different attack characteristics, and the attack scenarios specifically include high-frequency attacks and low-frequency attacks. High-frequency attacks use a small number of attack sources to launch attacks at a high frequency and high intensity, while low-frequency attacks use a large number of dispersed attack sources to launch attacks at a low frequency but continuous manner. Based on the characteristics of CC attacks in different attack scenarios, for high-frequency attack scenarios, attack identification for a single IP address can more easily distinguish abnormal IP addresses, while for low-frequency attack scenarios, attack identification for a single IP address cannot distinguish abnormal IP addresses. Therefore, it is necessary to perform overall attack identification on all IP addresses, re-determine whether the current target protection object is subject to CC attack identification, and after determining that it is subject to CC attack, proceed to the next stage of attack identification.

[0130] According to the display of the hotspot source indicators determined at that time, and based on whether the hotspot source IP exists, the attack scenario of the target protection object is determined. According to the attack scenario of the target protection object at that time, the identification mode of the CC attack corresponding to the attack scenario is determined, and the identification mode is determined as the target identification mode.

[0131] Preferably, the display of the hotspot source indicator includes: the presence of the hotspot source and the absence of the hotspot source, and the attack scenario includes: the first attack scenario and the second attack scenario. According to the display of the hotspot source indicator, the attack scenario of the target protection object is determined, including:

[0132] If the hotspot source indicator shows that there is a hotspot source, the attack scenario of the target protection object is determined to be the first attack scenario; if the hotspot source indicator shows that there is no hotspot source, the attack scenario of the target protection object is determined to be the second attack scenario.

[0133] Among them, the first attack scenario is used to indicate a high-frequency attack from a hotspot attack source or an attack scenario with a hotspot attack source, and the second attack scenario is used to indicate a low-frequency attack scenario from a massive distributed attack source without a hotspot source IP.

[0134] Preferably, the identification modes include: single IP identification mode and full site identification mode. According to the attack scenario, the target identification mode of the traffic log data is determined, including:

[0135] If the attack scenario is the first attack scenario, the single IP identification mode is determined as the target identification mode of the traffic log data; if the attack scenario is the second attack scenario, the whole site identification mode is determined as the target identification mode of the traffic log data.

[0136] Among them, the single IP identification mode is used to indicate that CC attack identification is performed on a single IP address in the traffic log data, and the full-site identification mode is used to indicate that CC attack identification is performed based on the overall data information of the traffic log data.

[0137] It can be understood that there is a correlation between the attack scenario and the recognition mode; different attack scenarios have different CC attack characteristics, and a single recognition mode is likely to cause errors in CC attack recognition. Therefore, the detection plane stores recognition modes that can be used for different attack scenarios, and targeted recognition modes can improve the recognition efficiency and accuracy of CC attacks.

[0138] For example, if the hotspot source indicator shows that there is a hotspot source, it indicates that the traffic log data will show characteristics such as high concurrent access, traffic inclination, hotspot Key problems, and increased network bandwidth and IO pressure. At this time, the first attack scenario can be determined as the attack scenario of the target protection object; if the hotspot source indicator shows that there is no hotspot source, it indicates that the traffic log data does not have characteristics such as high concurrent access, traffic inclination, hotspot Key problems, and increased network bandwidth and IO pressure. At this time, the second attack scenario can be determined as the attack scenario of the target protection object; on the basis of determining the attack scenario in which the target protection object is located, the target recognition mode adopted by the target protection object is determined according to the association between the attack scenario and the recognition mode pre-stored in the recognition submodule of the detection plane; if the attack scenario determined this time is the first attack scenario, the single IP recognition mode is determined as the target recognition mode of the traffic log data; if the attack scenario determined this time is the second attack scenario, the whole site recognition mode is determined as the target recognition mode of the traffic log data.

[0139] S405: Determine a basic traffic index of the traffic log data according to the multiple basic traffic data.

[0140] Among them, the basic flow indicators are used to reflect the operating status and flow characteristics of the target protection object.

[0141] It can be understood that there are multiple basic flow indicators, and the identification submodule of the detection plane stores multiple types of basic flow indicators. For different attack scenarios, the identification submodule selects different types of basic flow indicators to identify CC attacks; in addition, the identification submodule can send the type of basic flow indicator determined at the time to the calculation submodule, and the calculation submodule performs calculations based on the obtained multi-dimensional basic flow indicators according to the type of the basic flow indicator, so as to obtain data information corresponding to the different types of basic flow indicators, and the calculation submodule sends the data information to the identification submodule to facilitate the subsequent preliminary screening of CC attacks.

[0142] Determine the basic traffic indicators required for the current attack scenario, and calculate and process the multi-dimensional basic traffic data obtained at the time to obtain data information corresponding to different types of basic traffic indicators, thereby obtaining the basic traffic indicators of the traffic log data.

[0143] For example, basic traffic indicators may include: PV (number of views), UV (number of unique visitors), VV (number of visits / sessions), IP (number of visiting IPs). According to the data information required to calculate the basic traffic indicators, the traffic log data 1, traffic log data 2, traffic log data 3, traffic log data 4, traffic log data 5, traffic log data 6, and traffic log data 7 of different dimensions are analyzed and processed to obtain the key data information within the time length corresponding to the traffic log data obtained that time, that is, the data information corresponding to the basic traffic indicators. The obtained data information is added to the corresponding basic traffic indicators to generate the basic traffic indicators corresponding to the traffic log data of that time.

[0144] S406: Perform basic attack identification on the basic traffic indicators according to the target identification mode to obtain a target IP list.

[0145] Among them, the target IP list is used to store the IP addresses involved in CC attacks.

[0146] It is understandable that due to different attack scenarios, there are differences in the target IP lists obtained by basic attack identification according to the corresponding target identification mode; if the attack scenario is the first attack scenario, all IP addresses are screened one by one; if the attack scenario is the second attack scenario, all IP addresses are initially screened for abnormalities based on the overall key data information corresponding to all IP addresses.

[0147] Basic attack identification is performed on the basic traffic indicators according to the target identification mode determined at that time. If the target identification mode adopted at that time is the single IP identification mode, it means that in the process of basic attack identification, an attack identification is performed for each IP address. At this time, the identification result is the IP address with abnormalities in the traffic log data, that is, the IP address involved in the CC attack, and the abnormal IP address is added to the target IP list; if the target identification mode adopted at that time is the full-station identification mode, it means that in the process of basic attack identification, an attack identification is performed for the IP addresses of the entire station, but the attack identification for the IP addresses of the entire station cannot determine the specific IP addresses with abnormalities in the traffic log data. At this time, further attack identification is required for all IP addresses, and all IP addresses in the traffic log data are added to the target IP list; thereby, the target IP list generated under different attack scenarios can be obtained.

[0148] Preferably, the basic traffic indicators include: page views per second (PV) and queries per second (QPS). Basic attack identification is performed on the basic traffic indicators according to the target identification mode to obtain a target IP list, including:

[0149] Obtain the PV abnormal range and QPS abnormal range of the single IP traffic, as well as the PV abnormal range and QPS abnormal range of the whole site traffic; generate the traffic abnormality condition of the single IP traffic based on the PV abnormal range and QPS abnormal range of the single IP traffic, and generate the traffic abnormality condition of the whole site traffic based on the PV abnormal range and QPS abnormal range of the whole site traffic; if the target identification mode is the single IP identification mode, obtain the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic; for each IP in the traffic log data, if the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic meet the traffic abnormality condition of the single IP traffic, determine the corresponding IP as a suspicious IP and add it to the target IP list; if the target identification mode is the whole site identification mode, obtain the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the whole site traffic; if the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the whole site traffic meet the traffic abnormality condition of the whole site traffic, add the IP in the traffic log data to the target IP list.

[0150] Among them, the PV abnormal range includes: PV absolute value abnormal range and PV growth rate abnormal value, the QPS abnormal range includes: QPS absolute value abnormal range and QPS growth rate abnormal value, the traffic abnormal conditions include: PV abnormal conditions and QPS abnormal conditions, and the suspicious IP is used to indicate the existence of abnormal IP addresses screened out by basic attack identification in single IP identification mode.

[0151] It can be understood that the abnormal range refers to the range of data information corresponding to the IP address with the abnormality, and the PV abnormal condition includes: the PV absolute value corresponding to the basic traffic indicator is within the PV absolute value abnormal range and the PV growth rate corresponding to the basic traffic indicator exceeds the PV growth rate abnormal value; the QPS abnormal condition includes: the QPS absolute value corresponding to the basic traffic indicator is within the QPS absolute value abnormal range and the QPS growth rate corresponding to the basic traffic indicator exceeds the QPS growth rate abnormal value; when performing basic attack identification on the basic traffic indicator, if the corresponding basic traffic indicators PV and QPS meet any one of the PV abnormal conditions and the QPS abnormal conditions, it can be determined that the corresponding IP address has an abnormality. Only when the corresponding basic traffic indicators PV and QPS do not meet any one of the PV abnormal conditions and the QPS abnormal conditions, there is no abnormality in the traffic log data, that is, the target protection object has not been attacked by CC.

[0152] For example, Figure 5 is a schematic diagram of the basic attack identification process based on the target identification mode provided by this application, such as Figure 5 As shown, based on the above embodiment, the specific process of performing basic attack identification according to basic traffic indicators is explained.

[0153] Get the basic traffic indicators determined at that time, that is, get the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate determined at that time, and judge whether the PV absolute value exceeds the absolute value baseline. If the PV absolute value exceeds the absolute value baseline, determine the corresponding IP as a suspicious IP and add it to the target IP list; if the PV absolute value does not exceed the absolute value baseline, determine whether the PV absolute value meets the growth rate statistical condition; if the PV absolute value meets the growth rate statistical condition, determine whether the PV growth rate exceeds the PV growth rate baseline. If the PV growth rate exceeds the PV growth rate baseline, determine the corresponding IP as a suspicious IP and add it to the target IP list; if the PV absolute value does not meet the growth rate statistical condition or the PV growth rate does not exceed the PV growth rate baseline, determine QPS absolute value. Whether the absolute value of QPS exceeds the absolute value baseline. If the absolute value of QPS exceeds the absolute value baseline, the corresponding IP is determined to be a suspicious IP and added to the target IP list; if the absolute value of QPS does not exceed the absolute value baseline, determine whether the absolute value of QPS meets the growth rate statistical condition; if the absolute value of QPS meets the growth rate statistical condition, determine whether the QPS growth rate exceeds the QPS growth rate baseline. If the QPS growth rate exceeds the QPS growth rate baseline, determine the corresponding IP to be a suspicious IP and add it to the target IP list; if the absolute value of QPS does not meet the growth rate statistical condition or the QPS growth rate does not exceed the QPS growth rate baseline, then when the basic attack identification is completed, there is no abnormal IP address in the traffic log data, and it can be determined that the target protection object has not been attacked by CC.

[0154] Among them, the absolute value baseline is used to indicate the upper limit value of the absolute value data of the basic traffic indicator, the growth rate statistical condition is used to determine whether to perform attack identification corresponding to the growth rate, and the absolute value corresponding to the growth rate statistical condition is less than the absolute value corresponding to the absolute value baseline, the growth rate baseline is used to indicate the upper limit value of the growth rate data of the basic traffic indicator, and the PV absolute value abnormal range is the PV absolute value greater than the PV absolute value baseline, the PV growth rate abnormal value refers to the PV growth rate baseline, the QPS absolute value abnormal range is the QPS absolute value greater than the QPS absolute value baseline, and the QPS growth rate abnormal value refers to the QPS growth rate baseline.

[0155] It can be understood that if the target identification mode adopted this time is the single IP identification mode, basic attack identification is performed on the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic, and a basic attack identification is performed on each IP address in the traffic log data; if the target identification mode adopted this time is the whole station identification mode, basic attack identification is performed on the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the whole station traffic, and basic attack identification is performed on the entire traffic log data of the target protection object obtained this time; in addition, for the single IP identification mode, in the corresponding basic attack identification process, if the corresponding IP is determined to be a suspicious IP, then when the basic attack identification is completed, the corresponding suspicious IP is added to the target IP list, and basic attack identification is performed on other IPs in the traffic log data until all IPs summarized in the traffic log data have been identified, so that the basic attack identification result under the single IP identification mode this time, that is, the target IP list, can be obtained.

[0156] When judging whether the PV growth rate exceeds the PV growth rate baseline or judging whether the QPS growth rate exceeds the QPS growth rate baseline, in order to ensure the accuracy of abnormal situation determination, that is, the accuracy of attack identification, multiple time windows are used to simultaneously determine the PV growth rate or QPS growth rate of the corresponding IP address, and based on the multiple PV growth rates or QPS growth rates obtained in multiple time windows, multiple judgments are made on whether they exceed the growth rate baseline, so as to assist the identification submodule of the detection plane to obtain more accurate attack identification results.

[0157] S407: Perform deep attack identification on the target IP list according to the target identification mode to obtain the high-risk IP list.

[0158] According to the target identification mode determined in different attack scenarios, deep attack identification is performed on the target IP list obtained by basic attack identification; if the current attack scenario is the first attack scenario, further screening is performed on multiple suspicious IPs in the target IP list; if the current attack scenario is the second attack scenario, further screening is performed on all IP addresses stored in the target IP list, thereby generating a high-risk IP list based on the results of deep attack identification.

[0159] Preferably, deep attack identification is performed on the target IP list according to the target identification mode, and the high-risk IP list obtained includes:

[0160] Perform strong feature recognition on the target IP list according to the target identification mode; if there is an IP in the target IP list that matches the strong feature recognition, the corresponding IP will be determined as a high-risk IP and added to the high-risk IP list; if there is no IP in the target IP list that matches the strong feature recognition, perform weak feature cleaning on the target IP list and generate a dynamic protection strategy.

[0161] Among them, strong feature recognition is used to indicate the identification of IP addresses with obvious attack features or abnormal features in the target IP list, and weak feature cleaning is used to indicate the cleaning of requests from IPs in the target IP list that cannot be matched with strong feature recognition.

[0162] It can be understood that the identification submodule of the detection plane stores the attack characteristics or abnormal characteristics of the corresponding IP address when the target protection object is attacked by CC. The attack characteristics or abnormal characteristics may be, for example: a surge in request volume, increased concurrency, abnormal request distribution and behavior patterns, significant resource consumption, and abnormal request interval time.

[0163] If the current attack scenario is the first attack scenario, the corresponding target identification mode is the single IP identification mode. At this time, there are multiple suspicious IPs stored in the target IP list obtained this time. The target IP list is subjected to strong feature identification according to the single IP identification mode, and the process of strong feature identification includes: abnormal fingerprint feature filtering, abnormal traffic model filtering and abnormal IP score filtering, so as to filter multiple suspicious IPs, and determine the suspicious IPs with abnormal fingerprint features, abnormal traffic and abnormal IP scores, and determine the corresponding suspicious IPs as high-risk IPs and add them to the high-risk IP list; if there is no IP in the target IP list that matches the strong feature identification, that is, there are suspicious IPs in the target IP list that cannot match the attack features or abnormal features in the strong feature identification stage, at this time, the unidentified suspicious IPs in the target IP list are subjected to weak feature cleaning, all requests corresponding to the suspicious IPs are cleaned, and a corresponding protection strategy is generated.

[0164] If the current attack scenario is the second attack scenario, the corresponding target identification mode is the full-site identification mode. At this time, the target IP list obtained at this time stores all the corresponding IP addresses in the traffic log data. The target IP list is subjected to strong feature identification according to the full-site identification mode, and the process of the strong feature identification includes: matching of abnormal fingerprint feature access volume, abnormal traffic model aggregation processing and abnormal IP score filtering, so as to screen and process multiple suspicious IPs, and determine the IP addresses with abnormal fingerprint features, abnormal traffic and abnormal IP scores, and determine the corresponding IP addresses as high-risk IPs, and add them to the high-risk IP list; in addition, for the multiple high-risk IPs determined at this time, the abnormal fingerprint features of the corresponding high-risk IPs are extracted, and the abnormal fingerprint features are added to the attack features or abnormal features stored in the identification submodule of the detection plane; if there is no IP matching the strong feature identification in the target IP list, that is, there is a suspicious IP in the target IP list that cannot be matched with the attack features or abnormal features in the strong feature identification stage, at this time, the suspicious IP that cannot be identified in the target IP list is subjected to weak feature cleaning, all requests corresponding to the suspicious IP are cleaned, and a corresponding protection strategy is generated.

[0165] For example, Figure 6 It is a schematic diagram of the deep attack identification process based on the single IP identification mode provided by this application; Figure 6As shown, according to the multiple suspicious IPs in the target IP list obtained this time, firstly, the multiple suspicious IPs are filtered by abnormal fingerprint features, abnormal traffic model filtering and abnormal IP score filtering in turn, and three types of abnormal IPs are screened out, namely: IP addresses with abnormal fingerprint features, specifically including: IPs with less than the standard value of the number of Headers, IPs without UA or illegal UA, and IPs without Accept Header; IP addresses with abnormal traffic, specifically including: IPs with fixed frequency access, IPs accessing fixed URLs, and IPs with PV or QPS imbalance; IP addresses with abnormal IP scores, specifically including: low-reputation IPs, threat intelligence black IPs, and historical attack IPs; the corresponding abnormal IPs are determined as high-risk IPs, added to the high-risk IP list, and forwarded to the forwarding plane, and the forwarding plane blocks the IPs in the high-risk IP list; if there is no IP matching the strong feature recognition in the target IP list, that is, the suspicious IP that does not meet the above three abnormal IPs, at this time, the suspicious IP that cannot be identified in the target IP list is blocked. P performs weak feature cleaning, first determines whether it is an overseas IP, removes the overseas IPs from the remaining suspicious IPs, and removes the requests corresponding to the overseas IPs; then calculates the discreteness of the remaining suspicious IPs that do not belong to overseas IPs, and determines whether there are requests with hot URLs for non-overseas IPs among the remaining suspicious IPs; if there are requests with hot URLs, clean the requests for non-overseas IPs and hot URLs in the remaining suspicious IPs; if there are no requests with hot URLs, clean the requests for non-overseas IPs in the remaining suspicious IPs, and generate corresponding protection strategies, which are executed by the forwarding plane. This application does not impose special restrictions on the formulation of protection strategies.

[0166] For example, Figure 7 This is a schematic diagram of the deep attack identification process based on the full-site identification mode provided by this application. Figure 7As shown, according to the target IP list obtained at that time, all the IP addresses corresponding to the traffic log data are stored. First, all IP addresses are matched with abnormal fingerprint feature access volume (IPs corresponding to abnormal fingerprint features specifically include: IPs with less than the standard number of Headers, IPs without UA or illegal UA, and IPs without Accept Header), abnormal traffic model aggregation processing (IPs corresponding to abnormal traffic specifically include: IPs with fixed frequency access, IPs accessing fixed URLs, and IPs with PV or QPS imbalance) and abnormal IP score filtering (IPs corresponding to abnormal IP scores specifically include: low-reputation IPs, threat intelligence black IPs, and historical attack IPs), from which IP addresses with abnormal fingerprint features, abnormal traffic, and abnormal IP scores are determined, and the corresponding IP addresses are determined as high-risk IPs and added to the high-risk IP list; in addition, for multiple high-risk IPs determined at that time, the abnormal fingerprint features corresponding to the high-risk IPs are extracted, and the abnormal fingerprint features are added to the attack features stored in the identification submodule of the detection plane or Abnormal features; if there is no IP in the target IP list that matches the strong feature identification, that is, the suspicious IP does not meet the above three abnormal IPs, then the weak feature cleaning is performed on the suspicious IP that cannot be identified in the target IP list. First, it is determined whether it is an overseas IP, and all requests involving overseas IPs are cleared; if there is no overseas IP, the discreteness of the remaining IPs is calculated to determine whether there are requests with hot URLs; if there are requests with hot URLs, all requests for hot URLs are cleaned; if there are no requests with hot URLs, all requests for the current remaining IPs are cleaned, and the corresponding protection strategy is generated, and the forwarding plane executes the corresponding protection strategy.

[0167] The CC attack identification method based on offline calculation provided by the present embodiment obtains the traffic log data of the target protection object, and performs multi-dimensional aggregation processing on the traffic log data to obtain multiple basic traffic data; determines the comprehensive traffic index and hot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determines the display status of the hot source index, and the display status of the hot source index includes: the existence of the hot source and the non-existence of the hot source; if the display status of the hot source index is the existence of the hot source, then the attack scenario of the target protection object is determined to be the first attack scenario; if the display status of the hot source index is the non-existence of the hot source, then the attack scenario of the target protection object is determined to be the second attack scenario, and then determines the target identification mode of the traffic log data based on different attack scenarios; performs basic attack identification on the basic traffic index according to the target identification mode to obtain a target IP list, and then performs deep attack identification on the target IP list according to the target identification mode to obtain a high-risk IP list. This method realizes attack identification for different attack scenarios, can deal with different types of CC attacks more effectively, enhances the flexibility and protection capability of the CC protection system, improves the accuracy of CC attack identification, and further improves the accuracy of identification through a phased attack identification method, ensuring the reliability of the identification results.

[0168] Figure 8 This is a schematic diagram of the structure of the CC attack identification device based on offline calculation provided by this application. Figure 8 As shown, the present application provides a CC attack identification device based on offline calculation, and the CC attack identification device based on offline calculation 800 includes:

[0169] The acquisition module 801 is used to acquire the traffic log data of the target protection object.

[0170] The processing module 802 is used to perform multi-dimensional aggregation processing on the traffic log data to obtain multiple basic traffic data.

[0171] Determination module 803 is used to determine the comprehensive traffic index and hot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determine the display status of the hot source index. The hot source index is used to determine whether there is a hot source in the traffic log data.

[0172] The determination module 803 is also used to determine the target identification mode of the traffic log data according to the display of the hotspot source indicator, and the target identification mode is used to identify CC attacks on the traffic log data.

[0173] The processing module 802 is further used to perform phased attack identification on the multiple basic traffic data according to the target identification mode, and generate a high-risk IP list, and the high-risk IP list is used to store IPs that need to be banned.

[0174] Optionally, the determination module 803 is further used to determine the attack scenario of the target protection object according to the display of the hotspot source indicator, and the attack scenario is used to indicate the network attack environment in which the target protection object is located.

[0175] The determination module 803 is further configured to determine the target identification mode of the traffic log data according to the attack scenario.

[0176] Optionally, if the hotspot source indicator displays that a hotspot source exists, the determination module 803 is also used to determine that the attack scenario of the target protection object is the first attack scenario, which is used to indicate a high-frequency attack of a hotspot attack source or an attack scenario with a hotspot attack source.

[0177] If the hotspot source indicator shows that there is no hotspot source, the determination module 803 is also used to determine that the attack scenario of the target protection object is the second attack scenario, which is used to indicate a scenario of low-frequency attacks by massive distributed attack sources without hotspot source IPs.

[0178] Optionally, if the attack scenario is the first attack scenario, the determination module 803 is also used to determine the single IP identification mode as the target identification mode of the traffic log data, and the single IP identification mode is used to indicate CC attack identification for a single IP address in the traffic log data.

[0179] If the attack scenario is the second attack scenario, the determination module 803 is further used to determine the whole-station identification mode as the target identification mode of the traffic log data, and the whole-station identification mode is used to indicate CC attack identification based on the overall data information of the traffic log data.

[0180] Optionally, the determination module 803 is further used to determine the basic flow index of the flow log data based on the multiple basic flow data, and the basic flow index is used to reflect the operating status and flow characteristics of the target protection object.

[0181] The processing module 802 is further used to perform basic attack identification on the basic traffic indicator according to the target identification mode to obtain a target IP list, and the target IP list is used to store IP addresses participating in the CC attack.

[0182] The processing module 802 is further configured to perform deep attack identification on the target IP list according to the target identification mode to obtain the high-risk IP list.

[0183] Optionally, the acquisition module 801 is further used to acquire the PV abnormal range and QPS abnormal range of single IP traffic, and the PV abnormal range and QPS abnormal range of the entire site traffic.

[0184] The processing module 802 is also used to generate the traffic abnormality condition of the single IP traffic based on the PV abnormality range and the QPS abnormality range of the single IP traffic, and to generate the traffic abnormality condition of the entire site traffic based on the PV abnormality range and the QPS abnormality range of the entire site traffic.

[0185] If the target identification mode is the single IP identification mode, the acquisition module 801 is further used to acquire the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic.

[0186] For each IP in the traffic log data, if the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic meet the traffic anomaly condition of the single IP traffic, the processing module 802 is also used to determine the corresponding IP as a suspicious IP and add it to the target IP list.

[0187] If the target identification mode is the whole-station identification mode, the acquisition module 801 is further used to acquire the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the whole-station flow.

[0188] If the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the entire site traffic meet the traffic anomaly condition of the entire site traffic, the processing module 802 is also used to add the IP in the traffic log data to the target IP list.

[0189] Optionally, the processing module 802 is further used to perform strong feature recognition on the target IP list according to the target recognition mode.

[0190] If there is an IP matching the strong feature recognition in the target IP list, the determination module 803 is also used to determine the corresponding IP as a high-risk IP.

[0191] The processing module 802 is further configured to add the high-risk IP to a high-risk IP list.

[0192] If there is no IP matching the strong feature recognition in the target IP list, the processing module 802 is also used to perform weak feature cleaning on the target IP list.

[0193] The processing module 802 is also used to generate a dynamic protection strategy.

[0194] Fig. 9 This is a schematic diagram of the structure of the CC attack identification device based on offline calculation provided by this application. Fig. 9 As shown, the present application provides a CC attack identification device based on offline calculation. The CC attack identification device based on offline calculation 900 includes: a receiver 901 , a transmitter 902 , a processor 903 and a memory 904 .

[0195] Receiver 901, used for receiving instructions and data;

[0196] A transmitter 902, used for sending instructions and data;

[0197] Memory 904, used to store computer-executable instructions;

[0198] The processor 903 is used to execute the computer-executable instructions stored in the memory 904 to implement the various steps performed by the CC attack identification method based on offline calculation in the above embodiment. For details, please refer to the relevant description in the above CC attack identification method based on offline calculation embodiment.

[0199] Optionally, the memory 904 may be independent or integrated with the processor 903 .

[0200] When the memory 904 is independently provided, the electronic device further includes a bus for connecting the memory 904 and the processor 903 .

[0201] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the CC attack identification method based on offline calculation as performed by the CC attack identification device based on offline calculation is implemented.

[0202] The present application also provides a program product, including a computer program, which, when executed by a processor, implements the CC attack identification method based on offline calculation as described above.

[0203] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0204] It should be further noted that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flow chart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0205] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0206] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0207] If the integrated unit / module is implemented in the form of hardware, the hardware may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. If not specifically stated, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. If not specifically stated, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.

[0208] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0209] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0210] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0211] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A CC attack identification method based on offline calculation, characterized in that: The method comprises: Obtaining traffic log data of a target protected object, and performing multi-dimensional aggregation processing on the traffic log data to obtain multiple basic traffic data; Determine the comprehensive traffic index and hotspot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determine the display of the hotspot source index, the hotspot source index is used to determine whether there is a hotspot source in the traffic log data; Determine a target recognition mode of the traffic log data according to the display of the hotspot source indicator, wherein the target recognition mode is used to perform CC attack recognition on the traffic log data; The plurality of basic traffic data are subjected to staged attack identification according to the target identification mode, and a high-risk IP list is generated, wherein the high-risk IP list is used to store IPs that need to be blocked.

2. The method according to claim 1, characterized in that Determining the target recognition mode of the traffic log data according to the display of the hotspot source indicator includes: Determine the attack scenario of the target protection object according to the display of the hotspot source indicator, and the attack scenario is used to indicate the network attack environment in which the target protection object is located; According to the attack scenario, the target identification pattern of the traffic log data is determined.

3. The method according to claim 2, characterized in that The display of the hotspot source indicator includes: the presence of the hotspot source and the absence of the hotspot source, the attack scenario includes: the first attack scenario and the second attack scenario, and the determining of the attack scenario of the target protection object according to the display of the hotspot source indicator includes: If the hotspot source indicator indicates that there is a hotspot source, the attack scenario of the target protection object is determined to be the first attack scenario, where the first attack scenario is used to indicate a high-frequency attack of a hotspot attack source or an attack scenario with a hotspot attack source; If the hotspot source indicator shows that there is no hotspot source, the attack scenario of the target protection object is determined to be the second attack scenario, which is used to indicate a scenario of low-frequency attacks by massive distributed attack sources without hotspot source IPs.

4. The method according to claim 3, characterized in that The identification modes include: single IP identification mode and full site identification mode. The target identification mode of the traffic log data is determined according to the attack scenario, including: If the attack scenario is the first attack scenario, determining the single IP identification mode as the target identification mode of the traffic log data, the single IP identification mode is used to indicate that CC attack identification is performed on a single IP address in the traffic log data; If the attack scenario is the second attack scenario, the whole-station identification mode is determined to be the target identification mode of the traffic log data, and the whole-station identification mode is used to indicate CC attack identification based on the overall data information of the traffic log data.

5. The method according to claim 4, characterized in that The step of performing phased attack identification on the plurality of basic traffic data according to the target identification mode and generating a high-risk IP list includes: Determine a basic flow index of the flow log data according to the multiple basic flow data, wherein the basic flow index is used to reflect the operation status and flow characteristics of the target protection object; Performing basic attack identification on the basic traffic indicator according to the target identification mode to obtain a target IP list, wherein the target IP list is used to store IP addresses participating in the CC attack; The target IP list is subjected to deep attack identification according to the target identification mode to obtain the high-risk IP list.

6. The method according to claim 5, characterized in that The basic traffic indicators include: page views per second (PV) and queries per second (QPS). The basic attack identification is performed on the basic traffic indicators according to the target identification mode to obtain a target IP list, including: Get the PV abnormal range and QPS abnormal range of single IP traffic, as well as the PV abnormal range and QPS abnormal range of the entire site traffic; Based on the PV abnormal range and the QPS abnormal range of the single IP traffic, a traffic abnormality condition of the single IP traffic is generated, and based on the PV abnormal range and the QPS abnormal range of the whole site traffic, a traffic abnormality condition of the whole site traffic is generated; If the target identification mode is the single IP identification mode, the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic are obtained; For each IP in the traffic log data, if the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the single IP traffic meet the traffic anomaly condition of the single IP traffic, the corresponding IP is determined as a suspicious IP and added to the target IP list; If the target identification mode is the whole-station identification mode, the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the whole-station flow are obtained; If the PV absolute value, PV growth rate, QPS absolute value and QPS growth rate of the entire site traffic meet the traffic anomaly condition of the entire site traffic, the IP in the traffic log data is added to the target IP list.

7. The method according to claim 6, characterized in that The deep attack identification is performed on the target IP list according to the target identification mode to obtain the high-risk IP list, including: Perform strong feature recognition on the target IP list according to the target recognition mode; If there is an IP matching the strong feature recognition in the target IP list, the corresponding IP is determined as a high-risk IP and added to the high-risk IP list; If there is no IP matching the strong feature identification in the target IP list, the target IP list is cleaned of weak features and a dynamic protection strategy is generated.

8. A CC attack identification device based on offline calculation, characterized in that: include: An acquisition module is used to acquire the flow log data of the target protection object; A processing module, used for performing multi-dimensional aggregation processing on the traffic log data to obtain a plurality of basic traffic data; A determination module, used to determine the comprehensive traffic index and hotspot source index of the traffic log data, and when the comprehensive traffic index shows that the traffic log data is abnormal, determine the display of the hotspot source index, and the hotspot source index is used to determine whether there is a hotspot source in the traffic log data; The determination module is further used to determine a target identification mode of the traffic log data according to the display of the hotspot source indicator, and the target identification mode is used to perform CC attack identification on the traffic log data; The processing module is also used to perform phased attack identification on the multiple basic traffic data according to the target identification mode, and generate a high-risk IP list, and the high-risk IP list is used to store IPs that need to be banned.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Method and apparatus for recognizing CC attacks based on log analysis

    CN104065644A

  • Network attack source positioning and protecting method, electronic equipment and computer storage medium

    CN110445770A

  • CC attack protection method and system, computer equipment and readable storage medium

    CN113765914A

  • Network attack processing method and device, electronic equipment and medium

    CN115102781A

  • Attack behavior alarm information processing method and device, program, electron and medium

    CN116668051A