A honeypot drainage method, device and medium thereof

By diverting request traffic to the cloud WAF and implanting honey bait, and collecting browser fingerprint information, it solves the problem that honeypots can only be deployed one-to-one, achieving multi-system support for honeypots and security protection with unchanged network topology.

CN114726608BActive Publication Date: 2024-09-13HANGZHOU DBAPPSECURITY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210334872.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-09-13
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

Existing honeypot technology can only support network protection of real Web systems on a one-to-one basis, and needs to change the network topology of the Web system, resulting in inconvenient deployment.

Method used

Preliminary protection is provided by diverting request traffic to the cloud WAF. If there is an attack, honey bait is implanted and the traffic is intercepted. Browser fingerprint information is collected to generate a unique fingerprint ID, which is added to the fingerprint database. Based on the fingerprint ID, it is decided whether to divert the traffic to honey. Pots or real web systems, honeypots are deployed in cloud WAF to support multiple web systems.

Benefits of technology

It realizes oversubscription and overuse of honeypots, and can provide services for multiple real Web systems without changing the network topology on the real Web systems. It also marks attackers through honey bait and improves WAF protection strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114726608B
    Figure CN114726608B
Patent Text Reader

Abstract

The present application discloses a honeypot diversion method, device and medium thereof, which relate to the technical field of network security and are used to provide network security protection services. Aiming at the problem that the current honeypot can only support the network protection of the real Web system one-to-one, the present application provides a honeypot diversion method, which deploys the honeypot at the cloud WAF, and all request traffic is first processed by the cloud WAF, and then decides whether to divert to the real Web system. When there is an attack behavior in the request traffic or a fingerprint ID implanted by the honey bait, it indicates that the current request traffic is an abnormal traffic sent by the attacker, and the traffic is diverted to the honeypot through the cloud WAF to record and analyze the attacker's behavior. Then, a honeypot can provide services for multiple real Web systems supported by the cloud WAF, realizing overselling and overuse of the honeypot, and there is no need to change the network topology of the real Web system when deploying the honeypot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a honeypot drainage method, device and medium thereof. Background Art

[0002] With the development of the Internet, the Internet has penetrated into all aspects of production and life, and the uncertainty of World Wide Web (Web) attacks has always been a pain point for various Web systems, bringing challenges to network security. Therefore, how to better achieve network security protection has always been a problem that people pay attention to. At present, the methods used for network security protection usually include Web Application Firewall (WAF) technology and the use of honeypot technology to trace and analyze attacker behavior. In order to further ensure network security, WAF technology and honeypot technology are often used in combination. At present, honeypot technology is mostly deployed in the same environment of a real Web system, mainly in a local virtual machine (Virtual PC, VPC) isolated network environment to deploy honeypots, and create a new Web port or subdomain based on Transmission Control Protocol (TCP) as a traffic means for the honeypot. When WAF identifies the attack behavior, it will be diverted to the honeypot to trace and analyze the attacker's attack behavior to discover unknown threats and enable WAF to update the corresponding protection strategy.

[0003] Currently, honeypots are usually deployed in VPC isolated network environments in real Web systems. New ports or subdomains need to be developed in the real Web system as bait to introduce attack traffic into the honeypot. This method requires that the honeypot and the real Web system must be deployed one-to-one, and the network topology of the real Web system needs to be changed when deploying the honeypot, which brings inconvenience to actual applications.

[0004] Therefore, technicians in this field are in urgent need of a honeypot drainage method to solve the problem that current honeypots can only support network protection of real Web systems one-to-one and also need to change the network topology of the Web system. Summary of the invention

[0005] The purpose of this application is to provide a honeypot drainage method, device and medium thereof, so as to solve the problem that the current honeypot can only support the network protection of the real Web system one-to-one, and also needs to change the network topology of the Web system.

[0006] In order to solve the above technical problems, the present application provides a honeypot drainage method, including:

[0007] Send the received request traffic sent to the real Web system to the cloud WAF, so that the cloud WAF can identify whether the request traffic contains attack behavior and generate identification results;

[0008] Get the identification results returned by Cloud WAF, and determine whether the request traffic contains attack behavior based on the identification results;

[0009] If there is an attack, the proxy server will be used to implant bait into the real web system's page and intercept the request traffic. The bait includes the front-end code, which is used to collect the attacker's browser fingerprint information when executed, and generate a unique fingerprint ID based on the browser fingerprint information, which is implanted into all subsequent requests of the attacker.

[0010] Receive the fingerprint ID and add it to the attacker's fingerprint database;

[0011] If there is no attack behavior, determine whether there is a fingerprint ID included in the attacker's fingerprint library in the request traffic. If so, divert the request traffic to the honeypot; if not, divert the request traffic to the real Web system; the honeypot is deployed in the cloud WAF.

[0012] Preferably, the browser fingerprint information includes: browser version, browser plug-in version, image rendering features, IP address and UA.

[0013] Preferably, generating a unique fingerprint ID according to the browser fingerprint information includes: processing the browser fingerprint information through an MD5 algorithm, and using the obtained result as the fingerprint ID.

[0014] Preferably, implanting the honey bait into the web page of the real Web system through the proxy server specifically includes: implanting the honey bait into the web page of the real Web system through nginx.

[0015] Preferably, implanting into all subsequent requests of the attacker includes: implanting the fingerprint ID into a Cookie.

[0016] Preferably, the method further comprises: if it is determined according to the identification result that the request flow contains attack behavior or the request flow contains a fingerprint ID included in the attacker's fingerprint library, generating a warning message.

[0017] In order to solve the above technical problems, the present application also provides a honeypot drainage device, including:

[0018] The WAF traffic diversion module is used to send the received request traffic sent to the real Web system to the cloud WAF, so that the cloud WAF can identify whether the request traffic contains attack behavior and generate identification results;

[0019] The attack identification module is used to obtain the identification results returned by the cloud WAF and determine whether the request traffic contains attack behavior based on the identification results;

[0020] The honey bait implantation module is used to implant the honey bait into the page of the real Web system through the proxy server and intercept the request traffic if there is an attack behavior; the honey bait includes the front-end code, which is used to collect the attacker's browser fingerprint information when executed, and generate a unique fingerprint ID based on the browser fingerprint information, and implant it into all subsequent requests of the attacker;

[0021] The fingerprint collection module is used to receive the fingerprint ID and add the fingerprint ID to the attacker's fingerprint library;

[0022] The request diversion module is used to determine whether there is a fingerprint ID included in the attacker's fingerprint library in the request traffic if there is no attack behavior. If so, the request traffic is diverted to the honeypot; if not, the request traffic is diverted to the real Web system; wherein the honeypot is deployed in the cloud WAF.

[0023] Preferably, it also includes: an attack warning module, which is used to generate warning information if it is determined according to the identification result that the request flow contains attack behavior or the request flow contains a fingerprint ID included in the attacker's fingerprint library.

[0024] In order to solve the above technical problems, the present application also provides a honeypot drainage device, including:

[0025] Memory for storing computer programs;

[0026] A processor is used to implement the steps of the above-mentioned honeypot diversion method when executing a computer program.

[0027] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the honeypot diversion method as described above are implemented.

[0028] The present application provides a honeypot diversion method, which diverts all request traffic sent to a real Web system to a cloud WAF for preliminary protection and determines whether there is an attack behavior; if there is an attack behavior in the request traffic, the proxy server implants a honey bait containing a front-end code into the page of the real Web system; the honey bait containing the front-end code is automatically executed when the browser renders HTML to obtain the browser fingerprint information of the attacker, thereby generating a unique fingerprint ID, which is implanted into all subsequent requests of the attacker and added to the attacker's fingerprint library to mark the attacker; and the request traffic is intercepted to prevent the real Web system from being attacked; if there is no attack behavior in the request traffic, it is identified whether there is a fingerprint ID contained in the attacker's fingerprint library. If so, it means that the request traffic is sent by the attacker, and the request traffic is diverted to the honeypot, and its attack trajectory is analyzed to improve the protection strategy of the WAF. If not, it means that the request traffic is an access request from a normal visitor, and the request traffic is diverted to the real Web system to provide corresponding services, thereby completing the entire network protection work. The application provides a honeypot diversion method. Since the honeypot is set at the cloud WAF, all traffic flowing through the cloud WAF can be served by the same honeypot. Since the same cloud WAF can provide services for multiple real Web systems, and all request traffic first passes through the cloud WAF before deciding whether to divert to the real Web system, one honeypot can provide services for multiple real Web systems, achieving overselling and overuse of the honeypot. In addition, since the honeypot is set at the cloud WAF, it does not need to be set at the local real Web system, and there is no need to change the network topology of the real Web system, which is more convenient for the implementation of the honeypot.

[0029] The honeypot drainage device and computer-readable storage medium provided in the present application correspond to the above method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0031] Figure 1 A flow chart of a honeypot drainage method provided by the present invention;

[0032] Figure 2 A structural diagram of a honeypot drainage device provided by the present invention;

[0033] Figure 3 A structural diagram of another honeypot drainage device provided by the present invention. DETAILED DESCRIPTION

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

[0035] The core of this application is to provide a honeypot drainage method, device and medium thereof.

[0036] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0037] In order to solve the problem that the current honeypot can only be deployed one-to-one at the local real Web system and needs to change the network topology of the real Web system, which causes inconvenience in practical applications, this application provides a honeypot drainage method, such as Figure 1 As shown, including:

[0038] S11: Send the received request traffic sent to the real Web system to the cloud WAF, so that the cloud WAF can identify whether the request traffic contains attack behavior and generate an identification result.

[0039] Currently, there is a cloud WAF that can provide WAF services for multiple real Web systems in a one-to-many manner. The cloud WAF is equivalent to being serialized before each real Web system. All traffic sent to the real Web system first passes through the cloud WAF. After the initial protection of the cloud WAF, it is decided whether to flow into the corresponding real Web system or into the honeypot to analyze the attacker's attack behavior, so as to update the cloud WAF's protection library and provide better security protection services for the real Web system.

[0040] Due to the characteristics of cloud WAF, the honeypot that originally relied on the deployment of real Web systems can be deployed at cloud WAF to provide services for multiple real Web systems. After the request traffic sent to each real Web system is judged to have attack behavior by cloud WAF, it can be diverted to the honeypot by cloud WAF, and together with cloud WAF, it can achieve the purpose of providing services to multiple real Web systems, thereby achieving overselling and overuse of honeypots, that is, one honeypot provides services for multiple real Web systems.

[0041] S12: Get the identification result returned by the cloud WAF, and determine whether the request traffic contains attack behavior based on the identification result. If yes, go to step S13; if no, go to step S15.

[0042] S13: implanting honey baits into the pages of the real Web system through a proxy server and intercepting request traffic; wherein the honey baits include front-end codes, which are used to collect the browser fingerprint information of the attacker when executed, and generate a unique fingerprint ID based on the browser fingerprint information, and implant it into all subsequent requests of the attacker.

[0043] S14: Receive the fingerprint ID and add the fingerprint ID to the attacker's fingerprint library.

[0044] When the cloud WAF identifies the attacker, the proxy server will implant the pre-compiled bait into the Hypertext Markup Language (HTML) page of the real Web system. This bait contains front-end code, and a preferred solution for the front-end code is JavaScript (JS) code. The JS code is automatically executed when the browser of the requester renders the HTML page. The front-end code is used to collect the browser fingerprint information of the attacker (that is, the sender of the request traffic implanted with the bait) when it is executed, and generate a unique fingerprint tag (ID) based on the browser fingerprint information. In the subsequent requests of the attacker, the corresponding fingerprint ID will be implanted, and the fingerprint ID will be generated and returned by the bait and stored in the attacker's fingerprint library. When the attacker sends a request later, the fingerprint ID in the request traffic can be identified by the cloud WAF, so that it is known that the request traffic is sent by the attacker, so as to carry out subsequent protection work.

[0045] S15: Determine whether there is a fingerprint ID included in the attacker's fingerprint library in the request traffic. If so, go to step S16; if not, go to step S17.

[0046] S16: Direct the request traffic to the honeypot.

[0047] S17: Direct the request traffic to the real Web system; the honeypot is deployed in the cloud WAF.

[0048] It should be noted that, since a cloud WAF can provide services for multiple real Web systems, the request traffic sent to the real Web system in step S11 should be all the request traffic sent to any real Web system supported by the cloud WAF. Therefore, there is a corresponding relationship between the request traffic and the real Web system. In step S17, when the request traffic is directed to the real Web system, it should also be directed to the real Web system corresponding to the request traffic.

[0049] If Cloud WAF determines that there is no attack behavior in the current request traffic, it will identify whether it contains the fingerprint ID implanted by the honey bait; if there is a fingerprint ID included in the attacker's fingerprint library, it means that the sender of the current request traffic is an attacker (who has attacked at least once in the past and has been implanted with honey bait), and there is a risk in the current request traffic. There may be attack behavior but it has not been identified by Cloud WAF, so the current request traffic is diverted to the honeypot to record and analyze all the attacker's behaviors, thereby improving the protection strategy of Cloud WAF; if there is no fingerprint ID included in the attacker's fingerprint library, it means that the sender of the current request traffic is a normal requester and the request traffic is also normal traffic. Cloud WAF will divert the normal traffic to the real Web system to provide corresponding services.

[0050] In addition, it should be noted that the above-mentioned browser fingerprint information includes: browser version, browser plug-in version, image rendering features, Internet Protocol (IP) address and User Agent (UA). In actual implementation, the browser fingerprint information obtained by the honey bait may include any one or several of the above-mentioned browser version, browser plug-in version, image rendering features, Internet Protocol (IP) address and User Agent (UA), but the more types of information included in the browser fingerprint information, the more uniqueness requirements can be met when generating a fingerprint ID. Therefore, a preferred implementation scheme provided in this embodiment is that the browser fingerprint information includes: browser version, browser plug-in version, image rendering features, IP address and UA.

[0051] Accordingly, based on the above embodiment, this embodiment also provides another preferred implementation scheme, in which the front-end code in the honey bait generates a unique fingerprint ID according to the browser fingerprint information as follows:

[0052] The browser fingerprint information is processed through the Message-Digest Algorithm (MD5), and the obtained result is used as the fingerprint ID.

[0053] As a widely used cryptographic hash function, the MD5 algorithm can generate a 128-bit (16-byte) hash value based on the browser fingerprint information of the above embodiment, which is used to mark the attacker as a unique fingerprint ID.

[0054] Furthermore, the honey bait generates a unique fingerprint ID and implants it into the attacker's subsequent requests. The specific implementation method may preferably be: implanting the fingerprint ID into the Cookie.

[0055] The fingerprint ID is implanted into the attacker's data (Cookie) stored on the user's local terminal and can be retained for 10-30 days, ensuring that within the retention period, the attacker's next request can be accurately identified and directed to the honeypot to record and analyze its behavior.

[0056] Similarly, the above-mentioned proxy server can be any one of nginx, HAProxy and squid, and the present application does not limit this. Nginx, HAProxy and squid are all common proxy servers. However, considering the advantages of nginx such as high stability, rich feature set, simple configuration file and low consumption of system resources, a preferred implementation scheme of the proxy server is: the proxy server is nginx.

[0057] Correspondingly, the step S13 of implanting the honey bait into the web page of the real Web system through the proxy server is to implant the honey bait into the web page of the real Web system through nginx.

[0058] In addition, when the cloud WAF determines that there is an attack behavior in the current request traffic, or identifies that there is a fingerprint ID in the attacker's fingerprint library in the current request traffic, it means that the current request traffic is sent by the attacker and is abnormal traffic. In addition to directing the request traffic to the honeypot for recording and analysis according to the above step S16, this embodiment also provides another preferred implementation scheme. A honeypot diversion method provided by this application also includes:

[0059] If it is determined according to the identification result that the request traffic contains attack behavior or the request traffic contains a fingerprint ID included in the attacker's fingerprint library, a warning message is generated.

[0060] Generate warning information to promptly inform users or other relevant personnel that the current real Web system is under attack. The warning information can be popped up in the form of a pop-up window or stored in the form of a file to be retrieved when needed. This embodiment does not limit this and a suitable implementation method can be selected according to actual needs.

[0061] It should be noted that the step of generating warning information in this embodiment has two triggering conditions. One is that the cloud WAF recognizes that there is an attack behavior in the current request traffic, that is, in step S12, it can be known whether the triggering condition for generating warning information is met. Accordingly, the warning information should be generated after step S12, and there is no order of precedence with other subsequent steps; the second is that the cloud WAF recognizes that there is a fingerprint ID included in the attacker's fingerprint library in the current request traffic, that is, after completing step S15, it is known whether the triggering condition for generating warning information is met. Accordingly, the warning information should be generated after step S15, and there is no order of precedence with other subsequent steps.

[0062] As can be seen from the above, a honeypot diversion method provided by the present application provides services to multiple real Web systems supported by the cloud WAF through a honeypot deployed at the cloud WAF, which can realize overselling and overuse of the honeypot, and solves the problem that the current deployment of the honeypot at the real Web system can only achieve one-to-one deployment. Since the honeypot is deployed at the cloud WAF, it is only necessary to change the network topology of the real Web system that supports the cloud WAF function, and there is no need to change the network topology of each real Web system provided by the cloud WAF, which is more conducive to the deployment of the honeypot. In addition, the present application also collects the browser fingerprint information of the attacker through honey bait, generates a unique fingerprint ID, and implants the fingerprint ID into all subsequent requests of the attacker, so that the cloud WAF can quickly and accurately identify all subsequent requests of the attacker, and divert the traffic to the honeypot to record and analyze all the behaviors of the attacker, thereby improving the security protection strategy of the cloud WAF and providing better security protection services for other real Web systems.

[0063] In the above embodiment, a honeypot drainage method is described in detail, and the present application also provides an embodiment of a honeypot drainage device. It should be noted that the present application describes the embodiment of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.

[0064] Based on the functional module perspective, such as Figure 2 As shown, this embodiment provides a honeypot drainage device, including:

[0065] The WAF traffic diversion module is used to send the received request traffic sent to the real Web system to the cloud WAF, so that the cloud WAF can identify whether the request traffic contains attack behavior and generate identification results.

[0066] The attack identification module 21 is used to obtain the identification result returned by the cloud WAF and determine whether the request traffic contains attack behavior based on the identification result.

[0067] The honey bait implantation module 22 is used to implant the honey bait into the page of the real Web system through the proxy server and intercept the request traffic if there is an attack; wherein the honey bait includes the front-end code, which is used to collect the browser fingerprint information of the attacker when executed, and generate a unique fingerprint ID based on the browser fingerprint information, and implant it into all subsequent requests of the attacker.

[0068] The fingerprint collection module 23 is used to receive the fingerprint ID and add the fingerprint ID to the attacker's fingerprint library.

[0069] The request diversion module 24 is used to determine whether there is a fingerprint ID included in the attacker's fingerprint library in the request traffic if there is no attack behavior. If so, the request traffic is diverted to the honeypot; if not, the request traffic is diverted to the real Web system; wherein the honeypot is deployed in the cloud WAF.

[0070] Preferably, it also includes: an attack warning module, which is used to generate warning information if it is determined according to the identification result that the request flow contains attack behavior or the request flow contains a fingerprint ID included in the attacker's fingerprint library.

[0071] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0072] Correspondingly, a honeypot drainage device provided in this embodiment can also achieve the beneficial effects of the honeypot drainage method as described above. Under the premise of ensuring the security protection function, the honeypot can be deployed at the cloud WAF to provide services to multiple real Web systems. There is no need to deploy it one-to-one in the real Web system, nor to change the network topology of the real Web system, which is more conducive to implementation.

[0073] Figure 3 A structural diagram of a honeypot drainage device provided in another embodiment of the present application, such as Figure 3 As shown, a honeypot drainage device includes: a memory 30, for storing a computer program;

[0074] The processor 31 is used to implement the steps of a honeypot drainage method in the above embodiment when executing a computer program.

[0075] The honeypot drainage device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0076] Among them, the processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 31 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 31 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 31 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0077] The memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used to store the following computer program 301, wherein, after the computer program is loaded and executed by the processor 31, it can implement the relevant steps of a honeypot drainage method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 30 may also include an operating system 302 and data 303, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 302 may include Windows, Unix, Linux, etc. Data 303 may include, but is not limited to, a honeypot drainage method, etc.

[0078] In some embodiments, a honeypot drainage device may further include a display screen 32 , an input and output interface 33 , a communication interface 34 , a power supply 35 , and a communication bus 36 .

[0079] Those skilled in the art will understand that Figure 3 The structure shown in the figure does not constitute a limitation of a honeypot drainage device, and may include more or fewer components than those shown in the figure.

[0080] A honeypot drainage device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a honeypot drainage method.

[0081] A honeypot drainage device provided in this embodiment can provide services to multiple real Web systems through the honeypot deployed at the cloud WAF when the processor executes the program stored in the memory. There is no need to deploy the honeypot one-to-one in the real Web system, nor to change the network topology of the real Web system. At the same time, it can also mark the attacker by subsequently implanting honey bait for the attacker, thereby better realizing the security protection function.

[0082] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0083] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0084] A computer-readable storage medium provided in this embodiment stores a program that can implement the steps of the above-mentioned honeypot diversion method when executed. Through the honeypot deployed at the cloud WAF, services are provided to multiple real Web systems, and overselling and overuse of the honeypot are achieved without changing the network topology of the real Web system. At the same time, by subsequently implanting honey bait for the attacker, the attacker can be marked, providing better security protection services.

[0085] The above is a detailed introduction to a honeypot drainage method, device and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0086] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A honeypot drainage method, characterized in that: include: Send the received request traffic sent to the real Web system to the cloud WAF, so that the cloud WAF can identify whether the request traffic contains attack behavior and generate an identification result; Obtain the identification result returned by the cloud WAF, and determine whether the request traffic contains attack behavior according to the identification result; If there is an attack, a honey bait is implanted into the HTML page of the real Web system through nginx and the request traffic is intercepted; wherein the honey bait includes a front-end code, which is automatically executed when the attacker's browser renders the HTML page, and is used to collect the attacker's browser fingerprint information when it is executed, and generate a unique fingerprint ID based on the browser fingerprint information, and implant the fingerprint ID into the attacker's Cookie stored on the user's local terminal; the browser fingerprint information includes: browser version, browser plug-in version, image rendering features, IP address and UA; Receiving the fingerprint ID, and adding the fingerprint ID to the attacker's fingerprint library; If there is no attack behavior, determine whether the fingerprint ID included in the attacker's fingerprint library exists in the request traffic. If so, divert the request traffic to the honeypot; if not, divert the request traffic to the real Web system; wherein the honeypot is deployed in the cloud WAF.

2. The honeypot drainage method according to claim 1, characterized in that: Generating a unique fingerprint ID according to the browser fingerprint information includes: The browser fingerprint information is processed by the MD5 algorithm, and the obtained result is used as the fingerprint ID.

3. The honeypot drainage method according to claim 1 or 2, characterized in that: Also includes: If it is determined according to the identification result that the request traffic contains attack behavior or the request traffic contains the fingerprint ID included in the attacker fingerprint library, a warning message is generated.

4. A honeypot drainage device, characterized in that: include: The WAF traffic diversion module is used to send the received request traffic sent to the real Web system to the cloud WAF, so that the cloud WAF can identify whether the request traffic contains attack behavior and generate an identification result; An attack identification module, used to obtain the identification result returned by the cloud WAF, and determine whether the request traffic contains attack behavior according to the identification result; A honey bait implantation module, used for implanting honey bait into the HTML page of the real Web system through nginx and intercepting the request traffic if there is an attack behavior; wherein the honey bait includes a front-end code, which is automatically executed when the attacker's browser renders the HTML page, and is used for collecting the attacker's browser fingerprint information when being executed, and generating a unique fingerprint ID based on the browser fingerprint information, and implanting the fingerprint ID into the attacker's Cookie stored on the user's local terminal; the browser fingerprint information includes: browser version, browser plug-in version, image rendering characteristics, IP address and UA; A fingerprint collection module, used for receiving the fingerprint ID and adding the fingerprint ID to the attacker's fingerprint library; The request diversion module is used to determine whether the fingerprint ID included in the attacker's fingerprint library exists in the request traffic if there is no attack behavior, and if so, divert the request traffic to the honeypot; if not, divert the request traffic to the real Web system; wherein the honeypot is deployed in the cloud WAF.

5. A honeypot drainage device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the honeypot diversion method as claimed in any one of claims 1 to 3 when executing the computer program.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the honeypot diversion method according to any one of claims 1 to 3 are implemented.