Packet processing method, security device management method, apparatus, and system

By sending start-up cleaning instructions to multiple security devices managed by the management device, it ensures that all security devices can recognize the redirected domain name, solves the problem that DNS request messages cannot be processed normally in a multi-DNS server deployment scenario, and realizes the detection of real sources. Effective verification and business processing of equipment.

WO2024199507A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/085087
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-30
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In a distributed deployment scenario with multiple DNS servers, the real source device cannot properly identify and process DNS request packets, causing business processing to be affected.

Method used

The management device sends startup cleaning instructions to at least two security devices to ensure that all security devices can recognize the redirected domain name and implement normal processing of DNS request messages sent by the real source device. The method includes the management device receiving attack detection information, sending startup cleaning instructions to security devices other than the first security device, using identification data to generate and identify redirect domain names, and reducing repeated verification after the source device is determined to be safe.

Benefits of technology

This ensures that in a distributed deployment scenario, the security device can normally identify and process DNS request messages, avoids business processing obstacles caused by the cleaning process, and improves the stability and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024085087_03102024_PF_FP_ABST
    Figure CN2024085087_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses a packet processing method, a security device management method, an apparatus, and a system. In the security device management method, on the basis of attack detection information sent by a first security device, a management device instructs another security device other than the first security device to use identification data to identify a redirected domain name. The first security device can generate the redirected domain name by using the identification data and an original domain name, and send a DNS response packet comprising the redirected domain name to a source device. A second security device can use the identification data to identify the redirected domain name sent by the source device, and perform subsequent query on the original domain name after identification of the redirected domain name is successful, that is, after the source device is confirmed to be secure. In this way, a plurality of security devices can enter a scrubbing stage after one of the security devices performs scrubbing, and normal identification is performed on a redirected domain name by using identification data, thereby avoiding the problem of being unable to normally process a service in a scrubbing process.
Need to check novelty before this filing date? Find Prior Art

Description

Message processing method, security equipment management method, device and system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 30, 2023, with application number 202310331649.0 and invention name “Message Processing Method, Security Equipment Management Method, Device and System”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a message processing method, a security device management method, a device and a system. Background Art

[0003] A domain name is a string of characters separated by dots that identifies the electronic location of a network device on the internet. Domain names are easy to remember and can indicate the name or nature of the organization. When a user accesses the internet through a client, they first use a Domain Name System (DNS) server to query the IP address mapped to the domain name. They then use the Internet Protocol (IP) address of the network device to access the device.

[0004] The DNS request message used when querying an IP address using a DNS server is a User Datagram Protocol (UDP) message. UDP messages have no authentication mechanism. Attackers can construct fake source devices to send a large number of DNS request messages to the DNS server to attack. Currently, security devices that protect DNS servers can use redirection to confirm the real source device that sends the DNS message. In the process of cleaning fake source devices, after receiving the DNS request message sent by the source device, the security device does not forward the DNS request message to the DNS server, but sends the redirect domain name to the source device. If the source device is real, it will send a DNS request message including the redirect domain name to the DNS server as pre-specified in the DNS protocol. If the source device is fake, it will not send a DNS request message including the redirect domain name to the DNS server. After receiving the DNS request message including the redirect domain name, the security device confirms that the source device is real and completes the subsequent message interaction.

[0005] However, in scenarios where multiple DNS servers are deployed in a distributed manner, the actual source device may send DNS request packets to different DNS servers each time. This results in the security device that generates the redirection domain being different from the security device that identifies the redirection domain. The security device that identifies the redirection domain cannot properly identify the redirection domain sent by the source device, resulting in an inability to properly process the DNS request packets sent by the actual source device, impacting normal service processing.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a message processing method, a security device management method, an apparatus, and a system, which can avoid the problem of being unable to normally process DNS request messages due to the cleaning process.

[0008] In a first aspect, the present application provides a security device management method. The method is applied to a management device connected to at least two security devices. The management device is used to manage the security devices. The at least two security devices include a first security device. In response to receiving attack detection information sent by the first security device, the management device sends a start-cleaning instruction to the security devices other than the first security device among the at least two security devices. The start-cleaning instruction is used to instruct the security devices other than the first security device to use identification data to identify the redirection domain name. The redirection domain name is generated by the first security device based on the identification data. The start-cleaning instruction is sent to the security devices other than the first security device, triggering the security devices other than the first security device to identify the redirection domain name generated by the first security device based on the identification data. In this way, different security devices can normally identify the redirection domain name and implement normal processing of the DNS request message sent by the real source device. Among the multiple security devices managed by the management device, if one security device starts cleaning, the other security devices can be cleaned synchronously.

[0009] In one possible implementation, the identification data is sent from the management device to each security device. The management device sends the identification data to each security device. The identification data is used by the first security device to generate a redirection domain name, and security devices other than the first security device identify the redirection domain name.

[0010] In one possible implementation, the redirection domain name is generated based on identification data and a variable. The variable is generated by the first security device. To ensure that other security devices can properly identify the redirection domain name, the first security device also sends the variable to the management device. The management device receives the variable sent by the first security device and sends the variable to the security device other than the first security device among the at least two security devices, so that the security devices other than the first security device can use the variable and identification data to identify the redirection domain name.

[0011] In one possible implementation, after the security device determines that the source device is secure, it sends source device information to the management device. The source device information is used to identify the source device that has been determined to be secure. The management device then obtains the source device information sent by the second security device and sends the source device information to security devices other than the second security device. The security devices that receive the source device information can then determine that the source device is secure based on the obtained source device information. This reduces repeated verification of source devices.

[0012] In a second aspect, the present application provides a message processing method. The method is applied to a first security device. The first security device is connected to a management device. In response to meeting the cleaning conditions, the first security device sends attack detection information to the management device and obtains a first domain name system DNS request message sent by the source device. The first DNS request message includes the original domain name. The first security device generates a redirected domain name based on the domain name suffix and identification data of the original domain name. The domain name suffix of the redirected domain name is the same as the domain name suffix of the original domain name. The first security device sends a DNS response message to the source device. The DNS response message includes the redirected domain name. The source device can perform verification based on the redirected domain name included in the DNS response message. In this way, among multiple security devices managed by the management device, one security device starts cleaning, which can trigger other security devices to perform cleaning synchronously. Other security devices can use the identification data to identify the redirected domain name and complete the verification of the source device.

[0013] In a possible implementation, the identification data is sent by the management device to each security device. The first security device obtains the identification data sent by the management device so as to subsequently generate a redirection domain name based on the identification data.

[0014] In one possible implementation, the first security device uses the identification data to obtain a domain name prefix of the redirected domain name, and then combines the domain name prefix of the redirected domain name with a domain name suffix of the original domain name to obtain the redirected domain name.

[0015] In a possible implementation, the first security device calculates a hash value of the identification data to obtain a domain name prefix of the redirected domain name.

[0016] In one possible implementation, additional data is generated using one or more of the domain name suffix of the original domain name, a variable, and the source address of the first DNS request message. Combined data is generated using the identification data and the additional data. A hash value of the combined data is calculated to obtain the domain name prefix of the redirected domain name.

[0017] In one possible implementation, the variable is the local time of the first security device, which is the minute-by-minute time at which the first security device receives the first DNS request message. This prevents replay and forgery. Furthermore, the local time of each security device is synchronized, allowing other security devices to determine the variable based on their local time and use it to identify the redirecting domain name.

[0018] In one possible implementation, the variable is generated by the first security device using a random number generation algorithm. The first security device sends the generated variable to the management device so that the management device synchronizes the variable to other security devices for use in identifying the redirection domain name.

[0019] In a third aspect, the present application provides a message processing method, which is applied to a second security device. The second security device is connected to a management device. The second security device obtains a start-cleaning instruction sent by the management device, which instructs the second security device to use identification data to identify a redirection domain name included in a DNS request message. The second security device obtains a second DNS request message sent by a source device. The second DNS request message includes a redirection domain name. The second security device uses the identification data to identify the redirection domain name. In this way, the source device can use the redirection domain name to implement verification on different security devices.

[0020] In one possible implementation, the second security device generates a target prefix using the identification data. The second security device compares the target prefix with the domain name prefix of the redirected domain name. If the target prefix is ​​the same as the domain name prefix of the redirected domain name, identification of the redirected domain name is successful. If the target prefix is ​​different from the domain name prefix of the redirected domain name, identification of the redirected domain name fails.

[0021] In a possible implementation manner, the second security device calculates a hash value of the identification data to obtain a target prefix.

[0022] In one possible implementation, the second security device generates additional data based on one or more of the domain name suffix of the redirected domain name, a variable, and the source address of the second DNS request message. The second security device then combines the additional data with the identification data to form combined data. The second security device calculates a hash value of the combined data to obtain a target prefix.

[0023] In a possible implementation, the variable is the local time of the second security device at the minute level when the second security device receives the second DNS request message.

[0024] In a possible implementation manner, the second security device obtains the variable sent by the management device.

[0025] In a possible implementation, after successfully identifying the redirection domain name, the second security device sends the source device information of the source device to the management device, so that the management device sends the source device information to other security devices to avoid repeated verification of the source device.

[0026] In a fourth aspect, the present application provides a security device management apparatus, which is applied to a management device, wherein the management device is connected to at least two security devices respectively, and the apparatus includes:

[0027] a receiving unit, configured to receive attack detection information sent by the first security device;

[0028] A sending unit is used to send a start-cleaning instruction to a security device other than the first security device among the at least two security devices in response to receiving the attack detection information, wherein the start-cleaning instruction is used to instruct the security device other than the first security device to use identification data to identify a redirection domain name, wherein the redirection domain name is generated by the first security device based on the identification data, and the first security device is one of the at least two security devices.

[0029] In a possible implementation, the sending unit is further configured to send identification data to each of the security devices respectively, where the identification data is used to generate and identify a redirection domain name.

[0030] In a possible implementation, the receiving unit is further configured to obtain a variable sent by the first security device, where the variable is used to generate a redirection domain name;

[0031] The sending unit is further configured to send the variable to a safety device other than the first safety device among the at least two safety devices.

[0032] In a possible implementation, the receiving unit is further configured to obtain source device information sent by a second security device, where the source device information is used to identify a source device that is determined to be safe, and the second security device is one of the at least two security devices;

[0033] The sending unit is further configured to send the source device information to a security device other than the second security device among the at least two security devices.

[0034] In a fifth aspect, the present application provides a message processing apparatus, applied to a first security device, the first security device being connected to a management device, the apparatus comprising:

[0035] a sending unit, configured to send attack detection information to the management device in response to satisfying a cleaning condition;

[0036] an acquiring unit, configured to acquire a first domain name system (DNS) request message sent by a source device, where the first DNS request message includes an original domain name;

[0037] a generating unit, configured to generate a redirection domain name based on the domain name suffix of the original domain name and the identification data, wherein the domain name suffix of the original domain name is the same as the domain name suffix of the redirection domain name;

[0038] The sending unit is further configured to send a DNS response message to the source device, where the DNS response message includes the redirection domain name.

[0039] In a possible implementation manner, the acquiring unit is further configured to acquire the identification data sent by the management device.

[0040] In one possible implementation, the generating unit is configured to generate the redirection domain name based on the domain name suffix of the original domain name and the identification data, including:

[0041] The generating unit is configured to obtain a domain name prefix of the redirected domain name using the identification data; and to combine the domain name prefix of the redirected domain name and the domain name suffix of the original domain name to form a redirected domain name.

[0042] In one possible implementation, the generating unit is configured to obtain a domain name prefix of the redirected domain name using the identification data, including:

[0043] The generating unit is configured to calculate a hash value of the identification data to obtain a domain name prefix of the redirected domain name.

[0044] In one possible implementation, the generating unit is configured to obtain a domain name prefix of the redirected domain name using the identification data, including:

[0045] The generation unit is used to calculate the hash value of the combined data to obtain the domain name prefix of the redirected domain name, the combined data includes the identification data and additional data, and the additional data includes one or more of the domain name suffix of the original domain name, variables and the source address of the first DNS request message.

[0046] In a possible implementation, the variable is the local time of the first security device at the minute level when the first security device receives the first DNS request message.

[0047] In a possible implementation, the variable is generated by the first security device using a random number generation algorithm, and the sending unit is further configured to send the variable to the management device.

[0048] In a sixth aspect, the present application provides a message processing apparatus, applied to a second security device, the second security device being connected to a management device, the apparatus comprising:

[0049] an acquiring unit, configured to acquire a start-cleaning instruction sent by the management device, wherein the start-cleaning instruction is used to instruct the second security device to identify the redirection domain name included in the DNS request message using the identification data;

[0050] The obtaining unit is further configured to obtain a second DNS request message sent by the source device, where the second DNS request message includes a redirection domain name;

[0051] An identification unit is configured to identify the redirection domain name using the identification data.

[0052] In a possible implementation, the identification unit, configured to identify the redirection domain name using the identification data, includes:

[0053] The identification unit is configured to generate a target prefix based on the identification data; if the target prefix is ​​the same as the domain name prefix of the redirected domain name, the redirected domain name is identified successfully.

[0054] In a possible implementation, the identification unit, configured to generate a target prefix based on the identification data, includes:

[0055] The identification unit is used to calculate a hash value of the identification data to obtain a target prefix.

[0056] In a possible implementation, the identification unit, configured to generate a target prefix based on the identification data, includes:

[0057] The identification unit is used to calculate the hash value of the combined data to obtain the target prefix, the combined data includes the identification data and additional data, and the additional data includes one or more of the domain name suffix of the redirected domain name, a variable, and the source address of the second DNS request message.

[0058] In a possible implementation, the variable is the local time of the second security device at the minute level when the second security device receives the second DNS request message.

[0059] In a possible implementation manner, the acquiring unit is further configured to acquire the variable sent by the management device.

[0060] In a possible implementation, the apparatus further includes:

[0061] A sending unit is configured to send the source device information of the source device to the management device after successfully identifying the redirection domain name.

[0062] In the seventh aspect, the present application provides a security device management system, which includes a management device and at least two security devices, the management device is connected to the at least two security devices, the at least two security devices include a first security device and a second security device, the management device is used to implement the security device management method as described in the first aspect, the first security device is used to implement the message processing method described in the second aspect, and the second security device is used to implement the message processing method described in the third aspect.

[0063] In an eighth aspect, the present application provides a computer-readable storage medium comprising instructions, programs or codes, which, when executed on a processor, implements the security device management method as described in the first aspect, or implements the message processing method as described in the second aspect, or implements the message processing method as described in the third aspect.

[0064] In the ninth aspect, the present application provides a computer program product comprising instructions. When the computer program product is run on a device, the device executes the security device management method as described in the first aspect, or executes the message processing method as described in the second aspect, or executes the message processing method as described in the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] FIG1 is a schematic diagram of a network architecture provided in an embodiment of the present application;

[0066] FIG2 is a schematic diagram of another network architecture provided in an embodiment of the present application;

[0067] FIG3 is a flow chart of a message processing method and a security device management method provided in an embodiment of the present application;

[0068] FIG4 is a schematic diagram of the structure of a security device management device provided in an embodiment of the present application;

[0069] FIG5 is a schematic structural diagram of a message processing device provided in an embodiment of the present application;

[0070] FIG6 is a schematic structural diagram of another message processing device provided in an embodiment of the present application;

[0071] FIG7 is a schematic diagram of the structure of a system provided in an embodiment of the present application;

[0072] FIG8 is a schematic structural diagram of a device provided in an embodiment of the present application;

[0073] FIG9 is a schematic structural diagram of another device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The following will describe the solutions in the embodiments provided in this application in conjunction with the drawings in this application.

[0075] The terms "first," "second," and so on, in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate and are merely used to describe the manner in which objects with the same attributes are distinguished in the embodiments of this application.

[0076] When a user uses a client to access internet services, a DNS server is required to convert domain names into IP addresses. For example, a client sends a DNS request message to a caching DNS server. The DNS request message includes the domain name www.example.com. If the caching DNS server locally caches the IP address corresponding to www.example.com, it can retrieve the IP address locally and return the IP address to the client. If the caching DNS server does not cache the IP address corresponding to www.example.com, it sends a DNS request message for www.example.com to an authoritative DNS server. An authoritative DNS server is a server authorized to resolve domain names and is responsible for storing the mapping between domain names and IP addresses. The caching DNS server can query the root servers and top-level domain name servers to obtain information about the authoritative DNS server responsible for resolving www.example.com. The authoritative DNS server's security device receives the DNS request message and transparently transmits it to the authoritative DNS server. The authoritative DNS server sends a DNS response message to the caching DNS server, including the IP address corresponding to www.example.com. The caching DNS server then returns the IP address corresponding to www.example.com to the client. The client can then access the corresponding service based on the obtained IP address.

[0077] When the number of DNS request messages received by the security device exceeds a threshold within a certain period, the security device initiates a purge of fake source devices. These fake source devices are created by attackers and attack authoritative DNS servers by sending DNS request messages. The purge process is described using the query for the IP address corresponding to www.example.com as an example. After receiving the DNS request message containing www.example.com, the security device sends a DNS response message to the source device that sent the DNS request message, instructing the source device to access the redirected domain name 123.example.com. The domain suffix of the redirected domain name is the same as the domain suffix of the original domain name requested in the DNS request message. The fake source device is unable to send DNS request messages containing 123.example.com to the authoritative DNS server. The authentic source device, based on the obtained DNS address 123.example.com, sends a DNS request message containing 123.example.com to the authoritative DNS server. Upon receiving the DNS request message containing 123.example.com, the security device at the authoritative DNS server verifies the authenticity of the source device and passes security authentication for the source device. The security device sends a DNS response message to the source device, instructing it to access www.example.com. The source device sends a DNS request message containing www.example.com to the authoritative DNS server. The security device transparently transmits the DNS request message containing www.example.com to the authoritative DNS server. The authoritative DNS server sends a DNS response message containing the IP address corresponding to www.example.com to the source device.

[0078] In a distributed deployment scenario, there are at least two authoritative DNS servers and a security device corresponding to each authoritative DNS server. Referring to Figure 1, this figure is a schematic diagram of a network architecture provided in an embodiment of the present application. The network includes a cache DNS server 101, an authoritative DNS server 102, an authoritative DNS server 103, a security device 104, and a security device 105. The cache DNS server 101 is connected to the authoritative DNS server 102 through the security device 104, and is connected to the authoritative DNS server 103 through the security device 105. The security device 104 is used to provide security protection for the authoritative DNS server 102. The security device 105 is used to provide security protection for the authoritative DNS server 103.

[0079] In some practical applications, caching DNS server 101 can utilize authoritative DNS server 102 or authoritative DNS server 103 to resolve the domain name www.example.com. Caching DNS server 101 determines the specific authoritative DNS server to access based on the latency associated with accessing each authoritative DNS server. Based on the latency associated with interacting with each authoritative DNS server, caching DNS server 101 sends a DNS request message containing www.example.com to authoritative DNS server 102. Security device 104 has initiated scrubbing of fraudulent source devices. Security device 104 sends a DNS response message to caching DNS server 101, instructing caching DNS server 101 to request access to the redirected 123.example.com. Caching DNS server 101, based on the latency associated with interacting with each authoritative DNS server, sends a DNS request message containing 123.example.com to authoritative DNS server 103. Security device 105 does not initiate scrubbing of fraudulent source devices and transparently transmits the DNS request message for 123.example.com to authoritative DNS server 103. Authoritative DNS server 103 cannot find the IP address mapped to 123.example.com, and feeds back a DNS response message indicating the query failure to cache DNS server 101. Thus, cache DNS server 101 cannot normally obtain the IP address mapped to the domain name, affecting the normal processing of services.

[0080] Based on this, an embodiment of the present application provides a message processing method applied to a first security device, a message processing method applied to a second security device, and a security device management method applied to a management device. The management device is respectively connected to at least two security devices including the first security device and the second security device.

[0081] After initiating the cleaning of the fake source device, the first security device sends attack detection information to the management device. Based on the attack detection information, the management device sends a start-cleaning instruction to the other security devices, excluding the first security device. Based on the received start-cleaning instruction, the other security devices, excluding the first security device, initiate the cleaning of the fake source device. The first security device can use the identification data and the original domain name included in the first DNS request message received from the source device to generate a redirection domain name and send a DNS response message including the redirection domain name to the source device. The source device receives the DNS response message including the redirection domain name and generates a second DNS request message including the redirection domain name. The source device sends the second DNS request message to the second security device. The second security device can use the identification data to identify the redirection domain name and, after successfully identifying the redirection domain name, confirming the security of the source device, conduct a subsequent query on the original domain name. In this way, at least two security devices can enter the cleaning phase after one of the security devices performs the cleaning, and use the identification data to properly identify the redirection domain name, thus avoiding issues with service interruptions caused by the cleaning process.

[0082] The message processing method and security device management method provided in the embodiments of the present application can be applied to the network architecture shown in Figure 2. The network includes a cache DNS server 201, an authoritative DNS server 202, an authoritative DNS server 203, a security device 204, a security device 205, and a management device 206. The cache DNS server 201 is connected to the authoritative DNS server 202 through the security device 204, and is connected to the authoritative DNS server 203 through the security device 205. The security device 204 and the security device 205 are devices that can provide security protection for the authoritative DNS server, for example, they can be anti-distributed denial of service (DDOS) devices. The authoritative DNS server 202 and the authoritative DNS server 203 can belong to different clusters, or be authoritative DNS servers in different regions. Among them, the region can refer to a cloud computer room. The management device 106 can be, for example, a controller, a network management device, a server for managing security devices, or a control plane platform.

[0083] It should be noted that Figure 2 provided in the embodiment of the present application is only an example for implementing the embodiment of the present application. The embodiment of the present application does not limit the specific scenarios in which the message processing method and security device management method provided in the embodiment of the present application are applied.

[0084] Next, various non-limiting specific implementations of the message processing method and the security device management method provided in the embodiments of the present application are described in detail.

[0085] Referring to Figure 3 , which is a flow chart illustrating a message processing method and a security device management method provided in an embodiment of the present application, the method may include steps S301-S308. The method can be applied to a network comprising at least two security devices and a management device for managing the security devices. The management device is connected to the at least two security devices, such as in the application scenario illustrated in Figure 2 above.

[0086] S301: In response to a cleaning condition being met, the first security device sends attack detection information to the management device.

[0087] The first security device is a security device used to protect the first authoritative DNS server. A cleaning condition is a condition that triggers the first security device to clean the fraudulent source device. The embodiments of the present application do not limit the specific content of the cleaning condition. As an example, the cleaning condition is that the number of DNS request messages reaching the first authoritative DNS server through the first security device reaches a threshold within a specific time period. As another example, the cleaning condition is receiving a start cleaning instruction sent by the management device.

[0088] After the cleaning conditions are met, the first security device initiates cleaning of the fake source device. The first security device sends attack detection information to the management device. The embodiments of the present application do not limit the specific content of the attack detection information. As an example, the attack detection information includes information related to the attack detected by the first security device. For example, the attack detection information may be the number of DNS request packets that reached the first authoritative DNS server through the first security device within a specific time period.

[0089] The attack detection information is used to trigger the management device to send a cleaning instruction to security devices other than the first security device. In this way, the security devices managed by the management device can simultaneously clean the fake source devices, triggering the security devices other than the first security device to use the identification information to identify the redirected domain name.

[0090] S302: In response to receiving attack detection information sent by a first security device, the management device sends a start-cleaning instruction to security devices other than the first security device among at least two managed security devices.

[0091] The start cleaning instruction is used to instruct the security device that receives the start cleaning instruction to use the identification data to identify the redirection domain name. The redirection domain name is generated by the first security device based on the identification data and the domain name suffix of the original domain name.

[0092] S303: The first security device obtains a first DNS request message including the original domain name sent by the source device.

[0093] The first security device obtains a first DNS request message, including the original domain name, sent by the source device to the first authoritative DNS server. The original domain name is the domain name for which the source device needs to query the IP address. The first DNS request message is used to request the authoritative DNS server to query the IP address corresponding to the original domain name. The embodiments of the present application do not limit the specific device type of the actual source device. As shown in FIG2 , the actual source device can be a cache DNS server 201.

[0094] S304: The first security device generates a redirection domain name based on the domain name suffix of the original domain name and the identification data, where the domain name suffix of the original domain name is the same as the domain name suffix of the redirection domain name.

[0095] The first security device generates a redirection domain name using the domain name suffix of the original domain name included in the first DNS request message and identification data, wherein the identification data is data pre-acquired by the first security device for generating the redirection domain name.

[0096] In one possible implementation, the identification data is preconfigured. In another possible implementation, the management device sends the identification data to each of the at least two managed security devices. The management device can send the identification data to the security devices using a remote procedure call (RPC), hypertext transfer protocol (HTTP), secure hypertext transfer protocol (HTTPS), or application programming interface (API).

[0097] The first security device obtains identification data sent by the management device to the first security device. The embodiments of the present application do not limit the triggering conditions for the management device to send identification data to at least two security devices under its management. As an example, after the security device accesses the network and establishes a connection with the management device, the management device sends identification data to the security device. As another example, the management device periodically updates the identification data. After determining the updated identification data, the management device sends the identification data to the at least two security devices respectively.

[0098] The present application does not limit the specific content of the identification data. As an example, the identification data can be data composed of one or more of numbers, letters, and symbols. For example, the identification data is abccbe13-6e67-4972-b950-4ddb8b688629.

[0099] Both the original domain name and the redirected domain name include a domain name suffix and a domain name prefix. The domain name suffix and domain name prefix are separated by a dot (.). For example, in www.example.com, "www" is the domain name prefix and "example.com" is the domain name suffix. The domain name suffix of the original domain name and the domain name prefix of the redirected domain name are the same. The domain name prefix of the redirected domain name is generated based on the identification data. The embodiments of the present application do not limit the specific implementation method for generating the domain name prefix of the redirected domain name based on the identification data. In one possible implementation, the management device sends algorithm information to each of the at least two security devices it manages. The algorithm information indicates the algorithm for generating the redirected domain name and the corresponding algorithm for identifying the redirected domain name. In another possible implementation, the algorithm for generating the redirected domain name and the corresponding algorithm for identifying the redirected domain name are pre-configured in the security device. For example, the identification data is used as the domain name prefix of the redirected domain name. In another example, the domain name prefix of the redirected domain name is obtained based on the identification data and a pre-set correspondence between the identification data and the domain name prefix of the redirected domain name. As some examples, the embodiments of the present application provide two specific implementation methods for generating the domain name prefix of the redirected domain name based on the identification data. In one possible implementation, a hash value of the identification data is calculated, and the resulting hash value is used as the domain prefix of the redirected domain name. In another possible implementation, a hash value of combined data including the identification data and the additional data is calculated, and the resulting hash value is used as the domain prefix of the redirected domain name. The additional data includes one or more of the domain suffix of the original domain name, a variable, and the source address of the first DNS request message. Adding the additional data to the identification data to form the combined data can increase the complexity of the domain prefix and make it more difficult to forge.

[0100] Among them, the variable is a random value determined by the first security device, which can prevent replay and prevent attackers from using historical redirection domain names to attack. As an example, the variable is determined based on a determination method pre-set in each security device. For example, the variable is the local time of the first security device at the minute level when the first security device receives the first DNS request message. The local time of each security device is synchronized, and the time interval between the source device sending the second DNS request message after obtaining the redirection domain name is generally within 1 minute. In this way, in the subsequent process of identifying the redirection domain name, the variable determined by the second security device is the local time of the second security device at the minute level when the second DNS request message is received. The variable determined by the second security device is the same as the variable determined by the first security device, which facilitates the second security device to successfully identify the redirection domain name.

[0101] Taking the variable as the local time in minutes when the first security device receives the first DNS request message, and the additional data including the domain name suffix of the original domain name, the variable and the source address of the first DNS request message as an example, the calculation process of generating the domain name prefix of the redirected domain name is explained.

[0102] The identification data is abccbe13-6e67-4972-b950-4ddb8b688629. The variable is the local time of the first security device at the minute level when the first security device received the first DNS request message, namely 1653696600. The domain name suffix of the original domain name is example.com. The source address of the first DNS request message is SrcIP (source IP address). The combined data is "1653696600" + "abccbe13-6e67-4972-b950-4ddb8b688629" + "example.com" + "SrcIP". The hash value of the combined data is Hash("1653696600" + "abccbe13-6e67-4972-b950-4ddb8b688629" + "example.com" + "SrcIP") = 08d49c696cf947e12e1abfdd1634e317. The resulting hash value, which is the domain prefix of the redirected domain, is concatenated with the domain suffix of the original domain to obtain the redirected domain name 08d49c696cf947e12e1abfdd1634e317.example.com.

[0103] As another example, the variable is generated by the first security device using a random number generation algorithm. After generating the variable, the first security device also sends the variable to the management device, so that the management device can synchronize the variable with security devices other than the first security device. After obtaining the variable, the security devices other than the first security device can use the variable to obtain additional data, and then use the additional data and identification data to obtain combined data, and use the combined data to identify the redirection domain name.

[0104] S305: The first security device sends a DNS response message to the source device, where the DNS response message includes the redirection domain name.

[0105] The first security device feeds back a DNS response message including the redirection domain name to the source device, so that the real source device can generate a second DNS request message based on the redirection domain name included in the DNS response message.

[0106] After obtaining the redirection domain name, the actual source device generates a second DNS request message including the redirection domain name. The source device selects a second authoritative DNS server from among multiple authoritative DNS servers and sends the second DNS request message to the second authoritative DNS server. The security device of the selected second authoritative DNS server, i.e., the second security device, receives the second DNS request message and identifies the redirection domain name. In one possible implementation, the first authoritative DNS server and the second authoritative DNS server can be different authoritative DNS servers. The second security device is a different security device from the first security device.

[0107] S306: The second security device obtains the start-cleaning instruction sent by the management device.

[0108] The start cleaning instruction is used to instruct the second security device to use the identification data to identify the redirection domain name included in the DNS request message. After obtaining the start cleaning instruction, the second security device starts cleaning the fake source device and uses the identification data to identify the redirection domain name.

[0109] S307: The second security device obtains the second DNS request message including the redirection domain name sent by the source device.

[0110] The redirection domain name included in the second DNS request message is generated by the first security device using the domain name suffix and identification data of the original domain name.

[0111] S308: The second security device uses the identification data to identify the redirection domain name.

[0112] The identification data is data pre-acquired by the second security device for identifying the redirection domain name. In one possible implementation, the identification data is pre-configured. In another possible implementation, the management device sends the identification data to the multiple security devices it manages. The second security device acquires the identification data sent by the management device to the second security device. The identification data of the first security device and the identification data of the second security device are the same.

[0113] The second security device uses the identification data to identify the redirection domain name included in the second DNS request message. The method by which the second security device uses the identification data to identify the redirection domain name corresponds to the method by which the first security device uses the identification data to generate the redirection domain name. In one possible implementation, the management device sends algorithm information to each of the multiple security devices it manages. The algorithm information is used to indicate the algorithm for generating the redirection domain name and the corresponding algorithm for identifying the redirection domain name. For example, the algorithm information indicates a hash algorithm. In another possible implementation, the algorithm for generating the redirection domain name and the corresponding algorithm for identifying the redirection domain name are pre-configured in the security device.

[0114] In one possible implementation, the second security device generates a target prefix based on the identification data. If the target prefix is ​​the same as the domain name prefix of the redirected domain name, the redirected domain name is identified, and the source device is confirmed to be a safe source device that has passed the scrubbing process.

[0115] The way in which the second security device generates a target prefix based on the identification data is the same as the way in which the first security device generates a domain name prefix of the redirected domain name based on the identification data. As an example, the domain name prefix of the redirected domain name is a hash value of the identification data. The second security device calculates the hash value of the identification data to obtain the target prefix. As another example, the domain name prefix of the redirected domain name is a hash value of the combined data. The second security device calculates the hash value of the combined data including the identification data and the additional data to obtain the target prefix. The additional data includes one or more of the domain name suffix of the redirected domain name, a variable, and the source address of the second DNS request message. The first security device calculates the additional data of the domain name prefix of the redirected domain name in the same way as the second security device calculates the additional data of the target prefix.

[0116] The variable is a random value determined by the first security device. As an example, the variable can be determined based on a determination method pre-set in each security device. For example, the variable is the local time in minutes when the second security device receives the second DNS request message.

[0117] The calculation process of generating the target prefix is ​​described by taking the variable as the local time in minutes when the second security device receives the second DNS request message, the domain name suffix of the additional data packet redirection domain name, the variable and the source address of the second DNS request message as an example.

[0118] For example, the identification data is abccbe13-6e67-4972-b950-4ddb8b688629. The variable is 1653696600. The domain name suffix of the redirected domain is example.com. The source address of the second DNS request message is the Src IP address. The hash value of the combined data is calculated as Hash("1653696600" + "abccbe13-6e67-4972-b950-4ddb8b688629" + "example.com" + "Src IP") = 08d49c696cf947e12e1abfdd1634e317. The resulting hash value, that is, the target prefix, is compared with the domain name prefix of the redirected domain name. The target prefix 08d49c696cf947e12e1abfdd1634e317 is the same as the domain name prefix 08d49c696cf947e12e1abfdd1634e317 of the redirected domain name. The redirected domain name is successfully identified.

[0119] As another example, the variable is generated by the first security device using a random number generation algorithm. After generating the variable, the first security device also sends the variable to the management device. The management device sends the variable to security devices other than the first security device. The second security device can obtain the variable sent by the management device, use the obtained variable to obtain additional data, and then use the additional data and identification data to obtain combined data, and use the combined data to identify the redirecting domain name.

[0120] In some possible implementations, after the second security device successfully identifies the redirected domain name, it confirms that the source device is a safe source device. The second security device locally stores the source device information of the source device. The source device information is used to identify the source device. The source device information may be, for example, the IP address of the source device, i.e., the source IP address of the second DNS request message.

[0121] As an example, the second security device stores the source device information in a local whitelist. Upon receiving a subsequent DNS request message from the source device, the second security device determines that the source device is safe based on the source device information carried in the DNS request message and the locally stored source device information, eliminating the need for further cleaning.

[0122] The second security device also sends the source device information of the source device to the management device. After receiving the source device information from the second security device, the management device sends the source device information to security devices other than the second security device. The security device that receives the source device information can add the source device information to local storage so that subsequent DNS request messages sent by the source device can be directly transmitted to the authoritative DNS server without the need for further scrubbing. By synchronously confirming the true source device through the management device, the scrubbing effort of other security devices on the true source device can be reduced, thereby improving scrubbing efficiency.

[0123] After the second security device successfully identifies the redirected domain name, it sends a DNS response message to the source device, indicating a redirection to the original domain name. The source device sends a DNS request message including the original domain name to the authoritative DNS server. The authoritative DNS server queries the IP address corresponding to the original domain name and returns a DNS response message including the IP address to the source device. It should be noted that if the second security device synchronizes source device information through a management device, the source device can send a DNS request message including the original domain name to the authoritative DNS server corresponding to the security device managed by the management device to query the original domain name.

[0124] Based on the security device management method for managing devices provided in an embodiment of the present application, as shown in Figure 4, an embodiment of the present application provides a structural diagram of a security device management device 400. The security device management device 400 can implement the functions of the management device shown in Figure 3. This figure is a structural diagram of a security device management device provided in an embodiment of the present application. The security device management device 400 includes a receiving unit 401 and a sending unit 402. The functions of each unit in the security device management device 400 can be specifically described in the relevant parts of the embodiment shown in Figure 3.

[0125] Specifically, the receiving unit 401 is configured to receive attack detection information sent by the first security device;

[0126] A sending unit 402 is used to send a start-cleaning instruction to a security device other than the first security device among the at least two security devices in response to receiving attack detection information sent by the first security device, wherein the start-cleaning instruction is used to instruct the security device other than the first security device to use identification data to identify a redirection domain name, wherein the redirection domain name is generated by the first security device based on the identification data, and the first security device is one of the at least two security devices.

[0127] In a possible implementation, the sending unit 402 is further configured to send identification data to each of the security devices respectively, where the identification data is used to generate and identify a redirection domain name.

[0128] In a possible implementation, the receiving unit 401 is further configured to obtain a variable sent by the first security device, where the variable is used to generate a redirection domain name;

[0129] The sending unit is further configured to send the variable to a safety device other than the first safety device among the at least two safety devices.

[0130] In a possible implementation, the receiving unit 401 is further configured to obtain source device information sent by a second security device, where the source device information is used to identify a source device that is determined to be safe, and the second security device is one of the at least two security devices;

[0131] The sending unit 402 is further configured to send the source device information to a security device other than the second security device among the at least two security devices.

[0132] Based on the message processing method applied to the first security device provided in the embodiment of the present application, as shown in Figure 5, the embodiment of the present application provides a structural schematic diagram of a message processing device 500. The message processing device 500 can realize the functions of the first security device shown in Figure 3. This figure is a structural schematic diagram of a message processing device provided in the embodiment of the present application. The message processing device 500 includes a sending unit 501, an acquisition unit 502 and a generation unit 503. The functions of each unit in the message processing device 500 can be specifically described in the relevant parts of the embodiment shown in Figure 3. The sending unit 501 is used to implement S301 and S305 of the embodiment shown in Figure 3; the acquisition unit 502 is used to implement S303 of the embodiment shown in Figure 3; the generation unit 503 is used to implement S304 of the embodiment shown in Figure 3.

[0133] Specifically, the sending unit 501 is configured to send attack detection information to the management device in response to satisfying the cleaning condition;

[0134] An acquiring unit 502 is configured to acquire a first Domain Name System (DNS) request message sent by a source device, where the first DNS request message includes an original domain name.

[0135] A generating unit 503 is configured to generate a redirection domain name based on the domain name suffix of the original domain name and the identification data, wherein the domain name suffix of the original domain name is the same as the domain name suffix of the redirection domain name;

[0136] The sending unit 501 is further configured to send a DNS response message to the source device, where the DNS response message includes the redirection domain name.

[0137] In a possible implementation, the acquiring unit 502 is further configured to acquire the identification data sent by the management device.

[0138] In a possible implementation, the generating unit 503 is configured to generate a redirection domain name based on the domain name suffix of the original domain name and the identification data, including:

[0139] The generating unit 503 is configured to obtain a domain name prefix of the redirected domain name using the identification data; and combine the domain name prefix of the redirected domain name and the domain name suffix of the original domain name to form a redirected domain name.

[0140] In a possible implementation, the generating unit 503 is configured to obtain the domain name prefix of the redirected domain name using the identification data, including:

[0141] The generating unit 503 is configured to calculate a hash value of the identification data to obtain a domain name prefix of the redirected domain name.

[0142] In a possible implementation, the generating unit 503 is configured to obtain the domain name prefix of the redirected domain name using the identification data, including:

[0143] The generation unit 503 is used to calculate the hash value of the combined data to obtain the domain name prefix of the redirected domain name, the combined data includes the identification data and additional data, and the additional data includes one or more of the domain name suffix of the original domain name, variables and the source address of the first DNS request message.

[0144] In a possible implementation, the variable is the local time of the first security device at the minute level when the first security device receives the first DNS request message.

[0145] In a possible implementation, the variable is generated by the first security device using a random number generation algorithm, and the sending unit 501 is further configured to send the variable to the management device.

[0146] Based on the message processing method applied to the second security device provided in the embodiment of the present application, as shown in Figure 6, the embodiment of the present application provides a structural schematic diagram of a message processing device 600. The message processing device 600 can realize the functions of the second security device shown in Figure 3. This figure is a structural schematic diagram of another message processing device provided in the embodiment of the present application. The message processing device 600 includes an acquisition unit 601 and an identification unit 602. The functions of each unit in the message processing device 600 can be specifically described in the relevant parts of the embodiment shown in Figure 3. The acquisition unit 601 is used to implement S306 and S307 of the embodiment shown in Figure 3; the identification unit 602 is used to implement S308 of the embodiment shown in Figure 3.

[0147] Specifically, the acquiring unit 601 is configured to acquire a start-cleaning instruction sent by the management device, wherein the start-cleaning instruction is configured to instruct the second security device to identify the redirection domain name included in the DNS request message using the identification data;

[0148] The obtaining unit 601 is further configured to obtain a second DNS request message sent by the source device, where the second DNS request message includes a redirection domain name;

[0149] The identification unit 602 is configured to identify the redirection domain name using the identification data.

[0150] In a possible implementation, the identifying unit 602, configured to identify the redirection domain name using the identification data, includes:

[0151] The identification unit 602 is configured to generate a target prefix based on the identification data; if the target prefix is ​​the same as the domain name prefix of the redirection domain name, the redirection domain name is identified successfully.

[0152] In one possible implementation, the identification unit 602 is configured to generate a target prefix based on the identification data, including:

[0153] The identification unit 602 is configured to calculate a hash value of the identification data to obtain a target prefix.

[0154] In one possible implementation, the identification unit 602 is configured to generate a target prefix based on the identification data, including:

[0155] The identification unit 602 is used to calculate the hash value of the combined data to obtain the target prefix, where the combined data includes the identification data and additional data, where the additional data includes one or more of the domain name suffix of the redirected domain name, a variable, and the source address of the second DNS request message.

[0156] In a possible implementation, the variable is the local time of the second security device at the minute level when the second security device receives the second DNS request message.

[0157] In a possible implementation, the acquiring unit 601 is further configured to acquire the variable sent by the management device.

[0158] In a possible implementation, the apparatus further includes:

[0159] A sending unit is configured to send the source device information of the source device to the management device after successfully identifying the redirection domain name.

[0160] Based on the security device management method applied to the management device, the message processing method applied to the first security device, and the message processing method applied to the second security device provided in the embodiment of the present application, the embodiment of the present application also provides a schematic diagram of a system 700. Referring to Figure 7, this figure is a structural schematic diagram of a system provided in the embodiment of the present application. The system 700 includes a management device 701, a first security device 702, and a second security device 703. The management device 701 is connected to the first security device 702 and the second security device 703, respectively. Among them, the management device 701 can be the management device in the embodiment shown in Figure 3, the first security device 702 can be the first security device in the embodiment shown in Figure 3, and the second security device 703 can be the second security device in the embodiment shown in Figure 3.

[0161] Figure 8 is a schematic diagram of the structure of a device provided in an embodiment of the present application. The management device 400 in Figure 4, the first security device 500 in Figure 5, and the second security device 600 in Figure 6 can be implemented using the device shown in Figure 8. The device may include one or more processors 801, a communication bus 802, a memory 803, and one or more communication interfaces 804.

[0162] The processor 801 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, or one or more integrated circuits for implementing the solution of the present application, such as an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0163] Communication bus 802 is used to transmit information between the above components. Communication bus 802 can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or one type of bus.

[0164] The memory 803 may be a read-only memory (ROM), a random access memory (RAM), an electrically erasable programmable read-only memory (EEPROM), an optical disc (including a compact disc read-only memory (CD-ROM), a compact disc, a laser disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 803 may exist independently and be connected to the processor 801 via the communication bus 802. The memory 803 may also be integrated with the processor 801.

[0165] The communication interface 804 uses any transceiver-like device for communicating with other devices or communication networks. The communication interface 804 includes a wired communication interface and may also include a wireless communication interface. The wired communication interface may be, for example, an Ethernet interface. The Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a wireless local area network (WLAN) interface, a cellular network communication interface, or a combination thereof.

[0166] In some embodiments, the device may include multiple processors, such as processor 801 and processor 805 shown in Figure 8. Each of these processors may be a single-core processor or a multi-core processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0167] In a specific implementation, as an embodiment, the device may further include an output device 806 and an input device 807. The output device 806 communicates with the processor 801 and can display information in a variety of ways. For example, the output device 806 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 807 communicates with the processor 801 and can receive user input in a variety of ways. For example, the input device 807 can be a mouse, a keyboard, a touch screen device, etc.

[0168] In some embodiments, the memory 803 is used to store program code 808 for executing the solution of the present application, and the processor 801 can execute the program code 808 stored in the memory 803. The program code may include one or more software modules, and the device can implement the above-mentioned security device management method or message processing method through the processor 801 and the program code 808 in the memory 803.

[0169] Figure 9 is a schematic diagram of the hardware structure of a device 900 according to an embodiment of the present application. The device 900 shown in Figure 9 can execute the corresponding steps in the method of the above embodiment.

[0170] As shown in Figure 9, device 900 includes a main control board 910, an interface board 930, a switching fabric board 920, and an interface board 940. The main control board 910, interface boards 930 and 940, and the switching fabric board 920 are interconnected via a system bus and the system backplane. The main control board 910 performs functions such as system management, device maintenance, and protocol processing. The switching fabric board 920 facilitates data exchange between the interface boards (also known as line cards or service boards). Interface boards 930 and 940 provide various service interfaces (e.g., POS interfaces, GE interfaces, ATM interfaces, etc.) and implement data packet forwarding.

[0171] The interface board 930 may include a central processing unit (CPU) 931, a forwarding table memory 934, a physical interface card 933, and a network processor 932. The CPU 931 is used to control and manage the interface board and communicate with the CPU on the main control board. The forwarding table memory 934 is used to store forwarding table entries. The physical interface card 933 is used to receive and send traffic. The network memory 932 is used to control the physical interface card 933 to send and receive traffic based on the forwarding table entries.

[0172] It should be understood that the operations on interface board 940 in the embodiment of the present application are consistent with those on interface board 930, and for the sake of brevity, a detailed description thereof will not be repeated. It should be understood that the device 900 of this embodiment may correspond to the functions and / or various steps implemented in the above-mentioned method embodiments, and a detailed description thereof will not be repeated here.

[0173] It should also be noted that there may be one or more main control boards (SCUs), which may include both active and standby SCUs. There may also be one or more interface boards. The higher the device's data processing capabilities, the more interface boards it provides. Interface boards may also have one or more physical interface cards. There may be no SCUs, one or more SCUs, and multiple SCUs can be used to achieve load balancing and redundancy. In a centralized forwarding architecture, a device may not require SCUs; the interface boards handle service data processing for the entire system. In a distributed forwarding architecture, a device may have at least one SCU, which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Therefore, devices with a distributed architecture offer greater data access and processing capabilities than those with a centralized architecture. The specific architecture to adopt depends on the specific network deployment scenario and is not defined here.

[0174] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on one or more computing devices, it enables the one or more computing devices to execute the security device management method provided in the above embodiment, or enables the one or more computing devices to execute the message processing method applied to the first security device provided in the above embodiment, or enables the one or more computing devices to execute the message processing method applied to the second security device provided in the above embodiment.

[0175] In addition, an embodiment of the present application also provides a computer program product. When the computer program product is executed by one or more computing devices, the one or more computing devices execute the security device management method provided in the above embodiment, or enable the one or more computing devices to execute the message processing method applied to the first security device provided in the above embodiment, or enable the one or more computing devices to execute the message processing method applied to the second security device provided in the above embodiment.

[0176] The computer program product may be a software installation package. When any of the methods provided in the aforementioned embodiments needs to be used, the computer program product may be downloaded and executed on a computer.

[0177] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the units indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.

[0178] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special circuits, etc. However, for the present application, software program implementation is a better implementation method in most cases. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., and includes a number of instructions to enable a computer device (which can be a personal computer, training equipment, or network equipment, etc.) to execute the methods described in each embodiment of the present application.

[0179] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0180] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, a computer, a training device or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website, a computer, a training device or a data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0181] Those skilled in the art will appreciate that, in one or more of the examples above, the functions described herein can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0182] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of this application in detail. It should be understood that the above description is only a specific implementation method of this application.

[0183] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. 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 security device management method, characterized in that: Applied to a management device, the management device is connected to at least two security devices respectively, and the method includes: In response to receiving attack detection information sent by a first security device, a start cleaning instruction is sent to a security device other than the first security device among the at least two security devices, wherein the start cleaning instruction is used to instruct the security device other than the first security device to use identification data to identify a redirection domain name, wherein the redirection domain name is generated by the first security device based on the identification data, and the first security device is one of the at least two security devices.

2. The method according to claim 1, characterized in that The method further comprises: Identification data is sent to each of the security devices respectively, and the identification data is used to generate and identify the redirection domain name.

3. The method according to claim 1, characterized in that: The method further comprises: Obtaining a variable sent by the first security device, where the variable is used to generate a redirection domain name; The variable is sent to a safety device other than the first safety device among the at least two safety devices.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquire source device information sent by a second security device, where the source device information is used to identify a source device that is determined to be safe, and the second security device is one of the at least two security devices; The source device information is sent to a security device other than the second security device among the at least two security devices.

5. A message processing method, characterized in that: Applied to a first security device, the first security device is connected to a management device, the method includes: In response to satisfying the cleaning condition, sending attack detection information to the management device; Acquire a first domain name system DNS request message sent by a source device, wherein the first DNS request message includes an original domain name; generating a redirection domain name based on the domain name suffix of the original domain name and the identification data, wherein the domain name suffix of the original domain name is the same as the domain name suffix of the redirection domain name; A DNS response message is sent to the source device, where the DNS response message includes the redirection domain name.

6. The method according to claim 5, characterized in that The method further comprises: The identification data sent by the management device is obtained.

7. The method according to claim 5, characterized in that The generating the redirection domain name based on the domain name suffix of the original domain name and the identification data includes: Using the identification data, obtaining a domain name prefix of the redirected domain name; The domain name prefix of the redirected domain name and the domain name suffix of the original domain name form a redirected domain name.

8. The method according to claim 7, characterized in that The obtaining the domain name prefix of the redirected domain name by using the identification data includes: A hash value of the identification data is calculated to obtain a domain name prefix of the redirected domain name.

9. The method according to claim 7, characterized in that: The obtaining the domain name prefix of the redirected domain name by using the identification data includes: Calculate a hash value of the combined data to obtain a domain name prefix of the redirected domain name, wherein the combined data includes the identification data and additional data, and the additional data includes one or more of a domain name suffix of the original domain name, a variable, and a source address of the first DNS request message.

10. The method according to claim 9, characterized in that The variable is the local time of the first security device at the minute level when the first security device receives the first DNS request message.

11. The method according to claim 9, characterized in that The variable is generated by the first security device using a random number generation algorithm, and the method further includes: The variable is sent to the management device.

12. A message processing method, characterized in that: Applied to a second security device, the second security device is connected to a management device, the method includes: Obtaining a start cleaning instruction sent by the management device, wherein the start cleaning instruction is used to instruct the second security device to use identification data to identify the redirection domain name included in the DNS request message; Obtaining a second DNS request message sent by the source device, where the second DNS request message includes a redirection domain name; The redirection domain name is identified using the identification data.

13. The method according to claim 12, characterized in that The step of using the identification data to identify the redirection domain name includes: generating a target prefix based on the identification data; If the target prefix is ​​the same as the domain name prefix of the redirected domain name, the redirected domain name is identified successfully.

14. The method according to claim 13, characterized in that The generating a target prefix based on the identification data comprises: A hash value of the identification data is calculated to obtain a target prefix.

15. The method according to claim 13, characterized in that The generating a target prefix based on the identification data comprises: Calculate a hash value of the combined data to obtain a target prefix, wherein the combined data includes the identification data and additional data, and the additional data includes one or more of a domain name suffix of the redirected domain name, a variable, and a source address of the second DNS request message.

16. The method according to claim 15, characterized in that The variable is the local time of the second security device at the minute level when the second security device receives the second DNS request message.

17. The method according to claim 15, characterized in that The method further comprises: The variable sent by the management device is obtained.

18. The method according to claim 13, characterized in that After successfully identifying the redirection domain name, the method further includes: The source device information of the source device is sent to the management device.

19. A security equipment management device, characterized in that: Applied to a management device, the management device is connected to at least two security devices respectively, and the device comprises: A receiving unit, configured to receive attack detection information sent by the first security device; A sending unit is used to send a start cleaning instruction to a security device other than the first security device among the at least two security devices in response to receiving the attack detection information, wherein the start cleaning instruction is used to instruct the security device other than the first security device to use identification data to identify a redirection domain name, and the redirection domain name is generated by the first security device based on the identification data, and the first security device is one of the at least two security devices.

20. The device according to claim 19, characterized in that The sending unit is further used to send identification data to each of the security devices respectively, and the identification data is used to generate and identify the redirection domain name.

21. The device according to claim 19, characterized in that The receiving unit is further used to obtain the variable sent by the first security device, where the variable is used to generate a redirection domain name; The sending unit is further configured to send the variable to a safety device other than the first safety device among the at least two safety devices.

22. The device according to any one of claims 19 to 21, characterized in that The receiving unit is further configured to obtain source device information sent by a second security device, where the source device information is used to identify a source device that is determined to be safe, and the second security device is one of the at least two security devices; The sending unit is further configured to send the source device information to a security device other than the second security device among the at least two security devices.

23. A message processing device, characterized in that: Applied to a first security device, the first security device is connected to a management device, and the apparatus comprises: a sending unit, configured to send attack detection information to the management device in response to satisfying a cleaning condition; An acquiring unit, configured to acquire a first domain name system DNS request message sent by a source device, wherein the first DNS request message includes an original domain name; A generating unit, configured to generate a redirection domain name based on a domain name suffix of the original domain name and identification data, wherein the domain name suffix of the original domain name is the same as the domain name suffix of the redirection domain name; The sending unit is further used to send a DNS response message to the source device, where the DNS response message includes the redirection domain name.

24. The device according to claim 23, characterized in that The acquisition unit is further used to acquire the identification data sent by the management device.

25. The device according to claim 23, characterized in that The generating unit is used to generate a redirection domain name based on the domain name suffix of the original domain name and the identification data, including: The generating unit is used to obtain a domain name prefix of the redirected domain name by using the identification data; and to form a redirected domain name by combining the domain name prefix of the redirected domain name and the domain name suffix of the original domain name.

26. The device according to claim 25, characterized in that The generating unit is used to obtain the domain name prefix of the redirected domain name by using the identification data, including: The generating unit is used to calculate the hash value of the identification data to obtain the domain name prefix of the redirected domain name.

27. The device according to claim 25, characterized in that The generating unit is used to obtain the domain name prefix of the redirected domain name by using the identification data, including: The generating unit is used to calculate the hash value of the combined data to obtain the domain name prefix of the redirected domain name, the combined data includes the identification data and additional data, and the additional data includes one or more of the domain name suffix of the original domain name, variables and the source address of the first DNS request message.

28. The device according to claim 27, characterized in that The variable is the local time of the first security device at the minute level when the first security device receives the first DNS request message.

29. The device according to claim 27, characterized in that The variable is generated by the first security device using a random number generation algorithm, and the sending unit is further used to send the variable to the management device.

30. A message processing device, characterized in that: Applied to a second security device, the second security device is connected to a management device, and the apparatus comprises: an acquiring unit, configured to acquire a start-cleaning instruction sent by the management device, wherein the start-cleaning instruction is used to instruct the second security device to identify the redirection domain name included in the DNS request message using the identification data; The obtaining unit is further configured to obtain a second DNS request message sent by the source device, wherein the second DNS request message includes a redirection domain name; An identification unit is used to identify the redirection domain name using the identification data.

31. The device according to claim 30, characterized in that The identification unit is used to identify the redirection domain name using the identification data, including: The identification unit is used to generate a target prefix based on the identification data; if the target prefix is ​​the same as the domain name prefix of the redirected domain name, the redirected domain name is identified successfully.

32. The device according to claim 31, characterized in that The identification unit, used to generate a target prefix based on the identification data, comprises: The identification unit is used to calculate the hash value of the identification data to obtain a target prefix.

33. The device according to claim 31, characterized in that The identification unit, used to generate a target prefix based on the identification data, comprises: The identification unit is used to calculate the hash value of the combined data to obtain the target prefix, the combined data includes the identification data and additional data, and the additional data includes one or more of the domain name suffix of the redirected domain name, a variable and the source address of the second DNS request message.

34. The device according to claim 33, characterized in that The variable is the local time of the second security device at the minute level when the second security device receives the second DNS request message.

35. The device according to claim 33, characterized in that The acquiring unit is further configured to acquire the variable sent by the management device.

36. The device according to claim 31, characterized in that The device also includes: A sending unit is used to send the source device information of the source device to the management device after the redirection domain name is successfully identified.

37. A safety equipment management system, characterized in that: The security device management system includes a management device and at least two security devices, the management device is connected to the at least two security devices, the at least two security devices include a first security device and a second security device, the management device is used to implement the security device management method as described in any one of claims 1-4, the first security device is used to implement the message processing method as described in any one of claims 5-11, and the second security device is used to implement the message processing method as described in any one of claims 12-18.

38. A computer-readable storage medium, characterized in that: It includes instructions, programs or codes, which, when executed on a processor, implement the security device management method as described in any one of claims 1 to 4, or implement the message processing method as described in any one of claims 5 to 11, or implement the message processing method as described in any one of claims 12 to 18.

Citation Information

Patent Citations

  • Defense method and system for domain name request attack

    CN106789882A

  • Flow cleaning method and device

    CN110113435A

  • Attack protection method, system and device and storage medium

    CN110213214A

  • Service resource scheduling method and device

    CN110611723A

  • Cooperative mitigation of distributed denial of service attacks originating in local networks

    US20200067974A1