Vulnerability priority evaluation method and device combining static and dynamic analysis

By combining static and dynamic analysis, we can identify and confirm triggerable vulnerabilities and generate a repair priority list, which solves the problem of false positives and false negatives of vulnerabilities in the existing technology, significantly improves the accuracy and efficiency of software security assessment, and reduces Security risks.

CN118862089APending Publication Date: 2024-10-29YANGZHOU SHUAN TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410921636.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing technology In the field of software security, static analysis cannot confirm whether the vulnerability can be triggered during actual operation, resulting in false positives; dynamic analysis misses negative reports due to insufficient test case design, and the risk assessment model ignores the actual triggering conditions, resulting in priority repair. Level assessment lacks accuracy.

Method used

Combining static and dynamic analysis, we ensure the accuracy of vulnerability repair by identifying system components, obtaining vulnerability data, using static analysis tools to determine vulnerability triggering conditions, generating test cases, inserting monitoring code, recording trigger information, and summarizing and generating a repair priority list.

Benefits of technology

Effectively avoid false positives and negatives, improve the efficiency and accuracy of system vulnerability management, reduce security risks, and ensure the accuracy of vulnerability repairs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862089A_ABST
    Figure CN118862089A_ABST
Patent Text Reader

Abstract

The invention discloses a vulnerability priority evaluation method and device combined with static and dynamic analysis, and the method comprises the steps: obtaining vulnerability data of all components from a vulnerability database, then obtaining vulnerabilities and triggering conditions thereof through recognizing system codes by using a static analysis tool, screening the vulnerabilities capable of being triggered according to the vulnerabilities, and carrying out the evaluation of the vulnerability priority. Correspondingly generating test cases according to the vulnerabilities, inserting a monitoring code into a system, then operating the system and executing the test cases, so that the monitoring code records the vulnerabilities and trigger information, and generating a trigger vulnerability list from all the triggered vulnerabilities and the trigger information; and performing repair priority evaluation on the vulnerabilities in the list by utilizing the trigger information and the vulnerability data, and further performing vulnerability repair on the system. The vulnerability priority evaluation method combining static and dynamic analysis can accurately confirm the vulnerability which can be actually triggered, realizes accurate vulnerability repair priority evaluation, and remarkably improves the efficiency and accuracy of system vulnerability management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vulnerability priority assessment, and in particular to a vulnerability priority assessment method and device combining static and dynamic analysis. Background Art

[0002] In the field of software security, static code analysis and matching with vulnerability databases and dynamic analysis of running applications are usually used to identify and detect software security vulnerabilities. The priority of vulnerability repair is evaluated based on the severity score, impact scope, and business criticality of the vulnerability.

[0003] However, the above detection method has some defects:

[0004] Static analysis can only discover potential vulnerabilities in the code, but cannot effectively confirm whether the vulnerabilities will be triggered during actual runtime. Therefore, it is easy to have false positives of vulnerabilities, and the identified vulnerabilities will not actually be triggered during runtime.

[0005] Dynamic analysis requires running applications in a real or near-real environment and relies on the quality and coverage of test cases. It is easy to miss some uncovered vulnerabilities due to design flaws in insufficient test case design, resulting in underreporting of vulnerabilities. In addition, dynamic detection of traffic behavior may mistake normal network activities for security incidents, which may result in false positives.

[0006] The risk assessment model used to evaluate the priority of vulnerability repair relies on static data, which easily ignores the triggering conditions and environment of the vulnerability during actual operation and cannot dynamically reflect the actual impact of the vulnerability, resulting in a lack of accuracy in the assessment of repair priority. Summary of the invention

[0007] The purpose of the present invention is to provide a vulnerability priority assessment method and device that combines static and dynamic analysis, which can accurately confirm the actual triggerable vulnerabilities through the coordination of static analysis and dynamic analysis, realize accurate vulnerability repair priority assessment, effectively avoid the problems of false positives and false negatives, significantly improve the efficiency and accuracy of system vulnerability management, and reduce security risks.

[0008] In order to achieve the above object, the present invention discloses a vulnerability priority assessment method combining static and dynamic analysis, which comprises:

[0009] Identify all components in the system and obtain the vulnerabilities and vulnerability data of the identified components through the vulnerability database;

[0010] Use static analysis tools to identify all vulnerabilities in system code and their triggering conditions;

[0011] Filter out triggerable vulnerabilities based on the vulnerability triggering conditions;

[0012] Generate test cases for all triggerable vulnerabilities;

[0013] Insert monitoring code into the system based on all triggerable vulnerabilities;

[0014] Execute the test case when the system is running, and record the triggered vulnerability and its triggering information through the monitoring code;

[0015] Summarize and record all triggered vulnerabilities and their triggering information to generate a list of triggered vulnerabilities;

[0016] Performing a repair priority assessment on the vulnerabilities in the trigger vulnerability list according to the vulnerability trigger information and vulnerability data to generate a repair priority list;

[0017] Repair vulnerabilities in the system according to the repair priority list.

[0018] Furthermore, after “repairing the system vulnerabilities according to the repair priority list”, it also includes:

[0019] Perform the aforementioned vulnerability detection operation again on the repaired system to generate a new list of triggered vulnerabilities;

[0020] By comparing the trigger vulnerability list, we can determine whether the corresponding vulnerability has been repaired.

[0021] Furthermore, the test case includes attack vectors for triggerable vulnerabilities.

[0022] Furthermore, the trigger information includes the trigger path of the vulnerability, the trigger condition and the environment information of the system when the vulnerability is triggered, and the trigger data includes the impact scope and severity score of the vulnerability.

[0023] Furthermore, the “using static analysis tools to identify all vulnerabilities in the system code and their triggering conditions” includes:

[0024] Scan the system's code to identify potential vulnerabilities;

[0025] The triggering conditions of the vulnerability are determined by analyzing the function call graph and data flow in the system code.

[0026] In order to achieve the above object, the present invention discloses a device, which comprises:

[0027] The identification and acquisition module is used to identify all components in the system and obtain the vulnerabilities and vulnerability data of the identified components through the vulnerability database;

[0028] Identification module, used to identify all vulnerabilities in the system code and their triggering conditions using static analysis tools;

[0029] The screening module is used to screen out triggerable vulnerabilities according to the triggering conditions of the vulnerabilities;

[0030] The generation module is used to generate test cases for all triggerable vulnerabilities;

[0031] Insertion module, used to insert monitoring code into the system according to all triggerable vulnerabilities;

[0032] An execution recording module is used to execute the test case when the system is running, and record the triggered vulnerabilities and their triggering information through the monitoring code;

[0033] The summary record module is used to summarize and record all triggered vulnerabilities and their triggering information to generate a list of triggered vulnerabilities;

[0034] An evaluation module, used to evaluate the repair priority of the vulnerabilities in the trigger vulnerability list according to the vulnerability trigger information and vulnerability data, so as to generate a repair priority list;

[0035] A repair module is used to repair vulnerabilities in the system according to the repair priority list.

[0036] In order to achieve the above object, the present invention discloses an electronic device, which includes:

[0037] one or more processors;

[0038] One or more memories are used to store one or more programs. When one or more of the programs are executed by the processor, the processor implements the vulnerability priority assessment method combining static and dynamic analysis as described above.

[0039] In order to achieve the above-mentioned object, the present invention discloses a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, the vulnerability priority assessment method combining static and dynamic analysis as described above is implemented.

[0040] In the present application, vulnerabilities during system operation are identified by combining static analysis and dynamic analysis, and vulnerability data of all components identified in the system are obtained from the vulnerability database. Then, static analysis tools are used to identify system codes to obtain vulnerabilities and their triggering conditions, and triggerable vulnerabilities are screened based on these vulnerabilities. Test cases are generated based on these vulnerabilities, and monitoring code is inserted into the system. The system is then run and the test cases are executed so that the monitoring code can record vulnerabilities and triggering information, and a list of triggered vulnerabilities is generated for all triggered vulnerabilities and triggering information. The triggering information and vulnerability data are used to evaluate the repair priority of the vulnerabilities in the list, and then the system is repaired. The test cases used in dynamic analysis are generated based on the triggerable vulnerabilities obtained by static analysis. This can accurately confirm the actual triggerable vulnerabilities in the system in combination with the code itself and the actual operation status, achieve accurate vulnerability repair priority assessment, effectively avoid false positives and negatives, significantly improve the efficiency and accuracy of system vulnerability management, and reduce security risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The present invention is a flowchart of a vulnerability priority assessment method combining static and dynamic analysis according to an embodiment of the present invention.

[0042] Figure 2 This is a module diagram of a vulnerability priority assessment device that combines static and dynamic analysis according to an embodiment of the present invention.

[0043] Figure 3 4 is a system diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to explain the technical content, structural features, achieved objectives and effects of the present invention in detail, the following is a detailed description in conjunction with the implementation methods and the accompanying drawings.

[0045] Embodiment 1

[0046] See also Figure 1 The present invention discloses a vulnerability priority assessment method combining static and dynamic analysis, which comprises:

[0047] 101. Identify all components in the system and obtain the vulnerabilities and vulnerability data of the identified components through the vulnerability database;

[0048] It is understandable that the system is a business system that executes applications, and its components include third-party libraries, frameworks, and custom components. Therefore, a comprehensive component analysis of the system is performed to identify all components and obtain version information of all components. Then, based on the obtained version information, the vulnerabilities existing in all components are collected from the known vulnerability database, as well as the impact scope and severity scores of these vulnerabilities, to facilitate subsequent vulnerability priority assessments, but not limited to this.

[0049] 102. Use static analysis tools to identify all vulnerabilities in system code and their triggering conditions;

[0050] Furthermore, “using static analysis tools to identify all vulnerabilities in system code and their triggering conditions” includes:

[0051] 1021. Scan the system code to identify potential vulnerabilities;

[0052] 1022. Determine the triggering conditions of the vulnerability by analyzing the function call graph and data flow in the system code.

[0053] 103. Filter out triggerable vulnerabilities based on the triggering conditions of the vulnerabilities;

[0054] It is understandable that static analysis tools identify vulnerabilities by scanning the system's code base, which is conducive to comprehensive coverage of potential vulnerabilities, and combined with code analysis to confirm the actual triggering path and triggering factors of each vulnerability, and then can filter out actually reachable vulnerabilities according to function trigger conditions, generate accurate detection results, exclude vulnerabilities that will not actually be triggered, and effectively reduce the situation of false alarms of vulnerabilities, but this is not limited to this.

[0055] 104. Generate test cases for all triggerable vulnerabilities;

[0056] Furthermore, the test cases include attack vectors for triggerable vulnerabilities.

[0057] It can be understood that generating highly targeted test cases based on the actual triggerable vulnerabilities obtained by static analysis can cover all triggerable vulnerabilities, and these test cases can simulate possible vulnerability attack scenarios in the real operating environment, which is conducive to ensuring the efficiency and effectiveness of runtime detection and optimizing system resource utilization.

[0058] 105. Insert monitoring code into the system based on all triggerable vulnerabilities;

[0059] 106. Execute test cases while the system is running and record the triggered vulnerabilities and their triggering information through monitoring code;

[0060] It is understandable that using dynamic analysis tools to insert monitoring code at the vulnerability points confirmed by the system through the instrumentation technology, so as to verify and confirm in real time which triggerable vulnerabilities are actually triggered in the program's operating environment when the system is running and executing the generated test cases, is conducive to reducing false positives and negatives of vulnerabilities and ensuring the accuracy and reliability of detection results, but it is not limited to this.

[0061] 107. Summarize and record all triggered vulnerabilities and their triggering information to generate a list of triggered vulnerabilities;

[0062] It is understandable that all actually triggered vulnerabilities recorded by the monitoring code, as well as the triggering paths, triggering conditions and specific operating environment information of the system are summarized to ensure the completeness and accuracy of the vulnerability triggering information, but this is not limited to it.

[0063] 108. Evaluate the repair priority of the vulnerabilities in the trigger vulnerability list based on the vulnerability trigger information and vulnerability data to generate a repair priority list;

[0064] Furthermore, the trigger information includes the trigger path of the vulnerability, the trigger conditions and the environment information of the system when the vulnerability is triggered, and the vulnerability data includes the impact scope and severity score of the vulnerability.

[0065] It can be understood that the trigger information of each vulnerability is the actual triggering situation of each vulnerability, which is obtained through the trigger vulnerability list in operation 107, and the vulnerability data of each vulnerability is obtained from the vulnerability data obtained through the known vulnerability database in operation 101. In this embodiment, the repair priority of each vulnerability on the trigger vulnerability list is determined one by one according to the trigger information and the corresponding vulnerability data corresponding to the vulnerability. Therefore, it is necessary to first find the vulnerability data corresponding to the currently evaluated vulnerability from the obtained vulnerability data, and combine the trigger information corresponding to the currently evaluated vulnerability to determine the repair priority of the vulnerability, but it is not limited to this.

[0066] 109. Repair system vulnerabilities according to the repair priority list.

[0067] It is understandable that the most critical vulnerabilities in the priority list are repaired first, thereby improving the reliability of the system through multiple vulnerability repairs, but it is not limited to this.

[0068] Furthermore, after “fixing system vulnerabilities according to the priority list”, it also includes:

[0069] 110. Perform the aforementioned vulnerability detection operation again on the repaired system to generate a new list of triggered vulnerabilities;

[0070] 111. Determine whether the corresponding vulnerability has been repaired by comparing the trigger vulnerability list.

[0071] It is understandable that the aforementioned vulnerability detection operation includes repeatedly executing operations 102 to 107 to collect the triggered vulnerabilities of the system after the vulnerability repair through static analysis and dynamic detection, which can then be compared with the previous triggered vulnerability list to verify the effect of the vulnerability repair and ensure that the vulnerability is completely eliminated, but is not limited to this.

[0072] In the present application, vulnerabilities during system operation are identified by combining static analysis and dynamic analysis, and vulnerability data of all components identified in the system are obtained from a vulnerability database. Then, static analysis tools are used to identify system codes to obtain vulnerabilities and their triggering conditions, and triggerable vulnerabilities are screened based on these vulnerabilities. Test cases are generated based on these vulnerabilities, and monitoring code is inserted into the system. The system is then run and test cases are executed so that the monitoring code can record vulnerabilities and triggering information, and a list of triggered vulnerabilities is generated for all triggered vulnerabilities and triggering information. The triggering information and vulnerability data are used to evaluate the repair priority of the vulnerabilities in the list, and then the system is repaired. Test cases used in dynamic analysis are generated based on the triggerable vulnerabilities obtained through static analysis. This can accurately confirm the actual triggerable vulnerabilities in the system in combination with the code itself and the actual operation status, achieve accurate vulnerability repair priority assessment, effectively avoid false positives and negatives, significantly improve the efficiency and accuracy of system vulnerability management, and reduce security risks.

[0073] Embodiment 2

[0074] See also Figure 1 and Figure 2 The present invention discloses a vulnerability priority assessment device combining static and dynamic analysis, which comprises:

[0075] The identification and acquisition module 201 is used to identify all components in the system and obtain the vulnerabilities and vulnerability data of the identified components through the vulnerability database;

[0076] Identification module 202, used to identify all vulnerabilities in the system code and their triggering conditions using static analysis tools;

[0077] A screening module 203 is used to screen out triggerable vulnerabilities according to the triggering conditions of the vulnerabilities;

[0078] A generating module 204 is used to generate test cases for all triggerable vulnerabilities;

[0079] Insertion module 205, used to insert monitoring code into the system according to all triggerable vulnerabilities;

[0080] An execution recording module 206 is used to execute test cases when the system is running, and record the triggered vulnerabilities and their triggering information by monitoring the code;

[0081] The summary recording module 207 is used to summarize and record all triggered vulnerabilities and their triggering information to generate a list of triggered vulnerabilities;

[0082] An evaluation module 208, configured to evaluate the repair priority of the vulnerabilities in the trigger vulnerability list according to the vulnerability trigger information and vulnerability data, so as to generate a repair priority list;

[0083] The repair module 209 is used to repair the system vulnerabilities according to the repair priority list.

[0084] Embodiment 3

[0085] See also Figure 1 and Figure 3 , the present invention discloses an electronic device, comprising:

[0086] One or more processors 301;

[0087] One or more memories 302 are used to store one or more programs. When the one or more programs are executed by the processor, the processor implements the vulnerability priority assessment method combining static and dynamic analysis as described above.

[0088] Embodiment 4

[0089] An embodiment of the present application discloses a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the vulnerability priority assessment method combining static and dynamic analysis as described above is implemented.

[0090] Embodiment 5

[0091] The embodiment of the present application discloses a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the vulnerability priority assessment method combining static and dynamic analysis.

[0092] It should be understood that in the embodiments of the present application, the processor referred to may be a central processing unit (CPU), and the processor may also be 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 the processor may also be any conventional processor, etc.

[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by hardware related to computer program instructions, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0094] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the scope of the patent application of the present invention are still within the scope covered by the present invention.

Claims

1. A vulnerability priority assessment method combining static and dynamic analysis, characterized in that: include: Identify all components in the system and obtain the vulnerabilities and vulnerability data of the identified components through the vulnerability database; Use static analysis tools to identify all vulnerabilities in system code and their triggering conditions; Filter out triggerable vulnerabilities based on the vulnerability triggering conditions; Generate test cases for all triggerable vulnerabilities; Insert monitoring code into the system based on all triggerable vulnerabilities; Execute the test case when the system is running, and record the triggered vulnerability and its triggering information through the monitoring code; Summarize and record all triggered vulnerabilities and their triggering information to generate a list of triggered vulnerabilities; Performing a repair priority assessment on the vulnerabilities in the trigger vulnerability list according to the vulnerability trigger information and vulnerability data to generate a repair priority list; Repair vulnerabilities in the system according to the repair priority list.

2. The vulnerability priority assessment method combining static and dynamic analysis according to claim 1 is characterized in that: After "repairing system vulnerabilities according to the repair priority list", it also includes: Perform the aforementioned vulnerability detection operation again on the repaired system to generate a new list of triggered vulnerabilities; By comparing the trigger vulnerability list, we can determine whether the corresponding vulnerability has been repaired.

3. The vulnerability priority assessment method combining static and dynamic analysis according to claim 1 is characterized in that: The test cases include attack vectors for triggerable vulnerabilities.

4. The vulnerability priority assessment method combining static and dynamic analysis according to claim 1, characterized in that: The trigger information includes the trigger path of the vulnerability, the trigger condition and the environment information of the system when the vulnerability is triggered, and the trigger data includes the impact scope and severity score of the vulnerability.

5. The vulnerability priority assessment method combining static and dynamic analysis according to claim 1, characterized in that: The “using static analysis tools to identify all vulnerabilities in system codes and their triggering conditions” includes: Scan the system's code to identify potential vulnerabilities; The triggering conditions of the vulnerability are determined by analyzing the function call graph and data flow in the system code.

6. A vulnerability priority assessment device combining static and dynamic analysis, characterized in that: include: The identification and acquisition module is used to identify all components in the system and obtain the vulnerabilities and vulnerability data of the identified components through the vulnerability database; Identification module, used to identify all vulnerabilities in the system code and their triggering conditions using static analysis tools; The screening module is used to screen out triggerable vulnerabilities according to the triggering conditions of the vulnerabilities; The generation module is used to generate test cases for all triggerable vulnerabilities; Insertion module, used to insert monitoring code into the system according to all triggerable vulnerabilities; An execution recording module is used to execute the test case when the system is running, and record the triggered vulnerabilities and their triggering information through the monitoring code; The summary record module is used to summarize and record all triggered vulnerabilities and their triggering information to generate a list of triggered vulnerabilities; An evaluation module, used to evaluate the repair priority of the vulnerabilities in the trigger vulnerability list according to the vulnerability trigger information and vulnerability data, so as to generate a repair priority list; A repair module is used to repair vulnerabilities in the system according to the repair priority list.

7. An electronic device, characterized in that: include: one or more processors; One or more memories are used to store one or more programs. When one or more of the programs are executed by the processor, the processor implements the vulnerability priority assessment method combining static and dynamic analysis as described in any one of claims 1 to 5.

8. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the vulnerability priority assessment method combining static and dynamic analysis as described in any one of claims 1 to 5 is implemented.