System vulnerability detection method, device, terminal equipment and medium
Through the automated vulnerability detection method, the attack parameters in the interception log are used to replay and analyze in the test environment, which solves the problem of low efficiency and accuracy of WEB system vulnerability detection in the existing technology, and achieves fast and accurate vulnerability identification and Repairs ensure system stability.
Patent Information
- Application Number
- CN201910668483.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-23
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The vulnerability detection efficiency and accuracy of existing WEB systems are low, causing operation and maintenance personnel to spend a lot of time on manual analysis and are prone to errors.
By obtaining the interception log of the WEB application firewall, parsing and extracting attack parameters, establishing a simulation object in the test environment, replaying the attack parameters and receiving response information, it can automatically identify system vulnerabilities and avoid manual analysis.
It improves the efficiency and accuracy of WEB system vulnerability detection, reduces damage to the production environment, ensures stable operation of the system, and reduces repetitive vulnerability verification.
Smart Images

Figure CN110472414B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of security technology, and in particular relates to a system vulnerability detection method, device, terminal equipment and computer-readable storage medium. Background Art
[0002] A WEB application firewall is a comprehensive WEB security protection device that integrates WEB protection, web page protection, load balancing, and application delivery. Generally speaking, a WEB application firewall will monitor all network data flowing through the WEB application firewall based on predetermined attack features. If a large amount of network data matching the attack features is found during daily monitoring, the WEB application firewall will intercept or record the network data. Since the WEB application firewall only has the above-mentioned data interception and recording functions, it cannot automatically determine whether the currently intercepted network data will have an impact on the business system, and whether the system is still at risk of being attacked. Therefore, operation and maintenance personnel often need to export such intercepted data and then conduct manual analysis and confirmation.
[0003] However, when the amount of log attacks collected by the WEB application firewall is large, it will take a lot of time for the operation and maintenance personnel to conduct risk verification and investigation item by item, and it is easy to make manual analysis errors, which leads to low detection efficiency and accuracy of WEB system vulnerabilities. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a system vulnerability detection method, apparatus, terminal device and computer-readable storage medium to solve the problem that the detection efficiency and detection accuracy of existing WEB system vulnerabilities are relatively low.
[0005] A first aspect of an embodiment of the present invention provides a method for detecting a system vulnerability, comprising:
[0006] Obtain the interception logs collected by the WEB application firewall;
[0007] Parsing the interception log to extract attack parameters associated with the attack event in the interception log; the attack parameters include address information of the object to be attacked;
[0008] Determine, according to the address information, a simulation object in the test environment corresponding to the object to be attacked;
[0009] replaying the attack parameters in the test environment, and receiving response information returned by the simulation object based on the attack parameters;
[0010] The attack result generated by the attack parameter on the object to be attacked is determined according to the response information, and the system vulnerability information of the object to be attacked is identified based on the attack result.
[0011] A second aspect of an embodiment of the present invention provides a system vulnerability detection device, including:
[0012] The first acquisition unit is used to acquire the interception log collected by the WEB application firewall;
[0013] A parsing unit, used to parse the interception log and extract attack parameters associated with the attack event in the interception log; the attack parameters include address information of the object to be attacked;
[0014] A first determining unit, configured to determine, in a test environment, a simulated object corresponding to the object to be attacked according to the address information;
[0015] A replay unit, configured to replay the attack parameters in the test environment and receive response information returned by the simulation object based on the attack parameters;
[0016] The identification unit is used to determine the attack result generated by the attack parameter on the object to be attacked according to the response information, and identify the system vulnerability information of the object to be attacked based on the attack result.
[0017] A third aspect of an embodiment of the present invention provides a terminal device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the system vulnerability detection method as described above are implemented.
[0018] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the processor executes the computer program, the steps of the method for detecting system vulnerabilities as described above are implemented.
[0019] In the embodiment of the present invention, by reading the interception log collected by the WEB application firewall, extracting the attack parameters associated with the attack event in the interception log, and replaying the attack parameters in the simulation object corresponding to the object to be attacked, the system can realize the simulation operation on the historical attack events of the production environment in the test environment; because the simulation object corresponds to the object to be attacked, the attack result of the object to be attacked on the attack parameters can be indirectly determined by obtaining the response information returned by the simulation object, and the automatic verification of the success or failure of the historical attack event is realized, avoiding the need for operation and maintenance personnel to manually analyze the interception log item by item, ensuring that the operation and maintenance personnel can quickly repair the identified system vulnerabilities in the event of a successful attack event, thereby improving the detection efficiency and detection accuracy of the WEB system vulnerabilities; because the test process of the attack parameters is automatically executed in the test environment, the damage to the production environment data is reduced, the stable operation of the system is guaranteed, and the verification of repeated vulnerabilities is also reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 It is a flow chart of the implementation of the method for detecting system vulnerabilities provided by an embodiment of the present invention;
[0022] Figure 2 is a specific implementation flow chart of the system vulnerability detection method S102 provided in an embodiment of the present invention;
[0023] Figure 3 is a specific implementation flow chart of the system vulnerability detection method S101 provided in an embodiment of the present invention;
[0024] Figure 4 is a flow chart of an implementation of a method for detecting system vulnerabilities provided by another embodiment of the present invention;
[0025] Figure 5 is a flow chart of an implementation method of a system vulnerability detection method provided by another embodiment of the present invention;
[0026] Figure 6 It is a structural block diagram of a system vulnerability detection device provided by an embodiment of the present invention;
[0027] Figure 7 It is a schematic diagram of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0029] It should be understood that although the terms "first", "second", etc. are used in the text to describe various elements in some embodiments of the present invention, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.
[0030] In order to illustrate the technical solution of the present invention, a specific embodiment is provided below for illustration.
[0031] Figure 1 The following is a flowchart of a method for detecting system vulnerabilities provided by an embodiment of the present invention, which is described in detail as follows:
[0032] S101: Obtain the interception log collected by the WEB application firewall.
[0033] In an embodiment of the present invention, a WEB application firewall is used to connect an internal business system and an external network to which a client belongs. The client is used to issue a WEB access request to the internal business system, and the obtained response result is displayed on the terminal interface, so that the client user can realize interactive operations with the internal business system. When the client needs to access any internal business system, the network address of the business system is determined as the destination address, and an access request based on the destination address is issued so that the access request flows through the above-mentioned WEB application firewall. There are specific interception rules preset inside the WEB application firewall. If it is detected that the various access parameters associated with the access request match the interception rules, it is determined that the current client has an access anomaly, so the access request is intercepted and recorded in the system log to obtain an interception log.
[0034] In the embodiment of the present invention, the interception logs collected within the most recent preset period of time are read.
[0035] In particular, for the above interception logs, network parameters matching the preset statistical fields in the interception logs are identified, and the identified network parameters are classified and processed. By recording the classification results in the pre-established ID asset database, effective management of enterprise network service assets is achieved.
[0036] For example, by extracting various destination addresses in the interception log, the internal business systems corresponding to each destination address are all servers that provide WEB access services to the outside world. Therefore, by extracting and summarizing the IP addresses and / or domain name information of all internal business systems that provide WEB access services to the outside world, operation and maintenance personnel can intuitively and quickly view and adjust the various hidden and open sites within the enterprise.
[0037] S102: parsing the interception log to extract attack parameters associated with the attack event in the interception log; the attack parameters include address information of the target to be attacked.
[0038] In the embodiment of the present invention, a preset script code is loaded to extract various field parameters preset in the interception log based on the script code, and the extracted various field parameters are attack parameters associated with the attack event. The script code is the automated code logic pre-written by the operation and maintenance personnel for the vulnerability risk interception rules.
[0039] For example, the attack parameters in the interception log include the address information of the internal business system requested by the client and the system function information of the specific request, etc. The system function information requested by the client may be, for example, a request to read the policy amount of any customer's life insurance policy and a request to query the policy number.
[0040] The internal business system that the illegal client requests to access is the target to be attacked during the business access process.
[0041] As an implementation example of the present invention, in the embodiment of the present invention, a rule matching method is used to identify attack parameters associated with attack events. Specifically, the features to be compared in the network parameters are extracted; the features to be compared are compared with the attack request rules in the pre-established feature library. Among them, the attack request rules are formed according to the request data packets corresponding to the historical attack events, and the request data packets are used to record the information request content received by the attacked host before receiving the successful attack.
[0042] If the feature to be compared matches the attack response rule, the network parameter is determined to be a network parameter with attack features, that is, an attack parameter associated with an attack event.
[0043] Exemplarily, the above attack request rules may be: 1. http format data containing the file name of a preset password file; 2. URL address information containing the storage path of the system security configuration file; 3. regular expressions associated with sensitive words, etc.
[0044] For example, after identifying various types of network parameters in the interception log, if any type of network parameter contains the file name of a preset password file, it means that the network parameter is abnormal data, which is mainly used to attack the target host. Therefore, it is determined to be an attack parameter associated with the attack event.
[0045] As an implementation example of the present invention, Figure 2 A specific implementation process of the system vulnerability detection method S102 provided in an embodiment of the present invention is shown, and is described in detail as follows:
[0046] S1021: Invoke a plurality of preset test tools respectively, each of the test tools corresponding to an attack event type.
[0047] In the embodiment of the present invention, the corresponding test tools are installed and run according to the various logic codes pre-entered by the operation and maintenance personnel. Each test tool corresponds to a type of attack event, so that when the attack parameters associated with the type of attack event are detected, the test tool can quickly identify the type of attack event to which the current access event belongs.
[0048] S1022: For each of the test tools, according to the corresponding attack event type, determine a data collection item associated with the attack event type.
[0049] In the embodiment of the present invention, each preset test tool is called respectively to use each test tool to determine the data collection item related to the corresponding attack event type. The data collection item is the field information of the network parameter required to be detected by the test tool in the process of determining the attack event type.
[0050] S1023: Extract attack parameters matching each of the data collection items from the interception log.
[0051] According to each determined data collection item, a pattern rule of each data collection item, such as a regular expression, is loaded, so as to extract attack parameters matching the data collection item in the interception log through the pattern rule.
[0052] S103: Determine, according to the address information, a simulation object in the test environment corresponding to the object to be attacked.
[0053] The operating environment to which the above-mentioned business system belongs is the production environment, that is, the operating environment that formally provides external services. In the embodiment of the present invention, a test system corresponding to each business system is preset in the test environment. Before the various functions of the business system are released and launched to the generated operating environment, the test operation of the business system needs to be performed in the test environment.
[0054] The business system and its corresponding test system have the same network configuration and system configuration, so that when the business system and its corresponding test system respectively perform the same computing operation, they can obtain the same operating results. The test system corresponding to the current object to be attacked is called the simulation object corresponding to it. The corresponding relationship between the address information of each business system and its test system is stored in a corresponding relationship table.
[0055] In the embodiment of the present invention, for the attack parameters extracted in the above step S103, according to the address information of the object to be attacked contained in the attack parameters, a simulation object matching the address information is searched from the pre-stored corresponding relationship table.
[0056] S104: Replay the attack parameters in the test environment, and receive response information returned by the simulation object based on the attack parameters.
[0057] In the embodiment of the present invention, for the extracted attack parameters, an access request for the attack parameters is recreated, and its destination access address is set to the address information of the simulation object. By issuing the access request in the test environment, the simulation object that receives the access request can perform a response operation corresponding to the access request and return the response information.
[0058] S105: Determine the attack result of the attack parameter on the object to be attacked according to the response information, and identify the system vulnerability information of the object to be attacked based on the attack result.
[0059] When receiving the response information returned by the simulation object, if the response information matches the system function requested to be implemented by the attack event, the attack result of the simulation object with respect to the currently replayed attack parameters is determined to be a successful attack. If the response information does not match the system function requested to be implemented by the attack event, the attack result of the simulation object with respect to the currently replayed attack parameters is determined to be a failed attack.
[0060] Since the configurations of the simulated object and the object to be attacked are exactly the same, the attack result obtained when the current attack parameters are replayed in the simulated object is determined as the actual attack result of the object to be attacked.
[0061] In the embodiment of the present invention, when the attack result is a successful attack, it is determined that the current internal business system has a system vulnerability corresponding to the current attack parameter. At this time, an alarm prompt message is issued to prompt the system operation and maintenance personnel to perform vulnerability repair operations to ensure that when the same type of attack event occurs next time, even if the WEB application firewall does not accurately intercept the malicious network data, the business system will not be at risk of being attacked, thereby improving system security.
[0062] For example, if the system function requested by the attack event is to view the customer information of a customer in the business system, and the response information returned by the simulated object happens to contain the customer information, then it is determined that the response information matches the system function requested by the attack event, and the system customer information has been leaked, and therefore, the attack is determined to be successful.
[0063] In the embodiment of the present invention, by reading the interception log collected by the WEB application firewall, extracting the attack parameters associated with the attack event in the interception log, and replaying the attack parameters in the simulation object corresponding to the object to be attacked, the system can realize the simulation operation on the historical attack events of the production environment in the test environment; because the simulation object corresponds to the object to be attacked, the attack result of the object to be attacked on the attack parameters can be indirectly determined by obtaining the response information returned by the simulation object, and the automatic verification of the success or failure of the historical attack event is realized, avoiding the need for operation and maintenance personnel to manually analyze the interception log item by item, ensuring that the operation and maintenance personnel can quickly repair the identified system vulnerabilities in the event of a successful attack event, thereby improving the detection efficiency and detection accuracy of the WEB system vulnerabilities; because the test process of the attack parameters is automatically executed in the test environment, the damage to the production environment data is reduced, the stable operation of the system is guaranteed, and the verification of repeated vulnerabilities is also reduced.
[0064] As an embodiment of the present invention, Figure 3 The specific implementation process of the system vulnerability detection method S101 provided by the embodiment of the present invention is shown, and is described in detail as follows:
[0065] S1011: Detect whether the site log recording module of the WEB application firewall is in the started state.
[0066] In actual scenarios, the system module of the WEB application firewall may not have the interception rules updated or the site log recording function not enabled under default conditions, which will cause the WEB application firewall to be unable to collect interception logs that can be used for application security analysis. In order to avoid the decrease in the accuracy of vulnerability detection of the WEB business system due to the lack of interception logs, in an embodiment of the present invention, before performing vulnerability security detection, a configuration file is read to determine whether the site log recording module of the WEB application firewall is in the startup state. According to the attribute value of the preset field in the configuration file, it is determined whether the site log recording module of the WEB application firewall is in the startup state.
[0067] If the judgment result is yes, execute step S1012; if the judgment result is no, execute step S1013.
[0068] S1012: If the site log recording module of the WEB application firewall is in the startup state, read the interception log collected by the WEB application firewall.
[0069] If the site log recording module of the WEB application firewall is in the enabled state, it means that the WEB application firewall can intercept the access requests from each client based on the latest updated interception rules and generate interception logs. Therefore, the interception logs collected by the WEB application firewall within the recent preset time period are directly loaded.
[0070] S1013: If the site log recording module of the WEB application firewall is in a disabled state, the mirror traffic flowing through the WEB application firewall port is obtained through a pre-connected traffic detection system, and a corresponding interception log is created based on the mirror traffic.
[0071] If the site log recording module of the WEB application firewall is in a disabled state, the pre-connected traffic detection system is started. The data inflow port of the traffic detection system is connected to a physical port of the WEB application firewall, and the physical port is a mirror port of the data output port of the WEB application firewall. In the WEB application firewall, according to the preset traffic mirror configuration information, the network layer data of the business system flowing through the internal network is mirrored and copied to the above-mentioned traffic detection system, so that the traffic detection system can be used to receive the mirror traffic of the data output port of the WEB application firewall through the mirror port.
[0072] The traffic detection system includes but is not limited to an intrusion prevention system and an intrusion detection system, etc. By parsing and processing the mirrored traffic of the traffic detection system within a recent preset period of time, an interception log corresponding to each interception rule can also be generated.
[0073] In the embodiment of the present invention, the interception log collected by the WEB application firewall is loaded only when it is detected that the site log recording module of the WEB application firewall is in the startup state, which ensures that when the interception log is subsequently parsed and processed, relatively accurate attack parameters of the production business system can be obtained, thereby ensuring that when the vulnerability information of the object to be attacked is detected based on relatively accurate attack parameters, more accurate vulnerability detection results can be obtained; when the site log recording module is in the disabled state, the mirror traffic flowing through the above-mentioned WEB application firewall port is obtained through a pre-connected traffic detection system, and a corresponding interception log is created based on the mirror traffic, so that when the log recording function of the WEB application firewall is not enabled, the vulnerability information detection system can also use another optional monitoring device to obtain the interception log, thereby avoiding ignoring the monitoring and analysis of the attack parameters in the production environment because the attack parameters are not intercepted by the WEB application firewall, thereby also improving the detection accuracy of the vulnerability information of the business system.
[0074] As another embodiment of the present invention, Figure 4 As shown, before the above S102, it also includes:
[0075] S106: In the interception log, if the number of interceptions corresponding to the first request data packet of any source address is greater than a preset threshold, a redirection instruction is created and the redirection instruction is output as response information about the first request data packet; the redirection instruction includes the address information requested to be accessed by the first request data packet and the redirection address information.
[0076] In the embodiment of the present invention, for each interception log obtained in the above step S101, the attribute value of the source address field is read to determine the address information of the source client of the request data packet corresponding to the interception log. Each interception log is compared, and if multiple request data packets with the same source address are detected, the number of interceptions of the request data packets with the same source address is counted.
[0077] If the number of interceptions is greater than the preset threshold, it means that the source client of this type of request data packet has the potential risk of a distributed denial of service (DDoS) attack. Therefore, in order to further confirm whether the source client is an abnormal client, its access parameters are repackaged to generate redirection instructions for its access parameters. The redirection instruction is returned to the source client as the response information of this access request. Among them, the redirection instruction contains the address information requested by the above request data packet and the redirection address information. The redirection address information indicates the address information corresponding to the network location in the process of redirecting the original access request to another network location for access. The redirection address information is the address parameter value preset by the system.
[0078] In the embodiment of the present invention, when the client receives the response information about its request data packet, the redirection instruction can be read out by identifying the response information. Under normal circumstances, the client will automatically execute the redirection instruction to re-issue the access request to the redirection address and make the access request flow through the WEB application firewall.
[0079] S107: In the interception log updated within a preset time period, if the second request data packet of the source address is not detected, or the second request data packet does not carry the redirection address information, the interception log associated with the source address is filtered out.
[0080] When the client is an attacking client that issues an illegal access request, if it receives a redirection instruction regarding a request data packet, it will discard the redirection instruction, and therefore will not issue an access request carrying the redirection address information.
[0081] In an embodiment of the present invention, in the interception log updated within a preset time period, if another request data packet with the same source address is not detected, or the request data packet does not carry redirection address information, then the client corresponding to the source address is confirmed to be an abnormal access client, which is mainly used to consume system resources of the object to be attacked, making it unable to provide normal services. Therefore, the interception log associated with the source address is filtered out, avoiding the subsequent simulation of a large number of access requests for consuming system resources in the test environment, thereby improving the effectiveness of vulnerability detection, and thereby improving the security and operational stability of the test system.
[0082] As another embodiment of the present invention, based on the above embodiments, further detection and processing is performed on the identified system vulnerability information. Figure 5 As shown, after the above S105, it also includes:
[0083] S108: If it is detected that the target to be attacked has a system vulnerability, the access flow of the target to be attacked within a preset time period and the classification identifier of the system vulnerability are obtained.
[0084] When determining the system vulnerability information of the object to be attacked through the above step S105, if the detection result is that the object to be attacked has a system vulnerability, then according to the interception rule hit by the attack parameter corresponding to it in the test environment, the system vulnerability type corresponding to the interception rule is determined. The system vulnerability type is identified as a classification identifier of the system vulnerability existing in the object to be attacked.
[0085] In the embodiment of the present invention, the system log of the WEB application firewall is read to determine the access requests associated with the target to be attacked within the latest preset time period, and then the access traffic of the external client to the target to be attacked within the preset time period is counted.
[0086] S109: Determine the vulnerability risk level of the target to be attacked according to the access traffic and the classification identifier.
[0087] In the embodiment of the present invention, the preset first coefficient value corresponding to the determined classification identifier and the preset second coefficient value corresponding to the access flow are obtained. The first coefficient value and the second coefficient value are calculated and processed by a preset algorithm to obtain a numerical result of the operation. The vulnerability risk level of the object to be attacked is determined according to the pre-established correspondence between the vulnerability risk level and the numerical result of the operation.
[0088] Among them, the higher the vulnerability risk level, the greater the vulnerability risk of the target to be attacked, and the lower its security.
[0089] S110: If the vulnerability risk level reaches a preset level, the access port of the target to be attacked is closed and a vulnerability repair prompt message is issued.
[0090] If the vulnerability risk level of the target to be attacked is greater than or equal to the preset level, it means that the target to be attacked currently has a great risk. Therefore, the access port originally opened to the outside by the target to be attacked is automatically closed, and a vulnerability repair prompt message is issued. The access port is restarted only after the operation and maintenance personnel have repaired the system vulnerability, thus avoiding the risk of business data leakage due to the business system continuing to provide services to the outside when the operation and maintenance personnel fail to monitor in time or when it is difficult to repair the vulnerability, thereby improving the application security of the business system.
[0091] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0092] Corresponding to the method of the above embodiment, Figure 6 A structural block diagram of a system vulnerability detection device provided by an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown. Figure 6 The exemplary system vulnerability detection device may be an execution subject of the system vulnerability detection method provided in the aforementioned embodiment.
[0093] Reference Figure 6 , the vulnerability detection device of the system includes:
[0094] The first acquisition unit 61 is used to acquire the interception log collected by the WEB application firewall.
[0095] The parsing unit 62 is used to parse the interception log and extract attack parameters associated with the attack event in the interception log; the attack parameters include address information of the object to be attacked.
[0096] The first determining unit 63 is configured to determine a simulation object corresponding to the object to be attacked in the test environment according to the address information.
[0097] The replay unit 64 is used to replay the attack parameters in the test environment and receive response information returned by the simulation object based on the attack parameters.
[0098] The identification unit 65 is used to determine the attack result generated by the attack parameter on the object to be attacked according to the response information, and identify the system vulnerability information of the object to be attacked based on the attack result.
[0099] Optionally, the first acquiring unit 61 includes:
[0100] The detection subunit is used to detect whether the site log recording module of the WEB application firewall is in the startup state.
[0101] The reading subunit is used to read the interception log collected by the WEB application firewall if the site log recording module of the WEB application firewall is in the startup state.
[0102] The acquisition subunit is used to obtain the mirror traffic flowing through the port of the WEB application firewall through a pre-connected traffic detection system if the site log recording module of the WEB application firewall is in a disabled state, and create a corresponding interception log based on the mirror traffic.
[0103] Optionally, the parsing unit 62 includes:
[0104] The calling subunit is used to call a plurality of preset test tools respectively, each of which corresponds to an attack event type.
[0105] The determination subunit is used to determine, for each of the test tools, data collection items associated with the attack event type according to the attack event type corresponding to the test tool.
[0106] The extraction subunit is used to extract attack parameters matching each of the data collection items from the interception log.
[0107] Optionally, the system vulnerability detection device further includes:
[0108] A creation unit is used to create a redirection instruction in the interception log, if the number of interceptions corresponding to the first request data packet of any source address is greater than a preset threshold, and output the redirection instruction as response information about the first request data packet; the redirection instruction includes the address information requested to be accessed by the first request data packet and the redirection address information.
[0109] A filtering unit is used to filter out the interception log associated with the source address if the second request data packet of the source address is not detected in the interception log updated within a preset time period, or the second request data packet does not carry the redirection address information.
[0110] Optionally, the system vulnerability detection device further includes:
[0111] The second acquisition unit is used to acquire the access flow of the object to be attacked and the classification identifier of the system vulnerability within a preset time period if it is detected that the object to be attacked has a system vulnerability.
[0112] The second determining unit is used to determine the vulnerability risk level of the object to be attacked according to the access traffic and the classification identifier.
[0113] The prompt unit is used to close the access port of the object to be attacked and issue a vulnerability repair prompt message if the vulnerability risk level reaches a preset level.
[0114] In the embodiment of the present invention, by reading the interception log collected by the WEB application firewall, extracting the attack parameters associated with the attack event in the interception log, and replaying the attack parameters in the simulation object corresponding to the object to be attacked, the system can realize the simulation operation on the historical attack events of the production environment in the test environment; because the simulation object corresponds to the object to be attacked, the attack result of the object to be attacked on the attack parameters can be indirectly determined by obtaining the response information returned by the simulation object, and the automatic verification of the success or failure of the historical attack event is realized, avoiding the need for operation and maintenance personnel to manually analyze the interception log item by item, ensuring that the operation and maintenance personnel can quickly repair the identified system vulnerabilities in the event of a successful attack event, thereby improving the detection efficiency and detection accuracy of the WEB system vulnerabilities; because the test process of the attack parameters is automatically executed in the test environment, the damage to the production environment data is reduced, the stable operation of the system is guaranteed, and the verification of repeated vulnerabilities is also reduced.
[0115] Figure 7 Schematic diagram of a terminal device provided by an embodiment of the present invention. Figure 7 As shown, the terminal device 7 of this embodiment includes: a processor 70 and a memory 71, wherein the memory 71 stores a computer program 72 that can be run on the processor 70. When the processor 70 executes the computer program 72, the steps of the above-mentioned system vulnerability detection method embodiments are implemented, for example Figure 1 Alternatively, when the processor 70 executes the computer program 72, the functions of each module / unit in the above-mentioned device embodiments are realized, for example, Figure 6 The functions of the units 61 to 65 are shown.
[0116] The terminal device 7 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7It is only an example of the terminal device 7 and does not constitute a limitation on the terminal device 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include an input sending device, a network access device, a bus, etc.
[0117] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0118] The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used to store the computer program and other programs and data required by the terminal device. The memory 71 may also be used to temporarily store data that has been sent or is to be sent.
[0119] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0120] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0121] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for detecting system vulnerabilities, It is characterized in that include: Obtain the interception logs collected by the WEB application firewall; Parsing the interception log to extract attack parameters associated with the attack event in the interception log; the attack parameters include address information of the object to be attacked; Determine, according to the address information, a simulation object in the test environment corresponding to the object to be attacked; wherein the simulation object and the object to be attacked have the same network configuration and system configuration; replaying the attack parameters in the test environment, and receiving response information returned by the simulation object based on the attack parameters; Determine the attack result of the attack parameter on the object to be attacked according to the response information, and identify the system vulnerability information of the object to be attacked based on the attack result; The interception logs collected by the WEB application firewall are obtained, including: Detect whether the site log recording module of the WEB application firewall is in an activated state; If the site log recording module of the WEB application firewall is in the startup state, then reading the interception log collected by the WEB application firewall; If the site log recording module of the WEB application firewall is in a disabled state, the mirror traffic flowing through the port of the WEB application firewall is obtained through a pre-connected traffic detection system, and a corresponding interception log is created based on the mirror traffic; wherein the data inflow port of the traffic detection system is connected to a physical port of the WEB application firewall, and the physical port is a mirror port of the data output port of the WEB application firewall; Before parsing the interception log and extracting the attack parameters associated with the attack event in the interception log, the method further includes: In the interception log, if the number of interceptions corresponding to the first request data packet of any source address is greater than a preset threshold, a redirection instruction is created and output as response information about the first request data packet; the redirection instruction includes the address information requested to be accessed by the first request data packet and the redirection address information; In the interception log updated within a preset time period, if the second request data packet of the source address is not detected, or the second request data packet does not carry the redirection address information, the interception log associated with the source address will be filtered out.
2. The method for detecting a system vulnerability according to claim 1, It is characterized in that The parsing process of the interception log to extract attack parameters associated with the attack event in the interception log includes: Respectively calling a plurality of preset test tools, each of the test tools corresponding to an attack event type; For each of the test tools, according to the attack event type corresponding to the test tool, determine the data collection items associated with the attack event type; Attack parameters matching each of the data collection items are extracted from the interception log.
3. The method for detecting a system vulnerability according to claim 1, It is characterized in that After determining the attack result generated by the attack parameter on the object to be attacked according to the response information, and identifying the system vulnerability information of the object to be attacked based on the attack result, the method further includes: If it is detected that the target to be attacked has a system vulnerability, the access flow of the target to be attacked within a preset time period and the classification identification of the system vulnerability are obtained; Determine the vulnerability risk level of the target to be attacked according to the access traffic and the classification identifier; If the vulnerability risk level reaches a preset level, the access port of the object to be attacked is closed and a vulnerability repair prompt message is issued.
4. A system vulnerability detection device, It is characterized in that include: The first acquisition unit is used to acquire the interception log collected by the WEB application firewall; A parsing unit, used to parse the interception log and extract attack parameters associated with the attack event in the interception log; the attack parameters include address information of the object to be attacked; A first determining unit is used to determine, according to the address information, a simulation object corresponding to the object to be attacked in the test environment; wherein the simulation object and the object to be attacked have the same network configuration and system configuration; A replay unit, configured to replay the attack parameters in the test environment and receive response information returned by the simulation object based on the attack parameters; an identification unit, configured to determine, according to the response information, an attack result generated by the attack parameter on the object to be attacked, and to identify system vulnerability information of the object to be attacked based on the attack result; The first acquiring unit includes: A detection subunit, used to detect whether the site log recording module of the WEB application firewall is in an activated state; A reading subunit, used for reading the interception log collected by the WEB application firewall if the site log recording module of the WEB application firewall is in the startup state; an acquisition subunit, for acquiring the mirrored traffic flowing through the port of the WEB application firewall through a pre-connected traffic detection system if the site log recording module of the WEB application firewall is in a disabled state, and creating a corresponding interception log based on the mirrored traffic; wherein the data inflow port of the traffic detection system is connected to a physical port of the WEB application firewall, and the physical port is a mirrored port of the data output port of the WEB application firewall; a creating unit, configured to create a redirection instruction if the number of interceptions corresponding to the first request data packet of any source address is greater than a preset threshold value in the interception log, and output the redirection instruction as response information about the first request data packet; the redirection instruction includes the address information requested to be accessed by the first request data packet and the redirection address information; A filtering unit is used to filter out the interception log associated with the source address if the second request data packet of the source address is not detected in the interception log updated within a preset time period, or the second request data packet does not carry the redirection address information.
5. The system vulnerability detection device according to claim 4, It is characterized in that The parsing unit comprises: A calling subunit, used to call a plurality of preset test tools respectively, each of which corresponds to an attack event type; A determination subunit, configured to determine, for each of the test tools, data collection items associated with the attack event type according to the attack event type corresponding to the test tool; The extraction subunit is used to extract attack parameters matching each of the data collection items from the interception log.
6. A terminal device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
7. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
