Service processing method and apparatus, and information generation method and apparatus

By generating dynamic security detection rules based on attack events, the problem of low detection accuracy of security protection equipment in the existing technology is solved, the ability to identify and block network attacks is improved, and network security and user experience are enhanced.

WO2024193333A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079943
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-21
Filing Date
2024-03-04
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Existing security protection equipment relies on pre-configured fixed security detection rules, resulting in low detection accuracy, easy triggering of misoperations, 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 detection accuracy of business requests, and the rules are deleted when certain conditions are met to ensure the accuracy of the rule base.

Benefits of technology

It improves the ability of security protection equipment to identify and block network attacks, reduces misoperations, enhances network security and user experience, and optimizes the accuracy and efficiency of the rule base.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079943_26092024_PF_FP
    Figure CN2024079943_26092024_PF_FP
Patent Text Reader

Abstract

The present application belongs to the technical field of network security. Disclosed are a service processing method and apparatus, and an information generation method and apparatus. The service processing method comprises: a security protection device acquiring a first security detection rule according to a first security event; after receiving a second service request which is sent by a first device to a second device, performing security detection on the second service request according to the first security detection rule; and executing a corresponding processing operation according to a detection result. A security protection device generates a first security detection rule on the basis of a security event that gives a prompt regarding an attack, thus making the accuracy for detecting a service request on the basis of the first security detection rule higher.
Need to check novelty before this filing date? Find Prior Art

Description

A business processing and information generation method and device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on March 21, 2023, with application number 202310306252.6 and application name "A business processing, information generation method and device", the entire contents of which are incorporated by reference into this application. Technical Field

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

[0004] With the continuous development of computer networks, global informatization has become a major trend in human development. However, due to the diverse connection forms, uneven terminal distribution, and open and interconnected nature of computer networks, networks are vulnerable to attacks by hackers, scammers, and malware. Therefore, security devices play a vital role in preventing and avoiding attacks and intrusions, and ensuring the security of online information.

[0005] Security protection devices can be deployed before network devices to perform security checks on service requests from clients accessing the network devices. If a service request matches a pre-configured security detection rule, the security protection device determines that the service request may trigger an attack and blocks the service request or triggers an alarm. However, currently, security protection devices perform security checks based on pre-configured security detection rules, which are fixed, manually written rules. If the security detection rules are of low quality, such as being too vague, the security protection device may trigger an erroneous operation.

[0006] Summary of the Invention

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

[0008] In a first aspect, the present application provides a service processing method that 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, the first security event being used to indicate that the first service request is a service request for an attack on the second device, and the first security detection rule being 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 results.

[0009] 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 service request based on the first security detection rule is higher.

[0010] In one 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 the third device.

[0011] Based on the above design, a variety of different ways for security protection devices to obtain the first security detection rules are provided. Among them, the way in which the security protection device generates the first security detection rules based on the first attack information corresponding to the first security event can generate the first security detection rules 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 rules.

[0012] 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.

[0013] 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 to attack 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. For example, based on the generated first security detection rule, the received first business request is blocked, thereby ensuring the network security of the second device.

[0014] 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.

[0015] 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.

[0016] In one possible design, when the security protection device determines the first attack information that the first business request attacks 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 attack information location contained in the security event log information.

[0017] 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.

[0018] 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.

[0019] 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.

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

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

[0022] In one possible design, after the security protection device obtains the first security detection rule, during the security detection of 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 items 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 is 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 first device's access behavior to the second device through the second business request.

[0023] 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.

[0024] On 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 business 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 business request is a business request to attack 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.

[0025] In one possible design, when the third device generates a first security detection rule based on the first security event, the third 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 third device generates a first security detection rule based on the first attack information.

[0026] 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.

[0027] 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.

[0028] In one possible design, when the third device determines the first attack information corresponding to the first security event, the third device receives the 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.

[0029] 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 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 fields in the rule generation template.

[0030] In a third aspect, the present application provides a service processing device that implements the functions of the security protection device described in the first aspect or various possible design examples of the first aspect. The functions can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.

[0031] 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 each possible design example of the first aspect. Please refer to the detailed description in the method example for details, which will not be repeated here.

[0032] In a fourth aspect, the present application provides an information generation device that implements the functions of the third device in the second aspect or various possible design examples of the second aspect. The functions 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.

[0033] 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.

[0034] In a fifth aspect, embodiments of the present application provide a security protection device, comprising a communication interface and a processor, and optionally, a memory. The memory is configured 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 instructions, the security protection device performs the method of the first aspect or any of the possible design examples of the first aspect.

[0035] In a sixth aspect, embodiments of the present application provide a network device, comprising a communication interface and a processor, and optionally, a memory. The memory is configured 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 instructions, the network device executes the method of the second aspect or any of the possible design examples of the second aspect.

[0036] 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 each possible design example of the first aspect, or the computer executes the method in the above-mentioned second aspect or each possible design example of the second aspect.

[0037] 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 each possible design example of the first aspect, or the computer executes the method in the above-mentioned second aspect or each possible design example of the second aspect.

[0038] 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 each possible design example of the first aspect, or execute the method in the above-mentioned second aspect or each possible design example of the second aspect.

[0039] In a 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 of the first aspect or each possible design example of the first aspect, or to execute the method of 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 a chip, or it can include a chip and other discrete devices.

[0040] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] FIG1 is a schematic diagram of a network architecture provided in an embodiment of the present application;

[0042] FIG2 is a schematic diagram of a process for generating security detection rules according to an embodiment of the present application;

[0043] FIG3 is a schematic diagram of security event log information provided by an embodiment of the present application;

[0044] FIG4 is a schematic diagram of event evidence collection content information provided by an embodiment of the present application;

[0045] FIG5 is a schematic diagram of event evidence collection content information provided by an embodiment of the present application;

[0046] FIG6 is a schematic diagram of a process for generating security detection rules according to an embodiment of the present application;

[0047] FIG7 is a schematic diagram of the structure of a service processing device provided in an embodiment of the present application;

[0048] FIG8 is a schematic structural diagram of an information generating device provided in an embodiment of the present application;

[0049] FIG9 is a schematic structural diagram of a safety protection device provided in an embodiment of the present application;

[0050] FIG10 is a schematic diagram of the structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] 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.

[0052] 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.

[0053] 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, and prevent and avoid attacks and intrusions. According to the direction of the attacker's business traffic, the security protection device 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 device will perform a security check on the business request. Only after the security check passes will the business request be forwarded to the network device. When the security check fails, the security protection device will block the business request or trigger an alarm. The security protection device 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.

[0054] 2) IPS devices: Also known as intrusion detection and prevention systems (IDPS), they are computer network security devices that complement antivirus software and firewall devices. An intrusion prevention system is a computer network security device that monitors the network transmission behavior of a network or network device, and can instantly interrupt, adjust, or isolate abnormal or harmful network transmission behavior. Generally speaking, an IPS is a network intrusion detection system based on signature detection. It uses predefined security detection rules to check for problematic data packets on the network. When a security detection rule is hit or triggered, a security event message is generated, and the IPS device deems the network traffic corresponding to the security event to be a malicious attack.

[0055] 3) IDS: This device monitors network traffic in real time and issues alerts or proactive response measures when suspicious traffic is detected. IDS differs from other network security devices in that it is a proactive security technology. IDS devices are divided into two modes based on intrusion detection behavior: 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 is considered an intrusion. Misuse detection, on the other hand, first summarizes all possible adverse and unacceptable behaviors into a model, and any visitor behavior that conforms to this model is considered an intrusion.

[0056] 4) Attack payload: Also known as attack payload or attack information, this refers to the code that the attacker hopes to execute after successfully attacking the target network device. For example, this could be creating a Meterpreter connection or binding to a listening port to obtain an interactive shell. Alternatively, the attack payload could be used to execute commands on the target operating system, such as adding an account.

[0057] 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 merely a description of an association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. "At least one" means one or more, and "a plurality" means two or more.

[0058] In this application, the terms "exemplary," "in an alternative embodiment," and "in another alternative embodiment" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.

[0059] 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.

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

[0061] Figure 1 exemplifies an optional network architecture provided by an embodiment of the present application, 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.

[0062] 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 wireless communication function, a vehicle-mounted device, etc. Exemplary embodiments of portable terminals include but are not limited to portable terminals equipped with 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 (such as 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 (such as a touch panel).

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

[0064] 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.

[0065] 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.

[0066] 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. For example, for each security detection rule in the rule base, based on 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. The high-quality security detection rule can be a security detection rule with very 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.

[0067] In the rule library 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. For example, 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.

[0068] During implementation, since low-quality security detection rules often trigger false alarms, the processing operations corresponding to low-quality security detection rules in the rule base can be set as alarm operations, while the processing operations corresponding to high-quality security detection rules can be set as blocking operations. After a service request triggered by a first user hits a low-quality security detection rule, the security protection device triggers an alarm event. The alarm events triggered by the security protection device based on the low-quality security detection rule include accurate alarms and false alarms. When the service request is an attack access request, the alarm event triggered based on the service request is an accurate alarm. 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, an embodiment of the present application provides a solution for generating security detection rules, wherein a security protection device obtains a first security detection rule, performs a security detection on a 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 a 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 based on 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 low-quality security detection rules trigger alarm events when they are hit, and alarm events often require prompting a second user, the second user will further determine whether to block the business request. After generating a new security detection rule for the first business request that triggered the alarm event, the security protection device can directly block the first business request based on the new security detection rule after receiving the first business request again. There is no need for the second user to intervene, which ensures network security while the second user is unaware, thereby improving user experience.

[0069] In embodiments of the present application, after a 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 detecting an alarm event, the security protection device can report the alarm event to a third device, which can then generate a new security detection rule based on the alarm event. The following describes these two different solutions.

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

[0071] The following describes the process of generating safety detection rules for safety protection equipment in conjunction with FIG2 . As shown in FIG2 , the process may include the following steps:

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

[0073] 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.

[0074] 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 the browser of the terminal device, and the terminal device sends the first service request to the second device.

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

[0076] After receiving a first service request sent from a first device to a second device, the security protection device performs a security check on the first service request. During implementation, the security protection device determines whether the first service request matches a security check rule in the rule base based on the various security check rules in the rule base. Exemplarily, a security check rule may include one or more check fields. The first service request is matched against each check field in the security check rule. After determining that the first service request matches each check field in the security check rule, the security protection device determines that the first service request matches the security check rule.

[0077] 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.

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

[0079] One possible implementation method is that before the security protection device generates the first security detection rule, the security protection device determines whether the first business request is an attack request for attacking the second device based on the first security event; after the security protection device determines that the first business request is an attack request for attacking the second device, it generates the first security detection rule based on the first security event.

[0080] Because the security protection device determines that the first service request hits the second security detection rule, triggering 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 based on the second security detection rule, an erroneous operation may be triggered. 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 the first service request needs to be blocked. After the security protection device determines, based on the first security event, that the first service request is indeed an attack request against the second device, it can generate a first security detection rule for the first service request. Therefore, the first security detection rule is a high-quality security detection rule for the first service request. Accordingly, the processing operation corresponding to the first security detection rule is a blocking operation.

[0081] 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.

[0082] The following describes in detail the process by which the security protection device determines whether the first service request is an attack request to attack the second device:

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

[0084] In this embodiment of the present application, the process by which the security protection device determines whether a first service request is an attack request against a second device can be divided into two stages: in the first stage, the security protection device determines 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 against the second device based on the first attack information. Each stage is described below.

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

[0086] The security protection device obtains security event log information and event forensic content information corresponding to the first security event, and determines 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 first device's access to the second device through the first service request.

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

[0088] Among them, the starting position and the ending position of the attack information can be expressed in multiple ways. For example, the starting position and the ending position of the attack information can be expressed by character positions, such as the starting position of the attack information is the character sequence 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 sequence number of the end of the attack information in the message of the first service request message; or the starting position and the ending position of the attack information can be expressed 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.

[0089] The security event log information corresponding to the first security event as shown in Figure 3 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 alarm), 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 of the first device), the destination IP geographic location (for example, it may be the geographic location of the second device), 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).

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

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

[0092] 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 attack information position contained in the security event log information.

[0093] Optionally, the event forensic content information corresponding to the first security event includes first attack information; the first attack information, also known as an attack payload, refers to 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 location of the first attack information, which includes the starting location and the ending location of the attack information.

[0094] The security protection device determines the first attack information from the event forensic content information corresponding to the first security event based on the attack information location containing the first attack information in the security event log information corresponding to the first security event. For example, the first attack information that can be determined from the security event log information shown in FIG3 and the event forensic content information shown in FIG4 is as shown in FIG5. The first attack information is:

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

[0096] 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.

[0097] The embodiment of the present application pre-configures an attack identification information set, which includes at least one preset attack identification information. The attack identification information included in the attack identification information set may be identification information included 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:

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

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

[0100] / templates / ggssll.php

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

[0102] GET / tar.sql

[0103] cmd=whoami HTTP / 1.1

[0104] / web.tar.gz

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

[0106] =)AND EXTRACTVALUE(

[0107] @phpinfo()

[0108] updatexml%281%2Cconcat%28

[0109] wwwroot.tar.gz HTTP / 1.1

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

[0111] file: / / etc / passwd

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

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

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

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

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

[0117] %5C.. / %5C.. / %5C.. /

[0118] 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.

[0119] Method 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 with respect to the first security event.

[0120] 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 to attack 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 to attack 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 to attack the second device.

[0121] After determining 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.

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

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

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

[0125] 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.

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

[0127] During 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. For example, as shown in the security event log information in FIG3 , the security protection device may determine that the attack type corresponding to the first service request is a URL type based on application-specific information in the security event log information, such as HTTP.

[0128] 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.

[0129] In the security protection device of the embodiment of the present application, rule generation templates corresponding to various attack types 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.

[0130] 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.

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

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

[0133] 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.

[0134] 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.

[0135] 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.

[0136] It should be noted that the above three examples are merely illustrative of the rule generation templates corresponding to URL attack types, and do not limit the rule generation templates corresponding to 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.

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

[0138] 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.

[0139] 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.

[0140] It should be noted that, for each detection field in the rule generation template, one 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.

[0141] For example, when the rule generation template includes the http_url detection field, the http_url_param detection field, and the action detection field, it is assumed that the first attack information is:

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

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

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

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

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

[0147] Exemplarily, the rule generation template 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. Assume that the security event log information corresponding to the first security event is shown in FIG3 , and the first attack information is:

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

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

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

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

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

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

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

[0155] For example, the rule generation template includes a content detection field. Assume that the first attack information is:

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

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

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

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

[0160] 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.

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

[0162] In an 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.

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

[0164] http_url: / _redirect? siteid=;

[0165] http_url_param:

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

[0167] action:block

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

[0169] http_url: / _redirect? siteid=;

[0170] http_url_param:

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

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

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

[0174] action:block

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

[0176] content: / _redirect? siteid=;

[0177] action:block

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

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

[0180] action:block

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

[0182] content: / _redirect? siteid=`+and+updatexml(rand(),( / ** / / ** / sElEcT+ / ** / / ** / uNhEx( / ** / / ** / hEx( / ** / / ** / c OnCaT(0x7e,database(),0x7e)))),0)+and+`1`=%2;

[0183] action:block

[0184] 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 to be protected by the embodiment of the present application is not limited to the above examples.

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

[0186] The following describes the process of generating safety detection rules for safety protection equipment with reference to FIG6 . As shown in FIG6 , the process may include the following steps:

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

[0188] 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 above description of step 201 and will not be described in detail here.

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

[0190] The specific manner in which the safety protection device triggers the first safety time can be found in the above description of step 602 and will not be described in detail here.

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

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

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

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

[0195] One possible implementation method is that before the third device generates the first security detection rule, the third device determines whether the first business request is an attack request to attack the second device based on the first security event; after the third device determines that the first business request is an attack request to attack the second device, it generates the first security detection rule based on the first security event.

[0196] Alternatively, in another possible implementation method, when the security protection device triggers the first security event, it determines whether the first service request is an attack request to attack the second device based on the first security event; after the third device determines that the first service request is an attack request to attack the second device, it notifies the third device of the first security event.

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

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

[0199] 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.

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

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

[0202] After generating a first security detection rule or receiving a 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.

[0203] During implementation, after generating the first security detection rule or receiving the first security detection rule from a third device, the security protection device may update the first security detection rule into the rule base. If the processing operation corresponding to the first security detection rule is a blocking operation, then after the security protection device determines that the second service request matches the first security detection rule, the second security event triggered is blocking the second service request.

[0204] After acquiring 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 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.

[0205] In an optional embodiment, the security protection device may collect indicator data corresponding to the first security detection rule within a certain period of time after obtaining 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 indicator data corresponding to the first security detection rule, the security protection device may stop monitoring the first security detection rule.

[0206] 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.

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

[0208] 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;

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

[0210] If the second service request is a service request initiated by an attacker through the first device, and the security protection device determines that the second service request hits the first security check, and blocks the second service request, then the attacker will not launch attacks again after discovering that the attack is continuously blocked, so the number of hits for the first security check 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 check, and blocks the second service request, since the second service request is a normal service request, and since the first device will continue to initiate the second service request in order to maintain normal service, the number of hits for the first security check rule will increase rapidly. At this time, the first security check rule has already affected the normal service request, so the first security check rule needs to be deleted.

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

[0212] The second threshold value 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.

[0213] 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.

[0214] If the second service request is a service request initiated by an attacker through the first device, and the security protection device determines that the second service request hits the first security check, and then blocks the second service request, then the attacker will not launch attacks again after discovering that the attack is continuously blocked, so the hit frequency of the first security check 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 check, and then blocks the second service request, since the second service request is a normal service request, and since the first device will continue to initiate the second service request in order to maintain normal service, the hit frequency of the first security check rule will be very high. At this time, the first security check rule has already affected the normal service request, so the first security check rule needs to be deleted.

[0215] 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;

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

[0217] During implementation, after determining that the second service request matches the first security detection rule, the security protection device triggers a second security event for the second service request. The security protection device determines 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.

[0218] It should be noted that the specific method for the security protection device to determine the second attack information corresponding to the second security event can be referred to the method for the security protection device to determine the first attack information corresponding to the first security event mentioned above, and will not be repeated here.

[0219] 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 may determine the similarity between the second attack information corresponding to the multiple second security events based on a text content similarity algorithm; exemplarily, the text content similarity algorithm may be a simhash algorithm or a Euclidean distance algorithm.

[0220] If the second service request is a service request initiated by an attacker through the first device, and the security protection device determines that the second service request hits the first security check and blocks the second service request, then the attacker will continuously change the attack method after discovering that the attack has been blocked to achieve the attack purpose, and the similarity of the second attack information corresponding to the multiple second service requests initiated by the attacker is low; 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 check and blocks the second service request, since the second service request is a normal service request, in order to maintain normal service, the first user will continue to initiate the same second service request through the first device, and the similarity of the second attack information corresponding to the multiple second service requests is very high. Therefore, the security protection device can determine 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.

[0221] 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 within the device, and the embodiments of the present application do not limit this. The above embodiments are described only as being performed by a corresponding device.

[0222] Based on the same technical concept, embodiments of the present application also provide a possible service processing device. This service processing device is used to implement the service processing method provided in the above embodiments, or a module (such as a chip) of the service processing device is used to implement the service processing method provided in the above embodiments, thereby also achieving the beneficial effects of the above embodiments.

[0223] As shown in Figure 7, the business processing device 700 of an embodiment of the present application may include an acquisition module 701 and a processing module 702; the acquisition module 701 is used to obtain 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 based on the detection results.

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

[0225] 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 access behavior of the first device to the second device through the first service request; generating the first security detection rule based on the first attack information; or

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

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

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

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

[0230] 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.

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

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

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

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

[0235] determining, based on the security event log information corresponding to the first security event, an attack type corresponding to the first service request;

[0236] Determining, 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;

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

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

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

[0240] If the detection result is that the second service request hits the first security detection rule, a second security event is triggered to block the second service request.

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

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

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

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

[0245] 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.

[0246] Based on the same technical concept, the embodiments of the present application also provide a possible information generation device. This information generation device is used to implement the information generation method provided in the above embodiments, or a module (such as a chip) of the information generation device is used to implement the information generation method provided in the above embodiments, thereby also achieving the beneficial effects of the above embodiments.

[0247] As shown in Figure 8, 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, and the first security event is an event triggered after the security protection device detects a first business request sent by a first device to a second device and hits 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 802 is used to generate a first security detection rule based on the first security event; the sending module 803 is used to send the first security detection rule to the security protection device.

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

[0249] 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;

[0250] Generate the first security detection rule according to the first attack information.

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

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

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

[0254] 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.

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

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

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

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

[0259] determining, based on the security event log information corresponding to the first security event, an attack type corresponding to the first service request;

[0260] Determining, 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;

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

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

[0263] It should be noted that the division of modules in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of the present application may be integrated into a single processing unit, or may exist physically separately, or two or more modules may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional modules.

[0264] 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, 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, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0265] 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 possessed by the above method embodiment. As shown in Figure 9, 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.

[0266] 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 classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG9 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0267] The communication interface 901 is used to receive and send data, enabling communication with other functional components within the security device, or to communicate with devices other than the security device. Optionally, the communication interface 901 may be an input / output interface. For example, the security device may use the communication interface to communicate with a control device, or it may use the communication interface to communicate with other network devices.

[0268] The functions of the processor 902 can be described in the above embodiments and will not be repeated here. The processor 902 can be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP. The processor 902 can further include a hardware chip. The hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The 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 implementing the above functions, the processor 902 can be implemented through hardware, or it can also execute corresponding software implementations through hardware.

[0269] The memory 903 is used to store program instructions, etc. Specifically, the program instructions may include program code, which includes computer operating instructions. The memory 903 may include random access memory (RAM) or non-volatile memory (non-volatile memory), such as at least one disk storage device. The processor 902 executes the program instructions stored in the memory 903 to implement the above functions, thereby implementing the methods provided in the above embodiments.

[0270] Based on the same concept, an 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. Referring to Figure 10, 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 interconnected. 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.

[0271] 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, etc. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG10 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0272] The communication interface 1001 is used to receive and send data, enabling communication with other functional components in the network device, or to communicate with other devices outside the network device. Optionally, the communication interface 1001 may be an input / output interface. For example, the network device may use the communication interface to communicate with a control device, or the network device may use the communication interface to communicate with other network devices.

[0273] The functions of processor 1002 can be described in the above embodiments and will not be further elaborated here. Processor 1002 may be a CPU, an NP, or a combination of a CPU and an NP. Processor 1002 may further include a hardware chip. The hardware chip may be an ASIC, a PLD, or a combination thereof. The PLD may be a CPLD, an FPGA, a GAL, or any combination thereof. Processor 1002 may implement the above functions through hardware, or alternatively, through hardware executing corresponding software implementations.

[0274] The memory 1003 is used to store program instructions, etc. Specifically, the program instructions may include program code, which includes computer operating instructions. The memory 1003 may include RAM, or may also include non-volatile memory (non-volatile memory), such as at least one disk storage device. The processor 1002 executes the program instructions stored in the memory 1003 to implement the above functions, thereby implementing the methods provided in the above embodiments.

[0275] 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 run on a computer, the computer executes the method provided in the above embodiment.

[0276] 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.

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

[0278] 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.

[0279] Based on the same concept, an 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 embodiments. In one possible design, the chip system also includes a memory for storing the necessary programs and data for the computer device. The chip system can be composed of a chip or can include a chip and other discrete devices.

[0280] The methods provided in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, they 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 embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0281] The steps of the methods described in the embodiments of the present application can be directly embedded in hardware, software units executed by a processor, or a combination of the two. The software units can be stored in RAM, ROM, EEPROM, registers, hard disks, removable disks, CD-ROMs, or other storage media in any form known 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 write information to the storage medium. Alternatively, the storage medium can also be integrated into the processor. The processor and storage medium can be arranged in an ASIC.

[0282] 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, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0283] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is 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 includes: 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.

Citation Information

Patent Citations

  • Method and system for preventing high-risk network intrusion

    CN104954335A

  • Data processing method and device

    CN110224969A

  • Security Rule Generation Based on Cognitive and Industry Analysis

    US20200186569A1