Message processing method, safety equipment management method, device and system
Patent Information
- Application Number
- CN202310331649.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-15
AI Technical Summary
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.
The management device sends startup cleaning instructions to at least two security devices to ensure that security devices other than the first security device 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 identification data and variables to other security devices so that they can generate and identify redirect domain names and ensure security authentication of the source device.
It realizes the simultaneous cleaning and identification of redirected domain names in multiple security devices, avoids abnormal DNS request packet processing caused by the cleaning process, and ensures the normal operation of the business.
Smart Images

Figure CN118784249A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] A domain name is a string of characters separated by dots, which is used to identify the electronic location of a network device on the Internet. Domain names are easy to remember and can display the name or nature of the relevant organization. When a user accesses the Internet through a client, he or she must first use the domain name system (DNS) server to query the IP address mapped to the domain name, and then use the Internet protocol (IP) address of the network device to access the network device.
[0003] The DNS request message used when querying the IP address using the DNS server is a user datagram protocol (UDP) message. There is no authentication mechanism for UDP messages. Attackers can construct false source devices to send a large number of DNS request messages to the DNS server to attack. At present, the security device that protects the DNS server can use redirection to confirm the real source device that sends the DNS message. In the process of cleaning the false source device, 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 redirection domain name to the source device. If the source device is real, it will send a DNS request message including the redirection domain name to the DNS server in accordance with the pre-defined provisions in the DNS protocol. If the source device is fake, it will not send a DNS request message including the redirection domain name to the DNS server. After receiving the DNS request message including the redirection domain name, the security device confirms that the source device is real and completes the subsequent message interaction.
[0004] However, in a scenario where multiple DNS servers are deployed in a distributed manner, the real source device can send DNS request packets to different DNS servers each time. This will cause the security device that generates the redirection domain name to be different from the security device that identifies the redirection domain name. The security device that identifies the redirection domain name cannot normally identify the redirection domain name sent by the source device, resulting in the inability to normally process the DNS request packets sent by the real source device, affecting the normal processing of the business. Summary of the invention
[0005] 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 not being able to normally process DNS request messages due to the cleaning process.
[0006] 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. 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. Sending a start cleaning instruction to security devices other than the first security device triggers 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 realize normal processing of the DNS request message sent by the real source device. Among the multiple security devices managed by the management device, one security device starts cleaning, which can realize the synchronous cleaning of other security devices.
[0007] In a 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 respectively. 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.
[0008] In a possible implementation, the redirection domain name is generated based on the identification data and the variable. The variable is generated by the first security device. In order for other security devices to normally identify the redirection domain name, the first security device also sends the variable to the management device. The management device obtains 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 device other than the first security device identifies the redirection domain name using the variable and the identification data.
[0009] In a possible implementation, after the security device determines that the source device is safe, the source device information is sent to the management device. The source device information is used to identify the source device that is determined to be safe. The management device 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, so that the security device that receives the source device information can determine that the source device is a safe device based on the obtained source device information. In this way, repeated verification of the source device can be reduced.
[0010] 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 satisfying a cleaning condition, the first security device sends attack detection information to the management device and obtains a first domain name system DNS request message sent by a source device. The first DNS request message includes an original domain name. The first security device generates a redirection domain name based on the domain name suffix and identification data of the original domain name. The domain name suffix of the redirection 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 a redirection domain name. The source device can perform verification based on the redirection 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 redirection domain name and complete the verification of the source device.
[0011] In a possible implementation, the identification data is sent from the management device to each security device. The first security device acquires the identification data sent by the management device, so as to subsequently generate a redirection domain name based on the identification data.
[0012] In a 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 the domain name suffix of the original domain name to obtain the redirected domain name.
[0013] 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.
[0014] In a possible implementation, additional data is generated using 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. Combined data is generated using the identification data and the additional data. A hash value of the combined data is calculated to obtain a domain name prefix of the redirected domain name.
[0015] 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. In this way, playback and forgery can be prevented. In addition, the local time of each security device is synchronized, and other security devices can determine the variable based on the local time, and then use the variable to identify the redirection domain name.
[0016] In a 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 by other security devices to identify the redirection domain name.
[0017] 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, and 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. 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 identifies the redirection domain name using identification data. In this way, the source device can use the redirection domain name to implement verification on different security devices.
[0018] In a 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, the redirected domain name is successfully identified. If the target prefix is different from the domain name prefix of the redirected domain name, the redirected domain name is failed to be identified.
[0019] In a possible implementation manner, the second security device calculates a hash value of the identification data to obtain a target prefix.
[0020] In a possible implementation, the second security device generates additional data based on one or more of the domain name suffix of the redirected domain name, the 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.
[0021] 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.
[0022] In a possible implementation manner, the second security device obtains the variable sent by the management device.
[0023] In a possible implementation, after successfully identifying the redirection domain name, the second security device sends 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.
[0024] 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:
[0025] A receiving unit, configured to receive attack detection information sent by the first security device;
[0026] 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.
[0027] 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.
[0028] 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;
[0029] 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.
[0030] 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;
[0031] 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.
[0032] In a fifth aspect, the present application provides a message processing device, which is applied to a first security device, wherein the first security device is connected to a management device, and the device includes:
[0033] a sending unit, configured to send attack detection information to the management device in response to satisfying a cleaning condition;
[0034] 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;
[0035] 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;
[0036] 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.
[0037] In a possible implementation manner, the acquiring unit is further configured to acquire the identification data sent by the management device.
[0038] In a possible implementation, the generating unit is used to generate the redirection domain name based on the domain name suffix of the original domain name and the identification data, including:
[0039] 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.
[0040] In a possible implementation, the generating unit is used to obtain the domain name prefix of the redirected domain name by using the identification data, including:
[0041] 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.
[0042] In a possible implementation, the generating unit is used to obtain the domain name prefix of the redirected domain name by using the identification data, including:
[0043] 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.
[0044] In a possible implementation manner, 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.
[0045] In a possible implementation manner, 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.
[0046] In a sixth aspect, the present application provides a message processing device, which is applied to a second security device, where the second security device is connected to a management device, and the device includes:
[0047] 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;
[0048] 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;
[0049] An identification unit is used to identify the redirection domain name using the identification data.
[0050] In a possible implementation, the identification unit, used to identify the redirection domain name by using the identification data, includes:
[0051] 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.
[0052] In a possible implementation manner, the identification unit, used to generate a target prefix based on the identification data, includes:
[0053] The identification unit is used to calculate the hash value of the identification data to obtain a target prefix.
[0054] In a possible implementation manner, the identification unit, used to generate a target prefix based on the identification data, includes:
[0055] 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.
[0056] In a possible implementation manner, 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.
[0057] In a possible implementation manner, the acquiring unit is further configured to acquire the variable sent by the management device.
[0058] In a possible implementation manner, the device further includes:
[0059] 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.
[0060] 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.
[0061] In an eighth aspect, the present application provides a computer-readable storage medium, including instructions, programs or codes, which, when executed on a processor, implement the security device management method as described in the first aspect, or implement the message processing method as described in the second aspect, or implement the message processing method as described in the third aspect.
[0062] In the ninth aspect, the present application provides a computer program product comprising instructions, which, when running on a device, enables the device to execute the security device management method as described in the first aspect, or execute the message processing method as described in the second aspect, or execute the message processing method as described in the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A schematic diagram of a network architecture provided in an embodiment of the present application;
[0064] Figure 2 A schematic diagram of another network architecture provided in an embodiment of the present application;
[0065] Figure 3 A flowchart of a message processing method and a security device management method provided in an embodiment of the present application;
[0066] Figure 4 A schematic diagram of the structure of a security device management device is provided for an embodiment of the present application;
[0067] Figure 5 A schematic diagram of the structure of a message processing device is provided for an embodiment of the present application;
[0068] Figure 6 A structural schematic diagram of another message processing device is provided for an embodiment of the present application;
[0069] Figure 7 A schematic diagram of the structure of a system provided in an embodiment of the present application;
[0070] Figure 8 A schematic diagram of the structure of a device provided in an embodiment of the present application;
[0071] Fig. 9 A schematic diagram of the structure of another device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] The scheme in the embodiments provided in this application will be described below in conjunction with the drawings in this application.
[0073] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances. This is just a way of distinguishing objects with the same attributes when describing the embodiments of this application.
[0074] When a user uses a client to access services provided by the Internet, a DNS server is required to convert domain names and IP addresses. As an example, a client sends a DNS request message to a cache DNS server. The DNS request message includes the domain name www.example.com that needs to be queried. If the cache DNS server locally caches the IP address corresponding to the domain name www.example.com, the cache DNS server can query the IP address corresponding to the domain name www.example.com locally and feedback the IP address corresponding to the domain name www.example.com to the client. If the cache DNS server does not cache the IP address corresponding to the domain name www.example.com, a DNS request message for www.example.com is sent to the authoritative DNS server. Among them, the authoritative DNS server is a server authorized to resolve domain names and is responsible for storing the mapping relationship between domain names and IP addresses. The cache DNS server can query the root server and the top-level domain name server to obtain the information of the authoritative DNS server responsible for the domain name resolution of www.example.com. The security device of the authoritative DNS server receives the DNS request message and transparently transmits the DNS request message to the authoritative DNS server. The authoritative DNS server sends a DNS response message including the IP address corresponding to www.example.com to the cache DNS server. The cache DNS server then returns the IP address corresponding to www.example.com to the client. The client can access the corresponding service based on the obtained IP address.
[0075] When the number of DNS request messages received by the security device within a certain period exceeds the threshold, the security device starts cleaning the fake source device. The fake source device is constructed by an attacker and attacks the authoritative DNS server by sending a DNS request message. Taking the above query of the IP address corresponding to www.example.com as an example, the cleaning process of the security device is described. After receiving the DNS request message including 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 name suffix of the redirected domain name is the same as the domain name suffix of the original domain name requested in the DNS request message. The fake source device cannot send a DNS request message including 123.example.com to the authoritative DNS server. The real source device sends a DNS request message including 123.example.com to the authoritative DNS server based on the obtained 123.example.com. After receiving the DNS request message including 123.example.com, the security device of the authoritative DNS server can confirm that the source device is authentic and pass the security authentication of the source device. The security device sends a DNS response message to the source device, instructing the source device to access www.example.com. The source device sends a DNS request message including www.example.com to the authoritative DNS server. The security device transparently transmits the DNS request message including www.example.com to the authoritative DNS server. The authoritative DNS server sends a DNS response message including the IP address corresponding to www.example.com to the source device.
[0076] In a distributed deployment scenario, there are at least two authoritative DNS servers and a security device corresponding to each authoritative DNS server. Figure 1 As shown, this figure is a schematic diagram of a network architecture provided by 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.
[0077] In some practical applications, cache DNS server 101 can use authoritative DNS server 102 or authoritative DNS server 103 to implement domain name resolution for www.example.com. Cache DNS server 101 determines the specific authoritative DNS server to be accessed this time based on the delay in accessing each authoritative DNS server. Cache DNS server 101 sends a DNS request message including www.example.com to authoritative DNS server 102 based on the delay in interacting with each authoritative DNS server. Security device 104 has started cleaning of fake source devices. Security device 104 sends a DNS response message to cache DNS server 101, indicating that cache DNS server 101 requests access to the redirected 123.example.com. Cache DNS server 101 sends a DNS request message including 123.example.com to authoritative DNS server 103 based on the delay in interacting with each authoritative DNS server. Security device 105 does not start cleaning of fake source devices, and transparently transmits the DNS request message for querying 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. In this way, cache DNS server 101 cannot normally obtain the IP address mapped to the domain name, affecting the normal processing of the service.
[0078] Based on this, the 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.
[0079] After starting 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 other security devices except the first security device. Based on the received start cleaning instruction, other security devices except the first security device start cleaning of the fake source device. The first security device can generate a redirection domain name using the identification data and the original domain name included in the first DNS request message received from the source device, 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 a second DNS request message to the second security device. The second security device can identify the redirection domain name using the identification data, and after successfully identifying the redirection domain name, that is, confirming that the source device is safe, perform a subsequent query on the original domain name. In this way, at least two security devices can enter the cleaning stage after one of the security devices performs cleaning, and use the identification data to normally identify the redirection domain name, which can avoid the problem of not being able to handle the business normally caused by the cleaning process.
[0080] The message processing method and security device management method provided in the embodiments of the present application can be applied to Figure 2 The network architecture shown. 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.
[0081] It should be noted that the embodiments of the present application provide Figure 2 It is only an example provided for implementing the embodiments of the present application. The embodiments of the present application do not limit the specific scenarios in which the message processing method and the security device management method provided by the embodiments of the present application are applied.
[0082] Next, various non-limiting specific implementation methods of the message processing method and the security device management method provided in the embodiments of the present application are described in detail.
[0083] See also Figure 3 As shown in FIG. 1 , the figure is a flow chart of the message processing method and the security device management method provided in the embodiment of the present application. Figure 3 The method may include S301-S308. The method can be applied to a network including at least two security devices and a management device for managing the security devices. The management device is connected to at least two security devices, such as the above Figure 2 The application scenario shown.
[0084] S301: In response to satisfying a cleaning condition, the first security device sends attack detection information to a management device.
[0085] The first security device is a security device for protecting the first authoritative DNS server. The cleaning condition is a condition that triggers the first security device to clean the false source device. The embodiment of the present application does 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 quantity threshold within a specific time period. As another example, the cleaning condition is to obtain a start cleaning instruction sent by the management device.
[0086] After the cleaning condition is met, the first security device starts cleaning the fake source device. The first security device sends attack detection information to the management device. The embodiment of the present application does not limit the specific content included in 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 is the number of DNS request messages that reach the first authoritative DNS server through the first security device within a specific time period.
[0087] The attack detection information is used to trigger the management device to send a start cleaning instruction to the security devices other than the first security device. In this way, the security devices managed by the management device can be cleaned synchronously against the false source devices, triggering the security devices other than the first security device to identify the redirection domain name using the identification information.
[0088] S302: In response to receiving the attack detection information sent by the 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.
[0089] The start cleaning instruction is used to instruct the security device that has received the start cleaning instruction to identify the redirection domain name using the identification data. 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.
[0090] S303: The first security device obtains a first DNS request message including an original domain name sent by the source device.
[0091] The first security device obtains a first DNS request message including an 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 embodiment of the present application does not limit the specific device type of the real source device. Figure 2 As shown, the actual source device can be a cache DNS server 201 .
[0092] 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.
[0093] The first security device generates a redirection domain name using the domain name suffix and identification data of the original domain name included in the first DNS request message, wherein the identification data is data pre-acquired by the first security device for generating the redirection domain name.
[0094] In one possible implementation, the identification data is preconfigured. In another possible implementation, the management device sends the identification data to at least two managed security devices respectively. The management device can send the identification data to the security device using a remote procedure call (RPC), a hypertext transfer protocol (HTTP), a secure hypertext transfer protocol (HTTPS), or an application programming interface (API) transmission method.
[0095] The first security device obtains identification data sent by the management device to the first security device. The embodiment of the present application does not limit the triggering conditions for the management device to send identification data to at least two security devices under 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 changes the identification data. After determining the updated identification data, the management device sends the identification data to at least two security devices respectively.
[0096] The embodiment of 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.
[0097] Both the original domain name and the redirected domain name include two parts: a domain name suffix and a domain name prefix. The domain name suffix and the domain name prefix are divided by ".". 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 is the same as the domain name suffix of the redirected domain name. The domain name prefix of the redirected domain name is generated based on the identification data. The embodiment of the present application also does not limit the specific implementation method of generating the domain name prefix of the redirected domain name based on the identification data. In a possible implementation method, the management device sends algorithm information to each of the at least two security devices managed. The algorithm information is used to indicate the algorithm for generating the redirected domain name and the corresponding algorithm for identifying the redirected domain name. In another possible implementation method, 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. For another example, based on the corresponding relationship between the identification data and the pre-set identification data and the domain name prefix of the redirected domain name, the domain name prefix of the redirected domain name is obtained. As some examples, the embodiment of the present application provides 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 obtained hash value is used as the domain name prefix of the redirected domain name. In another possible implementation, a hash value of the combined data including the identification data and the additional data is calculated, and the obtained hash value is used as the domain name prefix of the redirected domain name. The additional data includes 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. Adding the additional data and the identification data to form the combined data can increase the complexity of the domain name prefix and increase the difficulty of forgery.
[0098] Among them, the variable is a random value determined by the first security device, which can prevent replay and prevent attackers from using historical redirected 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 for the source device to send the second DNS request message after obtaining the redirected domain name is generally within 1 minute. In this way, in the subsequent process of identifying the redirected 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 redirected domain name.
[0099] 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.
[0100] 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 receives the first DNS request message, that is, 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). 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 obtained hash value, that is, the domain name prefix of the redirected domain name, is concatenated with the domain name suffix of the original domain name to obtain the redirected domain name 08d49c696cf947e12e1abfdd1634e317.example.com.
[0101] 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 synchronizes the variable to 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 the identification data to obtain combined data, and use the combined data to identify the redirected domain name.
[0102] S305: The first security device sends a DNS response message to the source device, where the DNS response message includes the redirection domain name.
[0103] 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.
[0104] After obtaining the redirection domain name, the real source device generates a second DNS request message including the redirection domain name. The source device selects a second authoritative DNS server from multiple authoritative DNS servers and sends a second DNS request message to the second authoritative DNS server. The security device of the selected second authoritative DNS server, that is, the second security device, receives the second DNS request message and identifies the redirection domain name. In a 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.
[0105] S306: The second safety device obtains the start cleaning instruction sent by the management device.
[0106] 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.
[0107] S307: The second security device obtains a second DNS request message including the redirection domain name sent by the source device.
[0108] 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.
[0109] S308: The second security device uses the identification data to identify the redirection domain name.
[0110] 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 multiple security devices under management. 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 is the same as the identification data of the second security device.
[0111] The second security device uses the identification data to identify the redirection domain name included in the second DNS request message. The identification method of the second security device using the identification data to identify the redirection domain name corresponds to the generation method of the redirection domain name generated by the first security device using the identification data. In one possible implementation, the management device sends algorithm information to each of the multiple security devices managed. 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.
[0112] In a 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 it is confirmed that the source device is a safe source device that has passed the cleaning.
[0113] 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. Among them, 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, which is the same as the second security device calculates the additional data of the target prefix.
[0114] 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.
[0115] 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, the calculation process of generating the target prefix is explained.
[0116] For example, the identification data is abccbe13-6e67-4972-b950-4ddb8b688629. The variable is 1653696600. The domain name suffix of the redirected domain name is example.com. The source address of the second DNS request message is Src IP. The hash value of the combined data is calculated as Hash("1653696600"+"abccbe13-6e67-4972-b950-4ddb8b688629"+"example.com"+"SrcIP")=08d49c696cf947e12e1abfdd1634e317. The obtained 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, and the redirected domain name is identified successfully.
[0117] 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, and then use the obtained variable to obtain additional data, and then use the additional data and the identification data to obtain combined data, and use the combined data to identify the redirected domain name.
[0118] 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 stores the source device information of the source device locally. The source device information is used to identify the source device. The source device information is, for example, the IP address of the source device, that is, the source IP address of the second DNS request message.
[0119] As an example, the second security device stores the source device information in a local whitelist. After subsequently receiving a DNS request message sent by 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, and does not need to be cleaned again.
[0120] The second security device also sends the source device information of the source device to the management device. After receiving the source device information sent by 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 the local storage so that the DNS request message sent by the source device can be directly transmitted to the authoritative DNS server in the future without the need for cleaning again. By synchronously confirming the real source device through the management device, the cleaning consumption of other security devices on the real source device can be reduced, thereby improving the cleaning efficiency.
[0121] After the second security device successfully identifies the redirected domain name, it sends a DNS response message including an instruction to redirect to the original domain name to the source device. 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 feeds back a DNS response message including the IP address to the source device. It should be noted that when the second security device synchronizes the source device information through the 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.
[0122] Based on the security device management method for managing devices provided in the embodiments of the present application, see Figure 4 As shown, the present invention provides a schematic diagram of the structure of a security device management device 400. The security device management device 400 can achieve Figure 3 The figure is a schematic diagram of the structure 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 referred to Figure 3 The relevant parts of the illustrated embodiment are described.
[0123] Specifically, the receiving unit 401 is used to receive the attack detection information sent by the first security device;
[0124] 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, 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.
[0125] 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.
[0126] 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;
[0127] 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.
[0128] 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;
[0129] 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.
[0130] Based on the message processing method applied to the first security device provided in the embodiment of the present application, see Figure 5 As shown, the present invention provides a schematic diagram of the structure of a message processing device 500. The message processing device 500 can implement Figure 3 The function of the first security device shown in FIG. This figure is a schematic diagram of the structure of a message processing device provided in an embodiment of the present application. The message processing device 500 includes a sending unit 501, an acquiring unit 502 and a generating unit 503. The functions of each unit in the message processing device 500 can be specifically referred to Figure 3 The sending unit 501 is used to implement Figure 3 S301 and S305 of the embodiment shown; acquisition unit 502, used to implement Figure 3 S303 of the embodiment shown; generating unit 503, used to implement Figure 3 S304 of the illustrated embodiment.
[0131] Specifically, the sending unit 501 is used to send the attack detection information to the management device in response to satisfying the cleaning condition;
[0132] 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;
[0133] A generating unit 503, 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;
[0134] The sending unit 501 is further configured to send a DNS response message to the source device, wherein the DNS response message includes the redirection domain name.
[0135] In a possible implementation manner, the acquiring unit 502 is further configured to acquire the identification data sent by the management device.
[0136] 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:
[0137] The generating unit 503 is used to obtain a domain name prefix of the redirected domain name by 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 into a redirected domain name.
[0138] In a possible implementation, the generating unit 503 is configured to obtain a domain name prefix of the redirected domain name by using the identification data, including:
[0139] The generating unit 503 is used to calculate the hash value of the identification data to obtain the domain name prefix of the redirected domain name.
[0140] In a possible implementation, the generating unit 503 is configured to obtain a domain name prefix of the redirected domain name by using the identification data, including:
[0141] The generating 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.
[0142] In a possible implementation manner, 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.
[0143] In a possible implementation manner, 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.
[0144] Based on the message processing method applied to the second security device provided in the embodiment of the present application, see Figure 6As shown, the present invention provides a schematic diagram of the structure of a message processing device 600. The message processing device 600 can implement Figure 3 The function of the second security device shown in FIG. This figure is a schematic diagram of the structure of another message processing device provided in an 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 referred to Figure 3 The acquisition unit 601 is used to implement Figure 3 S306 and S307 of the embodiment shown; identification unit 602, used to implement Figure 3 S308 of the illustrated embodiment.
[0145] Specifically, the acquisition unit 601 is used to acquire a start cleaning instruction sent by the management device, where 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;
[0146] 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;
[0147] The identification unit 602 is configured to identify the redirection domain name using the identification data.
[0148] In a possible implementation, the identifying unit 602, configured to identify the redirection domain name using the identification data, includes:
[0149] The identification unit 602 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.
[0150] In a possible implementation, the identification unit 602 is configured to generate a target prefix based on the identification data, including:
[0151] The identification unit 602 is used to calculate the hash value of the identification data to obtain a target prefix.
[0152] In a 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 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.
[0154] In a possible implementation manner, 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.
[0155] In a possible implementation manner, the acquiring unit 601 is further configured to acquire the variable sent by the management device.
[0156] In a possible implementation manner, the device further includes:
[0157] 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.
[0158] 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. Figure 7 As shown in FIG. 1 , the figure is a schematic diagram of the structure of a system provided in an 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 Figure 3 In the embodiment shown, the first security device 702 can be a management device. Figure 3 In the embodiment shown, the first safety device and the second safety device 703 can be Figure 3 Second safety device in the embodiment shown.
[0159] Figure 8 It is a structural schematic diagram of a device provided in an embodiment of the present application. Figure 4 The management device 400, Figure 5 The first safety device 500 and Figure 6 The second safety device 600 in can be 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 .
[0160] The processor 801 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, or may be 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 above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0161] The communication bus 802 is used to transmit information between the above components. The communication bus 802 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0162] 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 compressed optical 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 the 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.
[0163] 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. Among them, 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, etc.
[0164] In some embodiments, a device may include multiple processors, such as Figure 8 801 and processor 805 shown in FIG. 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 (such as computer program instructions).
[0165] 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 may display information in a variety of ways. For example, the output device 806 may 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 may receive user input in a variety of ways. For example, the input device 807 may be a mouse, a keyboard, a touch screen device, or the like.
[0166] In some embodiments, the memory 803 is used to store the 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 may 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.
[0167] Fig. 9 A schematic diagram of the hardware structure of a device 900 according to an embodiment of the present application. Fig. 9 The device 900 shown can execute corresponding steps in the method of the above embodiment.
[0168] like Fig. 9The device 900 includes: a main control board 910, an interface board 930, a switching network board 920 and an interface board 940. The main control board 910, the interface boards 930 and 940, and the switching network board 920 are connected to the system backplane through a system bus to achieve intercommunication. Among them, the main control board 910 is used to complete functions such as system management, equipment maintenance, and protocol processing. The switching network board 920 is used to complete data exchange between various interface boards (interface boards are also called line cards or service boards). The interface boards 930 and 940 are used to provide various service interfaces (for example, POS interfaces, GE interfaces, ATM interfaces, etc.) and realize data packet forwarding.
[0169] The interface board 930 may include a central processor 931, a forwarding table entry memory 934, a physical interface card 933, and a network processor 932. The central processor 931 is used to control and manage the interface board and communicate with the central processor on the main control board. The forwarding table entry memory 934 is used to store forwarding table entries. The physical interface card 933 is used to complete the reception and transmission of traffic. The network memory 932 is used to control the physical interface card 933 to receive and send traffic according to the forwarding table entries.
[0170] It should be understood that the operation on the interface board 940 in the embodiment of the present application is consistent with the operation on the interface board 930, and for the sake of brevity, it will not be repeated. It should be understood that the device 900 of this embodiment can correspond to the functions and / or various steps implemented in the above method embodiment, and it will not be repeated here.
[0171] In addition, it should be noted that there may be one or more main control boards, and when there are multiple boards, they may include a main main control board and a standby main control board. There may be one or more interface boards. The stronger the data processing capability of the device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. In a centralized forwarding architecture, the device may not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system. In a distributed forwarding architecture, the device may have at least one switching network board, and the switching network board is used to realize data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the device with a distributed architecture are greater than those of the device with a centralized architecture. Which architecture to adopt depends on the specific networking deployment scenario, and no limitation is made here.
[0172] 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, the one or more computing devices execute the security device management method provided by the above embodiment, or the one or more computing devices execute the message processing method applied to the first security device provided by the above embodiment, or the one or more computing devices execute the message processing method applied to the second security device provided by the above embodiment.
[0173] 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.
[0174] 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.
[0175] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, 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 over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the units indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0176] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an 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 floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0177] 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.
[0178] 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 may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may 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 may be transmitted from a website site, 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 site, computer, training device, or data center. The computer-readable storage medium may 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 may 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)), etc.
[0179] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application 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 media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0180] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific implementation method of the present application.
[0181] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is characterized in that The method further comprises: The identification data sent by the management device is obtained.
7. The method according to claim 5, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is characterized in that The method further comprises: The variable sent by the management device is obtained.
18. The method according to claim 13, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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
Method and device for preventing attack of challenge collapsar (CC)
CN102413105A
Defense method and system for domain name request attack
CN106789882A
Flow cleaning method and device
CN110113435A
Service resource scheduling method and device
CN110611723A
Domain name resolution method and system, electronic equipment and storage medium
CN114666302A
