A network traffic processing method, device and storage medium
By detecting network traffic characteristics and generating target diversion strategies, network traffic is redirected to appropriate honeypots, which solves the problem of low efficiency of statically deployed honeypots in the face of diverse attacks and improves the attack traffic trapping efficiency of the honeypot system. and network security protection capabilities.
Patent Information
- Application Number
- CN202210065705.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-01-20
AI Technical Summary
Existing statically deployed honeypots have low efficiency in trapping attack traffic when faced with different hacker techniques and vulnerabilities, making it difficult to effectively identify and respond to diverse network attacks.
By detecting the traffic characteristics of network traffic, generate target traffic diversion strategies, redirect network traffic to the corresponding honeypot, use attack behavior detection results and preset access resources to determine the appropriate honeypot, and improve the honeypot system's ability to trap attack traffic. efficiency.
It achieves more efficient identification and trapping of attack traffic, improves the attack traffic trapping efficiency of the honeypot system, enables it to more accurately identify and respond to different types of network attacks, and enhances network security protection capabilities.
Smart Images

Figure CN114500026B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a network traffic processing method, device and storage medium. Background Art
[0002] A honeypot is a virtual system or network that is designed to lure hackers. It can detect, save, and analyze the traces left by hackers on computer systems, and track the whereabouts of hackers at any time, thereby understanding the latest techniques and working ideas used by hackers. By acquiring these skills, you will better understand the threats encountered by network systems and understand how to prevent these threats, thereby gaining the greatest initiative in the war against hackers.
[0003] In the related technology, the main method is to passively wait for the attacker's access by statically deploying honeypot services. In the real hacker penetration process, the business points and technical aspects involved are very wide, and different hackers have different technical means and vulnerabilities. Therefore, the above-mentioned static deployment of honeypot services is less efficient in capturing attack traffic.
[0004] Therefore, how to improve the efficiency of the honeypot system in trapping attack traffic is a technical problem that technicians in this field currently need to solve. Summary of the invention
[0005] The purpose of this application is to provide a network traffic processing method, device and storage medium, which can improve the efficiency of the honeypot system in trapping attack traffic.
[0006] In order to solve the above technical problems, the present application provides a network traffic processing method, which is applied to a security device. The network traffic processing method includes:
[0007] Detecting traffic characteristics of network traffic; wherein the traffic characteristics include attack behavior detection results and / or preset access resources;
[0008] Generate a corresponding target diversion strategy according to the traffic characteristics; wherein the target diversion strategy includes a honeypot corresponding to the traffic characteristics;
[0009] The network traffic is redirected to the corresponding honeypot according to the target diversion strategy.
[0010] Optionally, if the traffic feature includes the attack behavior detection result, and the attack behavior detection result is that an attack behavior exists, generating a corresponding target diversion strategy according to the traffic feature includes:
[0011] Determining an attack feature identifier in the attack behavior detection result;
[0012] The target diversion strategy is generated according to the corresponding relationship between the attack feature identifier and the diversion strategy.
[0013] Optionally, the preset access resource is an idle resource of the target device.
[0014] Optionally, if the traffic feature includes the preset access resource, generating a corresponding target traffic diversion strategy according to the traffic feature includes:
[0015] The target traffic diversion strategy is generated according to the correspondence between the preset access resources and the traffic diversion strategy.
[0016] Optionally, after redirecting the network traffic to a corresponding honeypot according to the target diversion strategy, the method further includes:
[0017] Determining whether a preset access resource corresponding to the honeypot is used;
[0018] If so, the honeypot and / or the target diversion strategy are destroyed.
[0019] Optionally, after generating a corresponding target traffic diversion strategy according to the traffic characteristics, the method further includes:
[0020] Determine whether the target traffic diversion strategy conflicts with the original traffic diversion strategy;
[0021] If so, the original traffic diversion strategy that conflicts with the target traffic diversion strategy is destroyed.
[0022] Optionally, after redirecting the network traffic to a corresponding honeypot according to the target diversion strategy, the method further includes:
[0023] Redirect other network traffic in the same connection as the network traffic to the target honeypot.
[0024] The present application also provides a network traffic processing method, which is applied to a honeypot system, including:
[0025] Receiving network traffic redirected by a target traffic diversion strategy, and collecting, analyzing and / or processing the network traffic;
[0026] Among them, the generation process of the target diversion strategy includes: detecting the traffic characteristics of the network traffic, and generating a corresponding target diversion strategy based on the traffic characteristics; the traffic characteristics include attack behavior detection results and / or preset access resources, and the target diversion strategy includes a honeypot corresponding to the traffic characteristics.
[0027] Furthermore, before receiving the network traffic redirected by the target traffic diversion strategy, the following is also included:
[0028] Receive honeypot configuration information, and configure a corresponding honeypot according to the honeypot configuration information; wherein the honeypot configuration information includes functional sub-modules.
[0029] The present application also provides a network traffic processing device, which is applied to a security device, including:
[0030] A traffic detection module, used to detect traffic characteristics of network traffic; wherein the traffic characteristics include attack behavior detection results and / or preset access resources;
[0031] A strategy generation module, used to generate a corresponding target diversion strategy according to the traffic characteristics; wherein the target diversion strategy includes a honeypot corresponding to the traffic characteristics;
[0032] The traffic redirection module is used to redirect the network traffic to the corresponding honeypot according to the target diversion strategy.
[0033] The present application also provides a network traffic processing device, which is applied to a honeypot system, comprising:
[0034] A traffic processing module, used for receiving network traffic redirected by a target traffic diversion strategy, and collecting, analyzing and / or processing the network traffic;
[0035] Among them, the generation process of the target diversion strategy includes: detecting the traffic characteristics of the network traffic, and generating a corresponding target diversion strategy based on the traffic characteristics; the traffic characteristics include attack behavior detection results and / or preset access resources, and the target diversion strategy includes a honeypot corresponding to the traffic characteristics.
[0036] The present application also provides a storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the above-mentioned network traffic processing method are implemented.
[0037] The present application provides a network traffic processing method, which is applied to security equipment, including: detecting traffic characteristics of network traffic; wherein the traffic characteristics include attack behavior detection results and / or preset access resources; generating a corresponding target diversion strategy based on the traffic characteristics; wherein the target diversion strategy includes a honeypot corresponding to the traffic characteristics; and redirecting the network traffic to the corresponding honeypot according to the target diversion strategy.
[0038] The present application identifies traffic characteristics in network traffic, and generates corresponding target diversion strategies based on the traffic characteristics. The above-mentioned traffic characteristics may include attack behavior detection results to determine whether there is an attack behavior, and may also include the access of network traffic to preset resources. Therefore, the target diversion strategy generated by the present application based on the traffic characteristics can redirect network traffic to the corresponding honeypot, and then actively provide hackers with honeypots with familiar technologies, so that they are trapped in the honeypot, thereby improving the efficiency of the honeypot system in trapping attack traffic. The present application also provides a network traffic processing device and an electronic device, which have the above-mentioned beneficial effects, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] 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.
[0040] Figure 1 A flowchart of a network traffic processing method provided in an embodiment of the present application;
[0041] Figure 2 A schematic diagram of the structure of a web application firewall provided in an embodiment of the present application;
[0042] Figure 3 A schematic diagram of the structure of a network traffic processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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.
[0044] See below Figure 1 , Figure 1 A flowchart of a network traffic processing method provided in an embodiment of the present application, this embodiment may include the following steps:
[0045] S101: Detect traffic characteristics of network traffic.
[0046] Among them, this embodiment can be applied to security devices such as firewalls, security integrated machines, and security routers. Before this step, there may be an operation to obtain the network traffic of the target device.
[0047] Specifically, in the case of communication between a target device and an interactive device interacting with the target device, data packets sent by the target device to the interactive device, or data packets sent by the interactive device to the target device can be referred to as network traffic.
[0048] In this embodiment, the security device can be deployed between the target device and the interactive device that interacts with the target device, such as in a gateway manner. Whether it is a data packet sent from the target device to the interactive device or a data packet sent from the interactive device to the target device, it will pass through the security device, and the security device can intercept the network traffic passing through it.
[0049] In some other embodiments, the security device can also be deployed at the target device in a bypass deployment mode. For example, a plug-in can be installed on the target device, and the plug-in is used to obtain the network traffic of the data packet mirrored between the target device and the interactive device, and send the mirrored network traffic to the security device. Of course, a probe device can also be installed at the exit of the target device, and the probe device is used to obtain the network traffic of the data packet mirrored between the target device and the interactive device, and send the mirrored network traffic to the security device.
[0050] The traffic characteristics are used to describe the characteristic information of the differences between network traffic, and the differences can generate different target diversion strategies accordingly. In this embodiment, the traffic characteristics may include attack behavior detection results and / or preset access resources. Of course, in some other embodiments, the traffic characteristics may also include traffic types, IP addresses of traffic senders, etc., which are not limited here. The above-mentioned traffic types are used to describe the types of network traffic. There may be multiple classification standards for traffic types. For example, traffic types may be divided according to quintuples or service types (such as communication services, data retrieval services, etc.).
[0051] Specifically, this embodiment can perform traffic detection on network traffic in order to identify attack behaviors in the network traffic and obtain attack behavior detection results, and the attack behavior detection results can be used to characterize the attack types suffered by the target device, such as SQL injection attacks, webshell backdoor attacks, etc. Among them, network traffic can be detected by detection engines such as IPS (Intrusion Prevention System), IDS (Intrusion Detection System) and / or WAF (Web Application Firewalls). As a feasible implementation method, the above-mentioned detection engine can use rule detection to identify attack behaviors, and can also use behavioral analysis to identify attack behaviors, and can also use AI intelligent analysis to identify attack behaviors, which is not limited here.
[0052] The security device can also parse the network traffic, for example, parse the network traffic corresponding to the protocol to obtain the corresponding field of the network traffic and obtain the preset access resource. The preset access resource can be an access resource related to the terminal where the network traffic access destination is located, or an access resource related to the target terminal itself.
[0053] In this embodiment, the preset access resource can be preset by the user. The user can be a customer who purchases the security device, or a technician of the manufacturer of the security device, which is not limited here. In some other embodiments, the preset access resource can also be a resource set by the security device according to preset rules. In addition, the preset access resources can be dynamically updated to improve the flexibility of network traffic processing. The above preset rules can be defined by the user. For example, the preset rules can include that the IP address of the preset access resource needs to be within a specific network segment. The preset rules can also include that the frequency of use of the preset access resource is less than the preset frequency (such as 1 time / hour). The preset rules are not specifically limited here.
[0054] S102: Generate a corresponding target traffic diversion strategy according to the traffic characteristics.
[0055] Different traffic characteristics correspond to different target diversion strategies, and the target diversion strategy includes a honeypot corresponding to the traffic characteristics.
[0056] Specifically, different honeypots are pre-set, and in order to increase the trapping effect of the honeypot, different honeypots are set for different traffic characteristics to meet the needs of different types of attackers, and honeypots with technologies familiar to attackers are provided more accurately and proactively, making it easier for them to fall into the honeypot.
[0057] In this embodiment, different honeypots can be pre-set according to different attack types. For example, SQL injection attack corresponds to honeypot A, which is set for the attack method of SQL injection attack; webshell backdoor attack corresponds to honeypot B, which is set for the attack method of webshell backdoor attack, and so on.
[0058] In some other embodiments, different honeypots may be pre-set according to different preset access resources. For example, the URL of the data query webpage corresponds to honeypot C, which is set for the network traffic accessing the URL of the data query webpage; the server port of the finance department corresponds to honeypot D, which is set for the network traffic accessing the server port of the finance department, and so on.
[0059] Among them, this embodiment can identify attack behaviors (such as SQL injection, webshell backdoor, etc.) in network traffic, and then determine the corresponding target diversion strategy based on the attack behavior. The target diversion strategy generated by this embodiment can disguise resources such as customer paths and IP addresses without changing the customer system, and has the characteristics of seamless docking with the customer system and no false alarms. This embodiment can also identify whether the network traffic contains preset access resources, such as URL (uniform resource locator), IP address, port, and can generate a corresponding target diversion strategy if the above preset resources are included.
[0060] S103: redirecting the network traffic to a corresponding honeypot according to the target diversion strategy.
[0061] Among them, this embodiment can set a corresponding honeypot for each diversion strategy. After generating a target diversion strategy, the honeypot corresponding to the target diversion strategy can be determined, and then the target diversion strategy is used to redirect network traffic to the corresponding honeypot, so that the honeypot can trap the traffic of the attack behavior. As a feasible implementation method, this embodiment can use the target diversion strategy to perform HTTP redirection operation on network traffic, so as to divert network traffic to the honeypot corresponding to the target diversion strategy. In some other embodiments, the target diversion strategy can also be used to perform DNAT (Destination Network Address Translation) redirection operation on network traffic, so as to divert network traffic to the honeypot corresponding to the target diversion strategy. After diverting network traffic to the honeypot, this embodiment can use the honeypot to analyze the behavior of network traffic, and then understand the techniques and attack ideas used by network attackers, so as to enhance the protection capabilities of security equipment.
[0062] HTTP redirection includes permanent redirection and temporary redirection. If network traffic is received during the HTTP redirection process, the address information is returned to indicate the new address so that the network traffic can access it according to the new address, thereby redirecting the network traffic to the honeypot. DNAT (Destination Network Address Translation) redirection can map a set of local internal addresses to a set of global addresses. When network traffic accesses the public IP address of the security device, the public IP address of the security device is forwarded to the IP address and port of the back-end intranet. On the surface, the network traffic accesses the public IP address and port of the security device, but actually accesses the IP address and port of the back-end intranet, thereby redirecting the network traffic to the honeypot.
[0063] This embodiment identifies the traffic characteristics in the network traffic and generates a corresponding target diversion strategy based on the traffic characteristics. The above traffic characteristics may include attack behavior detection results to determine whether there is an attack behavior, and may also include the access of network traffic to preset resources. Therefore, the target diversion strategy generated by the traffic characteristics in this embodiment can redirect the network traffic to the corresponding honeypot, and then actively provide the hacker with a honeypot with which he is familiar, so that he is trapped in the honeypot, thereby improving the efficiency of the honeypot system in trapping attack traffic.
[0064] As for Figure 1 Further introduction to the corresponding embodiment, the above-mentioned preset access resources can be idle resources of the target device. The target device refers to the device protected by the security device, and the idle resources refer to the network resources that are not used by the device. Generally, the idle resources will not be used, so normal network traffic will not access the above-mentioned idle resources; however, hackers usually scan all resources of the target device (including normally used resources and idle resources) before attacking, and hacker attacks will attack all the above-mentioned resources in a unified manner. When the idle resources of the target device are clarified, if network traffic accessing idle resources is received, it can usually be regarded as attack traffic. In addition, the security vendor can construct a honeypot based on the idle resources provided by the user. When the security device detects network traffic accessing idle resources, it can directly divert the network traffic to the corresponding honeypot so that the hacker's access behavior does not cause any impact on the user's real business system.
[0065] As for Figure 1 For further introduction of the corresponding embodiment, the traffic characteristics may include attack behavior detection results and / or preset access resources. The following describes how to generate a target diversion strategy if the traffic characteristics include attack behavior detection results and if the traffic characteristics include preset access resources:
[0066] Scenario 1: If the traffic characteristics include attack behavior detection results, determine whether the attack behavior detection results indicate the presence of attack behavior. If there is no attack behavior, the network traffic can be released. If the attack behavior detection result indicates the presence of attack behavior, the target diversion strategy can be generated in the following manner: determine the attack feature identifier in the attack behavior detection result; generate the target diversion strategy based on the correspondence between the attack feature identifier and the diversion strategy. In this embodiment, an attack feature identifier uniquely corresponding to each attack behavior can be pre-set, and the attack feature identifier is used to distinguish different attack behaviors. In the above manner, a target diversion strategy can be generated for network traffic with attack behavior, and then the target diversion strategy can be used to redirect the network traffic to the honeypot to prevent the network traffic from attacking the device. The present application generates the target diversion strategy based on the correspondence between the attack feature identifier of the network traffic and the diversion strategy, and can provide a honeypot that matches the attack behavior of the network traffic, so that the network traffic is trapped in the honeypot, thereby improving the honeypot trapping effect.
[0067] Scenario 2: If the traffic characteristics include the preset access resources, the corresponding target diversion strategy can be generated in the following manner: the target diversion strategy is generated according to the correspondence between the preset access resources and the diversion strategy. The above-mentioned target diversion strategy includes a honeypot corresponding to the traffic characteristics. The preset access resources may be idle resources or resources that are frequently attacked by network attack traffic (the attack frequency is greater than a preset value, such as 10 times / hour). When the network traffic accesses the above-mentioned preset access resources, it means that the network traffic may be traffic related to a network attack. The target diversion strategy can be generated according to the correspondence between the preset access resources and the diversion strategy. The present application generates the target diversion strategy according to the correspondence between the resources accessed by the network traffic and the diversion strategy, and can provide a honeypot that matches the resources accessed by the network traffic, so that the network traffic is trapped in the honeypot, thereby improving the honeypot trapping effect.
[0068] Scenario 3: If the traffic characteristics include attack behavior detection results and preset access resources, the detection methods in scenarios 1 and 2 can be used to generate target diversion strategies. If the honeypots corresponding to the target diversion strategies generated in scenarios 1 and 2 are not the same honeypot, the network traffic can be copied and the same network traffic can be input into the two honeypots respectively. In the above method, the network traffic can be analyzed through two honeypots, which improves the comprehensiveness of the honeypot trapping results. Of course, in this scenario, one honeypot can also be selected from the two honeypots according to the preset selection rules for network traffic redirection. The above preset selection rules can be load balancing principle, time priority principle, etc. Under the load balancing principle, the honeypot with the smallest load can be selected for network traffic redirection to balance the business pressure between the honeypots. Under the time priority principle, the honeypot with the most recent creation time can be selected for network traffic redirection; the honeypot with the closest creation time has a stronger intelligence collection capability, so selecting a honeypot based on the time priority principle can improve the honeypot trapping effect.
[0069] As for Figure 1Further introduction to the corresponding embodiment, after redirecting the network traffic to the corresponding honeypot according to the target diversion strategy, it can also be determined whether the preset access resource corresponding to the honeypot is used; if so, the honeypot and / or the target diversion strategy are destroyed. The preset access resource can be an idle resource or a resource with a low utilization rate. Since hackers will attack all resources in the device, when it is detected that the network traffic accesses the preset access resource, the network traffic can be determined to be attack traffic. When the preset access resource is used, there will be normal network traffic accessing the preset resource. If the honeypot and / or the target diversion strategy are not destroyed in time, an attack object will be detected. The present application redirects the network traffic to the corresponding honeypot according to the target diversion strategy, and can periodically detect whether the preset access resource corresponding to the honeypot is used, and then the honeypot and the target diversion strategy can be adjusted in time, thereby improving the reliability of network traffic processing.
[0070] As for Figure 1 Further introduction to the corresponding embodiment, the security device can process a large amount of network traffic for a long time, so there may be a situation where the traffic characteristics of the diversion strategies generated successively are the same but the corresponding honeypots are different, and there is a conflict between the two diversion strategies. This embodiment can destroy the original diversion strategy that conflicts with the target diversion strategy after determining that the target diversion strategy conflicts with the original diversion strategy. For example, on January 12, the security device detected a SQL injection attack and used diversion strategy 1 to redirect the network traffic of the SQL injection attack to honeypot A; the staff found that honeypot A did not fully collect attack intelligence on the SQL injection attack, so when the same SQL injection attack was detected again on January 15, diversion strategy 2 was used to redirect the network traffic of the SQL injection attack to honeypot B; in order to avoid network traffic redirection errors, diversion strategy 1 can be destroyed after diversion strategy 2 is generated. The above method can avoid the conflicting diversion strategies from redirecting network traffic to the wrong honeypot, thereby improving the accuracy of honeypot entrapment traffic.
[0071] As for Figure 1 Further introduction to the corresponding embodiment, after redirecting the network traffic to the corresponding honeypot according to the target diversion strategy, it can also be determined whether all subsequent attack traffic of the attack behavior is redirected to the target honeypot; if so, destroy the target diversion strategy to release the resources corresponding to the target diversion strategy. In the above manner, after redirecting the network traffic to the corresponding honeypot according to the target diversion strategy, all network traffic in the same connection does not need to be executed. Figure 1The detection process described in the corresponding embodiment can directly redirect other network traffic in the same connection as the network traffic to the honeypot, thereby speeding up the diversion efficiency. That is to say, this embodiment can divert all network traffic in the same connection to the same honeypot, and the honeypot can be the honeypot to which the first network traffic of the link is redirected. For example, based on the network traffic A1, a target diversion strategy is generated, and A1 can be redirected to the honeypot B corresponding to the target diversion strategy; the connection where A1 is located is C, and there are other network traffic A2, A3, ...An in connection C. At this time, it is not necessary to execute Figure 1 The operations of S101 to S103 of the corresponding embodiment are as follows, but A2, A3, ... An are directly redirected to the honeypot B.
[0072] An embodiment of the present application also provides a network traffic processing method, which is applied to a honeypot system. In the network traffic processing method, network traffic redirected by a target diversion strategy can be received, and the network traffic can be collected, analyzed and / or processed.
[0073] The above-mentioned network traffic can be network traffic redirected by the security device using a target diversion strategy. The process of the security device generating a target diversion strategy includes: detecting the traffic characteristics of the network traffic, and generating a corresponding target diversion strategy based on the traffic characteristics; the traffic characteristics include attack behavior detection results and / or preset access resources, and the target diversion strategy includes a honeypot corresponding to the traffic characteristics.
[0074] In this embodiment, the honeypot system receives network traffic redirected by the target diversion strategy, and the target diversion strategy is determined according to the traffic characteristics of the network traffic. The above-mentioned traffic characteristics may include attack behavior detection results to determine whether there is an attack behavior, and may also include the access of network traffic to preset resources. Therefore, the target diversion strategy generated according to the traffic characteristics in this embodiment can redirect network traffic to the corresponding honeypot, and then actively provide the hacker with a honeypot with which he is familiar, so that he is trapped in the honeypot, thereby improving the efficiency of the honeypot system in trapping attack traffic.
[0075] Furthermore, before receiving the network traffic redirected by the target diversion strategy, the honeypot configuration information can also be received, and the corresponding honeypot can be configured according to the honeypot configuration information; wherein the honeypot configuration information includes functional submodules. As mentioned above, the honeypot configuration information can be selected by the user using the honeypot, or by the technical experts in the security manufacturer selling security detection equipment. The honeypot configuration information contains the security capabilities that the honeypot is expected to carry (such as attack detection functional submodule, source tracing functional submodule, counter-function submodule and / or vulnerability analysis submodule, etc.), and the above honeypot configuration information can be used to configure honeypots with different capabilities to make the honeypot more in line with the hacker's attack method. The attack detection functional submodule can detect the attack type and threat level of the network traffic, the source tracing functional submodule can trace the original initiator of the attack traffic, the counter-function submodule is used to reversely attack the (hacker) attacker through technical means, and the vulnerability analysis submodule is used to determine the location in the device that is vulnerable to the network traffic attack (such as unpatched software, services that have not been added with authentication, etc.). Through the above method, the functions of the honeypot can be personalized according to actual needs, and the honeypot's ability to handle attack traffic can be improved.
[0076] The above-mentioned attack detection function submodule can be implemented by rule-based detection technology, behavior analysis detection technology, and AI intelligent analysis detection technology. In some other embodiments, it can also be implemented by other types of detection technology, which is not limited here. Among them, the rule-based detection technology includes: extracting different rules according to a certain type of attack, matching the network traffic with each rule when receiving the network traffic, and determining the attack information corresponding to the network traffic; the behavior analysis detection technology includes: extracting the behavior characteristics of the network traffic (such as the size of the upstream traffic, the size of the downstream traffic, the packet sending rate, the packet sending detection and / or the packet size, etc.) when receiving the network traffic, and identifying the attack information corresponding to the network traffic through the behavior characteristics; the AI intelligent analysis detection technology includes: extracting the characteristic information of the network traffic (which may include behavior characteristics, static five-tuple information, static protocol information, etc.) when receiving the network traffic, and sending the characteristic information to the pre-trained AI model to identify the attack information corresponding to the network traffic.
[0077] The above-mentioned counter-function submodule can be implemented by setting a bait file. For example, the bait file contains a counter-action code. When a hacker accesses the bait file, the counter-action code can actively send virus information to the hacker's host, so that the hacker's host is infected with the virus and achieve the effect of reverse attack.
[0078] The above-mentioned tracing function submodule can be implemented by identifying the nodes where network traffic flows. It can identify the end that initiates the attack by identifying all nodes where network traffic flows and the direction of network traffic flow. For example, the hacker's host A uses host B to attack the user's host C. In this case, the network traffic flow direction is: A->B->C, and the attacker can be located as host A.
[0079] The above-mentioned vulnerability analysis submodule can be implemented by vulnerability scanning and / or weak password detection, etc., which will not be described in detail here.
[0080] The process described in the above embodiment is explained below through an embodiment in actual application.
[0081] In the development of honeypot technology, defenders disguise honeypots around business environments to achieve more possible access to the honeypot. In order to increase the number of attacks that the honeypot can capture, it is necessary to use trapping technology other than honeypot technology to increase the probability of accessing the honeypot.
[0082] Trapping technology involves static deployment of honeypot services, passively waiting for attackers to access, and the deployment form is single, and there is basically no change after one deployment. In the real hacker penetration process, the business points and technical aspects involved are very wide, and different hackers have different technical means and vulnerabilities. How to more accurately and proactively provide honeypots corresponding to the technologies familiar to hackers and make them fall into the honeypot requires a more effective entrapment mechanism.
[0083] In order to solve the defects of the above trapping mechanism, the present application provides a honeypot trapping solution based on active diversion, which can provide an active diversion method on the basis of statically deployed honeypots to satisfy different attackers, increase the efficiency of honeypot trapping, and protect the security of target assets. In this embodiment, the honeypot trapping solution based on active diversion can be implemented based on a web application firewall WAF (Web Application Firewall), which is a device deployed at the network boundary and based on network traffic detection technology. The web application firewall can include a traffic detection system, a policy generation system, a honeypot system, and a customer resource detection module. Please refer to Figure 2 , Figure 2 A schematic diagram of the structure of a web application firewall provided in an embodiment of the present application.
[0084] Traffic detection system is a detection system deployed in the business network. It detects the traffic in the network, detects and identifies the attack behavior in the traffic, and generates corresponding key information (i.e., attack feature identification) based on the attack behavior. Products with traffic detection systems include but are not limited to IPS (Intrusion Prevention System), IDS (Intrusion Detection System), WAF (Web Application Firewalls) and other detection engines. The detection technology of the traffic detection system includes but is not limited to rule-based detection technology, behavior analysis detection technology, AI intelligent analysis detection technology, etc.
[0085] The policy generation system can generate traffic diversion strategies based on DNAT or based on disguised URLs. The traffic diversion strategies generated by the policy generation system include those based on virtual URLs, virtual IP addresses, real IP addresses, virtual ports, or real ports. The policy generation system generates a traffic diversion strategy for the corresponding technology based on the key information in the attack traffic identified by the detection system. The traffic diversion strategy guides subsequent attack traffic into the corresponding honeypot system through DNAT.
[0086] The honeypot system is a honeypot trapping system, which includes honeypots for various system services, honeypots for disguised services, and attack detection function submodules, tracing function submodules, countermeasure function submodules and / or vulnerability analysis submodules.
[0087] This embodiment implements a trapping mechanism for dealing with different attacks, which can automatically generate strategies for different attacks, actively lead them to the associated honeypot, and match a more suitable honeypot according to the attacker's tactics. In this way, it is easier for the attacker to indulge in the honeypot corresponding to the technology he is familiar with, and the automatic addition of strategies avoids the need for human intervention, greatly saving operation and maintenance costs.
[0088] See also Figure 3 , Figure 3 A schematic diagram of the structure of a network traffic processing device provided in an embodiment of the present application, which can be applied to security equipment, specifically includes:
[0089] The flow detection module 301 is used to detect the flow characteristics of network flow; wherein the flow characteristics include attack behavior detection results and / or preset access resources;
[0090] A strategy generation module 302 is used to generate a corresponding target diversion strategy according to the traffic characteristics; wherein the target diversion strategy includes a honeypot corresponding to the traffic characteristics;
[0091] The traffic redirection module 303 is used to redirect the network traffic to the corresponding honeypot according to the target diversion strategy.
[0092] This embodiment identifies the traffic characteristics in the network traffic and generates a corresponding target diversion strategy based on the traffic characteristics. The above traffic characteristics may include attack behavior detection results to determine whether there is an attack behavior, and may also include the access of network traffic to preset resources. Therefore, the target diversion strategy generated by the traffic characteristics in this embodiment can redirect the network traffic to the corresponding honeypot, and then actively provide the hacker with a honeypot with which he is familiar, so that he is trapped in the honeypot, thereby improving the efficiency of the honeypot system in trapping attack traffic.
[0093] Furthermore, if the traffic characteristics include the attack behavior detection results, and the attack behavior detection results are that there is an attack behavior, the strategy generation module 302 is used to determine the attack feature identifier in the attack behavior detection results; and is also used to generate the target diversion strategy based on the correspondence between the attack feature identifier and the diversion strategy.
[0094] Furthermore, the preset access resource is an idle resource of the target device.
[0095] Furthermore, if the traffic feature includes the preset access resource, the strategy generation module 302 is used to generate the target diversion strategy according to the corresponding relationship between the preset access resource and the diversion strategy.
[0096] Furthermore, it also includes:
[0097] The first destruction management module is used to determine whether the preset access resource corresponding to the honeypot is used after redirecting the network traffic to the corresponding honeypot according to the target diversion strategy; if so, destroy the honeypot and / or the target diversion strategy.
[0098] Furthermore, it also includes:
[0099] The destruction management module is used to determine whether there is a conflict between the target diversion strategy and the original diversion strategy after generating the corresponding target diversion strategy according to the traffic characteristics; if so, the original diversion strategy that conflicts with the target diversion strategy is destroyed.
[0100] Furthermore, it also includes:
[0101] The subsequent browsing processing module is used to redirect other network traffic in the same connection as the network traffic to the target honeypot after redirecting the network traffic to the corresponding honeypot according to the target diversion strategy.
[0102] 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.
[0103] The embodiment of the present application also provides a network traffic processing device, which is applied to a honeypot system, including:
[0104] A traffic processing module, used for receiving network traffic redirected by a target traffic diversion strategy, and collecting, analyzing and / or processing the network traffic;
[0105] Among them, the generation process of the target diversion strategy includes: detecting the traffic characteristics of the network traffic, and generating a corresponding target diversion strategy based on the traffic characteristics; the traffic characteristics include attack behavior detection results and / or preset access resources, and the target diversion strategy includes a honeypot corresponding to the traffic characteristics.
[0106] Furthermore, it also includes:
[0107] A configuration module is used to receive honeypot configuration information before receiving network traffic redirected by a target diversion strategy, and configure a corresponding honeypot according to the honeypot configuration information; wherein the honeypot configuration information includes a functional sub-module.
[0108] The present application also provides a storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0109] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred 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 be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this 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 this application.
[0110] 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 "comprises", "comprising" 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 "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A network traffic processing method, characterized in that: Applications in safety equipment, including: Detecting traffic characteristics of network traffic; wherein the traffic characteristics include attack behavior detection results and preset access resources; the security device is deployed between the target device and the interactive device, and the network traffic is the network traffic transmitted between the target device and the interactive device intercepted by the security device; Generate a corresponding target diversion strategy according to the traffic characteristics; wherein the target diversion strategy includes a honeypot corresponding to the traffic characteristics; Redirecting the network traffic to the corresponding honeypot according to the target diversion strategy; The corresponding target diversion strategy is generated according to the traffic characteristics, including: Determining an attack feature identifier in the attack behavior detection result; Generating the target diversion strategy according to the corresponding relationship between the attack feature identifier and the diversion strategy; Generating the target traffic diversion strategy according to the correspondence between the preset access resources and the traffic diversion strategy; Wherein, redirecting the network traffic to the corresponding honeypot according to the target diversion strategy includes: If the honeypots corresponding to the generated target diversion strategy are not the same honeypot, a honeypot with the smallest load or the most recent creation time is selected from the two honeypots according to a preset selection principle to redirect network traffic.
2. The network traffic processing method according to claim 1, characterized in that: The preset access resource is an idle resource of the target device.
3. The network traffic processing method according to claim 1, characterized in that: After redirecting the network traffic to the corresponding honeypot according to the target diversion strategy, the method further includes: Determining whether a preset access resource corresponding to the honeypot is used; If so, the honeypot and / or the target diversion strategy are destroyed.
4. The network traffic processing method according to claim 1, characterized in that: After generating a corresponding target traffic diversion strategy according to the traffic characteristics, the method further includes: Determine whether the target traffic diversion strategy conflicts with the original traffic diversion strategy; If so, the original traffic diversion strategy that conflicts with the target traffic diversion strategy is destroyed.
5. The network traffic processing method according to any one of claims 1 to 4, characterized in that: After redirecting the network traffic to the corresponding honeypot according to the target diversion strategy, the method further includes: Redirecting other network traffic in the same connection as the network traffic to the corresponding honeypot.
6. A network traffic processing method, characterized in that: Applied to honeypot system, including: Receiving network traffic redirected by a target traffic diversion strategy, and collecting, analyzing and / or processing the network traffic; The process of generating the target diversion strategy includes: detecting the traffic characteristics of the network traffic, and generating a corresponding target diversion strategy according to the traffic characteristics; the traffic characteristics include attack behavior detection results and preset access resources, and the target diversion strategy includes a honeypot corresponding to the traffic characteristics; the network traffic is the network traffic transmitted between the target device and the interactive device intercepted by the security device, and the security device is deployed between the target device and the interactive device; The corresponding target diversion strategy is generated according to the traffic characteristics, including: Determining an attack feature identifier in the attack behavior detection result; Generating the target diversion strategy according to the corresponding relationship between the attack feature identifier and the diversion strategy; Generating the target traffic diversion strategy according to the correspondence between the preset access resources and the traffic diversion strategy; Wherein, redirecting the network traffic to the corresponding honeypot according to the target diversion strategy includes: If the honeypots corresponding to the generated target diversion strategy are not the same honeypot, a honeypot with the smallest load or the most recent creation time is selected from the two honeypots according to a preset selection principle to redirect network traffic.
7. The network traffic processing method according to claim 6, characterized in that: Before receiving the network traffic redirected by the target traffic diversion strategy, it also includes: Receive honeypot configuration information, and configure a corresponding honeypot according to the honeypot configuration information; wherein the honeypot configuration information includes functional sub-modules.
8. A network traffic processing device, characterized in that: Applications in safety equipment, including: A traffic detection module, used to detect traffic characteristics of network traffic; wherein the traffic characteristics include attack behavior detection results and preset access resources; the security device is deployed between the target device and the interactive device, and the network traffic is the network traffic transmitted between the target device and the interactive device intercepted by the security device; A strategy generation module, used to generate a corresponding target diversion strategy according to the traffic characteristics; wherein the target diversion strategy includes a honeypot corresponding to the traffic characteristics; A traffic redirection module, used to redirect the network traffic to a corresponding honeypot according to the target diversion strategy; Among them, the process of the strategy generation module generating the corresponding target diversion strategy according to the traffic characteristics includes: determining the attack feature identifier in the attack behavior detection result; generating the target diversion strategy according to the corresponding relationship between the attack feature identifier and the diversion strategy; generating the target diversion strategy according to the corresponding relationship between the preset access resource and the diversion strategy; Among them, the process of the traffic redirection module redirecting the network traffic to the corresponding honeypot according to the target diversion strategy includes: if the honeypot corresponding to the generated target diversion strategy is not the same honeypot, then according to the preset selection principle, a honeypot with the smallest load or the most recent creation time is selected from the two honeypots to redirect the network traffic.
9. A network traffic processing device, characterized in that: Applied to honeypot system, including: A traffic processing module, used for receiving network traffic redirected by a target traffic diversion strategy, and collecting, analyzing and / or processing the network traffic; The process of generating the target diversion strategy includes: detecting the traffic characteristics of the network traffic, and generating a corresponding target diversion strategy according to the traffic characteristics; the traffic characteristics include attack behavior detection results and preset access resources, and the target diversion strategy includes a honeypot corresponding to the traffic characteristics; the network traffic is the network traffic transmitted between the target device and the interactive device intercepted by the security device, and the security device is deployed between the target device and the interactive device; The corresponding target diversion strategy is generated according to the traffic characteristics, including: Determining an attack feature identifier in the attack behavior detection result; Generating the target diversion strategy according to the corresponding relationship between the attack feature identifier and the diversion strategy; Generating the target traffic diversion strategy according to the correspondence between the preset access resources and the traffic diversion strategy; Wherein, redirecting the network traffic to the corresponding honeypot according to the target diversion strategy includes: If the honeypots corresponding to the generated target diversion strategy are not the same honeypot, a honeypot with the smallest load or the most recent creation time is selected from the two honeypots according to a preset selection principle to redirect network traffic.
10. A storage medium, characterized in that: The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the network traffic processing method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Network attack detection method and apparatus
CN104967629A
Server camouflage method and system based on robot learning
CN107332823A
Network defense method and system based on honey pot technology
CN107707576A
Network attack judgement method and network attack judgement apparatus
CN108183884A
Method, device, storage medium and electronic device for defending data stream attack
CN109257326A
