Data processing method, communication device and communication equipment

By using the first identifier in the security protection device to distinguish target traffic and test traffic, only security alarms for target traffic are generated, which solves the problem of too many security alarms in penetration testing, improves security and efficiency, and reduces security risks.

CN118740408APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310365199.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

There are too many security alarms triggered during the penetration testing process, which results in an overburden of troubleshooting and confirmation work for operation and maintenance personnel, and it is difficult for existing technology to effectively filter and reduce security risks.

Method used

By introducing the first identifier into the security protection equipment, target traffic and test traffic are distinguished, security alarms are generated only for traffic that does not carry the first identifier, and the validity of the first identifier is limited within the validity period to reduce the risk of leakage.

Benefits of technology

It effectively filters security alarms triggered during penetration testing, reduces the workload of operation and maintenance personnel, improves the security and efficiency of penetration testing, and reduces security risks caused by filtering alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740408A_ABST
    Figure CN118740408A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, a communication device and communication equipment. The security protection device obtains the first identifier, determines a target traffic from the received traffic, and only feeds back a security alarm for the target traffic, and the target traffic is the traffic which does not carry the first identifier in the traffic. In the application, the first identifier can be used for identifying the traffic for executing the security test, and the security protection device does not feed back the security alarm for the traffic carrying the first identifier, so that the security alarm triggered in the security test process is effectively filtered, and the possibility of potential safety hazards brought to the network due to filtering of the security alarm is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data processing method, a communication device and a communication equipment. Background Art

[0002] Penetration testing refers to the process whereby testers use various means to test a specific network from different locations (such as from the intranet or the extranet) in order to discover and exploit loopholes in the system, and then output a penetration test report and submit it to the network owner. Based on the penetration test report provided by the tester, the network owner can clearly understand the security risks and problems in the network.

[0003] The attack traffic initiated by testers can trigger multiple types of security alerts, and the security alerts triggered during the penetration test will greatly increase the troubleshooting and confirmation work of operation and maintenance personnel. Summary of the invention

[0004] The present application provides a data processing method, a communication device and a communication equipment, which can effectively filter the security alarms triggered by the penetration testing process, reducing the investigation and confirmation work of operation and maintenance personnel.

[0005] In the first aspect, the present application provides a data processing method. The data processing method of the present application is executed by a security protection device. The security protection device can be a chip, a chip system, or a processor that supports the security protection device to implement the method, or a logical node, a logical module, or software that can implement all or part of the functions of the security protection device. The security protection device obtains a first identifier; the security protection device obtains traffic. Generally speaking, during the penetration test, the traffic received by the security protection device, in addition to the traffic used to perform the penetration test, also includes traffic that is not used to perform the penetration test, that is, the target traffic. In the present application, the security protection device determines the target traffic from the received traffic and only feeds back security alerts for the target traffic, wherein the target traffic is the traffic that does not carry the first identifier.

[0006] In the present application, the traffic used to execute the penetration testing process will carry a first identifier, so that only security alerts for traffic that does not carry the first identifier can be fed back, and there is no need to feed back security alerts for traffic that carries the first identifier. This can effectively filter the security alerts triggered by the penetration testing process, reducing the troubleshooting and confirmation work of operation and maintenance personnel.

[0007] Based on the first aspect, in an optional implementation, the test device sends a test request to the security protection device, the security protection device generates a first identifier according to the test request, and then sends the first identifier to the test device. The security protection device generates the first identifier, which can effectively reduce the risk of leakage of the first identifier and improve the security during the penetration test.

[0008] Based on the first aspect, in an optional implementation, the test device generates a first identifier, then carries the first identifier in a test request, and sends the test request to the security protection device. Alternatively, in a scenario where the controller sends a test request to the security protection device, the controller generates a first identifier, then carries the first identifier in a test request, and sends the test request to the security protection device, and the controller also needs to send the first identifier to the test device. Thus, the test device and the security protection device determine the first identifier corresponding to this penetration test. The security protection device does not need to calculate or configure the first identifier, thereby reducing the computing load of the security protection device.

[0009] Based on the first aspect, in an optional implementation, the security protection device can also obtain the test time corresponding to the first identifier, and the test time indicates the effective time of the first identifier. Then, the security protection device will only feedback the security alarm for the target traffic during the test time. If it is not during the test time, the security protection device will feedback all the security alarms corresponding to the traffic it receives. By configuring the test time corresponding to the first identifier, the effective time of the first identifier can be flexibly limited, thereby reducing the risk of the first identifier being exploited by other attack traffic after it is subsequently leaked, thereby improving the security of the penetration test.

[0010] Based on the first aspect, in an optional implementation, the test device carries the first identifier in a specified field in the message of the traffic. After receiving the traffic, the security protection device obtains the value of the specified field in the message of the traffic, and matches the value of the specified field with the configured first identifier. If the match is successful, it is determined that the traffic carries the first identifier. If the match fails, it is determined that the traffic does not carry the first identifier and the traffic is the target traffic, so that only the security alarm for the target traffic can be fed back.

[0011] Based on the first aspect, in an optional implementation, the above-mentioned designated field is pre-configured, or the identifier corresponding to the designated field can also be carried in the test request, thereby notifying the security protection device.

[0012] Based on the first aspect, in an optional implementation, the security protection device only feeds back security alerts for target traffic, which means that the security protection device first identifies traffic that does not carry the first identifier as target traffic, and then only performs security detection on the target traffic, obtains security alerts for the target traffic, and feeds back security alerts for the target traffic. For traffic that carries the first identifier, the security protection device does not need to perform security detection, which reduces the resource overhead of the security protection device and improves the efficiency of penetration testing.

[0013] Based on the first aspect, in an optional implementation, the security protection device only feeds back security alerts for target traffic, which means that the security protection device will perform security checks on all received traffic and obtain security alerts for these traffic. Then, the security protection device identifies traffic that does not carry the first identifier as target traffic, selects security alerts for target traffic from the security alerts for the traffic, and feeds back security alerts for the target traffic. The security protection device will perform security checks on all received traffic, thereby improving security during the penetration test.

[0014] Based on the first aspect, in an optional implementation, the security protection device performs security detection on all received traffic and generates corresponding security alerts. The security alerts for the traffic include security alerts for test traffic, wherein the test traffic is traffic carrying a first identifier. Although the security protection device generates a security alert for the test traffic, since the test traffic is used to perform penetration testing and is not real attack traffic, the security protection device can release the test traffic, that is, the security protection device does not need to intercept the test traffic. As a result, the security protection device does not need to shut down the function of intercepting traffic in order to perform penetration testing, thereby improving the security during the penetration test. Therefore, the security protection device can continue to intercept the target traffic that generates a security alert.

[0015] Based on the first aspect, in an optional implementation, the security protection device receives a test end request, and the test end request indicates that the first identifier has expired. After the security protection device receives the test end request, if there is traffic carrying the expired first identifier that arrives at the security protection device later, the security protection device will determine the traffic carrying the expired first identifier as the target traffic, that is, the target traffic also includes the traffic carrying the expired first identifier. Through the test end request, the first identifier can be invalidated in a timely manner, thereby reducing the risk of the first identifier being exploited by other attack traffic after it is subsequently leaked, thereby improving the security of the penetration test.

[0016] In the second aspect, the present application provides a data processing method. The data processing method of the present application is executed by a test device, which may be a chip, a chip system, or a processor that supports the security protection device to implement the method, or a logical node, a logical module, or software that can implement all or part of the functions of the test device. The test device determines a first identifier; triggers the sending of test traffic, the test traffic includes a first identifier, and the first identifier enables the security protection device to only feedback security alerts for target traffic in the acquired traffic, the traffic includes test traffic and target traffic, and the target traffic does not carry traffic with the first identifier.

[0017] The information interaction and execution process and other contents of the embodiment shown in this aspect are based on the same concept as the embodiment shown in the first aspect. Therefore, for the description of the beneficial effects shown in this aspect, please refer to the above-mentioned first aspect, and the details will not be repeated here.

[0018] Based on the second aspect, in an optional implementation manner, the method further includes:

[0019] Sending a test request, where the test request is used to trigger the safety protection device to generate a first identifier;

[0020] A first identification is received from a safety protection device.

[0021] Based on the second aspect, in an optional implementation manner, the method further includes:

[0022] A test request is sent, where the test request includes a first identifier.

[0023] Based on the second aspect, in an optional implementation manner, the method further includes:

[0024] The test time corresponding to the first identifier is obtained, where the test time is used to indicate the valid time of the first identifier.

[0025] Based on the second aspect, in an optional implementation manner, the method further includes:

[0026] A test end request is sent, where the test end request indicates that the first identifier has expired.

[0027] In a third aspect, the present application provides a communication device, which may be, for example, a security protection device, or a chip, a chip system, or a processor that supports the security protection device to implement the above method, or a logical node, a logical module, or software that can implement all or part of the functions of the security protection device. The communication device includes:

[0028] A transceiver unit, used to obtain a first identifier;

[0029] The transceiver unit is also used to obtain traffic;

[0030] The processing unit is used to feedback a security alarm only for target traffic, where the target traffic is traffic that does not carry the first identifier.

[0031] The information interaction and execution process and other contents of the embodiment shown in this aspect are based on the same concept as the embodiment shown in the first aspect. Therefore, for the description of the beneficial effects shown in this aspect, please refer to the above-mentioned first aspect, and the details will not be repeated here.

[0032] Based on the third aspect, in an optional implementation, the transceiver unit is further used to receive a test request and generate a first identifier according to the test request.

[0033] Based on the third aspect, in an optional implementation, in response to the test request, the transceiver unit is further configured to send a first identifier.

[0034] Based on the third aspect, in an optional implementation, the transceiver unit is further used to receive a test request, and the test request includes a first identifier.

[0035] Based on the third aspect, in an optional implementation manner, the transceiver unit is further used to obtain a test time corresponding to the first identifier;

[0036] The processing unit is specifically used to feedback only security alarms for target traffic within the test time.

[0037] Based on the third aspect, in an optional implementation manner, the processing unit is specifically configured to:

[0038] Determine the traffic packets;

[0039] Extract the value of the specified field of the message;

[0040] Determine the target flow rate according to the matching result between the value and the first identifier;

[0041] Only security alerts for target traffic are fed back.

[0042] Based on the third aspect, in an optional implementation, the designated field is preconfigured, or the test request includes an identifier of the designated field.

[0043] Based on the third aspect, in an optional implementation manner, the processing unit is specifically configured to:

[0044] Only perform security checks on target traffic and obtain security alerts for target traffic;

[0045] Feedback security alerts for target traffic.

[0046] Based on the third aspect, in an optional implementation manner, the processing unit is specifically configured to:

[0047] Conduct security checks on traffic and obtain security alerts for traffic;

[0048] Based on the first identifier, obtaining a security alert for the target traffic from the security alerts for the traffic;

[0049] Feedback security alerts for target traffic.

[0050] Based on the third aspect, in an optional implementation manner, the traffic security alert includes a security alert for test traffic, where the test traffic is traffic including a first identifier in the traffic,

[0051] The processing unit is also used to release test traffic.

[0052] Based on the third aspect, in an optional implementation manner, the transceiver unit is further configured to receive a test end request, where the test end request indicates that the first identifier has expired;

[0053] In response to receiving the test end request, the processing unit is further configured to determine that the target traffic also includes traffic carrying the first identifier.

[0054] In a fourth aspect, the present application provides a communication device, which may be, for example, a test device, or a chip, a chip system, or a processor that supports the test device to implement the above method, or a logical node, a logical module, or software that can implement all or part of the test device functions. The communication device includes:

[0055] A processing unit, configured to determine a first identifier;

[0056] A transceiver unit is used to trigger the sending of test traffic, the test traffic includes a first identifier, the first identifier enables the security protection device to only feedback security alarms for target traffic in the acquired traffic, the traffic includes test traffic and target traffic, and the target traffic does not carry traffic with the first identifier.

[0057] The information interaction and execution process and other contents of the embodiment shown in this aspect are based on the same concept as the embodiment shown in the second aspect. Therefore, for the description of the beneficial effects shown in this aspect, please refer to the above-mentioned second aspect, and the details will not be repeated here.

[0058] Based on the fourth aspect, in an optional implementation manner, the transceiver unit is further used to send a test request, where the test request is used to trigger the safety protection device to generate a first identifier;

[0059] The transceiver unit is also used to receive the first identification from the safety protection device.

[0060] Based on the fourth aspect, in an optional implementation manner,

[0061] The transceiver unit is further used to send a test request, where the test request includes a first identifier.

[0062] Based on the fourth aspect, in an optional implementation, the transceiver unit is further used to obtain a test time corresponding to the first identifier, and the test time is used to indicate a valid time of the first identifier.

[0063] Based on the fourth aspect, in an optional implementation, the transceiver unit is further used to send a test end request, where the test end request indicates that the first identifier has expired.

[0064] In a fifth aspect, an embodiment of the present application provides a communication device, comprising: a processor, the processor is coupled to a memory, the memory is used to store instructions, when the instructions are executed by the processor, the device implements the method in the above-mentioned first aspect, or any possible implementation of the first aspect.

[0065] In a sixth aspect, an embodiment of the present application provides a communication device, comprising: a processor, the processor is coupled to a memory, the memory is used to store instructions, when the instructions are executed by the processor, the device implements the method in the above-mentioned second aspect, or any possible implementation of the second aspect.

[0066] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having instructions stored thereon, which, when executed, causes a computer to execute the method in the above-mentioned first aspect, or any possible implementation of the first aspect.

[0067] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium having instructions stored thereon, which, when executed, causes a computer to execute the method in the above-mentioned second aspect, or any possible implementation of the second aspect.

[0068] In a ninth aspect, an embodiment of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, it enables the computer to execute the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0069] In a tenth aspect, an embodiment of the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned second aspect or any possible implementation manner of the second aspect.

[0070] In the eleventh aspect, an embodiment of the present application provides a chip, comprising: a processor, the processor is coupled to a memory, the memory is used to store instructions, when the instructions are executed by the processor, the chip implements the method in the above-mentioned first aspect, the second aspect, any possible implementation of the first aspect, or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 A schematic diagram of a penetration test provided in an embodiment of the present application;

[0072] Figure 2 A possible scenario diagram of the data processing method in the embodiment of the present application;

[0073] Figure 3 A schematic diagram of another possible scenario of the data processing method in an embodiment of the present application;

[0074] Figure 4 Schematic diagram of the data processing method in the embodiment of the present application;

[0075] Figure 5 A schematic diagram of a process for determining a first identifier provided in an embodiment of the present application;

[0076] Figure 6 A schematic diagram of another process for determining a first identifier provided in an embodiment of the present application;

[0077] Figure 7 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0078] Figure 8 Another schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0079] Fig. 9 A schematic diagram of a logical structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0080] The embodiments of the present application provide a data processing method, a communication device and a communication equipment for effectively filtering security alarms triggered by a penetration testing process, thereby reducing the troubleshooting and confirmation work of operation and maintenance personnel.

[0081] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation mode of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the embodiments of the present application. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0082] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0083] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0084] Penetration testing refers to the process whereby testers use various means to test a specific network from different locations (such as from the intranet or the extranet) in order to discover and exploit loopholes in the system, and then output a penetration test report and submit it to the network owner. Based on the penetration test report provided by the tester, the network owner can clearly understand the security risks and problems in the network.

[0085] Security protection devices are usually deployed in the network to be tested, such as intrusion detection system (IDS) or intrusion prevention system (IPS). IDS can perform security detection on traffic and report security alerts. When IPS detects security threats, it can also intercept traffic that poses security threats. Figure 1 , Figure 1 A schematic diagram of penetration testing in an IDS scenario and an IPS scenario provided in an embodiment of the present application. Figure 1 As shown, in a network with IDS or IPS deployed, traffic arrives at Figure 1When the security protection device shown in the figure is used, the security protection device performs security detection on the traffic, generates security alerts for suspicious traffic, and transmits the security alerts to the management and analysis platform. Generally speaking, the penetration test traffic sent by the test device often includes a variety of different attack types, such as zombie, Trojan and worm attacks. When these penetration test traffic reaches the security protection device, the security protection device will also generate a large number of security alerts for the penetration test traffic (such as zombie, Trojan and worm type security alerts). However, the penetration test traffic is not real attack traffic after all. Therefore, a large number of security alerts for penetration test traffic will bring a great burden to the troubleshooting and confirmation work of the operation and maintenance personnel. In addition, if the network uses an IPS system, in order to allow the penetration test traffic to reach the destination IP smoothly, the IPS system needs to stop the function of intercepting traffic during the penetration test, which seriously affects the normal operation of the IPS and also brings security risks to the network.

[0086] Therefore, in practical applications, it is often necessary to filter the security alerts generated during the penetration testing process.

[0087] For example, the IP segments involved in the penetration test process (such as the IP segments of the device that initiates the penetration test) are known in advance, and these IP segments are set as the whitelist of security protection devices, and the security alerts corresponding to the traffic of the IP segments included in the whitelist are filtered. However, the penetration test usually takes a period of time. During the penetration test time, real malicious attackers often attack the test device with an IP address in the whitelist, thereby sending attack traffic through the IP address of the test device. At this time, if the security alerts corresponding to the whitelist IP segments involved in the penetration test time are filtered, a large amount of real attack traffic will be missed. Similarly, if the traffic corresponding to the whitelist IP segments involved in the penetration test time is released in the IPS, a large amount of real attack traffic will be released, posing a security risk to the network.

[0088] Therefore, how to effectively filter the security alerts triggered by the penetration test process and reduce the security risks brought to the network is an urgent problem to be solved.

[0089] In view of this, an embodiment of the present application provides a data processing method, a communication device and a communication equipment. In this method, the security protection device obtains a first identifier, determines the target traffic from the received traffic, and only feeds back a security alarm for the target traffic, wherein the target traffic is the traffic that does not carry the first identifier in the traffic. The first identifier can be used to identify the traffic that performs the security test. For the traffic that carries the first identifier, the security protection device does not feed back a security alarm, and effectively filters the security alarm triggered by the security test process. Moreover, the first identifier is different from the IP configured in the whitelist in the prior art. The first identifier is determined according to the test process and does not carry the IP information of the test traffic. The attacker cannot obtain the first identifier like attacking the IP whitelist, so the attacker cannot send attack traffic based on the first identifier. Therefore, the scheme also reduces the possibility of security risks to the network due to filtering security alarms.

[0090] First, possible application scenarios of the data processing method in the embodiment of the present application are introduced. Generally speaking, in the penetration test process, the test traffic can be initiated by the test equipment of the intranet, or the test traffic can be initiated by the test equipment of the extranet.

[0091] See also Figure 2 , Figure 2 Schematic diagram of a possible scenario of the data processing method in the embodiment of the present application. Figure 2 As shown, the test equipment is deployed in the intranet. The test equipment needs to obtain the authorization of the network owner to test the network equipment in the intranet (such as Figure 2 The network device 1 and the network device 2 shown in the figure are used to conduct penetration testing. The test traffic sent by the test device will be forwarded by the switch and reach the security protection device. Specifically, if the security protection device does not have the function of intercepting traffic (for example, in the IDS scenario), after the security protection device performs security detection on the traffic, it will report the security alarm generated during the security detection process to the management and analysis platform; if the security protection device has the function of intercepting traffic (for example, in the IPS scenario), after the security protection device performs security detection on the traffic, on the one hand, it will intercept the traffic that generates the security alarm, and on the other hand, it will report the generated security alarm to the management and analysis platform.

[0092] See also Figure 3 , Figure 3 FIG. 2 is another possible scenario diagram of the data processing method in the embodiment of the present application. Figure 3 As shown, the test equipment is deployed in the external network. The test equipment needs to obtain the authorization of the network owner to test the network equipment in the internal network (such as Figure 3The network device 1 and the network device 2 shown in the figure are used to conduct penetration testing. The test traffic sent by the test device will be forwarded by the intranet switch and reach the security protection device. Specifically, if the security protection device does not have the function of intercepting traffic (for example, in an IDS scenario), after the security protection device performs security detection on the traffic, it will report the security alarm generated during the security detection process to the management and analysis platform; if the security protection device has the function of intercepting traffic (for example, in an IPS scenario), after the security protection device performs security detection on the traffic, on the one hand, it will intercept the traffic that generates the security alarm, and on the other hand, it will report the generated security alarm to the management and analysis platform.

[0093] It should be understood that in actual applications, the test traffic sent by the test equipment from the intranet or the extranet may not need to be forwarded by the switch. For example, the test traffic can also be transmitted by devices with traffic forwarding functions such as routers or repeaters, or the security protection device can also be the next hop node of the test equipment, so there is no need for forwarding by other devices. The embodiments of the present application are not limited to this.

[0094] In the embodiment of the present application, the test device is a communication entity for sending traffic, or receiving traffic, or sending traffic and receiving traffic. Optionally, in order to facilitate the execution of penetration testing, the test device can run a penetration testing tool. Specifically, the penetration testing tool includes but is not limited to Nmap or Kali Linux, or it can also be other penetration testing tools, which is not limited in the embodiment of the present application. It should be understood that "test device" is only a general term for devices that perform penetration testing functions, and does not specifically refer to one or some devices. In actual applications, the device that performs the penetration testing function may not be called a "test device", but replaced by other names, such as "penetration testing device", etc., which is not specifically limited here. In the embodiment of the present application, only "test device" is used as an example for explanation.

[0095] In the embodiment of the present application, the security protection device is a communication entity for performing security detection on traffic. The security protection device can also be a communication entity for sending and receiving traffic. For example, the security protection device is a router or switch with integrated security detection function. The security protection device can generate security alerts for attack traffic and suspicious traffic. Optionally, the security protection device can also intercept attack traffic and suspicious traffic to prevent attack traffic and suspicious traffic from being passed to the next hop. It should be understood that "security protection device" is only a general term for devices that perform traffic detection functions, and does not specifically refer to one or some devices. In actual applications, the device that performs the traffic detection function may not be called a "security protection device", but replaced by other names, such as "security device" or "border protection device", etc., which are not specifically limited here. In the embodiment of the present application, only "security protection device" is used as an example for illustration. Exemplarily, the security protection device can be a firewall entity, an IDS entity, or an IPS entity.

[0096] In an embodiment of the present application, the test equipment and the security protection equipment can communicate through a variety of networks, such as Bluetooth, wired local area network (LAN), wireless local area network, metropolitan area network (MAN), wide area network (WAN), mobile, private network or virtual private network, etc.

[0097] Next, the data processing method in the embodiment of the present application is introduced. Figure 4 , Figure 4 Schematic diagram of the data processing method in the embodiment of the present application. Figure 4 In the example, the test equipment and the safety protection equipment are used as the execution subjects of the interaction diagram to illustrate the method, but the present application does not limit the execution subjects of the interaction diagram. Figure 4 The test device in the method may also be a chip, a chip system, or a processor that supports the test device to implement the method, or may be a logic node, a logic module, or software that can implement all or part of the functions of the test device; Figure 4 The security protection device in the method may also be a chip, chip system, or processor that supports the security protection device to implement the method, or a logical node, logical module, or software that can implement all or part of the functions of the security protection device. Figure 4 As shown, the data processing method in the embodiment of the present application includes but is not limited to steps 101 to 104.

[0098] 101. The safety protection device receives a test request.

[0099] Before the penetration test process begins, the test device needs to obtain authorization from the network owner to access network devices in the intranet (such as Figure 4 The network device 1 and the network device 2 shown in the figure carry out penetration testing. Therefore, the security protection device will receive a test request for the penetration testing process to determine that the test device needs to carry out penetration testing. Specifically, in an embodiment of the present application, the test device can send a test request to the security protection device, or a trusted controller can be deployed to manage the penetration testing process initiated by the test device. Therefore, the controller sends a test request to the security protection device, and the test request indicates that the test device needs to carry out penetration testing. In actual applications, there may be multiple test devices performing penetration tests at the same time, or the same device performs multiple penetration tests for different communication protocols at the same time. These test processes can be centrally managed by the controller, and the controller can send test requests to the security protection device in a unified manner, thereby improving the efficiency of executing multiple penetration tests at the same time.

[0100] In the embodiment of the present application, "the test device sends a test request to the security protection device" can be understood as the destination end of the test request is the security protection device, which can specifically include the test device directly or indirectly sending information to the security protection device. Similarly, "the security protection device receives a test request from the test device" or "the security protection device receives a test request from the test device" can be understood as the source end of the test request is the test device, which can include the security protection device directly or indirectly receiving the test request from the test device. In the process of the test request being transmitted between the test device and the security protection device, the test request may be subjected to necessary processing (such as format changes or forwarding of switches, etc.), but the security protection device can still understand the valid information from the test request. In the embodiment of the present application, similar expressions as "A sends information to B", "B receives information from A" or "B receives information from A" can be understood similarly, and will not be elaborated on here.

[0101] 102. Determine the first identification between the test equipment and the safety protection equipment.

[0102] In the embodiment of the present application, the traffic used to perform the penetration test is the test traffic, and the traffic not used to perform the penetration test is the target traffic. Generally speaking, during the penetration test, the security protection device will receive target traffic in addition to the test traffic. For example, for the test device, in addition to sending the test traffic, it often sends the target traffic, and then both the test traffic and the target traffic will reach the security protection device. For another example, for the security protection device, in addition to receiving the test traffic, it often receives the target traffic from other devices. Therefore, the security protection device needs to distinguish between the received test traffic and target traffic, so as to process the test traffic and the target traffic differently.

[0103] The traffic defined in the embodiments of the present application includes at least one data stream, and different data streams have different stream identifiers. The stream identifier includes multiple content forms, such as a tuple, a tuple, a quadruple, or a quintuple. Exemplarily, the tuple stream identifier can be a source IP address, and the quintuple stream identifier can be a source Internet protocol (IP) address, a source port, a destination IP address, a destination port, and a transport layer protocol.

[0104] In an embodiment of the present application, the security protection device distinguishes between test traffic and target traffic by a first identifier, wherein the test traffic is traffic carrying the first identifier. Optionally, the first identifier is a first value, and the test traffic in the same penetration test process carries the first identifier, and the test traffic in the same penetration test process all carries the first value, while the target traffic does not carry the first value. Optionally, the first identifier is a plurality of values. For example, the security protection device and the test device or controller may first negotiate a method for generating a string, and the method for generating the string may generate a plurality of different strings, and the first identifier includes a plurality of strings generated based on the method, and the test traffic of the same penetration test process may carry any one of the plurality of strings. For another example, a plurality of different strings may be selected as a plurality of values ​​of the first identifier, and the test traffic in the same penetration test process may carry one of the strings as the first identifier. It can be seen from this that, during the penetration test, the test traffic sent by the test device carries the first identifier, while the target traffic does not carry the first identifier. For the security protection device, if the received traffic carries the first identifier, the security protection device can determine that the traffic is test traffic. If the received traffic does not carry the first identifier, the security protection device can determine that the traffic is target traffic.

[0105] Specifically, the test equipment and the safety protection equipment can determine the first identification in a variety of ways, which are introduced below respectively.

[0106] See also Figure 5 , Figure 5 A schematic diagram of a process for determining a first identifier provided in an embodiment of the present application. Figure 5 As shown, the test device can determine the first identifier, then carry the first identifier in the test request, and send the test request to the security protection device. Alternatively, in a scenario where the controller sends a test request to the security protection device, the controller determines the first identifier, then carries the first identifier in the test request, and sends the test request to the security protection device, and the controller also needs to send the first identifier to the test device. Thus, the test device and the security protection device determine the first identifier corresponding to this penetration test. Optionally, the first identifier sent by the test device or the control device can be a specific value, multiple values, or a rule for generating the first identifier.

[0107] See also Figure 6 , Figure 6 A schematic diagram of another process for determining a first identifier provided in an embodiment of the present application. Figure 6 As shown, the test device sends a test request to the security protection device, the security protection device determines the first identifier according to the test request, and then sends the first identifier to the test device. Exemplarily, the first identifier can be carried in the response message sent by the security protection device for the test request, so as to reach the test device. Alternatively, in a scenario where the controller sends a test request to the security protection device, after the security protection device receives the test request from the controller, it determines the first identifier according to the test request, and then sends the first identifier to the controller, and the controller sends the first identifier to the test device. Optionally, the first identifier sent by the security protection device can be a specific value, multiple values, or a rule for generating the first identifier. The generation of the first identifier by the security protection device can effectively reduce the risk of leakage of the first identifier and improve the security during the penetration test.

[0108] In a possible implementation, the security protection device can also obtain the test time corresponding to the first identifier, which indicates the validity time of the first identifier. Among them, the test time can be generated by the security protection device. For example, the network equipment in the IDS system or IPS system may need to perform high-privacy services (such as negotiating keys, negotiating certificates, or updating firewall configurations) within a certain period of time. At this time, the security protection device needs to improve the security detection capability of the traffic to prevent the attack traffic from disguising as test traffic to steal the information of the above-mentioned high-privacy services. Therefore, the security protection device can configure the test time corresponding to the first identifier as the time before the start of the above-mentioned high-privacy service, or the test time corresponding to the first identifier can be configured as the time after the end of the above-mentioned high-privacy service, thereby avoiding the simultaneous execution of the high-privacy service and the penetration test process, and improving the security of the high-privacy service; or, the test time can also be generated by the test device or controller, and then the test time is notified to the security protection device. In actual applications, the first identifier and the test time corresponding to the first identifier can be carried in the same message for transmission, or they can also be carried in different messages for transmission. Exemplarily, the first identifier and the test time corresponding to the first identifier can be carried in a test request and sent to the security protection device together. Alternatively, the first identifier can be carried in the test request, and then the test time corresponding to the first identifier can be transmitted to the security protection device by being carried in other messages.

[0109] 103. The test device sends test traffic to the security protection device.

[0110] After the test device and the security protection device determine the first identifier, the test device can send test traffic to the security protection device, or the controller can send an instruction to the test device, which triggers the test device to send test traffic to the security protection device.

[0111] When the test device sends the test traffic, it is necessary to carry the first identifier with the test traffic, wherein the embodiment of the present application does not limit the way of injecting the first identifier into the test traffic, including but not limited to injecting the first identifier into different protocol fields, for example, the first identifier can be injected into the IP protocol field, or the first identifier can be injected into the transmission control protocol (TCP) field, or the first identifier can be injected into the domain name system (DNS) protocol field, or the first identifier can be injected into the hypertext transfer protocol (HTTP) field. In practical applications, the embodiment of the present application does not limit the content form of the first identifier. Exemplarily, the first identifier can be a randomly generated 32-bit sequence consisting of letters and numbers. Next, the scenarios of injecting the first identifier into different protocol fields are introduced exemplarily.

[0112] In one example, the test device can determine a 32-bit sequence of letters and numbers as the first identifier, and write the first identifier into the options of the IP protocol. Specifically, the first identifier can be stored in the Data part of the Options of the IP protocol. It should be understood that the above storage of the first identifier in the Data part of the Options of the IP protocol is only an example. In the embodiment of the present application, the content field, injection method and specific filling method of the first identifier are not limited.

[0113] In one example, the test device can determine a 32-bit sequence of letters and numbers as the first identifier and write it into the options of the TCP protocol. Specifically, the Options of the TCP protocol include three parts: a Kind part, an Info part, and a Length part. Among them, the first identifier can be stored in the Info part of the Options of the TCP protocol. It should be understood that the above-mentioned storage of the first identifier in the Info part of the Options of the TCP protocol is only an example. In the embodiment of the present application, the content field, injection method and specific filling method of the first identifier are not limited.

[0114] In one example, the test device can determine a 32-bit sequence of letters and numbers as the first identifier and write it into the additional area of ​​the DNS protocol. Specifically, the additional area of ​​the DNS protocol mainly includes six parts: "domain name", "type", "class", "lifetime", "resource data length" and "resource data". Among them, the first identifier can be stored in the "resource data" part of the additional area of ​​the DNS protocol. It should be understood that the above-mentioned storage of the first identifier in the "resource data" part of the additional area of ​​the DNS protocol is only an example. In the embodiment of the present application, the content field, injection method and specific filling method of the first identifier are not limited.

[0115] In one example, the test device can determine a 32-bit sequence of letters and numbers as the first identifier and write it into the HTTP protocol request header. It should be understood that the above-mentioned storage of the first identifier in the HTTP protocol request header is only an example, and in the embodiment of the present application, the content field, injection method and specific filling method of the first identifier are not limited.

[0116] In actual applications, the testing device may execute multiple penetration testing processes at the same time, and each penetration testing process corresponds to a communication protocol (such as IP protocol, TCP protocol, DNS protocol or HTTP protocol). Therefore, a corresponding first identifier can be configured for the communication protocol corresponding to each penetration testing process to manage multiple penetration testing processes.

[0117] 104. Security protection equipment only responds to security alerts for target traffic.

[0118] During the penetration test, the security protection device will often receive target traffic in addition to the test traffic. The security protection device can determine that the traffic that does not carry the first identifier is the target traffic, and then the security protection device only feedbacks the security alarm for the target traffic, and does not feedback the corresponding security alarm for the traffic that carries the first identifier (i.e., the test traffic).

[0119] Specifically, the test device carries the first identifier in a specified field in the traffic message (for example, the Type part in the Options of the IP protocol, the Info part in the Options of the TCP protocol, or the additional area of ​​the DNS protocol). After receiving the traffic, the security protection device obtains the value of the specified field in the traffic message, and matches the value of the specified field with the configured first identifier. If the match is successful, it is determined that the traffic carries the first identifier. If the match fails, it is determined that the traffic does not carry the first identifier and the traffic is the target traffic, so that only security alerts for the target traffic can be fed back.

[0120] In a possible implementation, the above-mentioned designated field is pre-configured (for example, it can be manually configured by an operation and maintenance personnel), or the identifier corresponding to the designated field can be carried in the test request to notify the security protection device.

[0121] In the embodiment of the present application, the traffic used to perform the penetration test process will carry the first identifier, so that only the security alarm of the traffic that does not carry the first identifier can be fed back, and there is no need to feed back the security alarm of the traffic that carries the first identifier, which effectively filters the security alarm triggered by the security test process. Moreover, the first identifier is different from the IP configured in the whitelist in the prior art, and the attacker cannot obtain the first identifier like attacking the IP whitelist, so the attacker cannot send attack traffic based on the first identifier. Therefore, the solution also reduces the possibility of security risks to the network due to filtering security alarms.

[0122] In one possible implementation, the security protection device only feeds back a security alarm for the target traffic, which means that the security protection device first identifies the traffic that does not carry the first identifier as the target traffic, and then only performs a security check on the target traffic, obtains a security alarm for the target traffic, and feeds back a security alarm for the target traffic. On the other hand, for traffic that carries the first identifier (i.e., test traffic), there is no need to perform a security check, and then no security alarm for the test traffic will be generated, and thus there is no need to feed back a security alarm for the test traffic. For traffic that carries the first identifier, the security protection device does not need to perform a security check, which reduces the resource overhead of the security protection device.

[0123] In a possible implementation, the security protection device only feeds back security alerts for target traffic, which means that the security protection device performs security checks on all received traffic and obtains security alerts for these traffic. Then, the security protection device identifies traffic that does not carry the first identifier as target traffic, selects security alerts for target traffic from the security alerts for the traffic, and feeds back security alerts for target traffic, but does not feed back security alerts for test traffic.

[0124] Furthermore, the security protection device performs security checks on all received traffic and generates corresponding security alerts. The traffic security alerts include security alerts for test traffic, where the test traffic is traffic carrying a first identifier. Although the security protection device generates a security alert for the test traffic, since the test traffic is used to perform penetration testing and is not real attack traffic, the security protection device can release the test traffic, that is, the security protection device does not need to intercept the test traffic. As a result, the security protection device does not need to shut down the function of intercepting traffic in order to perform penetration testing, thereby improving the security during the penetration test. Therefore, the security protection device can continue to intercept the target traffic that generates a security alert.

[0125] In actual applications, the security protection device has multiple ways to feedback security alerts for target traffic. For example, the security protection device can send security alerts for target traffic to the management and analysis platform of the security protection device, or it can also send security alerts for target traffic to the big data platform or cloud server, or the security protection device can display the security alerts for target traffic through its own operation interface so that the operation and maintenance personnel can directly view the security alerts for target traffic through the operation interface, or it can be other ways to feedback security alerts, which are not limited in the embodiments of the present application.

[0126] Specifically, if the security protection device determines the test time corresponding to the first identifier, and the test time indicates the effective time of the first identifier, then the security protection device will only feedback the security alarm for the target traffic during the test time. If it is not during the test time, the security protection device will feedback all the security alarms corresponding to the traffic it receives. By configuring the test time corresponding to the first identifier, the effective time of the first identifier can be flexibly limited to ensure comprehensive security detection and security alarm feedback of the traffic during the non-effective time, thereby improving the security of the penetration test.

[0127] In one possible implementation, the security protection device receives a test end request, which indicates that the first identifier has expired. After the security protection device receives the test end request, if there is subsequent traffic carrying the expired first identifier arriving at the security protection device, the security protection device will determine the traffic carrying the expired first identifier as the target traffic, that is, the target traffic also includes the traffic carrying the expired first identifier. Through the test end request, the first identifier can be invalidated in a timely manner, thereby reducing the risk of the first identifier being exploited by other attack traffic after being leaked, thereby improving the security of the penetration test.

[0128] Accordingly, the present application also provides a related device for implementing the above solution. Figure 7 , Figure 7 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. The device may be a security protection device, or a component of a security protection device (such as a processor, a chip, or a chip system, etc.), or a logical node, a logical module, or software that can implement all or part of the functions of a security protection device. Figure 7 As shown, the communication device includes a transceiver unit 201 and a processing unit 202 .

[0129] The transceiver unit 201 is used to obtain the first identifier and traffic, and the processing unit 202 is used to feedback a security alarm only for target traffic, where the target traffic is traffic that does not carry the first identifier.

[0130] In one possible design, the transceiver unit 201 is also used to receive a test request and generate a first identifier based on the test request.

[0131] In one possible design, in response to a test request, the transceiver unit 201 is also used to send a first identifier.

[0132] In one possible design, the transceiver unit 201 is also used to receive a test request, and the test request includes a first identifier.

[0133] In a possible design, the transceiver unit 201 is further used to obtain a test time corresponding to the first identifier;

[0134] The processing unit 202 is specifically configured to feed back only security warnings for target traffic within the test time.

[0135] In one possible design, the processing unit 202 is specifically configured to:

[0136] Determine the traffic packets;

[0137] Extract the value of the specified field of the message;

[0138] Determine the target flow rate according to the matching result between the value and the first identifier;

[0139] Only security alerts for target traffic are fed back.

[0140] In one possible design, the designated field is preconfigured, or the test request includes an identifier of the designated field.

[0141] In one possible design, the processing unit 202 is specifically configured to:

[0142] Only perform security checks on target traffic and obtain security alerts for target traffic;

[0143] Feedback security alerts for target traffic.

[0144] In one possible design, the processing unit 202 is specifically configured to:

[0145] Conduct security checks on traffic and obtain security alerts for traffic;

[0146] Based on the first identifier, obtaining a security alert for the target traffic from the security alerts for the traffic;

[0147] Feedback security alerts for target traffic.

[0148] In a possible design, the traffic security alert includes a security alert for test traffic, where the test traffic is traffic including the first identifier.

[0149] The processing unit 202 is also used to release the test traffic.

[0150] In one possible design, the transceiver unit 201 is further used to receive a test end request, where the test end request indicates that the first identifier has expired;

[0151] In response to receiving the test end request, the processing unit 202 is further configured to determine that the target traffic also includes traffic carrying the first identifier.

[0152] It should be noted that the information interaction, execution process, etc. between the modules / units in the communication device are the same as those in this application. Figure 4 The corresponding method embodiments are based on the same concept. For specific contents, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.

[0153] See also Figure 8 , Figure 8 Another structural diagram of a communication device provided in an embodiment of the present application. The device may be a test device, or a component of a test device (such as a processor, a chip, or a chip system, etc.), or a logical node, a logical module, or software that can implement all or part of the functions of the test device. Figure 8 As shown, the communication device includes a processing unit 301 and a transceiver unit 302 .

[0154] The processing unit 301 is used to determine the first identifier. The transceiver unit 302 is used to trigger the sending of test traffic. The test traffic includes the first identifier, and the first identifier enables the security protection device to only feedback security alarms for target traffic in the acquired traffic. The traffic includes the test traffic and the target traffic, and the target traffic does not carry the traffic with the first identifier.

[0155] In one possible design, the transceiver unit 302 is further used to send a test request, where the test request is used to trigger the security protection device to generate a first identifier;

[0156] The transceiver unit 302 is further configured to receive a first identifier from the safety protection device.

[0157] In one possible design, the transceiver unit 302 is also used to send a test request, and the test request includes a first identifier.

[0158] In a possible design, the transceiver unit 302 is also used to obtain a test time corresponding to the first identifier, and the test time is used to indicate a valid time of the first identifier.

[0159] In one possible design, the transceiver unit 302 is also used to send a test end request, and the test end request indicates that the first identifier has expired.

[0160] It should be noted that the information interaction, execution process, etc. between the modules / units in the communication device are the same as those in this application. Figure 4 The corresponding method embodiments are based on the same concept. For specific contents, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.

[0161] See also Fig. 9 , Fig. 9 A schematic diagram of a logical structure of a communication device 40 provided in an embodiment of the present application. The communication device 40 may be deployed with Figure 7 The communication device described in the corresponding embodiment is used to implement Figure 4 The functions realized by the security protection device in the corresponding embodiment, or the communication device 40 may be deployed with Figure 8 The communication device described in the corresponding embodiment is used to implement Figure 4 The functions implemented by the test device in the corresponding embodiment. The computer device 40 includes: a memory 401, a processor 402, a communication interface 403 and a bus 404. The memory 401, the processor 402 and the communication interface 403 are connected to each other through the bus 404.

[0162] The memory 401 may be a read only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 401 may store a program. When the program stored in the memory 401 is executed by the processor 402, the processor 402 and the communication interface 403 are used to execute steps 101-104 of the above data processing method embodiment.

[0163] The processor 402 may be a central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), a digital signal processor (DSP), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components or any combination thereof, for executing related programs to implement one or more steps of steps 101-104 of the data processing method embodiment in the present application. The steps of the data processing method disclosed in the embodiment of the present application may be executed by a compiler and an executor, wherein the compiler and the executor may be executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 402 reads the information in the memory 401, and executes one or more steps of steps 101-104 of the data processing method embodiment in the present application in combination with its hardware.

[0164] The communication interface 403 uses a transceiver device such as but not limited to a transceiver to implement communication between the computer device 40 and other devices or a communication network.

[0165] The bus 404 can realize the path for transmitting information between the various components of the computer device 40 (for example, the memory 401, the processor 402 and the communication interface 403). The bus 404 can be a peripheral component interconnect standard (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For convenience of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0166] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned Figure 4 The illustrated embodiments describe the method.

[0167] The present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above application to execute the above application. Figure 4 The illustrated embodiments describe the method.

[0168] The communication device provided in the embodiment of the present application may be a chip, which includes: a processing unit and a communication unit. The processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, a pin or a circuit. The processing unit may execute the computer execution instructions stored in the storage unit to enable the chip to execute the above Figure 4 Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc. The storage unit may also be a storage unit located outside the chip in the wireless access device, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.

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

[0170] Through the description of the above implementation mode, the technicians in the field can clearly understand that the embodiments of the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the embodiments of the present application, software program implementation is a better implementation method in more cases. Based on such an understanding, the technical solution of the embodiments of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.

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

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

Claims

1. A data processing method, It is characterized in that include: Get the first identifier; Get traffic; Only a security alert for target traffic is fed back, where the target traffic is traffic that does not carry the first identifier.

2. The method according to claim 1, It is characterized in that The method further comprises: A test request is received, and the first identifier is generated according to the test request.

3. The method according to claim 2, It is characterized in that The method further comprises: In response to the test request, the first identifier is sent.

4. The method according to claim 1, It is characterized in that The method further comprises: A test request is received, where the test request includes the first identifier.

5. The method according to any one of claims 2 to 4, It is characterized in that The method further comprises: Obtaining a test time corresponding to the first identifier; The security alert only for the target traffic is fed back, including: During the test time, only security alerts for the target traffic are fed back.

6. The method according to any one of claims 2 to 5, It is characterized in that The security alert only for the target traffic is fed back, including: Determine the message of the flow; Extracting the value of a specified field of the message; Determining the target flow rate according to a matching result between the value and the first identifier; Only security alerts for the target traffic are fed back.

7. The method according to claim 6, It is characterized in that The designated field is preconfigured, or the test request includes an identifier of the designated field.

8. The method according to any one of claims 1 to 7, It is characterized in that The security alert only for the target traffic is fed back, including: Only the target traffic is security-checked to obtain a security alert for the target traffic; Feedback a security alert for the target traffic.

9. The method according to any one of claims 1 to 7, It is characterized in that The security alert only for the target traffic is fed back, including: Performing security detection on the traffic to obtain a security alert for the traffic; Based on the first identifier, obtaining a security alarm for the target traffic from the security alarms for the traffic; Feedback a security alert for the target traffic.

10. The method according to claim 9, It is characterized in that The traffic security alert includes a security alert for test traffic, where the test traffic is traffic including the first identifier in the traffic, and the method further includes: Release the test traffic.

11. The method according to any one of claims 1 to 10, It is characterized in that The method further comprises: receiving a test end request, wherein the test end request indicates that the first identifier has expired; In response to receiving the test end request, it is determined that the target traffic also includes traffic carrying the first identifier.

12. A data processing method, It is characterized in that include: determining a first identifier; Trigger sending test traffic, the test traffic includes the first identifier, the first identifier enables the security protection device to only feedback security alarms for target traffic in the acquired traffic, the traffic includes the test traffic and the target traffic, and the target traffic does not carry traffic with the first identifier.

13. The method according to claim 12, It is characterized in that The method further comprises: Sending a test request, where the test request is used to trigger the security protection device to generate the first identifier; Receive the first identification from the safety protection device.

14. The method according to claim 12, It is characterized in that The method further comprises: A test request is sent, where the test request includes the first identifier.

15. The method according to any one of claims 12 to 14, It is characterized in that The method further comprises: A test time corresponding to the first identifier is obtained, where the test time is used to indicate a valid time of the first identifier.

16. The method according to any one of claims 12 to 15, It is characterized in that The method further comprises: A test end request is sent, where the test end request indicates that the first identifier has expired.

17. A communication device, It is characterized in that include: A transceiver unit, used to obtain a first identifier; The transceiver unit is also used to obtain traffic; The processing unit is used to feedback a security alarm only for target traffic, where the target traffic is traffic that does not carry the first identifier.

18. The communication device according to claim 17, It is characterized in that The transceiver unit is further configured to receive a test request and generate the first identifier according to the test request.

19. The communication device according to claim 18, It is characterized in that In response to the test request, the transceiver unit is further configured to send the first identifier.

20. The communication device according to claim 17, It is characterized in that The transceiver unit is further configured to receive a test request, where the test request includes the first identifier.

21. The communication device according to any one of claims 18 to 20, It is characterized in that The transceiver unit is further used to obtain the test time corresponding to the first identifier; The processing unit is specifically configured to feed back only a security warning for the target traffic within the test time.

22. The communication device according to any one of claims 18 to 21, It is characterized in that The processing unit is specifically used for: Determine the message of the flow; Extracting the value of a specified field of the message; Determining the target flow rate according to a matching result between the value and the first identifier; Only security alerts for the target traffic are fed back.

23. The communication device according to claim 22, It is characterized in that The designated field is preconfigured, or the test request includes an identifier of the designated field.

24. The communication device according to any one of claims 17 to 23, It is characterized in that The processing unit is specifically used for: Only the target traffic is security-checked to obtain a security alert for the target traffic; Feedback a security alert for the target traffic.

25. The communication device according to any one of claims 17 to 23, It is characterized in that The processing unit is specifically used for: Performing security detection on the traffic to obtain a security alert for the traffic; Based on the first identifier, obtaining a security alarm for the target traffic from the security alarms for the traffic; Feedback a security alert for the target traffic.

26. The communication device according to claim 25, It is characterized in that The traffic security alert includes a security alert for test traffic, where the test traffic is traffic including the first identifier in the traffic, The processing unit is also used to release the test traffic.

27. The communication device according to any one of claims 17 to 26, It is characterized in that The transceiver unit is further configured to receive a test end request, wherein the test end request indicates that the first identifier has expired; In response to receiving the test end request, the processing unit is further configured to determine that the target traffic also includes traffic carrying the first identifier.

28. A communication device, It is characterized in that include: A processing unit, configured to determine a first identifier; A transceiver unit is used to trigger the sending of test traffic, wherein the test traffic includes the first identifier, and the first identifier enables the security protection device to only feedback security alarms for target traffic in the acquired traffic, wherein the traffic includes the test traffic and the target traffic, and the target traffic does not carry traffic with the first identifier.

29. The communication device according to claim 28, It is characterized in that The transceiver unit is further used to send a test request, where the test request is used to trigger the safety protection device to generate the first identifier; The transceiver unit is further used to receive the first identifier from the safety protection device.

30. The communication device according to claim 28, It is characterized in that The transceiver unit is further configured to send a test request, where the test request includes the first identifier.

31. A communication device according to any one of claims 28 to 30, It is characterized in that The transceiver unit is further used to obtain a test time corresponding to the first identifier, where the test time is used to indicate a valid time of the first identifier.

32. A communication device according to any one of claims 28 to 31, It is characterized in that The transceiver unit is further configured to send a test end request, where the test end request indicates that the first identifier has expired.

33. A communication device, It is characterized in that comprising a processor coupled to a memory, The memory is used to store instructions; The processor is configured to execute instructions in the memory so that the communication device executes the method according to any one of claims 1 to 11, or the communication device executes the method according to any one of claims 12 to 16.

34. A computer readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented, or the method according to any one of claims 12 to 16 is implemented.

35. A computer program product, It is characterized in that The computer program product stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented, or the method according to any one of claims 12 to 16 is implemented.