Method and device for processing aggressive service request, equipment and storage medium
By integrating response information generation rules and execution codes in the business system to process offensive business requests, the problem of large honeypot resource occupancy and difficulty in identifying attackers is solved, efficient honeypot simulation and attack information acquisition are achieved, and defense capabilities are enhanced. .
Patent Information
- Application Number
- CN202310292508.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-09-20
AI Technical Summary
Existing honeypot technology requires separate equipment and a large amount of fictitious data storage when processing offensive business requests, resulting in huge resource usage and attackers may find that the real system has not been attacked, making it difficult to obtain information on attack methods and behavioral logic.
Integrate response information generation rules and execution code in the business system, and generate response information by matching attack information in business requests, reducing resource usage and improving honeypot simulation effects, making attackers mistakenly believe that the attack is successful, and technicians can more accurately obtain the attack information.
There is no need to deploy separate honeypot equipment, which reduces hardware resource usage, improves honeypot simulation effects, ensures that technicians can obtain information about attack methods and behavioral logic, and enhances the pertinence of defense measures.
Smart Images

Figure CN118677633A
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a method, apparatus, device and storage medium for processing offensive business requests. Background Art
[0002] During the operation of the business system, malicious attackers often attack the business system in order to illegally steal data, destroy the business system, etc.
[0003] Related technologies can identify the offensive business requests sent by attackers to a certain extent. In order to analyze the attacker's attack method to better prevent attacks, honeypot technology has begun to be widely used. The honeypot is built on an independent device and has the same system architecture as the business system, but the data in the honeypot is fictitious data. During the operation of the business system, the intrusion detection device performs security identification on the business request and sends the identified offensive business request to the honeypot for processing. In this way, the offensive business request attacks the honeypot, but does not attack the business system. However, the honeypot is built to imitate the business system. The attacker may find that he has not attacked the real business system, so he will no longer continue to attack, making it impossible for the technical staff of the business system to accurately obtain information such as the attack method and behavior logic of the attack.
[0004] In addition, when the business system is large in scale, the honeypot also needs to store a large amount of fictitious data, which causes the honeypot to occupy a huge amount of resources. Summary of the invention
[0005] The present application provides a method, apparatus, device and storage medium for processing offensive business requests, which can solve the problems of related technologies.
[0006] In the first aspect, a method for processing an offensive business request is provided. After receiving a business request, the business server may first determine that the received business request is an offensive business request. Then, based on the attack information carried in the business request, a response information generation rule may be matched. Afterwards, based on the response information generation rule and information in the business system, response information corresponding to the business request may be obtained, and the response information may be used to provide feedback to the business request.
[0007] In the technical solution, after the communication component receives the service request, the service server obtains the offensive identification result identifier in the received service request, which can be an attack identifier or a non-attack identifier. When the offensive identification result identifier is an attack identifier, the service request is determined to be an offensive service request. Alternatively, the service server identifies the received service request based on a runtime application self-protection (RASP) program and determines that the service request is an offensive service request.
[0008] By adopting the above scheme, after receiving the offensive business request, the business server can respond to the offensive business request based on the response information generation rules and the information in the business system. There is no need to use a separate device to deploy a honeypot business system that is similar to the business system architecture and stores a large amount of fictitious data. Using the honeypot business system to respond to offensive business requests can reduce the resources occupied by processing offensive business requests. In addition, using the information in the business system to generate response information can improve the honeypot simulation effect compared to using purely false information as response information, making it difficult for attackers to find that they have not attacked the business system, so that the technical staff of the business system can more accurately obtain information such as the attack method and behavior logic of the attack.
[0009] In a possible implementation, an execution code of a response information generation rule may be integrated into the business system, and the execution code is used to execute a process of obtaining response information corresponding to a business request.
[0010] In this technical solution, the execution code of each response information generation rule can be integrated into the business system, and the execution code is used to obtain the response information corresponding to the business request. After the business server matches the response information generation rule based on the attack information, it can obtain the execution code of the response information generation rule (this processing can be performed by a trigger or an information reader). Then, the business server runs the execution code and obtains the response information corresponding to the business request based on the information in the business system.
[0011] With the above solution, the execution code of the response information generation rule is integrated into the business system, and there is no need to use a separate device to deploy the response function, which can reduce the hardware resources occupied by processing offensive business requests. Moreover, the execution code of the response information generation rule can be set by the technician according to actual needs, which can improve the deception effect on different offensive business requests.
[0012] In a possible implementation, the business system may match the response information generation rule based on the information query condition carried in the business request, wherein the information query condition includes a data table identifier, a system parameter identifier, or a system file name.
[0013] By adopting the above scheme, the response information generation rules can be used to process various information query conditions, thereby improving the security of the honeypot business system. Because the information query conditions can correspond to various information of the business system, the response information generation rules can be matched with the information query conditions, so that the corresponding response information generation rules can be set for different information of the business system, thereby improving the accuracy of the response to the offensive business request, and thus improving the honeypot simulation effect.
[0014] In a possible implementation, when the query condition information includes a data table identifier, the query condition information also includes a data field name or permission.
[0015] By adopting the above scheme, more fine-grained information query conditions can be processed, further improving the accuracy of responses to offensive business requests, thereby improving the honeypot simulation effect.
[0016] In a possible implementation, the business server may obtain low-authority information that meets the information query condition from the information of the business system as response information corresponding to the business request.
[0017] By adopting the above scheme, low-authority information is used to provide feedback to the offensive business requests. Since the low-authority information itself is also real information belonging to the business system, compared with using false information, it can improve the deception effect on the offensive business requests.
[0018] In one possible implementation, the business server may set the permission in the business request to a low permission to obtain an updated business request. The updated business request is then executed through the business system to obtain low-permission information that meets the information query conditions from the information in the business system as response information corresponding to the business request.
[0019] In the present technical solution, if the business request does not carry a character string for indicating authority, a character string corresponding to low authority can be added to the business request to obtain an updated business request. If the business request carries a character string for indicating high authority, the character string corresponding to high authority can be modified to a character string corresponding to low authority to obtain an updated business request. If the business request carries a character string for indicating low authority, no modification is required, that is, the updated business request is the same as the original business request. Multiple permissions can be pre-set in the business system, and corresponding character strings representing different permissions can be set.
[0020] By adopting the above scheme, the permissions in the business request are modified, and the updated business request is used to query the low-authority information as the response information. In this way, the normal processing mechanism of the business system can be used when processing the updated business request, which can improve the deception effect on attackers.
[0021] In a possible implementation, the business server may obtain information that meets the information query condition and has expired from the information of the business system as response information corresponding to the business request.
[0022] By adopting the above scheme, expired information is used to provide feedback to the offensive business request. Since the expired information itself is also real information belonging to the business system, it can improve the deception effect on the attacker compared to using false information.
[0023] In one possible implementation, the business server can add an expired version number to the business request to obtain an updated business request. The updated business request is executed by the business system to obtain expired information that meets the information query condition from the information in the business system as response information corresponding to the business request.
[0024] In this technical solution, the business server adds an expired version number to the business request to obtain an updated business request. The updated business request is executed by the business system to obtain the expired information that meets the information query conditions in the information of the business system as the response information corresponding to the business request. The expired version number can be preset by the user or temporarily generated.
[0025] By adopting the above scheme, an expired version number is added to the business request, and the expired information is queried with an updated business request as response information. In this way, the normal processing mechanism of the business system can be used when processing the updated business request, which can improve the deception effect on attackers.
[0026] In one possible implementation, the business server may generate false information that meets the information query conditions based on false information generation rules in the business system as response information corresponding to the business request.
[0027] In this technical solution, the business server can generate false data, and the false data has the same attributes as the format and other attributes of the data corresponding to the information query conditions. The false information generation rules can be set by the technical staff.
[0028] By adopting the above scheme, false information can be selectively used to deceive attackers for certain information that is easy to fabricate, which can improve the deception effect on some offensive business requests.
[0029] In a possible implementation, the service server may obtain rejection information in the service system as response information corresponding to the service request.
[0030] In this technical solution, the business server can obtain rejection information in the business system, which is the rejection information of the business request in the normal business processing process. The rejection information can be "too low authority to query", "queried information does not exist", etc.
[0031] The above solution can improve the security of the business system on the one hand, and selectively deny access to some information on the other hand, because normal business systems will deny business requests, so this process can also improve the deception effect on attackers to some extent.
[0032] In a possible implementation, after obtaining the response information corresponding to the service request, the service server may store the response information and the attack information in correspondence with each other, wherein the response information is used to provide feedback to the service request when a service request carrying the attack information is received again.
[0033] In this technical solution, the response information and the attack information can be stored in the storage space of the business system, in the storage space of the virtual machine where the honeypot business system is located, or in another virtual machine.
[0034] By adopting the above solution, the processing of service requests with the same attack information can be simplified and the processing efficiency can be improved.
[0035] In a second aspect, a device for processing an aggressive service request is provided, the device comprising at least one module, and the at least one module is used to implement the method for processing an aggressive service request provided by the above-mentioned first aspect and its possible implementation methods.
[0036] In a third aspect, a computer device is provided, the computer device comprising a memory and a processor, the memory being used to store computer instructions. The processor executes the computer instructions stored in the memory, so that the computer device executes the method for processing an offensive service request provided by the first aspect and possible implementations thereof.
[0037] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. In response to the computer program code being executed by a computer device, the computer device executes the method for processing aggressive business requests provided by the first aspect and its possible implementation methods.
[0038] In a fifth aspect, a computer program product is provided, the computer program product comprising computer program code, in response to the computer program code being executed by a computer device, the computer device executes the method for processing aggressive business requests provided by the first aspect and its possible implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a structural diagram of a business system provided by an embodiment of the present application;
[0040] Figure 2 It is a structural diagram of a business server provided in an embodiment of the present application;
[0041] Figure 3 This is a flow chart of a method for processing an aggressive service request provided by an embodiment of the present application;
[0042] Figure 4 It is a schematic diagram of a business server architecture and its business request processing process provided by an embodiment of the present application;
[0043] Figure 5 It is a schematic diagram of a business server architecture and its business request processing process provided by an embodiment of the present application;
[0044] Figure 6 It is a structural diagram of a device for processing aggressive business requests provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The embodiment of the present application provides a method for processing an offensive service request, which can be executed by a service server. The service server runs a service system, which can be directly run on a physical machine or on a virtual machine built on the service server. The service system can be a background system for services such as video, audio, communication, and games. Figure 1 As shown, the business system may include a web page (Web) display layer, a data layer and a system layer. The Web display layer may include a front-end component layer, a middleware layer and a hypertext transfer protocol server (HTTP Server) layer. The data layer may include a database, the database includes a data table, and the data table includes multiple data fields. The system layer may include system / file information, directory information, process information and communication matrix information, etc.
[0046] Figure 2 It is a schematic diagram of the structure of a business server provided in an embodiment of the present application. From the perspective of hardware composition, the structure of the computer device may include a processor 210, a memory 220 and a communication component 230.
[0047] The processor 210 may be a central processing unit (CPU) or a system on chip (SoC), etc. The processor 210 may be used to perform related processing of service requests, for example, executing query commands to classify offensive service requests, etc.
[0048] The memory 220 may include various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory 220 may be used to store and record relevant data in the process of processing offensive business requests, for example, storing various response information generation rules, etc.
[0049] The communication component 230 may be a network card, a wired network connector, an ultra wide band (UWB), a wireless fidelity (WiFi) module, a Bluetooth module, a cellular network communication module, etc. The communication component 230 may be used to transmit data with other devices, which may be terminals or service servers.
[0050] The embodiment of the present application provides a method for processing offensive service requests, which realizes the function of a honeypot, that is, while ensuring that the actual service system is not attacked by the attacker, the attacker is misled into thinking that the attack on the service system has been achieved and continues his attack behavior. In this process, the attacker's attack behavior is recorded. Figure 3 As shown, the method comprises the following steps:
[0051] 301. The service server determines that the received service request is an offensive service request.
[0052] After the communication component receives the service request, the service server can determine whether the request is an attack request in the following manner.
[0053] Method 1: The service server obtains the offensive identification result identifier in the received service request. The offensive identification result identifier can be an attack identifier or a non-attack identifier. When the offensive identification result identifier is an attack identifier, the service request is determined to be an offensive service request.
[0054] The offensive identification result identifier is added to the service request by the intrusion detection device. An intrusion detection device refers to a network security device that can monitor the operation status of the network and identify and classify service requests. The intrusion detection device can be a gateway device or a management server, etc., depending on their deployment method and working mode. In the case of gateway devices, they are connected between different networks or security domains to monitor the service requests flowing through.
[0055] Before sending the service request to the service server where the service system is located, the intrusion detection device first detects the received service request to determine whether the service request is an offensive service request. Specifically, the content of the service request can be parsed, and whether it is an offensive service request can be determined based on the content obtained by parsing (there are many methods for identifying the offensiveness of the service request, which are not specifically introduced in the embodiment of the present application). Then, a token can be inserted into the service request. The token can be a string composed of at least one of letters, numbers and symbols. The token is used to indicate whether the service request is an offensive service request. After that, the service request with the inserted token is sent to the service server. After the service server receives the service request, the token parsing classifier parses the token in the service request, and determines whether the service request is an offensive request based on the token. If it is an offensive request, its attack type can also be determined to add a corresponding attack identifier. The token parsing classifier can be run in a virtual machine, or it can be integrated in the middleware layer of the service system to run. If the token parsing classifier determines that the service request is an offensive service request based on the token, step 302 is executed, otherwise the service request is processed normally by the service system.
[0056] Method 2: The service server identifies the received service request based on the RASP program and determines that the service request is an offensive service request.
[0057] The RASP program can identify and classify received service requests in the service system, and can be integrated in the middleware layer of the service system for operation. If the RASP program determines that the service request is an offensive service request, step 302 is executed, otherwise the service request is processed by the service system.
[0058] 302. The service server obtains attack information in the service request.
[0059] The attack information may be an information query condition. Such an offensive service request is used to illegally obtain information beyond the authority. The information query condition includes a data table identifier, a system parameter identifier or a system file name.
[0060] When the business type of the business request is a data read business type, the information query condition carried in the business request can be a data table identifier. In this case, the business request is used to read the data in the corresponding data table in the database of the business system. In addition, the information query condition can also include some finer-grained information, such as data field names or permissions. When the data field name is included, the business request is used to read the data of the corresponding data field in the corresponding data table. When the permission is included, the business request is used to read the data of the corresponding permission in the corresponding data table.
[0061] For example, in order to query the data of "admin" (a string indicating authority) using a business request, the attacker uses a structured query language (SQL) injection, and sends a business request of "https: / / www.xxx.com / x.php?id=-1union all select 1, articles, content from books where article_user_role='admin'". The attack classification program parses the information query condition in the business request and determines that the information query condition is to query the data with the authority of "admin" in the data table marked as "book".
[0062] When the service type of the service request is a system parameter query service type, the information query condition carried in the service request may be a system parameter identifier. In this case, the service request is used to read the corresponding system parameters in the system layer of the service system. In addition, the information query condition may also include some finer-grained information, such as the version number of the system parameter. When the version number of the system parameter is included, the service request is used to read the system parameter of the corresponding version number.
[0063] When the service type of the service request is a system file download service type, the information query condition carried in the service request may be a system file name. In this case, the service request is used to read the corresponding system file in the system layer of the service system. In addition, the information query condition may also include some finer-grained information, such as the version number of the system file. When the version number of the system file is included, the service request is used to read the system file of the corresponding version number.
[0064] In another case, the attack information may also be an attack file. This type of offensive service request is used to illegally upload attack files, such as Trojans.
[0065] 303. The business server generates rules by matching response information based on the attack information.
[0066] Users can set response information generation rules for different information in the business system in advance. Information in the business system can include data in the database, system parameters and system files of the business system, etc. Response information generation rules can include obtaining low-authority information, obtaining expired information, obtaining false information, obtaining rejected information, etc. The specific information corresponding to which rule can be set by the user.
[0067] For the data in the database, the corresponding response information generation rules can be set in units of data tables, so the user can establish a correspondence between the data table identifier and the response information generation rules. Optionally, a finer granularity can be adopted to set the corresponding response information generation rules in units of data fields, so the user can establish a correspondence between the data table identifier, data field name and the response information generation rules. Optionally, another fine-grained setting method is to set the corresponding response information generation rules in units of data with different permissions in the data table, so the user can establish a correspondence between the data table identifier, permissions and the response information generation rules.
[0068] After obtaining the information query conditions in the business request, the business server can search in the above corresponding correspondence according to the content in the information query conditions to determine the response information generation rule. For example, the information query conditions only include the data table identifier, and the corresponding response information generation rule can be searched in the correspondence between the data table identifier and the response information generation rule. For another example, the information query conditions include the system file name, and the corresponding response information generation rule can be searched in the correspondence between the system file name and the response information generation rule. For another example, the information query conditions include the system parameter identifier, and the corresponding response information generation rule can be searched in the correspondence between the system parameter identifier and the response information generation rule.
[0069] Optionally, different function modules may be set for service requests of different attack types to determine the response information generation rules. Among them, the attack types may include data attacks, command execution attacks, and file manipulation attacks. Data attacks are attacks that unauthorizedly query the data of the business system. Command execution attacks are attacks that unauthorizedly query the system parameters of the business system. File manipulation attacks are attacks that upload malicious files, or unauthorizedly read and download system files.
[0070] After determining the information query condition of the service request, the service server can further determine the attack type of the service request, and then determine the response information generation rule through the function module of the attack type. The specific processing process can be as follows.
[0071] The business server can determine the attack type through an attack classifier, which can be installed in a virtual machine established in the business server or integrated in the middleware layer of the business system. Alternatively, the attack type can be determined through a RASP program.
[0072] When identifying the attack type, the service type of the offensive service request can be determined first, and then the attack type can be determined based on the service type. For example, if the service type is a data reading service type, the attack type can be determined to be a data attack; if the service type is a system parameter query service type, the attack type can be determined to be a command execution attack; if the service type is a system file download service type, the attack type can be determined to be a file manipulation attack.
[0073] For data attacks, triggers can be integrated into the data layer of the business system to query and execute the response information generation rules through triggers. Correspondingly, the trigger will store the correspondence between the data table identifier and the response information generation rules, or the correspondence between the data table identifier, data field name and the response information generation rules, or the correspondence between the data table identifier, permissions and the response information generation rules.
[0074] For command execution attacks and file manipulation attacks, an information reader can be integrated at the system level of the business system, and the response information generation rules can be queried and executed through the information reader. Accordingly, the information reader will store the correspondence between the system parameter identifier and the response information generation rule, as well as the correspondence between the system file name and the response information generation rule.
[0075] 304. The business server obtains response information corresponding to the business request based on the response information generation rule and the information in the business system.
[0076] The execution code of each response information generation rule can be integrated into the business system, and the execution code is used to obtain the response information corresponding to the business request. The execution code of various response information generation rules can be integrated into the above trigger and information reader.
[0077] After the business server matches the response information generation rule based on the attack information, it can obtain the execution code of the response information generation rule (this process can be performed by a trigger or an information reader). Then, the business server runs the execution code and obtains the response information corresponding to the business request based on the information in the business system. This process can be performed by a trigger or an information reader. The response information generation rule can have multiple forms, and the corresponding response information can also be generated in multiple ways.
[0078] Method 1: The business server obtains low-authority information that meets the information query conditions from the information in the business system as response information corresponding to the business request.
[0079] If the business request does not carry a string for indicating authority, a string corresponding to low authority can be added to the business request to obtain an updated business request. If the business request carries a string for indicating high authority, the string corresponding to high authority can be modified to a string corresponding to low authority to obtain an updated business request. If the business request carries a string for indicating low authority, no modification is required, that is, the updated business request is the same as the original business request. Multiple permissions can be pre-set in the business system, and corresponding strings representing different permissions can be set. For example, only two permissions, high authority and low authority, can be set, and strings representing these two permissions can be set respectively. For another example, N levels of authority can be set, namely level 1 authority, level 2 authority, level 3 authority and level 4 authority, and strings representing these four permissions can be set respectively.
[0080] The updated business request is executed through the business system to obtain low-authority information that meets the information query conditions in the information of the business system as response information corresponding to the business request.
[0081] For example, the data table identifier in the business request is "book" and the authority is "admin". The business server can match the corresponding response information generation rule based on "book", and based on the response information generation rule, modify "admin" to "anyuser" to obtain an updated business request.
[0082] Method 2: The business server obtains the expired information that meets the information query conditions from the information in the business system as the response information corresponding to the business request.
[0083] The business server adds the expired version number to the business request to obtain an updated business request. The updated business request is executed by the business system to obtain the expired information that meets the information query condition from the information in the business system as the response information corresponding to the business request.
[0084] The expired version number may be pre-set by the user or may be temporarily generated. For the temporary generation, the process of obtaining the expired version number is described below.
[0085] For data attacks, the business server can obtain the information query conditions in the business request (taking the data table identifier as an example). Then, the current version number corresponding to the data table identifier can be determined. The current version number is modified according to certain rules to obtain an expired version number, for example, the last digit is reduced by 1. Alternatively, all version numbers corresponding to the data table identifier can be determined, the current version number is removed from all version numbers, and a version number is randomly selected from all remaining version numbers, and this version number is the expired version number.
[0086] For command execution attacks, the business server can obtain the system parameter identifier in the business request and then use a similar method to determine the expired version number.
[0087] For file manipulation attacks, the business server can obtain the system file name in the business request and then use a similar method to determine the expired version number.
[0088] Method three: The business server generates false information that meets the information query conditions based on the false information generation rules in the business system as response information corresponding to the business request.
[0089] The business server can generate false data, and the false data has the same attributes as the format and other attributes of the data corresponding to the information query conditions. The false information generation rules can be set by technical personnel.
[0090] For example, if the data field included in the information query condition is named name, the false information generation rule may be to randomly select a surname and a given name from the surname character library and the given name library to combine and generate a name as false data.
[0091] Method 4: Obtain rejection information from the business system as response information corresponding to the business request.
[0092] The business server can obtain the rejection information in the business system, which is the rejection information of the business request in the normal business processing process. The rejection information can be "too low authority to query", "queried information does not exist", etc., and then use the rejection information as response information.
[0093] In addition, after obtaining the response information corresponding to the service request, the service server can store the response information in correspondence with the attack information, and can store it in the storage space of the service system, in the storage space of the virtual machine where the honeypot service system is located, or in another virtual machine. Among them, the response information stored in correspondence with the attack information is used to directly provide feedback to the service request when a service request with the same attack information is obtained again. When the service server receives an offensive service request again, it obtains the attack information carried therein, uses the attack information to search, and if the corresponding response information is found, the found response information can be used to provide feedback to the service request.
[0094] 305. The service server uses response information to feedback the service request.
[0095] After obtaining the response information through the processing of step 304, the same feedback message as the feedback of the normal business request is used to carry the response information, and feedback is given to the offensive business request. For the above method one, the data layer processes the updated business request to obtain the response information and feeds back through the Web presentation layer. For the above method two, the system layer processes the updated business request to obtain the response information and feeds back through the Web presentation layer. For the above method three, the trigger or information reader obtains false information as response information and feeds back through the Web presentation layer. For the above method four, the trigger or information reader obtains the rejection information in the business system as response information, and feeds back through the Web presentation layer.
[0096] In addition, the business server can record the business request and the corresponding response information, and can also record some related information, such as request time, feedback time, information of the request sender, etc. In this way, the business server will count a large number of records and summarize the attacker's behavior. Technical personnel can retrieve these records to analyze the characteristics of the attacker's attack behavior and formulate corresponding defense measures.
[0097] The token parsing classifier, RASP program, attack classifier, trigger, shell command parser, information reader and virtual machine involved in the above-mentioned business server are used to realize the function of the honeypot in the business server, and they together constitute a new type of honeypot.
[0098] The present application embodiment provides a method for processing an offensive service request. The method is applied to Figure 4 In the business server architecture shown. In the business server, the parts except the virtual machine, token parsing classifier, attack classifier, trigger, shell command parser, information reader and virtual machine can be considered as a normal business system, and the virtual machine, token parsing classifier, attack classifier, trigger, shell command parser, information reader and virtual machine can be considered as a new type of honeypot. The token parsing classifier can run in the virtual machine. The attack classifier can be integrated in the middleware layer of the business system. The trigger can be integrated in the data layer of the business system. The shell command parser can run in the virtual machine. The information reader can be integrated in the system layer of the business system. The processing flow of the method may include the following steps.
[0099] 401: The business server receives a business request for inserting a token.
[0100] 402, if the token parsing classifier determines that the service request is a normal service request (non-offensive), the service request will be handed over to the service system for normal processing; if the service request is determined to be an offensive service request, it will be handed over to the attack classifier for processing.
[0101] 403, the attack classifier determines the attack type of the business request. If it is a data attack, it will be handled by the trigger. If it is a command execution attack or a file manipulation attack of unauthorized reading or downloading of system files, it will be handled by the shell command parser. If it is a file manipulation attack of uploading files, it will be handled by the honeypot business system in the virtual machine.
[0102] The processing of data attacks is steps 404-405, the processing of command execution attacks or unauthorized reading and downloading of system files is steps 406-408. The processing of file manipulation attacks of uploaded files is step 409. There is no necessary order in the timing of these three processing parts.
[0103] 404, the trigger obtains the information query conditions in the business request (which may include the data table identifier, and may also include the data field name or permission), determines the response information generation rules based on the information query conditions, and executes the execution code of the rules, and generates response information in combination with the information of the business system.
[0104] For the specific processing method of generating the response information, please refer to the relevant content in the above embodiment.
[0105] 405: The data layer uses response information to provide feedback to the business request.
[0106] The trigger is integrated in the data layer. Feedback processing can be executed by the trigger or by the database of the data layer. For specific processing, please refer to the above embodiment content.
[0107] 406, the shell command parser parses the business request, obtains the content of each field in the business request (such as a system parameter identifier or a system file name, etc.), and sends it to the information reader for processing.
[0108] 407, the information reader determines the response information generation rule based on the system parameter identifier or system file identifier in the content of each field in the business request, executes the execution code of the rule, and generates the response information in combination with the information of the business system.
[0109] For the specific processing method of generating the response information, please refer to the relevant content in the above embodiment.
[0110] 408: The system layer uses response information to provide feedback to the business request.
[0111] The information reader is integrated in the system layer. Feedback processing can be performed by the information reader or by conventional functional modules of the system layer. For specific processing, please refer to the above embodiment.
[0112] 409, the honeypot business system processes the business request, obtains response information and provides feedback.
[0113] The honeypot business system can be established in a virtual machine, and the virtual machine can be established in a business server. The system files and system parameters of the honeypot business system can completely mirror the business system, and the database of the honeypot business system can be empty.
[0114] The honeypot business system will store the file in the target folder according to the instructions of the business request, and then feedback that the upload is successful. For example, the business request carries an upload script upload.php, which is used to upload an attack script hack.php to the business system. After the attack classification program identifies it, the business request can be sent to the honeypot business system in the virtual machine for processing. The business request carries the path information of the hack.php file (i.e., the attack file) and the target folder. The honeypot business system will store the hack.php file in the target folder according to the instructions of the business request, and then feedback that the upload is successful.
[0115] The present application embodiment provides a method for processing an offensive service request. The method is applied to Figure 5 In the business server architecture shown. In the business server, the parts other than the virtual machine, RASP program, distributor, trigger, shell command parser, information reader and virtual machine can be considered as a normal business system, and the virtual machine, RASP program, distributor, trigger, shell command parser, information reader and virtual machine can be considered as a new type of honeypot. The RASP program can be integrated in the middleware layer of the business system. The distributor can be integrated in the middleware layer of the business system. The trigger can be integrated in the data layer of the business system. The shell command parser can run in the virtual machine. The information reader can be integrated in the system layer of the business system. The processing flow of the method may include the following steps.
[0116] 501. The service server receives a service request.
[0117] 502. If the RASP program determines that the service request is a normal service request (non-offensive), the RASP program notifies the distributor of the aggressiveness identification result. If the RASP program determines that the service request is an aggressive service request, the RASP program further determines the attack type of the service request and notifies the distributor of the attack type.
[0118] 503. If the business request is a normal business request, the distributor will hand the business request over to the business system for normal processing. If it is a data attack, it will be handled by the trigger. If it is a command execution attack or a file manipulation attack of unauthorized reading or downloading of system files, the distributor will hand the business request over to the shell command parser for processing. If it is a file manipulation attack of uploading files, the distributor will hand the business request over to the honeypot business system in the virtual machine for processing.
[0119] The processing of data attacks is steps 504-505, the processing of command execution attacks or unauthorized reading and downloading of system files is steps 506-508. The processing of file manipulation attacks of uploading files is step 509. There is no necessary order in the timing of these three processing parts.
[0120] 504, the trigger obtains the information query conditions in the business request (which may include the data table identifier, and may also include the data field name or permission), determines the response information generation rules based on the information query conditions, and executes the execution code of the rules, and generates response information in combination with the information of the business system.
[0121] For the specific processing method of generating the response information, please refer to the relevant content in the above embodiment.
[0122] 505: The data layer uses response information to provide feedback to the service request.
[0123] The trigger is integrated in the data layer. Feedback processing can be executed by the trigger or by the database of the data layer. For specific processing, please refer to the above embodiment content.
[0124] 506, the shell command parser parses the business request, obtains the content of each field in the business request (such as a system parameter identifier or a system file name, etc.), and sends it to the information reader for processing.
[0125] 507, the information reader determines the response information generation rule based on the system parameter identifier or system file identifier in the content of each field in the business request, executes the execution code of the rule, and generates the response information in combination with the information of the business system.
[0126] For the specific processing method of generating the response information, please refer to the relevant content in the above embodiment.
[0127] 508: The system layer uses the response information to provide feedback to the service request.
[0128] The information reader is integrated in the system layer. Feedback processing can be performed by the information reader or by conventional functional modules of the system layer. For specific processing, please refer to the above embodiment.
[0129] 509, the honeypot business system processes the business request, obtains response information and provides feedback.
[0130] The honeypot business system will store the file in the target folder according to the instructions of the business request, and then feedback that the upload is successful.
[0131] The method provided in the embodiment of the present application is used to process offensive business requests. After receiving the offensive business request, the business server can respond to the offensive business request based on the response information generation rules and the information in the business system. Using the information in the business system to generate response information can improve the simulation effect of the honeypot business system, so that the technical staff of the business system can more accurately obtain information such as the attack mode and behavior logic of the attack, so as to better specify defense measures against the attack. In addition, the method does not need to separately deploy a honeypot business system that is similar to the business system architecture and stores a large amount of fictitious data, which can reduce the hardware resources occupied by processing offensive business requests.
[0132] Based on the same technical concept, the embodiment of the present application also provides a device for processing an offensive service request. Figure 6 As shown, the device comprises:
[0133] The determination module 610 is used to determine whether the received service request is an offensive service request, and can specifically implement the determination functions in the above steps 301, 402 and 502, as well as other implicit steps.
[0134] The matching module 620 is used to match the response information generation rules based on the attack information carried in the service request, and can specifically implement the matching functions in the above steps 303, 403 and 502, as well as other implicit steps.
[0135] The acquisition module 630 is used to acquire the response information corresponding to the business request based on the response information generation rule and the information in the business system. Specifically, it can implement the acquisition functions in the above steps 304, 404, 406-407, 409, 504, 506-507 and 509, as well as other implicit steps.
[0136] The feedback module 640 is used to use the response information to provide feedback to the service request, and can specifically implement the feedback functions in the above steps 305, 405, 408, 409, 505, 508 and 509, as well as other implicit steps.
[0137] Optionally, the business system is integrated with execution code for response information generation rules, and the execution code is used to execute the processing of obtaining response information corresponding to the business request.
[0138] Optionally, the matching module 620 is used to match the response information generation rule based on the information query condition carried in the business request, wherein the information query condition includes a data table identifier, a system parameter identifier or a system file name.
[0139] Optionally, when the query condition information includes a data table identifier, the query condition information also includes a data field name or permission.
[0140] Optionally, the acquisition module 630 is used to acquire low-authority information that meets the information query conditions from the information of the business system as response information corresponding to the business request.
[0141] Optionally, the acquisition module 630 is used to set the authority in the business request to low authority to obtain an updated business request. The updated business request is executed through the business system to obtain low-authority information that meets the information query condition in the information of the business system as response information corresponding to the business request.
[0142] Optionally, the acquisition module 630 is used to acquire, from the information of the business system, information that meets the information query condition and has expired, as response information corresponding to the business request.
[0143] Optionally, the acquisition module 630 is used to add an expired version number to the business request to obtain an updated business request. The updated business request is executed by the business system to obtain expired information that meets the information query condition in the information of the business system as response information corresponding to the business request.
[0144] Optionally, the acquisition module 630 is used to generate false information that meets the information query conditions based on false information generation rules in the business system as response information corresponding to the business request.
[0145] Optionally, the acquisition module 630 is used to acquire rejection information in the business system as response information corresponding to the business request.
[0146] Optionally, the acquisition module 630 is further configured to store the response information and the attack information in correspondence with each other, wherein the response information is used to provide feedback to the service request when a service request carrying the attack information is received again.
[0147] The above-mentioned determination module 610, matching module 620, acquisition module 630 and feedback module 640 can be implemented by a processor in a computer device, or by the processor and a memory, or by the processor executing program instructions in the memory.
[0148] The device provided in the embodiment of the present application is used to process offensive business requests. After receiving the offensive business request, the business server can respond to the offensive business request based on the response information generation rules and the information in the business system. Using the information in the business system to generate response information can improve the simulation effect of the honeypot business system, so that the technical staff of the business system can more accurately obtain information such as the attack method and behavior logic of the attack, so as to better specify defense measures against the attack. In addition, by using this device, it is no longer necessary to separately deploy a honeypot business system that is similar to the business system architecture and stores a large amount of fictitious data, which can reduce the hardware resources occupied by processing offensive business requests.
[0149] The device for processing an aggressive service request provided in the above embodiment only uses the division of the above functional modules as an example when processing an aggressive service request. In actual applications, the above functional distribution can be completed by different functional modules as needed, that is, the internal structure of the device for processing an aggressive service request is divided into different functional modules to complete all or part of the functions described above. In addition, the device for processing an aggressive service request provided in the above embodiment and the method embodiment for processing an aggressive service request belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0150] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the device, the process or function described in the embodiment of the present application is generated in whole or in part. 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 a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by the device or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (such as a floppy disk, a hard disk and a tape, etc.), an optical medium (such as a digital video disk (digital video disk, DVD), etc.), or a semiconductor medium (such as a solid-state hard disk, etc.).
[0151] The terms used in the embodiments of the present disclosure are only used to explain the embodiments of the present disclosure, and are not intended to limit the present disclosure. Unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be the common meanings understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure specification and claims do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one" or "one" do not indicate a quantity limit, but indicate that there is at least one. Similar words such as "include" or "include" mean that the elements or objects appearing in front of "include" or "include" include the elements or objects listed after "include" or "include" and their equivalents, and do not exclude other elements or objects. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. "Multiple" refers to two or more, unless otherwise clearly defined.
[0152] The above description is only an embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0153] The information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
Claims
1. A method for processing an aggressive service request, characterized in that: The method comprises: Determining that the received service request is an offensive service request; Based on the attack information carried in the service request, matching response information generation rules; Based on the response information generation rule and information in the business system, obtaining response information corresponding to the business request; The response information is used to provide feedback to the service request.
2. The method according to claim 1, characterized in that The business system is integrated with the execution code of the response information generation rule, and the execution code is used to execute the processing of obtaining the response information corresponding to the business request.
3. The method according to claim 1 or 2, characterized in that: The matching of the response information generation rule based on the attack information carried in the service request includes: Based on the information query condition carried in the business request, a response information generation rule is matched, wherein the information query condition includes a data table identifier, a system parameter identifier or a system file name.
4. The method according to claim 3, characterized in that When the query condition information includes a data table identifier, the query condition information also includes a data field name or authority.
5. The method according to claim 3, characterized in that: The acquiring, based on the response information generation rule and information in the business system, response information corresponding to the business request includes: From the information of the business system, low-authority information that meets the information query condition is obtained as response information corresponding to the business request.
6. The method according to claim 5, characterized in that The obtaining, from the information of the business system, low-authority information that meets the information query condition as response information corresponding to the business request includes: Setting the authority in the business request to a low authority to obtain an updated business request; The updated business request is executed through the business system to obtain low-authority information that meets the information query condition from the information of the business system as response information corresponding to the business request.
7. The method according to claim 3, characterized in that The acquiring, based on the response information generation rule and information in the business system, response information corresponding to the business request includes: From the information of the business system, information that meets the information query condition and has expired is obtained as response information corresponding to the business request.
8. The method according to claim 7, characterized in that The obtaining, from the information of the business system, information that meets the information query condition and has expired as response information corresponding to the business request includes: Adding the expired version number to the service request to obtain an updated service request; The updated business request is executed through the business system to obtain information that meets the information query condition and has expired from the information in the business system as response information corresponding to the business request.
9. The method according to claim 3, characterized in that: The acquiring, based on the response information generation rule and information in the business system, response information corresponding to the business request includes: Based on the false information generation rules in the business system, false information that meets the information query conditions is generated as response information corresponding to the business request.
10. The method according to claim 3, characterized in that The acquiring, based on the response information generation rule and information in the business system, response information corresponding to the business request includes: Rejection information in the business system is obtained as response information corresponding to the business request.
11. The method according to any one of claims 1 to 10, characterized in that: After obtaining the response information corresponding to the service request, the method further includes: The response information and the attack information are stored correspondingly, wherein the response information is used to provide feedback to the service request when a service request carrying the attack information is received again.
12. A device for processing an aggressive service request, characterized in that: The device comprises: A determination module, used to determine whether a received service request is an offensive service request; A matching module, used to match response information generation rules based on the attack information carried in the service request; An acquisition module, configured to acquire response information corresponding to the business request based on the response information generation rule and information in the business system; A feedback module is used to use the response information to provide feedback on the service request.
13. The device according to claim 12, characterized in that The business system is integrated with the execution code of the response information generation rule, and the execution code is used to execute the processing of obtaining the response information corresponding to the business request.
14. The device according to claim 12 or 13, characterized in that The matching module is used for: Based on the information query condition carried in the business request, a response information generation rule is matched, wherein the information query condition includes a data table identifier, a system parameter identifier or a system file name.
15. The device according to claim 14, characterized in that When the query condition information includes a data table identifier, the query condition information also includes a data field name or authority.
16. The device according to claim 14, characterized in that The acquisition module is used for: From the information of the business system, low-authority information that meets the information query condition is obtained as response information corresponding to the business request.
17. The device according to claim 16, characterized in that The acquisition module is used for: Setting the authority in the business request to a low authority to obtain an updated business request; The updated business request is executed through the business system to obtain low-authority information that meets the information query condition from the information of the business system as response information corresponding to the business request.
18. The device according to claim 14, characterized in that The acquisition module is used for: From the information of the business system, information that meets the information query condition and has expired is obtained as response information corresponding to the business request.
19. The device according to claim 18, characterized in that The acquisition module is used for: Adding the expired version number to the service request to obtain an updated service request; The updated business request is executed through the business system to obtain information that meets the information query condition and has expired from the information in the business system as response information corresponding to the business request.
20. The device according to claim 14, characterized in that The acquisition module is used for: Based on the false information generation rules in the business system, false information that meets the information query conditions is generated as response information corresponding to the business request.
21. The device according to claim 14, characterized in that The acquisition module is used for: Rejection information in the business system is obtained as response information corresponding to the business request.
22. The device according to any one of claims 12 to 21, characterized in that The acquisition module is also used for: The response information and the attack information are stored correspondingly, wherein the response information is used to provide feedback to the service request when a service request carrying the attack information is received again.
23. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory is used to store computer instructions; The processor executes the computer instructions stored in the memory to enable the computer device to perform the method according to any one of claims 1 to 11.
24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code. In response to the computer program code being executed by a computer device, the computer device executes the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Access behavior processing method and device, storage medium and electronic equipment
CN112995151A
Honeypot flow processing method and device, electronic equipment and storage medium
CN115225349A
Request response method and device, storage medium and electronic equipment
CN115296895A
Domain name information query method, system, device and equipment and storage medium
CN115442329A
