A software security penetration testing method and system

Through the combination of parallel testing tools and vulnerability cluster evaluation functions, the problem of low data analysis efficiency in penetration testing is solved, efficient and accurate software security assessment is achieved, and the missed rate is reduced.

CN118568737BActive Publication Date: 2024-11-05KAIYUAN HUACHUANG TECH (GRP) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411059931.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-05
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The data analysis efficiency and incomplete analysis in the existing penetration testing methods lead to missed and false positives, affecting the accuracy of software security assessment.

Method used

Use parallel testing tools for penetration testing, use a predetermined rule base to traverse security events, perform correlation analysis, add relevant vulnerabilities to vulnerability clusters, perform severity assessment through vulnerability cluster evaluation function, and combine historical logs and multi-dimensional feature analysis to generate Security report.

Benefits of technology

Improves the efficiency and accuracy of penetration testing, reduces the vulnerability false alarm rate, and provides a comprehensive assessment of software security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568737B_ABST
    Figure CN118568737B_ABST
Patent Text Reader

Abstract

The present application provides a software security penetration test method and system, which relates to the field of software security testing technology. The method includes: performing penetration testing on the target software through a parallel testing tool to obtain a target security event set; traversing the first security event in a predetermined rule base to obtain a first predetermined vulnerability; performing correlation analysis to obtain a first correlation analysis result; adding to the target vulnerability cluster if it meets the predetermined correlation constraint; introducing a vulnerability cluster evaluation function to obtain the target severity; combining the predetermined multi-dimensional domain collection to obtain the target multi-domain feature; analyzing the target unit security and the target severity obtained by the target multi-domain feature according to the unit security evaluation model, and generating a target security report for the target software. Through the present application, the false positive and false negative rates of vulnerabilities in software security penetration testing in the prior art can be reduced, so as to improve the efficiency and accuracy of penetration testing and provide a technical effect of comprehensive evaluation for software security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software security testing, and in particular to a software security penetration testing method and system. Background Art

[0002] In today's digital age, software security has become a focus of attention for enterprises and organizations. With the development of technology, hacker attack methods are becoming increasingly complex, and traditional security protection measures can no longer meet the needs. Therefore, penetration testing, as an important means of evaluating software security, is widely used in various fields. However, there are some problems with traditional penetration testing methods. For example, the number of security incidents generated during penetration testing is huge, manual analysis is inefficient, and it is easy to miss and report false positives.

[0003] In summary, there are technical problems in the prior art that penetration test data analysis is inefficient and incomplete, which leads to underreporting and false positives in penetration tests, further affecting the effectiveness of software security penetration testing and hindering accurate and effective assessment of software security. Summary of the invention

[0004] The purpose of this application is to provide a software security penetration testing method and system to solve the technical problems in the prior art that penetration testing is prone to omissions and false positives due to low efficiency and incomplete analysis of penetration testing data, which further affects the effectiveness of software security penetration testing and is not conducive to accurate and effective assessment of software security.

[0005] In view of the above problems, the present application provides a software security penetration testing method and system.

[0006] In a first aspect, the present application provides a software security penetration testing method, which is implemented by a software security penetration testing system, wherein the method includes: performing a penetration test on a target software through a parallel testing tool to obtain a target security event set, wherein the target security event set includes multiple security events; traversing a first security event among the multiple security events in a predetermined rule base to obtain a first traversal result, and analyzing the first traversal result to obtain a first predetermined vulnerability; performing a correlation analysis on the first predetermined vulnerability and a second predetermined vulnerability of a second security event to obtain a first correlation analysis result; according to the first correlation analysis result, if the target correlation between the first predetermined vulnerability and the second predetermined vulnerability meets a predetermined correlation constraint, then adding the first predetermined vulnerability and the second predetermined vulnerability to a target vulnerability cluster; introducing a vulnerability cluster evaluation function to perform a severity evaluation analysis on the target vulnerability cluster to obtain a target severity; analyzing the target historical log of the target vulnerability cluster to obtain a target time series, and combining the predetermined multi-dimensional domain acquisition to obtain a target multi-domain feature of the target time series; analyzing the target unit security and the target severity obtained by the target multi-domain feature according to a unit security evaluation model, and generating a target security report for the target software.

[0007] In a second aspect, the present application further provides a software security penetration testing system for executing a software security penetration testing method as described in the first aspect, wherein the system comprises: a first obtaining module, the first obtaining module is used to perform a penetration test on the target software through a parallel testing tool to obtain a target security event set, wherein the target security event set includes multiple security events; a second obtaining module, the second obtaining module is used to traverse a first security event among the multiple security events in a predetermined rule base to obtain a first traversal result, and analyze the first traversal result to obtain a first predetermined vulnerability; a third obtaining module, the third obtaining module is used to perform a correlation analysis on the first predetermined vulnerability and the second predetermined vulnerability of the second security event to obtain a first correlation analysis result; a first adding module, the first The adding module is used to add the first predetermined vulnerability and the second predetermined vulnerability to the target vulnerability cluster according to the first correlation analysis result, if the target correlation of the first predetermined vulnerability and the second predetermined vulnerability meets the predetermined correlation constraint; the fourth obtaining module, the fourth obtaining module is used to introduce a vulnerability cluster assessment function to perform severity assessment analysis on the target vulnerability cluster to obtain the target severity; the fifth obtaining module, the fifth obtaining module is used to analyze the target historical log of the target vulnerability cluster to obtain the target time series, and obtain the target multi-domain characteristics of the target time series in combination with the predetermined multi-dimensional domain acquisition; the first generating module, the first generating module is used to analyze the target multi-domain characteristics according to the unit security assessment model to obtain the target unit security and the target severity, and generate a target security report for the target software.

[0008] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0009] This application first performs penetration testing on the target software through a parallel testing tool to obtain a target security event set. Then, the security events are traversed and analyzed using a predetermined rule base to obtain predetermined vulnerabilities. Next, through correlation analysis, vulnerabilities with correlation are added to the target vulnerability cluster. A vulnerability cluster evaluation function is introduced to perform severity evaluation on the target vulnerability cluster to obtain the target severity. At the same time, the target historical logs and multi-dimensional domain collection of the target vulnerability cluster are analyzed to obtain the target multi-domain features of the target time series. Finally, according to the unit security assessment model, combined with the target severity and target multi-domain features, a security report for the target software is generated. Through this application, the efficiency and accuracy of penetration testing are improved, the false alarm and vulnerability rates are reduced, and a comprehensive assessment of software security is provided.

[0010] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented according to the contents of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are specifically cited below. It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0012] Figure 1 A flowchart of a software security penetration testing method for this application;

[0013] Figure 2 A structural diagram of a software security penetration testing system for this application.

[0014] Description of reference numerals:

[0015] A first obtaining module 11 , a second obtaining module 12 , a third obtaining module 13 , a first adding module 14 , a fourth obtaining module 15 , a fifth obtaining module 16 , and a first generating module 17 . DETAILED DESCRIPTION

[0016] This application provides a software security penetration testing method and system to solve the technical problem in the prior art that penetration testing is prone to missed reports and false reports due to low efficiency and incomplete analysis of penetration testing data, which further affects the effectiveness of software security penetration testing and is not conducive to accurate and effective evaluation of software security. The application achieves the technical goal of reducing the false report and missed report rate of vulnerabilities in software security penetration testing in the prior art, and achieves the technical effect of improving the efficiency and accuracy of penetration testing and providing a comprehensive evaluation of software security.

[0017] Below, the technical solutions in the present application will be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments of the present application. It should be understood that the present application is not limited to the example embodiments described herein. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application. It should also be noted that, for the convenience of description, only the parts related to the present application are shown in the accompanying drawings, rather than all of them.

[0018] Example 1, please refer to the attached Figure 1 The present application provides a software security penetration testing method, wherein the method is applied to a software security penetration testing system, and the method specifically comprises the following steps:

[0019] Step 1: Perform penetration testing on the target software through a parallel testing tool to obtain a target security event set, wherein the target security event set includes multiple security events.

[0020] Specifically, step 1 is the process of penetration testing the target software through parallel testing tools. This process involves the use of parallel testing tools that can execute multiple test cases or attack vectors at the same time, with the goal of quickly discovering security vulnerabilities in the software. The purpose of penetration testing is to simulate the behavior of malicious attackers and evaluate the security of the software by trying to exploit its security vulnerabilities. During the penetration test, whenever a possible security issue is discovered, a security event is generated. These events are collected and analyzed to obtain the so-called "target security event set". This event set may include various types of security events, such as SQL injection, cross-site scripting (XSS), privilege escalation, data leakage, etc. This event set is crucial for the security assessment of the software because it provides a comprehensive understanding of the security status of the software and provides a basis for subsequent vulnerability repair and security reinforcement. By analyzing these security events, appropriate measures can be taken to reinforce the software and improve its ability to resist actual attacks.

[0021] In summary, by using parallel testing tools to perform penetration testing on the target software, a series of security events can be efficiently collected. These events not only reveal the current security risks of the software, but also provide developers and security experts with specific guidance and basis for improving software security, and at the same time provide a basis for building a target security event set. By analyzing these security events, corresponding measures can be taken to strengthen the software and improve its ability to resist actual attacks.

[0022] Step 2: Traverse a first security event among the multiple security events in a predetermined rule base to obtain a first traversal result, and analyze the first traversal result to obtain a first predetermined vulnerability.

[0023] Specifically, the core of this step is to compare and analyze the first security event in the target security event set with the predetermined rule base. The predetermined rule base contains various known security vulnerability rules and patterns. By traversing, a traversal result can be obtained, which contains the vulnerability rules or patterns in the rule base that match the first security event. Next, by analyzing this traversal result, the vulnerability directly related to the first security event, that is, the first predetermined vulnerability, can be identified. The purpose of this step is to extract specific vulnerability information from the security event and provide precise guidance and basis for subsequent vulnerability repair.

[0024] Specifically, first, the first security event in the target security event set is traversed in the predetermined rule base. This traversal process generates a result, namely the first traversal result. Then, the traversal result is analyzed to identify a specific vulnerability related to the first security event, namely the first predetermined vulnerability. This vulnerability may be a known vulnerability, such as a common SQL injection or cross-site scripting (XSS) vulnerability.

[0025] By traversing the first security event in the target security event set in the predetermined rule base and analyzing the traversal results, the specific vulnerability related to the security event, namely the first predetermined vulnerability, can be identified. This step not only helps to understand the specific security issues behind the security event, but also provides a clear direction for subsequent vulnerability repair work. In this way, the security of the software can be more effectively improved and potential security risks can be reduced.

[0026] Step three: performing a correlation analysis on the first predetermined vulnerability and the second predetermined vulnerability of the second security event to obtain a first correlation analysis result.

[0027] Specifically, this step is a key step in security incident analysis, which is to perform correlation analysis on two different predetermined vulnerabilities. The "first predetermined vulnerability" and "second predetermined vulnerability" here refer to the vulnerabilities identified in different security incidents. Overall, the purpose of this step is to better understand how the two vulnerabilities may affect each other, or how they may jointly cause or exacerbate security risks by analyzing the correlation between them.

[0028] Specifically, the process of correlation analysis may include comparing information about the nature, scope of impact, and exploitation methods of two vulnerabilities. Through this comparison, analysts can identify possible connections between the two, such as whether one vulnerability may cause another vulnerability to be more easily exploited, or whether the two vulnerabilities often appear together. This analysis helps to more comprehensively assess security risks and provide a basis for formulating more effective protective measures. In addition, through this correlation analysis, some security risks that may not have been noticed before can also be revealed. For example, two seemingly independent vulnerabilities may actually have a deep connection, which may be overlooked when no correlation analysis is performed. Therefore, this analysis not only helps to understand known vulnerabilities and security incidents, but also may discover new security issues and risk points.

[0029] In this way, by performing a correlation analysis between the first predetermined vulnerability and the second predetermined vulnerability, a first correlation analysis result can be obtained. This result is of great significance for understanding the interaction between vulnerabilities, formulating effective security strategies, and improving the overall security of the system, and at the same time provides a basis for deeply understanding the nature of security incidents, thereby more effectively protecting the system from attacks.

[0030] Step 4: According to the first correlation analysis result, if the target correlation between the first predetermined vulnerability and the second predetermined vulnerability meets the predetermined correlation constraint, the first predetermined vulnerability and the second predetermined vulnerability are added to the target vulnerability cluster.

[0031] Specifically, this step is a subsequent step in the security incident analysis, that is, based on the first correlation analysis result obtained previously, it is determined whether the target correlation between the two predetermined vulnerabilities meets the predetermined correlation constraint. If it does, the two vulnerabilities are added to the target vulnerability cluster. Overall, the purpose of this step is to classify vulnerabilities with similar or related targets together through a specific evaluation of vulnerability correlation, so as to facilitate subsequent centralized management and analysis.

[0032] Specifically, this step first relies on the correlation analysis conducted previously. Based on the results of the first correlation analysis, the analyst will evaluate the target correlation between the first predetermined vulnerability and the second predetermined vulnerability. The "target correlation" here may refer to the similarity in terms of system components, security attributes, or attack targets targeted by the vulnerability. The "predetermined correlation constraints" are a set of pre-set criteria or conditions used to determine whether two vulnerabilities are sufficiently related to be classified into the same category. If the target correlation of two vulnerabilities meets these predetermined correlation constraints, they will be considered to have sufficient similarity or correlation to be added to the target vulnerability cluster. This vulnerability cluster may contain a series of security vulnerabilities with similar targets or impacts. Such classification helps security experts more effectively understand and analyze these vulnerabilities and the threats they may pose to system security.

[0033] In this way, by adding qualified vulnerabilities to the target vulnerability cluster according to the first correlation analysis results, it is possible to achieve centralized management and analysis of vulnerabilities with similar targets. This method helps to improve the efficiency of vulnerability management and also facilitates the formulation of protective measures for specific targets. Obviously, this vulnerability clustering method based on correlation analysis is an important strategy in security incident response and risk management, which can help security teams identify and manage security risks more effectively.

[0034] Step 5: Introduce a vulnerability cluster assessment function to perform severity assessment analysis on the target vulnerability cluster to obtain a target severity.

[0035] Specifically, this step introduces a vulnerability cluster assessment function to perform severity assessment analysis on the previously determined target vulnerability cluster to obtain the target severity. The purpose of this step is to determine the degree of threat posed by these vulnerabilities to system security through an overall assessment of the vulnerability cluster.

[0036] Specifically, a vulnerability cluster assessment function is a tool or algorithm used to assess the severity of a vulnerability cluster. This function may take into account multiple factors, such as the number of vulnerabilities, the likelihood of being exploited, the affected system components, etc. Through a comprehensive evaluation of these factors, the function is able to give a quantitative indicator of the overall severity of the vulnerability cluster, namely the target severity. In addition, through this assessment, key risk points that may exist in the vulnerability cluster can be revealed. For example, some vulnerabilities may not seem serious alone, but may pose greater risks when combined with other vulnerabilities. Therefore, this assessment not only helps to understand the individual impact of each vulnerability, but also reveals how the interaction between vulnerabilities affects overall security.

[0037] By introducing the vulnerability cluster evaluation function to analyze the severity of the target vulnerability cluster, the target severity can be obtained. This step can more accurately evaluate and manage security risks, thereby more effectively protecting the software from attacks.

[0038] Step 6: Analyze the target historical log of the target vulnerability cluster to obtain the target time series, and obtain the target multi-domain features of the target time series in combination with the predetermined multi-dimensional domain collection.

[0039] Specifically, this step obtains the target time series by analyzing the target historical logs of the target vulnerability cluster, and obtains the target multi-domain features of the target time series by combining the predetermined multi-dimensional domain collection. The purpose of this step is to more comprehensively understand the behavior patterns and impact range of the vulnerability cluster by analyzing the historical data related to the vulnerability cluster and collecting features from multiple dimensions, thereby providing richer information for risk assessment and the formulation of response strategies.

[0040] Specifically, the target historical logs of the target vulnerability cluster are analyzed to understand the performance and changes of these vulnerabilities over time. By analyzing the logs, the target time series can be obtained, that is, the order and pattern of vulnerability activities or events over time. This time series analysis helps to reveal the patterns, frequencies and trends of vulnerability exploitation, as well as their possible long-term impact on system security. In addition, the target multi-domain features of the target time series obtained by combining the predetermined multi-dimensional domain collection can further enrich the understanding of vulnerability clusters. The predetermined multi-dimensional domain may include network traffic, system behavior, user activities and other aspects. By collecting data from these dimensions, the characteristics of vulnerability clusters in different fields can be obtained, such as the pattern of network attacks, abnormal use of system resources, etc. These multi-domain features provide a more comprehensive perspective, which helps to identify the performance of vulnerability clusters in different environments and conditions, and the complex threats they may pose to system security.

[0041] By analyzing the target historical logs of the target vulnerability cluster to obtain the target time series, and combining the predetermined multi-dimensional domain acquisition to obtain the target multi-domain features of the target time series, we can achieve an in-depth understanding and comprehensive evaluation of the vulnerability cluster behavior. This method helps to improve the accuracy of risk assessment and provides a solid foundation for formulating more effective security strategies. Obviously, this method based on historical logs and multi-dimensional feature analysis is an important strategy in security incident response and risk management, which can more comprehensively identify and manage security risks.

[0042] Step 7: Analyze the target unit safety and the target severity obtained by the target multi-domain features according to the unit safety assessment model, and generate a target safety report for the target software.

[0043] Specifically, this step uses the target multi-domain features obtained before the unit security assessment model analysis, combined with the target severity, to generate a target security report for the target software. The purpose of this step is to provide a comprehensive report on the security status of the target software through comprehensive analysis and evaluation, providing a basis for security decision-making.

[0044] Specifically, a unit security assessment model is a tool or algorithm used to assess the security of a specific unit or system. This model may take into account multiple factors, such as the vulnerability of the system, the threat environment, the effectiveness of protective measures, etc. By inputting the target multi-domain characteristics and the target severity into this model, a quantitative indicator of the target unit security can be obtained. This indicator reflects the security status of the target software in the current environment, including the risks and vulnerabilities it faces. In addition, through this analysis, the security issues and risks of the target software in multiple dimensions can be revealed. For example, some characteristics may indicate that the software has large security vulnerabilities in specific aspects, while other characteristics may indicate that the software performs well in dealing with certain threats. Therefore, this analysis not only helps to understand the overall security status of the software, but also reveals specific areas that need to be focused on.

[0045] By analyzing the target multi-domain characteristics and target severity according to the unit security assessment model, a target security report for the target software can be generated. This report is of great significance for understanding the security risks of the software, formulating corresponding protective measures, and prioritizing. Obviously, this security report generation method based on comprehensive assessment is an important tool in security incident response and risk management, which can help security experts and managers understand and manage security risks more comprehensively, thereby more effectively protecting software and systems from attacks.

[0046] Furthermore, the present application also includes:

[0047] The parallel testing tool includes a first testing tool and a second testing tool, which respectively obtain a first security event list of the target software tested by the first testing tool and a second security event list of the target software tested by the second testing tool; and combine the union events of the first security event list and the second security event list to obtain the target security event set.

[0048] Specifically, software security assessment is performed using parallel testing tools, in which at least two penetration testing tools are used simultaneously to detect security events of the target software. These tools generate security event lists separately, and then these lists are merged to form a comprehensive set of target security events. The main purpose of this method is to improve the comprehensiveness and accuracy of security assessment by combining the test results of multiple tools.

[0049] Specifically, first, the process involves two penetration testing tools, namely the first testing tool and the second testing tool, which are two randomly selected from the parallel testing tools. The penetration testing tool is used to simulate the behavior of an attacker to discover security vulnerabilities in the software. Then, each tool tests the target software separately and generates its own security event list. The first testing tool generates the first security event list, while the second testing tool generates the second security event list. These lists contain all security-related events detected during the test. Next, the system will integrate the two security event lists. Specifically, it will find the union events in the two lists, that is, the events that appear in both lists. These events are combined to form the target security event set. This set contains all security events detected from the two testing tools, providing a comprehensive view of security events.

[0050] Through this method of parallel testing and event integration, a more comprehensive and accurate set of security events can be obtained, which helps to better understand the security status of the software, identify potential security threats, and take corresponding measures to enhance the security of the software. This method is particularly suitable for the security assessment of complex software systems because it can combine the advantages of different testing tools to provide more comprehensive security coverage.

[0051] Furthermore, the present application also includes:

[0052] Extract first traversal information from the first traversal result, where the first traversal information refers to traversal matching information between the first security event and the first predetermined rule in the predetermined rule base; based on the first traversal information, if the first matching degree reaches the traversal matching constraint, the first predetermined vulnerability corresponding to the first predetermined rule is recorded as the vulnerability of the first security event.

[0053] Specifically, the scheme identifies and records the vulnerabilities of security events by traversing matching information. Overall, the scheme mainly includes two steps: first, extracting specific information in the first traversal result, that is, the traversal matching information of the first security event and the first predetermined rule in the predetermined rule library; then, based on this information, judging whether the first matching degree satisfies the traversal matching constraint, and if so, recording the corresponding predetermined vulnerability as the vulnerability of the security event.

[0054] Specifically, first, the system extracts key information from the first traversal result, which is related to the matching of the first security event with the first predetermined rule in the predetermined rule base. This is done through the traversal matching process, where the traversal matching information contains the details of the correlation between the security event and the rule. Then, the system evaluates the matching degree based on the extracted first traversal information. In this step, the system compares the traversal matching information with the traversal matching constraint to determine whether the matching degree meets the predetermined standard. Next, if the first matching degree satisfies the traversal matching constraint, that is, the matching degree reaches or exceeds the preset threshold, the system will perform the next operation. This step is critical because it determines which security events will be identified as having specific vulnerabilities. In addition, the system records the predetermined vulnerability corresponding to the first predetermined rule as the vulnerability of the first security event. This means that if a security event is highly matched with a specific rule and the rule is associated with a vulnerability, then the vulnerability will be marked as part of the security event. Finally, through this process, the system can effectively identify and record potential vulnerabilities of security events, thereby providing important information for subsequent security analysis and repair.

[0055] In summary, this technical solution can identify and record security incident vulnerabilities through precise traversal matching and matching evaluation. This not only improves the efficiency of security incident handling, but also provides strong data support for security risk management.

[0056] Furthermore, the present application also includes:

[0057] Read the vulnerability trigger timeline feature, and based on the vulnerability trigger timeline feature, perform feature collection and analysis on the first predetermined vulnerability and the second predetermined vulnerability to obtain a first correlation index; record the first correlation index as the first correlation analysis result; wherein the vulnerability trigger timeline feature includes the trigger condition feature at the first time and the damage spread feature at the second time; respectively obtain the first trigger condition feature information of the first predetermined vulnerability at the first time and the first damage spread feature information at the second time; respectively obtain the second trigger condition feature information of the second predetermined vulnerability at the first time and the second damage spread feature information at the second time; analyze and compare the trigger condition comparison result obtained by the first trigger condition feature information and the second trigger condition feature information to obtain the first trigger condition similarity; analyze and compare the damage spread comparison result obtained by the first damage spread feature information and the second damage spread feature information to obtain the first damage spread similarity; weight the first trigger condition similarity and the first damage spread similarity using the coefficient of variation principle to obtain the first correlation index.

[0058] Specifically, the scheme is used to analyze the correlation between two predetermined vulnerabilities. Overall, the scheme calculates the correlation index between two vulnerabilities by reading and comparing the vulnerability triggering timeline features, thereby evaluating the degree of association between them.

[0059] First, the system reads the vulnerability trigger timeline features, which include the trigger condition features and damage spread features at two time points. These features are key factors in evaluating vulnerability correlation. Then, the system obtains the feature information of the first predetermined vulnerability and the second predetermined vulnerability at two different time points. This includes the trigger condition feature information at the first time and the damage spread feature information at the second time. Next, the system conducts a comparative analysis of these feature information. Specifically, the system compares the similarity of the first predetermined vulnerability and the second predetermined vulnerability in the trigger conditions, as well as the similarity in the damage spread. In addition, the system uses the coefficient of variation principle to weight the trigger condition similarity and the damage spread similarity. The coefficient of variation is a statistic that measures the degree of data dispersion, and is used here to determine the weights of the two similarities in the overall correlation index. Finally, through this weighting method, the system calculates the first correlation index, which reflects the correlation between the first predetermined vulnerability and the second predetermined vulnerability.

[0060] In summary, this technical solution effectively evaluates the degree of correlation between two predetermined vulnerabilities by analyzing the timeline characteristics of the vulnerabilities and calculating the correlation index. This not only helps to deeply understand the interaction between vulnerabilities, but also provides important quantitative indicators for vulnerability management and risk control.

[0061] Furthermore, the present application also includes:

[0062] Reading a predetermined vulnerability characteristic, and performing characteristic analysis on the first predetermined vulnerability based on the predetermined vulnerability characteristic to obtain a first vulnerability characteristic parameter; analyzing the first vulnerability characteristic parameter based on the vulnerability cluster evaluation function to obtain the target severity, wherein the expression of the vulnerability cluster evaluation function is as follows:

[0063] S(x)= l * ∑ k=1 K ∑ i=1 n [ e i * C i ( x k ) ] ;

[0064] in, For the target vulnerability cluster The target severity, the target vulnerability cluster Included Pre-order vulnerabilities, and , ∑ i=1 n [ e i * C i ( x k ) ] For the The first of the scheduled vulnerabilities The normalized weighted result of the characteristic parameters of the predetermined vulnerabilities, For the said The first of the scheduled vulnerabilities characteristic parameters, each predetermined vulnerability has characteristic parameters, For the The weight coefficient of each characteristic parameter, is the severity coefficient, and .

[0065] Specifically, the severity of the target vulnerability cluster is calculated using a vulnerability cluster evaluation function, which takes into account the characteristic parameters of all predetermined vulnerabilities in the vulnerability cluster as well as their weights and severity coefficients.

[0066] First, the characteristics of the predetermined vulnerabilities are read, and then the characteristics of the first predetermined vulnerability are analyzed based on these characteristics to obtain the first vulnerability characteristic parameters. Next, the first vulnerability characteristic parameters are analyzed using the vulnerability cluster evaluation function. The expression of this evaluation function takes into account the normalized weighted results of the characteristic parameters of all predetermined vulnerabilities in the target vulnerability cluster. Each predetermined vulnerability has several characteristic parameters, and each parameter has its own weight coefficient. In addition, the evaluation function also includes a severity coefficient, which is used to adjust the final calculation result. Through this function, the scheme calculates the severity of the target vulnerability cluster. Finally, through vulnerability characteristic analysis and vulnerability cluster evaluation function, the severity of the vulnerability cluster can be effectively evaluated. By identifying and prioritizing the most serious vulnerabilities, the effect of improving network security protection efficiency is achieved.

[0067] Furthermore, the present application also includes:

[0068] The predetermined vulnerability characteristics include CVSS score, attack complexity, privilege level, data exposure, and historical utilization.

[0069] Specifically, the core of this technical solution is to define a set of predetermined vulnerability characteristics, which are designed to comprehensively evaluate the impact and severity of security vulnerabilities, including CVSS scores, attack complexity, permission levels, data exposure, and historical utilization. These characteristics are intended to achieve detailed analysis and priority sorting of vulnerabilities, thereby more effectively guiding the implementation of security protection measures.

[0070] First, the severity of the vulnerability is assessed through the CVSS score, which is an important indicator of vulnerability risk. Then, the attack complexity is considered, which is the technical difficulty required for an attacker to exploit the vulnerability, which helps determine which vulnerabilities are more likely to be exploited. Next, the permission level is taken into account, which describes the level of system access that an attacker may obtain after exploiting the vulnerability. In addition, the degree of data exposure is also a key factor, which measures the severity of the data leakage that the vulnerability may cause. Finally, the historical utilization rate is taken into account, which provides a basis for predicting future risks based on how often and how the vulnerability has been exploited in the past.

[0071] In summary, a comprehensive assessment of security vulnerabilities is achieved by taking into account multiple dimensions such as CVSS score, attack complexity, permission level, data exposure, and historical utilization. Such an assessment helps the security team to more accurately identify and prioritize the most critical vulnerabilities, thereby improving the overall security of the software.

[0072] Furthermore, the present application also includes:

[0073] Obtain target time domain features of the target time series; obtain target frequency domain features of the target time series after Fourier transformation; and use the target time domain features and the target frequency domain features as the target multi-domain features.

[0074] Specifically, the main purpose of this scheme is to obtain the multi-domain features of the target time series. This process includes two main steps: one is to obtain the time domain features of the target time series, and the other is to obtain the frequency domain features of the target time series. Through these two steps, the scheme can comprehensively analyze and understand the properties of the target time series, providing richer information for subsequent processing or analysis.

[0075] First, the target time domain features of the target time series are obtained. The time domain features usually describe the changes of the signal on the time axis, such as the amplitude, rise time, and fall time of the signal. Then, the target time series is Fourier transformed to obtain its target frequency domain features. The frequency domain features describe the distribution of the signal on the frequency axis, such as the frequency components and power spectrum of the signal. Next, the obtained target time domain features are combined with the target frequency domain features to form the multi-domain features of the target. In this way, the target time series is not only described in detail in time, but also fully characterized in frequency. Finally, this method can provide comprehensive information of the target time series in the time domain and frequency domain, so as to more accurately analyze and understand the nature of the signal. This is very beneficial for signal processing, fault diagnosis, pattern recognition and other fields. For example, in fault diagnosis, combining time domain and frequency domain features can more accurately identify the type and location of the fault; in pattern recognition, multi-domain features can provide richer information and improve the accuracy of recognition.

[0076] Furthermore, the present application also includes:

[0077] Obtain historical security event records of each vulnerability in the target vulnerability cluster to form a target historical time series; obtain the target historical multi-domain features of the target historical time series based on the target multi-domain features; read the unit duration, and analyze the target historical time series to obtain the target historical unit safety degree under the unit duration; perform supervised learning training on the historical data group composed of the target historical multi-domain features and the target historical unit safety degree to obtain the unit security assessment model; wherein, the target historical time series is divided based on the unit duration to obtain a target historical division result, and the target historical division result includes multiple unit segments; respectively obtain the first security event frequency and the first security event severity of the first unit segment of the multiple unit segments, and weight them to obtain the first safety degree of the first unit segment; take the average of the first safety degrees as the target historical unit safety degree.

[0078] Specifically, this technical solution aims to build a unit security assessment model by analyzing the historical security event records of the target vulnerability cluster. Its main contents include obtaining the historical security event records of the target vulnerability cluster, forming the target historical time series, and extracting historical multi-domain features based on the multi-domain features of the target. Then, by analyzing these historical data, the target historical unit security within the unit time is calculated. Finally, a supervised learning model is trained using these data to evaluate the unit security.

[0079] The specific implementation process is as follows: First, the scheme obtains the historical security event records of each vulnerability in the target vulnerability cluster, and these records are organized into a target historical time series. Then, based on the multi-domain features of the target, the target historical multi-domain features of the target historical time series are extracted. Next, the unit duration is read and the target historical time series is analyzed to calculate the target historical unit safety degree under the unit duration. In addition, the scheme also includes supervised learning training of a historical data group composed of target historical multi-domain features and target historical unit safety degrees to obtain a unit safety assessment model. In this process, the target historical time series is divided based on the unit duration to form multiple unit segments. For each unit segment, the scheme calculates the frequency of the first security event and the severity of the first security event respectively, and weights them to obtain the first safety degree. Finally, the mean of the first safety degree is taken as the target historical unit safety degree.

[0080] In summary, this technical solution trains a model that can evaluate the safety of a unit by analyzing historical security event records and multi-domain features in detail. This model can help predict and evaluate possible security risks in the future, thereby improving the pertinence and effectiveness of security precautions.

[0081] In summary, the software security penetration testing method provided by this application has the following technical effects:

[0082] This application first performs penetration testing on the target software through a parallel testing tool to obtain a target security event set. Then, the security events are traversed and analyzed using a predetermined rule base to obtain predetermined vulnerabilities. Next, through correlation analysis, vulnerabilities with correlation are added to the target vulnerability cluster. A vulnerability cluster evaluation function is introduced to perform severity evaluation on the target vulnerability cluster to obtain the target severity. At the same time, the target historical logs and multi-dimensional domain collection of the target vulnerability cluster are analyzed to obtain the target multi-domain features of the target time series. Finally, according to the unit security assessment model, combined with the target severity and target multi-domain features, a security report for the target software is generated. Through this application, the efficiency and accuracy of penetration testing are improved, the false alarm and vulnerability rates are reduced, and a comprehensive assessment of software security is provided.

[0083] Embodiment 2, based on the software security penetration testing method in the above embodiment, the same inventive concept, this application also provides a software security penetration testing system, please refer to the attached Figure 2 , the system comprising:

[0084] A first obtaining module 11, wherein the first obtaining module 11 is used to perform a penetration test on the target software through a parallel testing tool to obtain a target security event set, wherein the target security event set includes a plurality of security events;

[0085] A second obtaining module 12, the second obtaining module 12 is used to traverse a first security event among the multiple security events in a predetermined rule base to obtain a first traversal result, and analyze the first traversal result to obtain a first predetermined vulnerability;

[0086] A third obtaining module 13, wherein the third obtaining module 13 is used to perform a correlation analysis on the first predetermined vulnerability and the second predetermined vulnerability of the second security event to obtain a first correlation analysis result;

[0087] A first adding module 14, the first adding module 14 is used for adding the first predetermined vulnerability and the second predetermined vulnerability to a target vulnerability cluster if the target correlation between the first predetermined vulnerability and the second predetermined vulnerability meets a predetermined correlation constraint according to the first correlation analysis result;

[0088] A fourth obtaining module 15, wherein the fourth obtaining module 15 is used to introduce a vulnerability cluster assessment function to perform severity assessment analysis on the target vulnerability cluster to obtain a target severity;

[0089] A fifth obtaining module 16, the fifth obtaining module 16 is used to analyze the target historical log of the target vulnerability cluster to obtain a target time series, and obtain a target multi-domain feature of the target time series in combination with a predetermined multi-dimensional domain collection;

[0090] The first generating module 17 is used to analyze the target unit safety degree and the target severity obtained by the target multi-domain features according to the unit safety assessment model, and generate a target safety report for the target software.

[0091] Furthermore, the modules in the system are also used for:

[0092] The parallel testing tool comprises a first testing tool and a second testing tool, and the method comprises:

[0093] Respectively obtaining a first security event list of the target software tested by the first testing tool and a second security event list of the target software tested by the second testing tool;

[0094] The target security event set is obtained by combining the union events of the first security event list and the second security event list.

[0095] Furthermore, the modules in the system are also used for:

[0096] Extracting first traversal information from the first traversal result, where the first traversal information refers to traversal matching information between the first security event and a first predetermined rule in the predetermined rule base;

[0097] According to the first traversal information, if the first matching degree reaches the traversal matching constraint, the first predetermined vulnerability corresponding to the first predetermined rule is recorded as the vulnerability of the first security event.

[0098] Furthermore, the modules in the system are also used for:

[0099] Reading vulnerability triggering timeline features, and performing feature collection and analysis on the first predetermined vulnerability and the second predetermined vulnerability based on the vulnerability triggering timeline features to obtain a first correlation index;

[0100] Recording the first correlation index as the first correlation analysis result;

[0101] The vulnerability triggering timeline features include triggering condition features at the first time and damage spreading features at the second time;

[0102] Respectively obtaining first trigger condition characteristic information of the first predetermined vulnerability at the first time and first damage spread characteristic information at the second time;

[0103] Respectively obtaining second trigger condition characteristic information of the second predetermined vulnerability at the first time and second damage spread characteristic information at the second time;

[0104] Analyze and compare the trigger condition comparison result obtained by comparing the first trigger condition feature information with the second trigger condition feature information to obtain a first trigger condition similarity;

[0105] Analyze and compare the damage spread comparison result obtained by the first damage spread characteristic information and the second damage spread characteristic information to obtain a first damage spread similarity;

[0106] The first trigger condition similarity and the first damage spread similarity are weighted by using the variation coefficient principle to obtain the first correlation index.

[0107] Furthermore, the modules in the system are also used for:

[0108] Reading a predetermined vulnerability characteristic, and performing characteristic analysis on the first predetermined vulnerability based on the predetermined vulnerability characteristic to obtain a first vulnerability characteristic parameter;

[0109] The first vulnerability characteristic parameter is analyzed based on the vulnerability cluster evaluation function to obtain the target severity, wherein the expression of the vulnerability cluster evaluation function is as follows:

[0110] S(x)= l * ∑ k=1 K ∑ i=1 n [ e i * C i ( x k ) ] ;

[0111] in, For the target vulnerability cluster The target severity, the target vulnerability cluster Included Pre-order vulnerabilities, and , ∑ i=1 n [ e i * C i ( x k ) ] For the The first of the scheduled vulnerabilities The normalized weighted result of the characteristic parameters of the predetermined vulnerabilities, For the The first of the scheduled vulnerabilities characteristic parameters, each predetermined vulnerability has characteristic parameters, For the The weight coefficient of each characteristic parameter, is the severity coefficient, and .

[0112] Furthermore, the modules in the system are also used for:

[0113] The predetermined vulnerability characteristics include CVSS score, attack complexity, privilege level, data exposure, and historical utilization.

[0114] Furthermore, the modules in the system are also used for:

[0115] Acquire target time domain features of the target time series;

[0116] Acquire target frequency domain features of the target time series after Fourier transformation;

[0117] The target time domain feature and the target frequency domain feature are used as the target multi-domain feature.

[0118] Furthermore, the modules in the system are also used for:

[0119] Obtaining historical security event records of each vulnerability in the target vulnerability cluster to form a target historical time series;

[0120] Obtaining a target history multi-domain feature of the target history time series based on the target multi-domain feature;

[0121] Read the unit duration, and analyze the target historical time series to obtain the target historical unit safety degree under the unit duration;

[0122] Performing supervised learning training on a historical data set composed of the target historical multi-domain features and the target historical unit safety degree to obtain the unit safety assessment model;

[0123] wherein the target history time series is divided based on the unit duration to obtain a target history division result, wherein the target history division result includes a plurality of unit segments;

[0124] Respectively obtaining a first safety event frequency and a first safety event severity of a first unit segment among the multiple unit segments, and weighting them to obtain a first safety degree of the first unit segment;

[0125] The average of the first safety levels is taken as the target historical unit safety level.

[0126] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. Figure 1 The software security penetration testing method and specific examples in the first embodiment are also applicable to a software security penetration testing system in the present embodiment. Through the above detailed description of a software security penetration testing method, those skilled in the art can clearly understand a software security penetration testing system in the present embodiment, so for the sake of brevity of the specification, it will not be described in detail here. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0127] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0128] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application belong to the scope of the present application and its equivalent technology, the present application is also intended to include these modifications and variations.

Claims

1. A software security penetration testing method, It is characterized in that include: Performing penetration testing on the target software through a parallel testing tool to obtain a target security event set, wherein the target security event set includes multiple security events; Traversing a first security event among the multiple security events in a predetermined rule base to obtain a first traversal result, and analyzing the first traversal result to obtain a first predetermined vulnerability; Performing a correlation analysis on the first predetermined vulnerability and a second predetermined vulnerability of the second security event to obtain a first correlation analysis result; According to the first correlation analysis result, if the target correlation between the first predetermined vulnerability and the second predetermined vulnerability meets the predetermined correlation constraint, adding the first predetermined vulnerability and the second predetermined vulnerability to a target vulnerability cluster; Introducing a vulnerability cluster assessment function to perform severity assessment analysis on the target vulnerability cluster to obtain a target severity; Analyze the target historical log of the target vulnerability cluster to obtain the target time series, and obtain the target multi-domain features of the target time series in combination with the predetermined multi-dimensional domain collection; Analyzing the target unit safety degree and the target severity obtained by the target multi-domain features according to the unit safety assessment model, and generating a target safety report for the target software; Wherein, the method comprises: Reading a predetermined vulnerability characteristic, and performing characteristic analysis on the first predetermined vulnerability based on the predetermined vulnerability characteristic to obtain a first vulnerability characteristic parameter; The first vulnerability characteristic parameter is analyzed based on the vulnerability cluster evaluation function to obtain the target severity, wherein the expression of the vulnerability cluster evaluation function is as follows: ; in, For the target vulnerability cluster The target severity, the target vulnerability cluster Included Pre-order vulnerabilities, and , For the The first of the scheduled vulnerabilities The normalized weighted result of the characteristic parameters of the predetermined vulnerabilities, For the The first of the scheduled vulnerabilities characteristic parameters, each predetermined vulnerability has characteristic parameters, For the The weight coefficient of each characteristic parameter, is the severity coefficient, and .

2. The method according to claim 1, It is characterized in that The parallel testing tool comprises a first testing tool and a second testing tool, and the method comprises: Respectively obtaining a first security event list of the target software tested by the first testing tool and a second security event list of the target software tested by the second testing tool; The target security event set is obtained by combining the union events of the first security event list and the second security event list.

3. The method according to claim 1, It is characterized in that The method comprises: Extracting first traversal information from the first traversal result, where the first traversal information refers to traversal matching information between the first security event and a first predetermined rule in the predetermined rule base; According to the first traversal information, if the first matching degree reaches the traversal matching constraint, the first predetermined vulnerability corresponding to the first predetermined rule is recorded as the vulnerability of the first security event.

4. The method according to claim 1, It is characterized in that The method comprises: Reading vulnerability triggering timeline features, and performing feature collection and analysis on the first predetermined vulnerability and the second predetermined vulnerability based on the vulnerability triggering timeline features to obtain a first correlation index; Recording the first correlation index as the first correlation analysis result; The vulnerability triggering timeline features include triggering condition features at the first time and damage spreading features at the second time; Respectively obtaining first trigger condition characteristic information of the first predetermined vulnerability at the first time and first damage spread characteristic information at the second time; Respectively obtaining second trigger condition characteristic information of the second predetermined vulnerability at the first time and second damage spread characteristic information at the second time; Analyze and compare the trigger condition comparison result obtained by comparing the first trigger condition feature information with the second trigger condition feature information to obtain a first trigger condition similarity; Analyze and compare the damage spread comparison result obtained by the first damage spread characteristic information and the second damage spread characteristic information to obtain a first damage spread similarity; The first trigger condition similarity and the first damage spread similarity are weighted by using the variation coefficient principle to obtain the first correlation index.

5. The method according to claim 1, It is characterized in that The predetermined vulnerability characteristics include CVSS score, attack complexity, privilege level, data exposure, and historical utilization.

6. The method according to claim 1, It is characterized in that The method comprises: Acquire target time domain features of the target time series; Acquire target frequency domain features of the target time series after Fourier transformation; The target time domain feature and the target frequency domain feature are used as the target multi-domain feature.

7. The method according to claim 1, It is characterized in that The method comprises: Obtaining historical security event records of each vulnerability in the target vulnerability cluster to form a target historical time series; Obtaining a target history multi-domain feature of the target history time series based on the target multi-domain feature; Read the unit duration, and analyze the target historical time series to obtain the target historical unit safety degree under the unit duration; Performing supervised learning training on a historical data set composed of the target historical multi-domain features and the target historical unit safety degree to obtain the unit safety assessment model; wherein the target history time series is divided based on the unit duration to obtain a target history division result, wherein the target history division result includes a plurality of unit segments; Respectively obtaining a first safety event frequency and a first safety event severity of a first unit segment among the multiple unit segments, and weighting them to obtain a first safety degree of the first unit segment; The average of the first safety levels is taken as the target historical unit safety level.

8. A software security penetration testing system, It is characterized in that For implementing the steps of the method according to any one of claims 1 to 7, the system comprises: A first obtaining module, wherein the first obtaining module is used to perform a penetration test on the target software through a parallel testing tool to obtain a target security event set, wherein the target security event set includes a plurality of security events; a second obtaining module, the second obtaining module being used to traverse a first security event among the multiple security events in a predetermined rule base to obtain a first traversal result, and to analyze the first traversal result to obtain a first predetermined vulnerability; a third obtaining module, the third obtaining module being used to perform a correlation analysis on the first predetermined vulnerability and a second predetermined vulnerability of the second security event to obtain a first correlation analysis result; a first adding module, configured to add the first predetermined vulnerability and the second predetermined vulnerability to a target vulnerability cluster if the target correlation between the first predetermined vulnerability and the second predetermined vulnerability meets a predetermined correlation constraint according to the first correlation analysis result; A fourth obtaining module, wherein the fourth obtaining module is used to introduce a vulnerability cluster evaluation function to perform severity evaluation and analysis on the target vulnerability cluster to obtain a target severity; A fifth obtaining module, the fifth obtaining module is used to analyze the target historical log of the target vulnerability cluster to obtain the target time series, and obtain the target multi-domain features of the target time series in combination with the predetermined multi-dimensional domain collection; The first generation module is used to analyze the target unit safety degree and the target severity obtained by the target multi-domain characteristics according to the unit safety assessment model, and generate a target security report for the target software.