Business processing method and device and information generation method and device

By generating dynamic security detection rules based on attack events, the problem of low accuracy caused by the fixed nature of security detection rules in the existing technology is solved, and the accuracy of business request detection and network security are improved.

CN118694549APending Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310306252.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing security protection equipment relies on pre-configured fixed security detection rules, resulting in low detection accuracy, prone to misoperation, and inability to effectively identify and respond to complex network attacks.

Method used

By generating dynamic security detection rules based on attack events, targeted security detection rules are generated based on attack information and log analysis to improve the accuracy of business request detection, and the rules are deleted when certain conditions are met to maintain the accuracy of the rules.

Benefits of technology

It improves the accuracy of security detection of business requests, reduces misoperations, enhances network security, and ensures effective response to complex attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694549A
    Figure CN118694549A
Patent Text Reader

Abstract

The invention discloses a service processing method and device and an information generation method and device, and belongs to the technical field of network security. And the security protection equipment acquires a first security detection rule according to the first security event, performs security detection on a second service request according to the first security detection rule after receiving the second service request sent by the first equipment to the second equipment, and executes corresponding processing operation according to a detection result. The security protection device generates the first security detection rule based on the security event prompting the attack, so that the accuracy of detecting the service request based on the first security detection rule is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a business processing and information generation method and device. Background Art

[0002] With the continuous development of computer networks, global informatization has become a major trend in human development. However, due to the diversity of connection forms, uneven terminal distribution, openness and interconnection of computer networks, the network is vulnerable to attacks by hackers, weirdos and malicious software. Therefore, in order to prevent and avoid attacks and intrusions and ensure the security of online information, security protection equipment plays a great role.

[0003] Security protection equipment can be deployed before network equipment to perform security checks on service requests from clients to access the network equipment. When the security protection equipment performs security checks on service requests, if the service request matches the pre-configured security detection rules, it is determined that the service request may trigger an attack, and the security protection equipment blocks the service request or triggers an alarm. However, currently, security protection equipment performs security checks based on pre-configured security detection rules, which are fixed rules written manually. When the quality of security detection rules is low, such as when the security detection rules are written too vaguely, the security protection equipment may trigger erroneous operations. Summary of the invention

[0004] The present application provides a business processing and information generation method and device to improve the accuracy of security detection of business requests.

[0005] In the first aspect, the present application provides a service processing method, which can be applied to a security protection device, wherein the security protection device obtains a first security detection rule; wherein the security protection device triggers a first security event after detecting a first service request sent by a first device to a second device and determining that the first service request hits a second security detection rule, and the first security event is used to indicate that the first service request is a service request for attacking the second device, and the first security detection rule is generated based on the first security event. After receiving a second service request sent by the first device to the second device, the security protection device performs a security detection on the second service request according to the first security detection rule, and performs corresponding processing operations based on the detection result.

[0006] Based on the above design, the security protection device generates a first security detection rule based on the security event indicating the attack, so that the accuracy of detecting the business request based on the first security detection rule is higher.

[0007] In a possible design, the security protection device can obtain the first security detection rule in a variety of different ways. One way is that after detecting the first security event, the security protection device determines the first attack information corresponding to the first security event, and the first attack information is used to characterize the access behavior of the first device to the second device through the first service request; the security protection device generates the first security detection rule based on the first attack information; another way is that the security protection device receives the first security detection rule sent by a third device.

[0008] Based on the above design, a variety of different methods are provided for the security protection device to obtain the first security detection rule. Among them, the method for the security protection device to generate the first security detection rule according to the first attack information corresponding to the first security event can generate the first security detection rule in a targeted manner. In this way, after the security protection device receives the first business request again, it can accurately process the first business request based on the generated first security detection rule.

[0009] In one possible design, after determining that the first service request is an attack request for attacking the second device based on the first attack information corresponding to the first security event, a first security detection rule is generated based on the first attack information.

[0010] Based on the above design, after the security protection device triggers the first security event based on the first business request, it determines whether the first business request is an attack request for attacking the second device. After determining that the first business request is an attack request, it generates a first security detection rule. In this way, the first security detection rule is generated for the first business request with attack behavior, and the security protection device can directly and accurately process it after receiving the first business request again. Exemplarily, based on the generated first security detection rule, the received first business request is blocked, thereby ensuring the network security of the second device.

[0011] In one possible design, when it is determined that the first attack information includes at least one preset attack identification information, the first service request is determined to be an attack request for attacking the second device.

[0012] Based on the above design, an optional method for determining whether the first service request is an attack request for attacking the second device is provided, so that based on the preset attack identification information, it is possible to quickly and accurately determine whether the first service request is an attack request for attacking the second device.

[0013] In one possible design, when the security protection device determines the first attack information that the first service requests an attack on the second device, the security protection device can obtain the security event log information and event forensics content information corresponding to the first security event, and determine the first attack information from the event forensics content information based on the location of the attack information contained in the security event log information.

[0014] Based on the above design, the security protection device can obtain accurate first attack information based on the security event log information corresponding to the first security event and the event forensics content information.

[0015] In a possible design, when the security protection device generates a first security detection rule based on the first attack information, the security protection device determines the attack type corresponding to the first business request based on the security event log information corresponding to the first security event; the security protection device determines the rule generation template corresponding to the attack type based on the attack type corresponding to the first business request; wherein a rule generation template includes one or more detection fields; the security protection device determines the bearer content corresponding to some or all of the detection fields in the rule generation template based on the first attack information; the security protection device generates the first security detection rule based on the bearer content corresponding to some or all of the detection fields in the rule generation template.

[0016] Based on the above design, the security protection device can generate an accurate first security detection rule based on the attack type corresponding to the first business request and the rule generation template corresponding to the attack type, combined with the first attack information.

[0017] In one possible design, after the security protection device performs a security check on the second business request according to the first security check rule, if the check result is that the second business request hits the first security check rule, the security protection device triggers a second security event to block the second business request.

[0018] Based on the above design, the security protection device performs a blocking operation on the second business request that hits the first security detection rule, thereby preventing the second business request from attacking the second device and improving network security.

[0019] In one possible design, after the security protection device obtains the first security detection rule, during the process of performing a security detection on the second business request based on the first security detection rule, the security protection device deletes the first security detection rule when it determines that at least one of the following is met: the number of times the second security event is triggered based on the first security detection rule is greater than a first threshold, the frequency of the second security event being triggered based on the first security detection rule is greater than a second threshold, and the similarity between the second attack information corresponding to multiple second security events triggered based on the first security detection rule is greater than a third threshold, wherein the second attack information is used to characterize the access behavior of the first device to the second device through the second business request.

[0020] Based on the above design, when the security protection device performs security detection on the second business request based on the first security detection rule, it also needs to determine whether the first security detection rule meets the requirements. If it is determined that the requirements are not met, the first security detection rule will be deleted, thereby making the generated first security detection rule more accurate.

[0021] In the second aspect, the present application provides an information generation method that can be applied to a third device, where the third device receives a first security event notified by a security protection device, wherein the first security event is an event triggered after the security protection device detects a first service request sent by the first device to the second device and hits a second security detection rule, and the first security event is used to prompt that the first service request is a service request for attacking the second device; the third device generates a first security detection rule based on the first security event; and the third device sends the first security detection rule to the security protection device.

[0022] In one possible design, when the third device generates a first security detection rule based on the first security event, the third device determines first attack information corresponding to the first security event, and the first attack information is used to characterize the access behavior of the first device to the second device through the first service request; the third device generates a first security detection rule based on the first attack information.

[0023] In one possible design, after determining that the first service request is an attack request for attacking the second device based on the first attack information corresponding to the first security event, a first security detection rule is generated based on the first attack information.

[0024] In one possible design, when it is determined that the first attack information includes at least one preset attack identification information, the first service request is determined to be an attack request for attacking the second device.

[0025] In one possible design, when the third device determines the first attack information corresponding to the first security event, the third device receives security event log information and event forensics content information corresponding to the first security event sent by the security protection device; the third device determines the first attack information from the event forensics content information based on the attack location contained in the security event log information.

[0026] In one possible design, when the third device generates the first security detection rule based on the first attack information, the third device determines the attack type corresponding to the first business request based on the security event log information corresponding to the first security event; the third device determines the rule generation template corresponding to the attack type based on the attack type corresponding to the first business request; the rule generation template includes one or more fields; the third device determines the bearer content corresponding to some or all of the fields in the rule generation template based on the first attack information; the third device generates the first security detection rule based on the bearer content corresponding to some or all of the fields in the rule generation template.

[0027] In a third aspect, the present application provides a business processing device, which has the function of implementing the security protection device in the first aspect or each possible design example of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0028] In one possible design, the structure of the business processing device may include an acquisition module and a processing module, which can perform the corresponding functions of the safety protection equipment in the above-mentioned first aspect or various possible design examples of the first aspect. Please refer to the detailed description in the method example for details, which will not be repeated here.

[0029] In a fourth aspect, the present application provides an information generating device, which has the function of implementing the third device in the above-mentioned second aspect or each possible design example of the second aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0030] In one possible design, the structure of the business processing device may include a receiving module, a processing module and a sending module. These modules can perform the corresponding functions of the third device in the above-mentioned second aspect or each possible design example of the second aspect. Please refer to the detailed description in the method example for details, which will not be repeated here.

[0031] In a fifth aspect, an embodiment of the present application provides a security protection device, which includes a communication interface and a processor, and optionally, a memory. The memory is used to store computer programs or instructions, and the processor is coupled to the memory and the communication interface. When the processor executes the computer program or instruction, the security protection device executes the method in the first aspect or each possible design example of the first aspect.

[0032] In a sixth aspect, an embodiment of the present application provides a network device, the network device comprising a communication interface and a processor, and optionally, a memory. The memory is used to store a computer program or instruction, and the processor is coupled to the memory and the communication interface, and when the processor executes the computer program or instruction, the network device executes the method in the second aspect or each possible design example of the second aspect.

[0033] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the method in the above-mentioned first aspect or various possible design examples of the first aspect, or the computer executes the above-mentioned second aspect or various possible design examples of the second aspect.

[0034] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instructions are stored. When the computer program or instructions are executed by a computer, the computer executes the method in the above-mentioned first aspect or various possible design examples of the first aspect, or the computer executes the above-mentioned second aspect or various possible design examples of the second aspect.

[0035] In the ninth aspect, an embodiment of the present application further provides a chip, which is coupled to a memory, and is used to read a computer program stored in the memory, execute the method in the above-mentioned first aspect or various possible design examples of the first aspect, or execute the above-mentioned second aspect or various possible design examples of the second aspect.

[0036] In the tenth aspect, an embodiment of the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method in the first aspect or each possible design example of the first aspect, or to execute the method in the second aspect or each possible design example of the second aspect. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of chips, or it can include chips and other discrete devices.

[0037] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a network architecture provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of a process for generating security detection rules provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of security event log information provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of event evidence collection content information provided in an embodiment of the present application;

[0042] Figure 5 A schematic diagram of event evidence collection content information provided in an embodiment of the present application;

[0043] Figure 6 A schematic diagram of a process for generating security detection rules provided in an embodiment of the present application;

[0044] Figure 7 A schematic diagram of the structure of a service processing device provided in an embodiment of the present application;

[0045] Figure 8 A schematic diagram of the structure of an information generating device provided in an embodiment of the present application;

[0046] Fig. 9 A schematic diagram of the structure of a safety protection device provided in an embodiment of the present application;

[0047] Fig.10 A schematic diagram of the structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0049] Before introducing the embodiments of the present application, some terms in the present application are first explained to facilitate understanding by those skilled in the art.

[0050] 1) Security protection equipment: a device that can be deployed on the side of a network device, which can provide security protection for the network environment provided by the network device to prevent and avoid attacks and intrusions. According to the direction of the attacker's business traffic, the security protection equipment can be deployed before the network device. When the attacker initiates a business request to the network device through the terminal device, the security protection equipment will perform a security check on the business request. The business request will be forwarded to the network device only after the security check passes. When the security check fails, the security protection equipment will block the business request or trigger an alarm. The security protection equipment can be a firewall device, an intrusion detection system (IDS) device, an intrusion prevention system (IPS) device, and other devices, and can also be other devices or equipment with network security protection functions, which are not limited in the embodiments of the present application.

[0051] 2) IPS device: Also known as intrusion detection and prevention systems (IDPS), it is a computer network security device that supplements antivirus software and firewall devices. An intrusion prevention system is a computer network security device that can monitor the network transmission behavior of a network or network device, and can instantly interrupt, adjust or isolate some abnormal or harmful network transmission behaviors. Generally speaking, IPS is a network intrusion detection system based on feature detection. It uses predefined security detection rules to check problematic data packets in the network. When a security detection rule is hit or triggered, a security event message will be generated, and the IPS device will consider the network traffic corresponding to the security event to be a malicious attack.

[0052] 3) IDS equipment: It is a network security device that monitors network transmission in real time and issues an alarm or takes active response measures when suspicious transmission is found. It is different from other network security devices in that IDS is a proactive security protection technology. IDS equipment is divided into two modes according to the behavior of intrusion detection: anomaly detection and misuse detection; anomaly detection first establishes a model of normal system access behavior, and any visitor behavior that does not conform to this model will be determined as an intrusion; misuse detection is the opposite, first all possible adverse and unacceptable behaviors are summarized into a model, and any visitor behavior that conforms to this model will be determined as an intrusion.

[0053] 4) Attack payload: Also known as attack load or attack information, it refers to the code that the attacker hopes to execute after successfully attacking the target network device. For example, create a Meterpreter connection or bind to a listening port to obtain an interactive shell; you can also use the attack payload to execute some commands on the target operating system, such as adding an account.

[0054] It should be understood that, in this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this application is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more, and "more than one" means two or more.

[0055] In this application, "exemplary", "in an optional embodiment", "in another optional embodiment", etc. are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word example is intended to present concepts in a concrete way.

[0056] In addition, ordinal numbers such as "first" and "second" involved in this application are used to distinguish multiple objects and are not used to limit the order, timing, priority or importance of multiple objects.

[0057] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0058] Figure 1 An optional network architecture provided by an embodiment of the present application is exemplified, including a first device 10, a security protection device 20 and at least one second device 30; wherein the at least one second device 30 can be deployed in a network environment, a first user can trigger a service request to the second device through the first device 10, and the security protection device 20 can perform security defense on each second device in the network environment to prevent the second device from being attacked and invaded.

[0059] Exemplarily, the first device 10 may be a terminal device, and the second device 30 may be a server or a terminal device; the terminal device of the embodiment of the present application may be a portable terminal, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function, a vehicle-mounted device, etc. Exemplary embodiments of portable terminals include but are not limited to portable terminals equipped with a Harmony operating system (OS), IOS, Android, Microsoft or other operating systems. The above-mentioned portable terminal may also be a laptop computer (Laptop) with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments, the above-mentioned terminal device may also be a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0060] The first user can operate the first device 10 to trigger a service request to access the second device 30; after receiving the service request sent by the first device 10 to the second device 30, the security protection device 20 detects the service request based on at least one security detection rule to determine whether the service request hits the security detection rule; after the service request hits the security detection rule, the security protection device 20 determines that the service request may be an access request for a malicious attack on the second device 30, and the security protection device 20 blocks the service request, or the security protection device 20 triggers an alarm event.

[0061] The first user may be a user of the network, and the first user may access the second device by operating the first device; the first user includes a user who triggers a normal service request to the network and an attacker who triggers an attack on the network.

[0062] The security protection device 20 of the embodiment of the present application can perform security detection on the business request based on at least one security detection rule in the rule base, wherein at least one security detection rule in the rule base can be a pre-configured rule; exemplarily, if the security protection device 20 is an IPS device, the security detection rule can be an IPS rule, or can be called an IPS signature.

[0063] The rule base of the embodiment of the present application includes high-quality security detection rules and low-quality security detection rules, wherein the high-quality security detection rules and the low-quality security detection rules can be divided based on the number of false alarms triggered. Exemplarily, for each security detection rule in the rule base, according to whether the security event triggered after each security detection rule is hit is a false alarm, the number of false alarms triggered by each security detection rule is counted, and the high-quality security detection rule can be a security detection rule with few or no false alarms triggered within a certain period of time, and the low-quality security detection rule can be a security detection rule with a large number of false alarms triggered within a certain period of time.

[0064] In the rule base of the embodiment of the present application, each security detection rule corresponds to a processing operation. During implementation, after a business request hits a security detection rule, the business request is processed according to the processing operation corresponding to the security detection rule. Exemplarily, if the processing operation corresponding to the security detection rule is a blocking operation, then after the business request hits the security detection rule, the security protection device blocks the business request; if the processing operation corresponding to the security detection rule is an alarm operation, then after the business request hits the security detection rule, the security protection device triggers an alarm event for the business request, thereby prompting the second user that the business request is at risk of malicious attack. Among them, the second user can be an operation and maintenance personnel or a management personnel, who can maintain network security.

[0065] In implementation, since low-quality security detection rules trigger false alarms more often, the processing operation corresponding to the low-quality security detection rules in the rule base can be set as an alarm operation, and the processing operation corresponding to the high-quality security detection rules can be set as a blocking operation. After the service request triggered by the first user hits the low-quality security detection rule, the security protection device triggers an alarm event; wherein the alarm event triggered by the security protection device based on the low-quality security detection rule includes an accurate alarm and a false alarm, when the service request is an attack access request, the alarm event triggered based on the service request is an accurate alarm, and when the service request is not an attack access request, the alarm event triggered based on the service request is a false alarm. Based on this, the embodiment of the present application provides a scheme for generating security detection rules, the security protection device obtains the first security detection rule, performs security detection on the second service request sent by the first device to the second device according to the first security detection rule, and performs corresponding processing operations according to the detection result; wherein the security protection device triggers the first security event after detecting the first service request sent by the first device to the second device and determining that the first service request hits the second security detection rule, the first security event is used to prompt that the first service request is a service request for attacking the second device, and the first security detection rule is generated according to the first security event. Since the security protection device triggers the first security event after determining that the first service request hits the second security detection rule, the exemplary first security event may be an alarm event, and the security detection rule corresponding to the alarm event may be a low-quality security detection rule. Based on the first security event, a second security detection rule for the first service request can be generated. After the security protection device receives the first service request again, it can block the first service request based on the first security detection rule, thereby more accurately processing the service request. In addition, since an alarm event is triggered when a low-quality security detection rule is hit, and the alarm event often needs to prompt the second user, the second user will further determine whether to block the service request. After a new security detection rule is generated for the first service request that triggered the alarm event, the security protection device can directly block the first service request based on the new security detection rule after receiving the first service request again. The second user does not need to intervene, which ensures network security while the second user is unaware, thereby improving the user experience.

[0066] In the embodiment of the present application, after the security protection device detects an alarm event, the security protection device can generate a new security detection rule based on the alarm event; or after the security protection device detects an alarm event, the alarm event is reported to a third device, and the third device generates a new security detection rule based on the alarm event. The following describes these two different solutions respectively.

[0067] 1. Safety protection equipment generates safety detection rules.

[0068] The following is combined with Figure 2 Introduce the process of generating safety detection rules for safety protection equipment, such as Figure 2 As shown, the following steps may be specifically included:

[0069] Step 201: The security protection device receives a first service request sent by a first device to a second device.

[0070] The security protection device of the embodiment of the present application can be a device that performs security protection on the network where the second device is located. The security protection device performs a security check on the first service request sent to the second device. After determining that the security check passes, the first service request is forwarded to the second device for processing by the second device. When it is determined that the security check fails (the security protection device determines that the service request may be an attack access request), the security protection device blocks the first service request or triggers an alarm event.

[0071] During implementation, the first service request sent by the first device to the second device may be an access request sent by the first user operating the first device to the second device; exemplarily, the first device may be a terminal device, the first user may request access to the second device through a browser of the terminal device, and the terminal device sends the first service request to the second device.

[0072] Step 202: The security protection device determines that the first service request hits the second security detection rule and triggers a first security event.

[0073] After receiving the first service request sent by the first device to the second device, the security protection device performs a security check on the first service request. In implementation, the security protection device determines whether the first service request hits the security detection rules in the rule base based on the various security detection rules in the rule base. Exemplarily, a security detection rule may include one or more detection fields, and the first service request is matched with each detection field in the security detection rule. After determining that the first service request matches each detection field in the security detection rule, it is determined that the first service request hits the security detection rule.

[0074] After the security protection device determines that the first business request hits the second security detection rule, the first security event is triggered; exemplarily, the second security detection rule may be the low-quality security detection rule introduced above, and the first security event triggered by the security protection device may be an alarm event. The first security event is used to prompt that the first business request is a business request that attacks the second device.

[0075] Step 203: The security protection device generates a first security detection rule according to the first security event.

[0076] In one possible implementation, before the security protection device generates the first security detection rule, the security protection device determines, based on the first security event, whether the first service request is an attack request for attacking the second device; after the security protection device determines that the first service request is an attack request for attacking the second device, the security protection device generates the first security detection rule based on the first security event.

[0077] Since the security protection device determines that the first service request hits the second security detection rule and triggers the first security event, the first security event can be an alarm event. It can be considered that the second security detection rule may be a low-quality security detection rule, and an erroneous operation may be triggered based on the second security detection rule. Therefore, after hitting the second security detection rule, the security protection device triggers an alarm event, and the operation and maintenance personnel can further determine whether it is necessary to block the first service request. After the security protection device determines that the first service request is indeed an attack request to the second device based on the first security event, the first security detection rule can be generated for the first service request. Therefore, the first security detection rule is a high-quality security detection rule for the first service request. Correspondingly, the processing operation corresponding to the first security detection rule is a blocking operation.

[0078] Since the first security event is triggered after the security protection device determines that the first business request hits the second security detection rule, the first security detection rule is generated based on the first security event triggered by the second security detection rule, and the low-quality second security detection rule can be converted into a high-quality first security detection rule. The security protection device can block the hitting business request based on the newly generated first security detection rule.

[0079] The following is a detailed description of the process by which the security protection device determines whether the first service request is an attack request to attack the second device:

[0080] Method 1: judging whether the first service request is an attack request for attacking the second device according to the first attack information corresponding to the first security event.

[0081] The process of the security protection device in the embodiment of the present application determining whether the first service request is an attack request for attacking the second device can be divided into two stages: in the first stage, the security protection device determines the first attack information corresponding to the first security event; in the second stage, the security protection device determines whether the first service request is an attack request for attacking the second device based on the first attack information. They are introduced below.

[0082] The first stage: the security protection device determines the first attack information corresponding to the first security event.

[0083] The security protection device obtains the security event log information and event forensic content information corresponding to the first security event, and determines the first attack information corresponding to the first security event based on the security event log information and event forensic content information corresponding to the first security event. The first attack information is used to characterize the access behavior of the first device to the second device through the first service request.

[0084] Exemplarily, the security event log information corresponding to the first security event may include the event occurrence time, event reporting time, security detection type (for example, firewall, IDS, IPS, etc.), event severity level, source IP address, destination IP address, source port number, destination port number, source IP geographic location, destination IP geographic location, communication protocol, application, risk handling status, the starting location of the attack information, the ending location of the attack information, etc.

[0085] Among them, the starting position of the attack information and the ending position of the attack information can be represented in multiple ways. For example, the starting position of the attack information and the ending position of the attack information can be represented by character positions, such as the starting position of the attack information is the character number of the starting position of the attack information in the message of the first service request message, and the starting position of the attack information is the character number of the end of the attack information in the message of the first service request message; or the starting position of the attack information and the ending position of the attack information can be represented by paragraph positions, such as the starting position of the attack information is the paragraph number where the attack information starts in the message of the first service request message, and the ending position of the attack information is the paragraph number where the attack information ends in the message of the first service request message.

[0086] like Figure 3The security event log information corresponding to the first security event shown includes the initial occurrence time of the event, the most recent occurrence time of the event (wherein, the initial occurrence time of the event and the most recent occurrence time of the event may be the same or different), the initial reporting time of the event, the most recent reporting time of the event (wherein, the initial reporting time of the event and the most recent reporting time of the event may be the same or different), the severity level of the event (for example, the severity level of the first security event is warning), the source IP address (for example, it may be the IP address of the first device), the destination IP address (for example, it may be the IP address of the second device), the source port number (for example, it may be the port number of the first device), the destination port number (for example, it may be the port number of the second device), the source IP geographic location (for example, it may be the geographic location where the first device is located), the destination IP geographic location (for example, it may be the geographic location where the second device is located), the communication protocol (referring to the communication protocol used by the first device to send the first service request to the second device, for example, it may be the TCP protocol), the application (for example, it may be http), the risk disposal status (for example, it may be issuing a blacklist), the starting position of the attack information (character aa), and the ending position of the attack information (character bb).

[0087] Exemplarily, the event evidence content information corresponding to the first security event may include basic information and evidence content, wherein the basic information may include source IP address, destination IP address, source port number, destination port number, communication protocol, etc. The evidence content includes the attack code information captured by the security protection device for the first service request message.

[0088] like Figure 4 The event forensic content information corresponding to the first security event shown includes the source IP address (for example, the IP address of the first device), the destination IP address (for example, the IP address of the second device), the source port number (for example, the port number of the first device), the destination port number (for example, the port number of the second device), and the communication protocol (for example, the TCP protocol). It should be noted that Figure 4 The evidence content included in the event evidence content information shown is merely an example and does not constitute a limitation on the content included in the event evidence content information in the embodiments of the present application.

[0089] After determining the security event log information and event forensics content information corresponding to the first security event, the security protection device of the embodiment of the present application determines the first attack information from the event forensics content information based on the location of the attack information contained in the security event log information.

[0090] Optionally, the event forensic content information corresponding to the first security event includes first attack information; wherein the first attack information can also be called attack payload, which refers to the code that the attacker hopes to execute after successfully attacking the second device. The security event log information corresponding to the first security event includes the attack information position of the first attack information, and the attack information position includes the starting position of the attack information and the ending position of the attack information.

[0091] The security protection device determines the first attack information from the event evidence content information corresponding to the first security event according to the attack information position containing the first attack information in the security event log information corresponding to the first security event. Figure 3 The security event log information shown and Figure 4 The event forensics content information shown in the figure can determine the first attack information such as Figure 5 The information marked in the figure, the first attack information is:

[0092] " / _redirect?siteid=`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2".

[0093] The second stage: the security protection device determines whether the first service request is an attack request to attack the second device based on the first attack information.

[0094] The embodiment of the present application pre-configures an attack identification information set, and the attack identification information set includes at least one preset attack identification information. Among them, the attack identification information included in the attack identification information set can be the identification information contained in the attack information corresponding to the security event triggered by the attack request. It should be noted that the attack identification information included in the pre-configured attack identification information set can be pre-configured by those skilled in the art based on experience. Exemplarily, the attack identification information set includes at least one of the following attack identification information:

[0095] <svg / onload=prompt`1`>

[0096] uid=0(root)gid=0(root)groups=0(root)

[0097] / templates / ggssll.php

[0098] CreateDecryptor(System.Text.Encoding.Default.GetBytes(key)

[0099] GET / tar.sql

[0100] cmd=whoami HTTP / 1.1

[0101] / web.tar.gz

[0102] / var / www / html / index.html HTTP / 1.1

[0103] =)AND EXTRACT VALUE(

[0104] @phpinfo()

[0105] updatexml%281%2Cconcat%28

[0106] wwwroot.tar.gz HTTP / 1.1

[0107] %20%27%3C? php%20eval(S_POST[

[0108] file: / / etc / passwd

[0109] %252f..%252f..%252fetc%252fpasswd

[0110] %3C? php%20mb_ereg_replace(

[0111] User-Agent:DirBuster-1.0-RC1

[0112] extractvalue(1,concat_ws(0x20,0x5c,(select password from

[0113] <!ENTITY ac SYSTEM"php: / /

[0114] %5C.. / %5C.. / %5C.. /

[0115] After the security protection device obtains the first attack information, it determines whether the first attack information contains attack identification information in the attack identification information set; if the first attack information includes at least one preset attack identification information, the security protection device determines that the first service request is an attack request to attack the second device.

[0116] Mode 2: judging whether the first service request is an attack request for attacking the second device according to the selection operation of the second user for the first security event.

[0117] During implementation, after determining that the first business request hits the second security detection rule and triggers the first security event, the security protection device prompts the second user that the first business request may be a business request for attacking the second device; exemplarily, the security protection device displays a prompt message in the user interface, prompting the second user whether to block the first business request. After the second user selects "block", the security protection device can determine that the first business request is an attack request for attacking the second device. Correspondingly, after the second user selects "ignore", the security protection device can determine that the first business request is not an attack request for attacking the second device.

[0118] After the security protection device determines that the first service request is an attack request for attacking the second device, the security protection device generates a first security detection rule according to the first attack information.

[0119] During implementation, the security protection device may generate the first security detection rule according to the following steps:

[0120] Step 1: The security protection device determines the attack type corresponding to the first service request according to the security event log information corresponding to the first security event.

[0121] The attack types corresponding to the first service request in the embodiment of the present application include but are not limited to: URL type, domain name type, and email type;

[0122] Among them, if the first business request is a business request triggered based on the http protocol, the attack type corresponding to the business request is the URL type; if the first business request is a business request triggered based on the domain name system (DNS) protocol, the attack type corresponding to the business request is the domain name type; if the first business request is a business request triggered based on the email protocol, the attack type corresponding to the business request is the email type.

[0123] It should be noted that the above-mentioned attack types are only examples of attack types in the embodiments of the present application, and the embodiments of the present application do not limit the attack types.

[0124] In implementation, the security protection device may determine the attack type corresponding to the first service request based on the security event log information corresponding to the first security event. Figure 3 According to the security event log information shown, the security protection device can determine that the attack type corresponding to the first service request is a URL type based on the application corresponding information in the security event log information, such as http.

[0125] Step 2: The security protection device determines a rule generation template corresponding to the attack type according to the attack type corresponding to the first service request; the rule generation template includes one or more detection fields.

[0126] In the security protection device of the embodiment of the present application, rule generation templates corresponding to each attack type are pre-configured, wherein each attack type may correspond to one or more rule generation templates, and the rule generation templates corresponding to different attack types may be the same or different.

[0127] It should be noted that an optional implementation method is that after pre-configuring the rule generation templates corresponding to each attack type in the security protection device, the second user can modify, delete or add the rule generation templates corresponding to each attack type; during implementation, the security protection device can provide an access interface for the second user, and the second user can modify, delete or add the rule generation templates corresponding to each attack type based on the access interface.

[0128] In an embodiment of the present application, a rule generation template includes one or more detection fields, and the bearer content corresponding to each detection field is empty. The subsequent security protection device can fill the bearer content corresponding to each detection field when generating the first security detection rule.

[0129] The following uses the URL attack type as an example to introduce the rule generation template corresponding to the URL attack type.

[0130] Example 1: Rule generation template 1 includes an http_url detection field, an http_url_param detection field and an action detection field; wherein the http_url detection field is used to carry the URL path of the first business request, the http_url_param detection field is used to carry the request parameters of the first business request, and the action detection field is used to carry the processing operation.

[0131] Example 2: Rule generation template 2 includes an http_url detection field, an http_url_param detection field, a source IP address detection field, a target IP address detection field and an action detection field; wherein the http_url detection field is used to carry the URL of the first business request, the http_url_param detection field is used to carry the request parameters of the first business request, the source IP address detection field is used to carry the IP address of the first device, the destination IP address detection field is used to carry the IP address of the second device, and the action detection field is used to carry the processing operation.

[0132] Example 3: Rule generation template 3 includes a content detection field and an action detection field; wherein the content detection field is used to carry part or all of the fields in the message content of the first service request, and the action detection field is used to carry the processing operation.

[0133] It should be noted that the above three examples are merely illustrative of the rule generation templates corresponding to the URL attack types, and do not limit the rule generation templates corresponding to the URL attack types. The rule generation templates corresponding to the URL attack types that the embodiments of the present application want to protect are not limited to the above examples.

[0134] Step 3: The security protection device determines the bearer content corresponding to some or all of the detection fields in the rule generation template according to the first attack information.

[0135] Among them, the security detection rules include detection fields and corresponding bearer content; based on the above step 2, one or more rule generation templates can be determined according to the attack type corresponding to the first business request. Since the rule generation template includes the detection field, the security protection device also needs to determine the bearer content corresponding to each detection field in the rule generation template when generating the first security detection rule.

[0136] During implementation, after determining the rule generation template corresponding to the first service request, the security protection device can determine the bearer content corresponding to some or all fields from the first attack information for each detection field in the rule generation template.

[0137] It should be noted that, for each detection field in the rule generation template, an optional implementation method is to determine the bearer content corresponding to all fields from the first attack information; another optional implementation method is to determine the bearer content corresponding to some fields from the first attack information, and the bearer content corresponding to the other part of the detection fields can be determined from the security event log information, or can be preset content.

[0138] Exemplarily, when the http_url detection field, the http_url_param detection field, and the action detection field are included in the rule generation template, it is assumed that the first attack information is:

[0139] " / _redirect?siteid=`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2";

[0140] The corresponding content of the http_url detection field is: / _redirect? siteid=;

[0141] The corresponding payload content of the http_url_param detection field is:

[0142] `+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0143] The corresponding content of the action detection field is: block.

[0144] Exemplarily, the rule generation template includes http_url detection field, http_url_param detection field, source IP address detection field, target IP address detection field and action detection field; assuming that the security event log information corresponding to the first security event is as follows: Figure 3 As shown, the first attack information is:

[0145] " / _redirect?siteid=`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2";

[0146] The corresponding content of the http_url detection field is: / _redirect? siteid=;

[0147] The corresponding payload content of the http_url_param detection field is:

[0148] `+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0149] The source IP address detection field (SrcIP) corresponds to the bearer content: 107.AAA.BBB.CCC;

[0150] The destination IP address detection field (DstIP) corresponds to the bearer content: 101.DD.EEE.FF;

[0151] The corresponding content of the action detection field is: block.

[0152] Exemplarily, the content detection field is included in the rule generation template. Assume that the first attack information is:

[0153] " / _redirect?siteid=`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2";

[0154] The corresponding content of the content detection field is: / _redirect? siteid=; or, the corresponding content of the content detection field is: `+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2; or, the corresponding content of the content detection field is: / _redirect? siteid=`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cO nCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0155] The corresponding content of the action detection field is: block.

[0156] It should be noted that the above examples are merely illustrative of the bearer content corresponding to the detection field, and do not limit the bearer content corresponding to the detection field. The bearer content corresponding to the detection field that the embodiments of the present application want to protect is not limited to the above examples.

[0157] Step 4: The security protection device generates the bearer content corresponding to some or all of the detection fields in the rule generation template to generate a first security detection rule.

[0158] In the embodiment of the present application, after determining one or more rule generation templates corresponding to the first business request based on the above step 2, and determining the bearer content corresponding to each detection field in the rule generation template based on step 3, the bearer content corresponding to each detection field can be filled into the corresponding rule generation template, thereby generating a first security detection rule.

[0159] Exemplarily, according to the rule generation template 1 shown in the above example 1, the generated first security detection rule may be:

[0160] http_url: / _redirect? siteid=;

[0161] http_url_param:

[0162] `+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0163] action:block

[0164] According to the rule generation template 2 shown in the above example 2, the generated first security detection rule may be:

[0165] http_url: / _redirect? siteid=;

[0166] http_url_param:

[0167] `+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0168] SrcIP:107.AAA.BBB.CCC;

[0169] DstIP: 101.DD.EEE.FF;

[0170] action:block

[0171] According to the rule generation template 3 shown in the above example 3, the generated first security detection rule may be:

[0172] content: / _redirect? siteid=;

[0173] action:block

[0174] Alternatively, according to the rule generation template 3 shown in the above example 3, the generated first security detection rule may be:

[0175] content:`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0176] action:block

[0177] Alternatively, according to the rule generation template 3 shown in the above example 3, the generated first security detection rule may be:

[0178] content: / _redirect? siteid=`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hE x( / ** / / ** / cOnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0179] action:block

[0180] It should be noted that the above examples are merely illustrative of the first security detection rule and do not limit the first security detection rule. The first security detection rule that the embodiment of the present application intends to protect is not limited to the above examples.

[0181] 2. The third device generates security detection rules.

[0182] The following is combined with Figure 6 Introduce the process of generating safety detection rules for safety protection equipment, such as Figure 6 As shown, the following steps may be specifically included:

[0183] Step 601: The security protection device receives a first service request sent by a first device to a second device.

[0184] Among them, the specific manner in which the security protection device receives the first service request sent by the first device to the second device can be found in the introduction to step 201 above, and will not be repeated here.

[0185] Step 602: The security protection device determines that the first service request hits the second security detection rule and triggers a first security event.

[0186] The specific manner in which the safety protection device triggers the first safety time can be found in the introduction to step 602 above, and will not be described in detail here.

[0187] Step 603: The security protection device notifies the third device of the first security event.

[0188] The third device may be a server, an analyzer or a cloud platform.

[0189] During implementation, when the security protection device notifies the third device of the first security event, it can send the security event log information and event forensics content information corresponding to the first security event to the third device.

[0190] Step 604: The third device generates a first security detection rule according to the first security event.

[0191] In one possible implementation, before the third device generates the first security detection rule, the third device determines whether the first service request is an attack request for attacking the second device based on the first security event; after the third device determines that the first service request is an attack request for attacking the second device, the third device generates the first security detection rule based on the first security event.

[0192] Alternatively, in another possible implementation method, when the first security event is triggered, the security protection device determines, based on the first security event, whether the first service request is an attack request for attacking the second device; after the third device determines that the first service request is an attack request for attacking the second device, the first security event is notified to the third device.

[0193] Among them, the process of the third device or the security protection device determining whether the first service request is an attack request for attacking the second device can be referred to the process of the security protection device determining whether the first service request is an attack request for attacking the second device above, which will not be repeated here.

[0194] After receiving the first security event notified by the security protection device, the third device may generate a first security detection rule according to the first security event. The first security detection rule may be the high-quality security detection rule introduced above, and the processing operation corresponding to the first security detection rule is a blocking operation.

[0195] Since the first security event is triggered after the security protection device determines that the first business request hits the second security detection rule, the first security detection rule is generated based on the first security event triggered by the second security detection rule, and the low-quality second security detection rule can be converted into a high-quality first security detection rule. The security protection device can block the hitting business request based on the newly generated first security detection rule.

[0196] Among them, the specific way in which the third device generates the first security detection rule according to the first security event can refer to the process in which the security protection device generates the first security detection rule according to the first security event in the above text, and will not be repeated here.

[0197] Step 605: The third device sends the first security detection rule to the security protection device.

[0198] After generating a first security detection rule or receiving the first security detection rule sent by a third device, the security protection device in the embodiment of the present application can perform a security detection on the second service request sent by the first device to the second device based on the first security detection rule, and after determining that the second service request hits the first security detection rule, the security protection device triggers a second security event to block the second service request.

[0199] In implementation, after the security protection device generates the first security detection rule or receives the first security detection rule sent by the third device, it can update the first security detection rule to the rule base. If the processing operation corresponding to the first security detection rule is a blocking operation, the second security event triggered by the security protection device after determining that the second service request hits the first security detection rule is to block the second service request.

[0200] After obtaining the first security detection rule, the security protection device of the embodiment of the present application can also monitor the accuracy of the first security detection rule. In implementation, after updating the first security detection rule to the rule base, the security protection device collects the indicator data corresponding to the first security detection rule, and based on the collected indicator data, determines whether the accuracy of the first security detection rule meets the requirements; after determining that the accuracy of the first security detection rule does not meet the requirements, the security protection device deletes the first security detection rule.

[0201] In an optional implementation, the security protection device may collect the index data corresponding to the first security detection rule within a certain period of time after acquiring the first security detection rule, and further determine whether the accuracy of the first security detection rule meets the requirements. If, within the certain period of time, the security protection device determines that the accuracy of the first security detection rule meets the requirements based on the collected index data corresponding to the first security detection rule, the monitoring of the first security detection rule may be stopped.

[0202] Optionally, the indicator data corresponding to the first security detection rule collected by the security protection device includes but is not limited to: the number of times the second security event is triggered based on the first security detection rule, the frequency of the second security event being triggered based on the first security detection rule, and the similarity between the second attack information corresponding to multiple second security events triggered based on the first security detection rule.

[0203] The safety protection device deletes the first safety detection rule when determining that at least one of the following conditions is met:

[0204] Condition 1: the number of times the second security event is triggered based on the first security detection rule is greater than a first threshold;

[0205] The first threshold may be a preset value.

[0206] If the second service request is a service request initiated by the attacker through the first device, and the security protection device determines that the second service request hits the first security detection, the second service request is blocked. After the attacker finds that the attack is continuously blocked, he will not launch attacks again, so the number of hits of the first security detection rule will not continue to increase. If the second service request is a normal service request for accessing the second device triggered by the first user through the first device, and the security protection device determines that the second service request hits the first security detection, and blocks the second service request, since the second service request is a normal service request, and in order to maintain normal service, the first device will continue to initiate the second service request, the number of hits of the first security detection rule will increase rapidly. At this time, the first security detection rule has already affected the normal service request, so the first security detection rule needs to be deleted.

[0207] Condition 2: The frequency of triggering the second security event based on the first security detection rule is greater than the second threshold;

[0208] The second threshold may be a preset value; the frequency of the second security event may be the number of times the second security event is triggered within a unit time period.

[0209] During implementation, the security protection device collects the number of second security events triggered based on the first security detection rule within a certain period of time. The security protection device can use the ratio of the number of collected second security events to the duration of the certain period of time as the frequency of the second security event.

[0210] If the second service request is a service request initiated by the attacker through the first device, and the security protection device determines that the second service request hits the first security detection, the second service request is blocked. Then, after the attacker finds that the attack is continuously blocked, he will not launch attacks again, so the hit frequency of the first security detection rule will not be very high. If the second service request is a normal service request for accessing the second device triggered by the first user through the first device, and the security protection device determines that the second service request hits the first security detection, and blocks the second service request, since the second service request is a normal service request, and in order to maintain normal service, the first device will continue to initiate the second service request, then the hit frequency of the first security detection rule will be very high. At this time, the first security detection rule has already affected the normal service request, so the first security detection rule needs to be deleted.

[0211] Condition 3: the similarity between the second attack information corresponding to the plurality of second security events triggered by the first security detection rule is greater than a third threshold;

[0212] The second attack information is used to characterize the access behavior of the first device to the second device through the second service request; and the third threshold may be a preset value.

[0213] In implementation, after determining that the second service request hits the first security detection rule, the security protection device triggers a second security event for the second service request. The security protection device determines the second attack information corresponding to the second security event based on the security event log information and event forensics content information corresponding to the second security event.

[0214] It should be noted that the specific manner in which the security protection device determines the second attack information corresponding to the second security event can be found in the manner in which the security protection device determines the first attack information corresponding to the first security event described above, and will not be described in detail here.

[0215] The security protection device determines the similarity between the second attack information corresponding to the multiple second security events triggered based on the first security detection rule. In implementation, the security protection device can determine the similarity between the second attack information corresponding to the multiple second security events based on a text content similarity algorithm; illustratively, the text content similarity algorithm can be a simhash algorithm, or a Euclidean distance algorithm, etc.

[0216] If the second service request is a service request initiated by the attacker through the first device, and the security protection device determines that the second service request hits the first security detection, the second service request is blocked. After the attacker finds that the attack is blocked, he will constantly change the attack method to achieve the attack purpose, and the second attack information corresponding to the multiple second service requests initiated by the attacker has a low similarity; if the second service request is a normal service request for accessing the second device triggered by the first user through the first device, and the security protection device determines that the second service request hits the first security detection, and blocks the second service request, because the second service request is a normal service request, in order to maintain the normal operation of the service, the first user will continue to initiate the same second service request through the first device, and the second attack information corresponding to the multiple second service requests has a high similarity. Therefore, the security protection device can judge whether the accuracy of the first security detection rule meets the requirements based on the similarity between the second attack information corresponding to the multiple second security events triggered by the first security detection rule.

[0217] It should be noted that each step involved in the above embodiments can be performed by a corresponding device, or by a chip, processor, or chip system in the device, and the embodiments of the present application do not limit them. The above embodiments are only described by taking the corresponding device as an example.

[0218] Based on the same technical concept, the embodiment of the present application also provides a possible service processing device. The service processing device is used to implement the service processing method provided in the above embodiment, or the module (such as a chip) of the service processing device is used to implement the service processing method provided in the above embodiment, so the beneficial effects of the above embodiment can also be achieved.

[0219] like Figure 7 As shown, the business processing device 700 of the embodiment of the present application may include an acquisition module 701 and a processing module 702; the acquisition module 701 is used to acquire a first security detection rule; the first security detection rule is generated based on a first security event, and the first security event is an event triggered after detecting a first business request sent by a first device to a second device and hitting a second security detection rule, and the first security event is used to prompt that the first business request is a business request for attacking the second device; the processing module 702 is used to perform a security detection on the second business request sent by the first device to the second device according to the first security detection rule, and perform corresponding processing operations according to the detection result.

[0220] In an optional implementation manner, the acquisition module 701 is specifically configured to:

[0221] After detecting the first security event, determining first attack information corresponding to the first security event, where the first attack information is used to characterize the access behavior of the first device to the second device through the first service request; generating the first security detection rule according to the first attack information; or

[0222] Receive the first security detection rule sent by the third device.

[0223] In an optional implementation, the acquisition module 701 is further used to:

[0224] According to the first attack information, it is determined that the first service request is an attack request for attacking the second device.

[0225] In an optional implementation manner, the acquisition module 701 is specifically configured to:

[0226] If the first attack information includes at least one preset attack identification information, it is determined that the first service request is an attack request for attacking the second device.

[0227] In an optional implementation manner, the acquisition module 701 is specifically configured to:

[0228] Obtaining security event log information and event forensics content information corresponding to the first security event;

[0229] The first attack information is determined from the event forensics content information according to the attack information location contained in the security event log information.

[0230] In an optional implementation manner, the acquisition module 701 is specifically configured to:

[0231] Determining, according to the security event log information corresponding to the first security event, an attack type corresponding to the first service request;

[0232] According to the attack type corresponding to the first service request, determining a rule generation template corresponding to the attack type; the rule generation template includes one or more detection fields;

[0233] Determine, according to the first attack information, bearer content corresponding to some or all detection fields in the rule generation template;

[0234] The first security detection rule is generated according to the bearer content corresponding to some or all of the detection fields in the rule generation template.

[0235] In an optional implementation, the processing module 702 is specifically configured to:

[0236] If the detection result is that the second service request hits the first security detection rule, a second security event for blocking the second service request is triggered.

[0237] In an optional implementation, the processing module 702 is further configured to:

[0238] When it is determined that at least one of the following is satisfied, the first security detection rule is deleted:

[0239] The number of times the second security event is triggered based on the first security detection rule is greater than a first threshold;

[0240] The frequency of triggering the second security event based on the first security detection rule is greater than a second threshold;

[0241] The similarity between the second attack information corresponding to multiple second security events triggered based on the first security detection rule is greater than a third threshold; the second attack information is used to characterize the access behavior of the first device to the second device through the second service request.

[0242] Based on the same technical concept, the embodiment of the present application also provides a possible information generation device. The information generation device is used to implement the information generation method provided in the above embodiment, or the module (such as a chip) of the information generation device is used to implement the information generation method provided in the above embodiment, so the beneficial effects of the above embodiment can also be achieved.

[0243] like Figure 8 As shown, the information generating device 800 of the embodiment of the present application may include a receiving module 801, a processing module 802 and a sending module 803; the receiving module 801 is used to receive a first security event notified by a security protection device, the first security event is an event triggered after the security protection device detects a first service request sent by a first device to a second device and hits a second security detection rule, the first security event is used to prompt that the first service request is a service request for attacking the second device; the processing module 802 is used to generate a first security detection rule according to the first security event; the sending module 803 is used to send the first security detection rule to the security protection device.

[0244] In an optional implementation, the processing module 802 is specifically configured to:

[0245] Determine first attack information corresponding to the first security event, where the first attack information is used to characterize an access behavior of the first device to the second device through the first service request;

[0246] The first security detection rule is generated according to the first attack information.

[0247] In an optional implementation, the processing module 802 is further configured to:

[0248] According to the first attack information, it is determined that the first service request is an attack request for attacking the second device.

[0249] In an optional implementation, the processing module 802 is specifically configured to:

[0250] If the first attack information includes at least one preset attack identification information, it is determined that the first service request is an attack request for attacking the second device.

[0251] In an optional implementation, the processing module 802 is specifically configured to:

[0252] Receiving security event log information and event forensics content information corresponding to the first security event sent by the security protection device;

[0253] The first attack information is determined from the event forensics content information according to the attack location included in the security event log information.

[0254] In an optional implementation, the processing module 802 is specifically configured to:

[0255] Determining, according to the security event log information corresponding to the first security event, an attack type corresponding to the first service request;

[0256] According to the attack type corresponding to the first service request, determining a rule generation template corresponding to the attack type; the rule generation template includes one or more fields;

[0257] Determine, according to the first attack information, bearer content corresponding to some or all fields in the rule generation template;

[0258] The first security detection rule is generated according to the bearer content corresponding to some or all fields in the rule generation template.

[0259] It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional modules.

[0260] If the integrated unit is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0261] Based on the same concept, the embodiment of the present application also provides a possible security protection device, which is used to implement the business processing method provided in the above embodiment, and thus can also achieve the beneficial effects of the above method embodiment. Fig. 9 As shown, the security protection device 900 includes: a communication interface 901 and a processor 902. Optionally, the security protection device also includes a memory 903. The processor 902 and the memory 903 are interconnected. When the security protection device 900 is used to implement the traffic burst determination method provided in the above embodiment, it can be used to implement the above functions, and the processor 902 is used to implement the functions of the above acquisition module 701 and the processing module 702.

[0262] Optionally, the communication interface 901, the processor 902 and the memory 903 are interconnected via a bus 904. The bus 904 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease 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.

[0263] The communication interface 901 is used to receive and send data, realize communication with other functional components in the security protection device, or realize communication with other devices other than the security protection device. Optionally, the communication interface 901 can be an input and output interface. For example, the security protection device can use the communication interface to communicate with the control device, or the security protection device can also use the communication interface to communicate with other network devices.

[0264] The functions of the processor 902 can refer to the description in the above embodiments, which will not be repeated here. Among them, the processor 902 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP, etc. The processor 902 can further include a hardware chip. The above-mentioned hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. When the processor 902 implements the above-mentioned functions, it can be implemented by hardware, and of course, it can also be implemented by executing the corresponding software through hardware.

[0265] The memory 903 is used to store program instructions, etc. Specifically, the program instructions may include program codes, and the program codes include computer operation instructions. The memory 903 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The processor 902 executes the program instructions stored in the memory 903 to implement the above functions, thereby implementing the method provided in the above embodiment.

[0266] Based on the same concept, the embodiment of the present application also provides a possible network device, which is used to implement the information generation method provided in the above embodiment, and thus can also achieve the beneficial effects of the above method embodiment. Fig.10As shown, the network device 1000 includes: a communication interface 1001 and a processor 1002. Optionally, the network device also includes a memory 1003. The processor 1002 and the memory 1003 are connected to each other. When the network device 1000 is used to implement the traffic burst determination method provided in the above embodiment, it can be used to implement the above functions, and the processor 1002 is used to implement the functions of the above receiving module 801, the processing module 802 and the sending module 803.

[0267] Optionally, the communication interface 1001, the processor 1002 and the memory 1003 are interconnected via a bus 1004. The bus 1004 may be a PCI bus or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 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.

[0268] The communication interface 1001 is used to receive and send data, realize communication with other functional components in the network device, or realize communication with other devices other than the network device. Optionally, the communication interface 1001 can be an input and output interface. For example, the network device can use the communication interface to communicate with the control device, or the network device can also use the communication interface to communicate with other network devices.

[0269] The functions of the processor 1002 can refer to the description in the above embodiment, which will not be repeated here. Among them, the processor 602 can be a CPU, an NP or a combination of a CPU and an NP, etc. The processor 1002 can further include a hardware chip. The above hardware chip can be an ASIC, a PLD or a combination thereof. The above PLD can be a CPLD, an FPGA, a GAL or any combination thereof. When the processor 1002 implements the above functions, it can be implemented by hardware, and of course, it can also be implemented by executing corresponding software through hardware.

[0270] The memory 1003 is used to store program instructions, etc. Specifically, the program instructions may include program codes, and the program codes include computer operation instructions. The memory 1003 may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. The processor 1002 executes the program instructions stored in the memory 1003 to implement the above functions, thereby implementing the method provided in the above embodiment.

[0271] Based on the same concept, an embodiment of the present application further provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed on a computer, the computer executes the method provided in the above embodiment.

[0272] Based on the same concept, an embodiment of the present application also provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed by a computer, the computer executes the method provided in the above embodiment.

[0273] The storage medium may be any available medium that can be accessed by a computer. For example, but not limited to, a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

[0274] Based on the same concept, an embodiment of the present application further provides a chip, which is coupled to a memory, and is used to read a computer program stored in the memory to implement the method provided in the above embodiment.

[0275] Based on the same concept, the embodiment of the present application also provides a chip system, which includes a processor for supporting a computer device to implement the functions involved in the network device in the above embodiment. In a possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.

[0276] In the method provided in the embodiment of the present application, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer 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 device. 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, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0277] The steps of the method described in the embodiments of the present application can be directly embedded in the hardware, the software unit executed by the processor, or the combination of the two. The software unit can be stored in RAM, ROM, EEPROM, register, hard disk, removable disk, CD-ROM or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC.

[0278] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0279] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A business processing method, characterized in that: Applied to safety protection equipment, the method comprises: Obtain a first security detection rule; the first security detection rule is generated according to a first security event, the first security event is an event triggered after detecting that a first service request sent by a first device to a second device hits a second security detection rule, and the first security event is used to prompt that the first service request is a service request for attacking the second device; According to the first security detection rule, a security detection is performed on the second service request sent by the first device to the second device, and a corresponding processing operation is performed according to the detection result.

2. The method according to claim 1, characterized in that The obtaining of the first security detection rule comprises: After detecting the first security event, determining first attack information corresponding to the first security event, where the first attack information is used to characterize the access behavior of the first device to the second device through the first service request; generating the first security detection rule according to the first attack information; or Receive the first security detection rule sent by the third device.

3. The method according to claim 2, characterized in that After determining the first attack information corresponding to the first security event and before generating the first security detection rule according to the first attack information, the method further includes: According to the first attack information, it is determined that the first service request is an attack request for attacking the second device.

4. The method according to claim 3, characterized in that The determining, according to the first attack information, that the first service request is an attack request for attacking the second device includes: If the first attack information includes at least one preset attack identification information, it is determined that the first service request is an attack request for attacking the second device.

5. The method according to claim 2, characterized in that The determining first attack information that the first service request attacks the second device includes: Obtaining security event log information and event forensics content information corresponding to the first security event; The first attack information is determined from the event forensics content information according to the attack information location contained in the security event log information.

6. The method according to claim 5, characterized in that The generating the first security detection rule according to the first attack information includes: Determining, according to the security event log information corresponding to the first security event, an attack type corresponding to the first service request; According to the attack type corresponding to the first service request, determining a rule generation template corresponding to the attack type; the rule generation template includes one or more detection fields; Determine, according to the first attack information, bearer content corresponding to some or all detection fields in the rule generation template; The first security detection rule is generated according to the bearer content corresponding to some or all of the detection fields in the rule generation template.

7. The method according to any one of claims 1 to 6, characterized in that: The performing corresponding processing operations according to the detection results includes: If the detection result is that the second service request hits the first security detection rule, a second security event for blocking the second service request is triggered.

8. The method according to claim 7, characterized in that The method further comprises: When it is determined that at least one of the following is satisfied, the first security detection rule is deleted: The number of times the second security event is triggered based on the first security detection rule is greater than a first threshold; The frequency of triggering the second security event based on the first security detection rule is greater than a second threshold; The similarity between the second attack information corresponding to multiple second security events triggered based on the first security detection rule is greater than a third threshold; the second attack information is used to characterize the access behavior of the first device to the second device through the second service request.

9. A method for generating information, characterized in that: Applied to a third device, the method includes: Receive a first security event notified by a security protection device, where the first security event is an event triggered after the security protection device detects that a first service request sent by the first device to the second device hits a second security detection rule, and the first security event is used to prompt that the first service request is a service request for attacking the second device; Generate a first security detection rule according to the first security event; The first security detection rule is sent to the security protection device.

10. The method according to claim 9, characterized in that The step of generating a first security detection rule according to the first security event includes: Determine first attack information corresponding to the first security event, where the first attack information is used to characterize an access behavior of the first device to the second device through the first service request; The first security detection rule is generated according to the first attack information.

11. The method according to claim 10, characterized in that After determining the first attack information corresponding to the first security event and before generating the first security detection rule according to the first attack information, the method further includes: According to the first attack information, it is determined that the first service request is an attack request for attacking the second device.

12. The method according to claim 11, characterized in that The determining, according to the first attack information, that the first service request is an attack request for attacking the second device includes: If the first attack information includes at least one preset attack identification information, it is determined that the first service request is an attack request for attacking the second device.

13. The method according to claim 10, characterized in that The determining the first attack information corresponding to the first security event includes: Receiving security event log information and event forensics content information corresponding to the first security event sent by the security protection device; The first attack information is determined from the event forensics content information according to the attack location included in the security event log information.

14. The method according to claim 13, characterized in that The generating the first security detection rule according to the first attack information includes: Determining, according to the security event log information corresponding to the first security event, an attack type corresponding to the first service request; According to the attack type corresponding to the first service request, determining a rule generation template corresponding to the attack type; the rule generation template includes one or more fields; Determine, according to the first attack information, bearer content corresponding to some or all fields in the rule generation template; The first security detection rule is generated according to the bearer content corresponding to some or all fields in the rule generation template.

15. A service processing device, characterized in that: The device comprises: an acquisition module, configured to acquire a first security detection rule; the first security detection rule is generated according to a first security event, the first security event is an event triggered after a first service request sent by a first device to a second device is detected and hits a second security detection rule, and the first security event is used to indicate that the first service request is a service request for attacking the second device; A processing module is used to perform a security check on the second service request sent by the first device to the second device according to the first security check rule, and perform a corresponding processing operation according to the check result.

16. The device according to claim 15, characterized in that The acquisition module is specifically used for: After detecting the first security event, determining first attack information corresponding to the first security event, where the first attack information is used to characterize an access behavior of the first device to the second device through the first service request; Generate the first security detection rule according to the first attack information; or Receive the first security detection rule sent by the third device.

17. The device according to claim 16, characterized in that The acquisition module is further used for: According to the first attack information, it is determined that the first service request is an attack request for attacking the second device.

18. The device according to claim 17, characterized in that The acquisition module is specifically used for: If the first attack information includes at least one preset attack identification information, it is determined that the first service request is an attack request for attacking the second device.

19. The device according to claim 16, characterized in that The acquisition module is specifically used for: Obtaining security event log information and event forensics content information corresponding to the first security event; The first attack information is determined from the event forensics content information according to the attack information location contained in the security event log information.

20. The device according to claim 19, characterized in that The acquisition module is specifically used for: Determining, according to the security event log information corresponding to the first security event, an attack type corresponding to the first service request; Determine, according to the attack type corresponding to the first service request, a rule generation template corresponding to the attack type; The rule generation template includes one or more detection fields; Determine, according to the first attack information, bearer content corresponding to some or all detection fields in the rule generation template; The first security detection rule is generated according to the bearer content corresponding to some or all of the detection fields in the rule generation template.

21. The device according to any one of claims 15 to 20, characterized in that: The processing module is specifically used for: If the detection result is that the second service request hits the first security detection rule, a second security event for blocking the second service request is triggered.

22. The device according to claim 21, characterized in that The processing module is further used for: When it is determined that at least one of the following is satisfied, the first security detection rule is deleted: The number of times the second security event is triggered based on the first security detection rule is greater than a first threshold; The frequency of triggering the second security event based on the first security detection rule is greater than a second threshold; The similarity between the second attack information corresponding to the plurality of second security events triggered based on the first security detection rule is greater than a third threshold; The second attack information is used to characterize the access behavior of the first device to the second device through the second service request.

23. An information generating device, characterized in that: The device comprises: A receiving module, configured to receive a first security event notified by a security protection device, wherein the first security event is an event triggered after the security protection device detects a first service request sent by the first device to the second device and hits a second security detection rule, and the first security event is used to prompt that the first service request is a service request for attacking the second device; A processing module, configured to generate a first security detection rule according to the first security event; A sending module is used to send the first security detection rule to the security protection device.

24. The device according to claim 23, characterized in that The processing module is specifically used for: Determine first attack information corresponding to the first security event, where the first attack information is used to characterize an access behavior of the first device to the second device through the first service request; The first security detection rule is generated according to the first attack information.

25. The device according to claim 24, characterized in that The processing module is further used for: According to the first attack information, it is determined that the first service request is an attack request for attacking the second device.

26. The device according to claim 25, characterized in that The processing module is specifically used for: If the first attack information includes at least one preset attack identification information, it is determined that the first service request is an attack request for attacking the second device.

27. The device according to claim 24, characterized in that The processing module is specifically used for: Receiving security event log information and event forensics content information corresponding to the first security event sent by the security protection device; The first attack information is determined from the event forensics content information according to the attack location included in the security event log information.

28. The device according to claim 27, characterized in that The processing module is specifically used for: Determining, according to the security event log information corresponding to the first security event, an attack type corresponding to the first service request; Determine, according to the attack type corresponding to the first service request, a rule generation template corresponding to the attack type; The rule generation template includes one or more fields; Determine, according to the first attack information, bearer content corresponding to some or all fields in the rule generation template; The first security detection rule is generated according to the bearer content corresponding to some or all fields in the rule generation template.

29. A safety protection device, characterized in that: including memory and processor; The memory is used to store computer program instructions; The processor is used to execute and call the computer program instructions in the memory to enable the network device to perform the operation steps of the method according to any one of claims 1 to 8.

30. A network device, characterized in that: including memory and processor; The memory is used to store computer program instructions; The processor is used to execute and call the computer program instructions in the memory so that the network device performs the operating steps of the method according to any one of claims 9 to 14.

31. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program, and when the computer program is executed on a terminal, the electronic device executes the method according to any one of claims 1 to 8, or the electronic device executes the method according to any one of claims 9 to 14.

32. A computer program product, characterized in that The computer program product includes a computer program or instructions. When the computer program or instructions are executed by a terminal, the method described in any one of claims 1 to 8 or the method described in any one of claims 9 to 14 is implemented.