A vulnerability scanning method and system based on payload library
Through the vulnerability scanning method based on the payload library, the preset vulnerability data in the big data stream is obtained and analyzed in real time, combined with crawler technology and Radare2 analysis, to dynamically manage the vulnerability life cycle, solving the problems of vulnerability detection delay and incomplete coverage in the existing technology. , achieving efficient and accurate vulnerability detection and repair.
Patent Information
- Application Number
- CN202410596454.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-14
AI Technical Summary
Existing vulnerability scanning technologies are difficult to adapt to the rapidly changing network environment and cannot identify and respond to new vulnerabilities and vulnerability variants in a timely manner, resulting in delayed vulnerability repairs and inability to fully cover multiple security threats.
Adopt a vulnerability scanning method based on the load library, obtain big data flow data in real time through the detection server, incorporate preset vulnerability data, use the current vulnerability detection algorithm for detection, update the vulnerability detection algorithm based on the detection results, and combine crawler technology to obtain the latest vulnerability data , use Radare2 to analyze binary files to generate feature vectors, dynamically manage vulnerability life cycles and severity scores, and ensure real-time and comprehensive vulnerability detection.
It significantly improves the efficiency, accuracy and timeliness of vulnerability detection, reduces vulnerability repair time delays, ensures the system's comprehensive coverage of multiple security threats, can dynamically respond to new vulnerabilities and variants, and meets the needs of the rapidly developing network environment.
Smart Images

Figure CN118350004B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security, and more specifically, to a vulnerability scanning method and system based on a payload library. Background Art
[0002] Typically, vulnerability scanning is performed using a vulnerability scanner based on specific vulnerability detection algorithms. These algorithms are responsible for analyzing and determining whether there are security vulnerabilities in the system. In order to improve the security of the system, these vulnerability detection algorithms need to be continuously updated and optimized. However, with the rapid development of Internet technology and the surge in the amount of data processed by servers, the vulnerability supplementation method under the current model can no longer meet the network attack prevention and control in the current rapidly changing network environment. In order to solve this problem, it is necessary to propose a vulnerability scanning method and system based on a payload library. Summary of the invention
[0003] A series of simplified concepts are introduced in the Summary of the Invention section, which will be further described in detail in the Detailed Description of the Invention section. The Summary of the Invention section of this application does not mean to attempt to define the key features and essential technical features of the claimed technical solution, nor does it mean to attempt to determine the scope of protection of the claimed technical solution.
[0004] In a first aspect, the present application proposes a vulnerability scanning method based on a payload library, the method comprising:
[0005] Control the detection server to obtain large data stream data in real time;
[0006] The preset vulnerability data released by the load server is mixed into the above-mentioned big data stream data to form a vulnerability detection data stream, wherein the above-mentioned preset vulnerability data is the vulnerability data included in the load library of the above-mentioned load server, and the above-mentioned preset vulnerability data is provided with a preset identification bit, and the above-mentioned preset identification bit includes a release sequence identification bit and a vulnerability type identification bit. The above-mentioned preset vulnerability data has no damaging effect on the system when it is not safely detected. The above-mentioned preset vulnerability data is generated based on the established release strategy of the above-mentioned load library, and the above-mentioned load library includes SQL injection code, XSS script and buffer overflow data;
[0007] The detection server detects the above vulnerability detection data stream and uses the current system vulnerability detection algorithm to detect and obtain the detection result;
[0008] Vulnerabilities are repaired based on the above detection results to update the current system vulnerability detection algorithm of the above detection server and the running server, wherein the above running server is a server that interacts with data when the system is running normally, and the above detection server is a server corresponding to the system vulnerability detection algorithm upgrade.
[0009] In a feasible implementation manner, the above method further includes:
[0010] Control the above-mentioned payload server to obtain attack vulnerability data from public vulnerability and exposure databases, open network application projects and security forum communities based on crawler technology;
[0011] A first life cycle control field is added to the above-mentioned attack vulnerability data to generate vulnerability data in the above-mentioned payload library, wherein the above-mentioned first life cycle control field is used to control the life cycle of the above-mentioned attack vulnerability data in the above-mentioned payload server, and the above-mentioned first life cycle is determined according to the disclosure time of the above-mentioned attack vulnerability data.
[0012] In a feasible implementation manner, the above method further includes:
[0013] All vulnerability data in the above payload library are analyzed using Radare2 software to obtain vulnerability feature vectors.
[0014] Generate a feature vector encoding based on the above vulnerability feature vector;
[0015] New vulnerability data is generated according to the above-mentioned feature vector encoding and fuzz testing algorithm to expand the vulnerability data in the above-mentioned payload library.
[0016] In a feasible implementation manner, the above method further includes:
[0017] A second life cycle control field is added to the vulnerability data to generate the above-mentioned preset vulnerability data, wherein the above-mentioned second life cycle is used to control the life cycle of the above-mentioned preset vulnerability data in the above-mentioned detection server.
[0018] In a feasible implementation manner, the above method further includes:
[0019] The second life cycle L is determined based on the following formula:
[0020] L=L0×S×T
[0021] Among them, L0 is the basic life cycle, S is the severity adjustment coefficient, and T is the type adjustment coefficient. The above basic life cycle is determined based on the security level of the above running server, the above severity adjustment coefficient is determined based on the severity score of the vulnerability, and the above type adjustment coefficient is determined based on the complexity of the vulnerability type.
[0022] In a feasible implementation manner, the above method further includes:
[0023] The base score is calculated from the impact subscore, the influence score, and the development complexity subscore;
[0024] The severity scores of the above vulnerabilities are calculated based on the above base scores and time environment metrics.
[0025] In a feasible implementation, the calculation of the base score based on the impact sub-score, the impact score and the development complexity sub-score includes:
[0026] The above impact sub-score Impact is calculated according to the following formula:
[0027] Impact=1-[(1-ConfImpact)×(1-IntegImpact)×(1-AvailImpact)]
[0028] Among them: ConfImpact, IntegImpact and AvailImpact are the impact sub-scores on confidentiality, integrity and availability respectively;
[0029] The above impact score ImpactScore is calculated according to the following formula:
[0030] Impact Score = a1 × Impact
[0031] Wherein, a1 is the first weight coefficient;
[0032] The above development complexity sub-score Exploitability is calculated according to the following formula:
[0033] Exploitability=a2×AttackVector×AttackComplexity×PrivilegesRequired×U
[0034] serInteraction
[0035] Where a2 is the second weight coefficient, AttackVector is the attack vector, AttackComplexity is the attack complexity, PrivilegesRequired is the privilege requirement value, and UserInteraction is the user interaction value;
[0036] The above basic score BaseScore is calculated according to the following formula:
[0037] BaseScore=min[(ImpactScore+Exploitability),10]
[0038] If the vulnerability does not affect confidentiality, integrity, and availability, set the above base score BaseScore to 0.
[0039] In a feasible implementation manner, the above-mentioned adding preset vulnerability data into the above-mentioned big data stream data to form a vulnerability detection data stream includes:
[0040] Obtain historical vulnerability data detected by the above-mentioned running server;
[0041] Determine the preset vulnerability data based on the historical vulnerability data;
[0042] Obtain the historical data traffic characteristics of the above-mentioned running server;
[0043] Determine the time node information to be incorporated based on the above historical data traffic characteristics;
[0044] According to the above-mentioned preset vulnerability data and the above-mentioned mixing time node information, the preset vulnerability data is mixed into the above-mentioned big data stream data to form a vulnerability detection data stream.
[0045] In a feasible implementation manner, determining the preset vulnerability data based on the historical vulnerability data includes:
[0046] Determine vulnerability distribution pattern information of the above historical vulnerability data;
[0047] The preset vulnerability data is determined based on the vulnerability distribution pattern information.
[0048] In a second aspect, the present application proposes a vulnerability scanning system based on a payload library, comprising:
[0049] An acquisition unit, used to control the detection server to acquire large data stream data in real time;
[0050] An incorporation unit is used to incorporate preset vulnerability data published by a payload server into the above-mentioned big data stream data to form a vulnerability detection data stream, wherein the above-mentioned preset vulnerability data is vulnerability data included in the payload library of the above-mentioned payload server, and the above-mentioned preset vulnerability data is provided with preset identification bits, and the above-mentioned preset identification bits include a release sequence identification bit and a vulnerability type identification bit, and the above-mentioned preset vulnerability data has no damaging effect on the system when it is not safely detected, and the above-mentioned preset vulnerability data is generated based on the established release strategy of the above-mentioned payload library, and the above-mentioned payload library includes SQL injection code, XSS script and buffer overflow data;
[0051] A detection unit, used to detect the vulnerability detection data stream through the detection server, and use the current system vulnerability detection algorithm to detect and obtain the detection result;
[0052] A repair unit is used to repair vulnerabilities based on the above detection results to update the current system vulnerability detection algorithm of the above detection server and the running server, wherein the above running server is a server that interacts with data when the system is running normally, and the above detection server is a server corresponding to the system used to upgrade the system vulnerability detection algorithm.
[0053] In summary, the vulnerability scanning method based on the load library of the embodiment of the present application includes: controlling the detection server to obtain big data stream data in real time; adding preset vulnerability data released by the load server into the above-mentioned big data stream data to form a vulnerability detection data stream, wherein the above-mentioned preset vulnerability data is the vulnerability data included in the load library of the above-mentioned load server, and the above-mentioned preset vulnerability data is provided with a preset identification bit, and the above-mentioned preset identification bit includes a release order identification bit and a vulnerability type identification bit, and the above-mentioned preset vulnerability data has no damaging effect on the system when it is not safely detected, and the above-mentioned preset vulnerability data is generated based on the established release strategy of the above-mentioned load library, and the above-mentioned load library includes SQL injection code, XSS script and buffer overflow data; the above-mentioned vulnerability detection data stream is detected by the detection server, and the current system vulnerability detection algorithm is used to obtain the detection result; based on the above-mentioned detection result, the vulnerability is repaired to update the current system vulnerability detection algorithm of the above-mentioned detection server and the running server, wherein the above-mentioned running server is a server for data interaction when the system is running normally, and the above-mentioned detection server is a server corresponding to the system for upgrading the system vulnerability detection algorithm. The vulnerability scanning method based on the load library proposed in this application, the detection server acquires and analyzes the big data stream containing the preset vulnerability data in real time, which can immediately reflect the security threat status in the current network environment. By adding preset vulnerability data with clear identification bits into the data stream, the detection system can accurately identify and evaluate its detection capabilities for different types of vulnerabilities. This not only helps to confirm the strengths and weaknesses of the algorithm, but also adjusts and optimizes the detection strategy based on real-time feedback, thereby improving the overall detection efficiency and accuracy. By analyzing the detection results of the preset vulnerability data, this solution allows system administrators and security teams to dynamically update the vulnerability detection algorithm to respond to new vulnerabilities discovered or variants of existing vulnerabilities. This method reduces the time delay problem common in traditional vulnerability response strategies, making vulnerability repair more timely and effective. The preset vulnerability data used in this solution is designed to have no damage effect on the actual system, ensuring that the system performance or stability will not be negatively affected when performing vulnerability scanning and detection. The proposed load library tests various types of vulnerabilities (including SQL injection, XSS scripts, buffer overflows, etc.), ensuring that the vulnerability detection system can fully cover various security threats. This diverse testing method is more comprehensive than the traditional scanning method for specific vulnerabilities, and can better protect the system from multi-faceted network attacks. The present application provides an advanced vulnerability detection method based on real-time data streams and dynamic payload libraries, which significantly improves the efficiency, accuracy and timeliness of vulnerability detection. Compared with traditional technologies, it has obvious advantages and progress, and can better meet the security protection needs of the current rapidly developing network environment.
[0054] The vulnerability scanning method based on the payload library proposed in this application, and other advantages, objectives and features of this application will be reflected in part through the following description, and in part will also be understood by technical personnel in this field through research and practice of this application. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present specification. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0056] Figure 1 A schematic diagram of a vulnerability scanning method based on a payload library provided in an embodiment of the present application;
[0057] Figure 2 A schematic diagram of the structure of a vulnerability scanning system based on a payload library is provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0059] See also Figure 1 , which is a flow diagram of a vulnerability scanning method based on a payload library provided in an embodiment of the present application, which may specifically include:
[0060] S110, controlling the detection server to obtain big data stream data in real time.
[0061] Exemplarily, the detection server is configured to monitor and acquire large data streams in real time. These data streams may include network traffic, system logs, application logs, etc., covering data collected from various sources (such as network devices, servers, and applications). Real-time acquisition of these data streams is key to ensuring that potential security threats can be responded to and identified immediately.
[0062] S120. Preset vulnerability data released by the payload server is mixed into the above-mentioned big data stream to form a vulnerability detection data stream, wherein the above-mentioned preset vulnerability data is vulnerability data included in the payload library of the above-mentioned payload server, and preset identification bits are set in the above-mentioned preset vulnerability data. The above-mentioned preset identification bits include a release sequence identification bit and a vulnerability type identification bit. The above-mentioned preset vulnerability data has no damaging effect on the system when it is not safely detected. The above-mentioned preset vulnerability data is generated based on the established release strategy of the above-mentioned payload library, and the above-mentioned payload library includes SQL injection code, XSS script and buffer overflow data.
[0063] Exemplarily, preset vulnerability data selected from the payload library is incorporated into the real-time data stream. These vulnerability data are generated by the payload server according to the established release strategy. The established release strategy can be determined by the vulnerability distribution law information of the historical vulnerability data, or can be set by the test user. The vulnerability data includes a variety of vulnerability types, including but not limited to SQL injection, XSS script, buffer overflow, etc. When designing these data, we have considered how to ensure that no actual damage is caused to the system if it is not detected by the vulnerability detection algorithm. Each data item carries a preset identification bit, a release order identification bit and a vulnerability type identification bit, which helps with subsequent analysis and evaluation. The release order identification is used to identify whether there are any missed vulnerabilities in the subsequent scanning process, and the vulnerability type identification is used to directly distinguish the type of vulnerability.
[0064] S130: Using the detection server to detect the vulnerability detection data stream, use the current system vulnerability detection algorithm to detect the vulnerability and obtain the detection result.
[0065] Exemplarily, the detection server uses the vulnerability detection algorithm of the current system to analyze the data stream mixed with preset vulnerability data. Test the effectiveness of the current vulnerability detection algorithm to see whether it can identify and respond to the mixed preset vulnerability data. Analyze the release sequence identification bits included in the identified detection results, detect the continuity of the release sequence, and detect whether the time sequence of the corresponding vulnerabilities of the sequence identification bits is consistent with the release sequence, so as to analyze which type of vulnerability the current vulnerability detection algorithm has a better detection effect on, and which type of detection time is longer, so as to upgrade the current vulnerability detection algorithm in a targeted manner.
[0066] S140. Perform vulnerability repair based on the above detection results to update the current system vulnerability detection algorithm of the above detection server and the operation server, wherein the above operation server is a server that interacts with data when the system is running normally, and the above detection server is a server corresponding to the system vulnerability detection algorithm upgrade.
[0067] Exemplarily, once the detection server identifies a vulnerability through analysis, it updates and repairs the vulnerability detection algorithm on the detection operation server based on these detection results. This may involve patching known vulnerabilities, adjusting vulnerability detection parameters, or completely updating the detection algorithm to improve the accuracy and efficiency of detection. The operation server, as a platform for data interaction during normal system operation, will also synchronize its security measures based on these updates to prevent actual security threats.
[0068] In summary, the vulnerability scanning method based on the payload library proposed in this application, the detection server acquires and analyzes the big data stream containing the preset vulnerability data in real time, which can immediately reflect the security threat status in the current network environment. By adding preset vulnerability data with clear identification bits into the vulnerability detection data stream, the detection system can accurately identify and evaluate its detection capabilities for different types of vulnerabilities. This not only helps to confirm the strengths and weaknesses of the algorithm, but also adjusts and optimizes the detection strategy based on real-time feedback, thereby improving the overall detection efficiency and accuracy. By analyzing the detection results of the preset vulnerability data, this solution allows system administrators and security teams to dynamically update the vulnerability detection algorithm to respond to new vulnerabilities discovered or variants of existing vulnerabilities. This method reduces the time delay problem common in traditional vulnerability response strategies, making vulnerability repair more timely and effective. The preset vulnerability data used in this solution is designed to have no damage effect on the actual system, ensuring that the system performance or stability will not be negatively affected when performing vulnerability scanning and detection. The proposed payload library tests various types of vulnerabilities (including SQL injection, XSS scripts, buffer overflows, etc.), ensuring that the vulnerability detection system can fully cover various security threats. This diversified testing method is more comprehensive than the traditional scanning method for specific vulnerabilities, and can better protect the system from multi-faceted network attacks. This application provides an advanced vulnerability detection method based on real-time data streams and dynamic payload libraries, which significantly improves the efficiency, accuracy and timeliness of vulnerability detection. Compared with traditional technologies, it has obvious advantages and progress, and can better meet the security protection needs of the current rapidly developing network environment.
[0069] In some examples, the method further includes:
[0070] Control the above-mentioned payload server to obtain attack vulnerability data from public vulnerability and exposure databases, open network application projects and security forum communities based on crawler technology;
[0071] A first life cycle control field is added to the above-mentioned attack vulnerability data to generate vulnerability data in the above-mentioned payload library, wherein the above-mentioned first life cycle control field is used to control the life cycle of the above-mentioned attack vulnerability data in the above-mentioned payload server, and the above-mentioned first life cycle is determined according to the disclosure time of the above-mentioned attack vulnerability data.
[0072] For example, the payload server uses crawler technology to automatically crawl the latest attack vulnerability data from public resources on the Internet, such as public vulnerability and exposure databases (such as CVE), open network application projects (such as OWASP), and various security forums and communities. Ensure that the vulnerability data contained in the payload library is always the latest and most comprehensive, thereby improving the effectiveness and coverage of vulnerability scanning.
[0073] The crawler not only collects data, but also filters and classifies the information according to specific criteria (such as the severity of the vulnerability, the type of software affected, the difficulty of exploitation, etc.) to ensure that only the most relevant and valuable vulnerability data is added to the payload library.
[0074] The first lifecycle control field defines how long vulnerability data is stored in the payload library, or its "lifecycle". The lifecycle is usually set based on the time when the vulnerability data is made public, and is intended to ensure the timeliness and relevance of the information. Once the vulnerability data exceeds the set lifecycle, it will be automatically updated or deleted from the payload library, thus keeping the library updated and accurate.
[0075] This dynamic management approach ensures that the payload library is not filled with outdated or widely fixed vulnerability data, thereby improving the efficiency of vulnerability scanning and reducing false positives. Dynamic management of the life cycle also helps to reduce storage pressure on the server and ensure that system resources are used effectively.
[0076] Based on the data collected by the crawler and the first life cycle of the settings, the payload server continuously updates its database to ensure that each vulnerability scan is performed with the latest and most effective data.
[0077] In summary, the method provided in this embodiment greatly improves the capability of the vulnerability scanning system by combining technical automation and intelligent management, enabling it to adapt to changes in the network security environment more quickly and respond to new threats in a timely manner. This strategy not only improves security, but also optimizes resource usage by precisely controlling the life cycle of information, ensuring that the security team can focus on dealing with the most urgent and dangerous security vulnerabilities.
[0078] In some examples, the method further includes:
[0079] All vulnerability data in the above payload library are analyzed by using Radare2 software for binary file analysis to obtain vulnerability feature vectors.
[0080] Generate a feature vector encoding based on the above vulnerability feature vector.
[0081] New vulnerability data is generated according to the above-mentioned feature vector encoding and fuzz testing algorithm to expand the vulnerability data in the above-mentioned payload library.
[0082] For example, Radare2 is a reverse engineering tool used to analyze binary files and extract detailed information about software behavior. Radare2 is used to analyze known vulnerable binary files in a payload library to identify the underlying characteristics of the vulnerability.
[0083] Through Radare2 analysis, features such as code patterns, execution paths, memory access behaviors, etc. associated with specific vulnerabilities can be identified. This data is encoded into a vulnerability feature vector, which is a numerical representation that describes the characteristics of the vulnerability in detail.
[0084] Feature vector encoding is the process of converting vulnerability feature vectors into a format that can be used by further automated tools for data processing and new vulnerability generation. Converting feature vectors into some standardized format, such as vectors or hash values, makes them suitable for subsequent fuzz testing and data generation processes.
[0085] Fuzz testing is a software testing technique used to discover vulnerabilities by inputting abnormal or random data into a system. In this application, using data derived from feature vector encoding as an input template, the fuzz testing algorithm attempts to generate data that may expose new vulnerabilities. Based on the encoding of the original vulnerability feature vector, the fuzz testing tool attempts to construct new data inputs that are designed to simulate possible unknown vulnerability scenarios. These newly generated vulnerability data are then added to the payload library to enhance future vulnerability detection capabilities.
[0086] The method proposed in the embodiment of the present application enables the vulnerability scanning system to not only be limited to existing vulnerability knowledge, but to dynamically generate and adapt to new vulnerability scenarios, thereby improving the defense capabilities against new and complex attacks. In this way, the security team can deal with potential security issues more proactively and prepare in advance to fight possible security threats. This method improves the flexibility and adaptability of the entire security system and provides important technical support for responding to the rapidly changing network security environment.
[0087] In some examples, the method further includes:
[0088] A second life cycle control field is added to the vulnerability data to generate the above-mentioned preset vulnerability data, wherein the above-mentioned second life cycle is used to control the life cycle of the above-mentioned preset vulnerability data in the above-mentioned detection server.
[0089] Exemplarily, the second lifecycle control field is used to define the validity period of each preset vulnerability data in the detection server, so as to prevent the preset vulnerability data from being not detected and existing in the detection server for a long time, thereby affecting the subsequent operation of the detection server.
[0090] The specific length of the lifecycle is calculated using an algorithm that takes into account when the vulnerability was made public, when it was widely exploited, and when possible patches or fixes were released.
[0091] The system automatically manages the updating and removal of vulnerability data based on the second lifecycle control field. For example, if a vulnerability has been widely fixed and most systems have been updated with the corresponding patch, the vulnerability data may no longer need to be retained in the active detection queue.
[0092] By introducing the second life cycle control field, it is possible to prevent the preset vulnerability data from not being detected and existing in the detection server for a long time, thereby affecting the subsequent operation of the detection server.
[0093] In some examples, the method further includes:
[0094] The second life cycle L is determined based on the following formula:
[0095] L=L0×S×T
[0096] Among them, L0 is the basic life cycle, S is the severity adjustment coefficient, and T is the type adjustment coefficient. The above basic life cycle is determined based on the security level of the above running server, the above severity adjustment coefficient is determined based on the severity score of the vulnerability, and the above type adjustment coefficient is determined based on the complexity of the vulnerability type.
[0097] Exemplarily, the basic life cycle L0 is an initially set time period, which is usually determined based on the security level of the running server. The higher the security level of the server, the faster the response and update of vulnerability information are usually required, so the basic life cycle will be correspondingly shorter.
[0098] The severity adjustment factor S is determined based on the severity score of the vulnerability. Vulnerabilities with high severity (i.e. high scores) usually require a longer attention period, so this factor increases the life cycle of vulnerability data. For example, a vulnerability with high severity may set S to a value greater than 1, while a vulnerability with low severity may be set to less than 1 to reduce its life cycle.
[0099] The type adjustment factor T reflects the complexity of the vulnerability type. Some types of vulnerabilities may require longer monitoring and analysis due to their higher difficulty in detection and repair. For example, the value of T may be higher for vulnerabilities that require complex patches or that affect multiple system components.
[0100] This method can flexibly adjust the monitoring period of vulnerabilities in the system according to their importance and type, so as to more effectively utilize resources and ensure system security. This method can quickly update information on high-risk vulnerabilities to ensure that the system responds quickly to new threats. By accurately controlling the storage period of vulnerability data of different types and severities, the use of system resources can be optimized. As the external environment changes and new information is obtained, the life cycle of vulnerability data can be dynamically adjusted to ensure that the security team always pays attention to the most pressing security issues. The multi-factor-based life cycle calculation method provides a scientific and systematic management tool for vulnerability management, which helps to improve the efficiency and effectiveness of the entire network security defense system.
[0101] In some examples, the method further includes:
[0102] The base score is calculated based on the impact subscore, the influence score, and the development complexity subscore.
[0103] The severity scores of the above vulnerabilities are calculated based on the above base scores and time environment metrics.
[0104] For example, the base score is a quantitative representation of the inherent characteristics of a vulnerability, usually calculated when the vulnerability is first discovered and analyzed. The score reflects the potential harm of the vulnerability if it is not affected by any mitigation measures. The base score is usually composed of an impact score (reflecting the impact of the vulnerability on the confidentiality, integrity, and availability of the system) and an exploitability score (reflecting the ease with which the vulnerability can be exploited).
[0105] The temporal metric takes into account factors that change over time, such as the availability of exploit code (Exploitability), the status of vulnerability fixes (PatchAvailability), and the confidence level in the reliability of vulnerability reports (Report Confidence). These factors can modify the base score to reflect the degree of harm that a vulnerability may increase or decrease over time.
[0106] Environmental Metrics adjust the score based on the actual impact of the vulnerability in a specific operating environment. This includes considering the importance of the affected assets, the effectiveness of the implemented security measures, and the size of the vulnerability's impact area. Environmental metrics allow organizations to customize the severity score of the vulnerability based on their own risk acceptance, resource allocation, and business impact.
[0107] The final severity score is the result of adjusting the base score for time and environmental metrics. This composite score more accurately reflects the true threat of the vulnerability to a specific organization. Severity scores are often used to determine response strategies, such as the order of priority repairs, resource allocation, and the severity of security alerts.
[0108] In some examples, the above calculation of the base score based on the impact sub-score, the impact score, and the development complexity sub-score includes:
[0109] The above impact sub-score Impact is calculated according to the following formula:
[0110] Impact=1-[(1-ConfImpact)×(1-IntegImpact)×(1-AvailImpact)]
[0111] Among them: ConfImpact, IntegImpact and AvailImpact are the impact sub-scores on confidentiality, integrity and availability respectively.
[0112] The above impact score ImpactScore is calculated according to the following formula:
[0113] Impact Score = a1 × Impact
[0114] Wherein, a1 is the first weight coefficient, and the value range of a1 can be (0,10);
[0115] The above development complexity sub-score Exploitability is calculated according to the following formula:
[0116] Exploitability=a2×AttackVector×AttackComplexity×PrivilegesRequired×U
[0117] serInteraction
[0118] Among them, a2 is the second weight coefficient, the value range of a2 can be (0,10), AttackVector is the attack vector, AttackComplexity is the attack complexity, PrivilegesRequired is the privilege requirement value, and UserInteraction is the user interaction value.
[0119] The above basic score BaseScore is calculated according to the following formula:
[0120] BaseScore=min[(ImpactScore+Exploitability),10]
[0121] If the vulnerability does not affect confidentiality, integrity, and availability, set the above base score BaseScore to 0.
[0122] In summary, the method provided in this embodiment ensures that vulnerability management is not only based on the characteristics of the vulnerability itself, but also takes into account the actual impact of the vulnerability and possible changes over time, so as to more effectively deal with security threats.
[0123] In some examples, the step of adding preset vulnerability data to the big data stream to form a vulnerability detection data stream includes:
[0124] Obtain the historical vulnerability data detected by the above running server.
[0125] The preset vulnerability data is determined based on the historical vulnerability data.
[0126] Get the historical data traffic characteristics of the above running servers.
[0127] The time node information is determined based on the above historical data traffic characteristics.
[0128] According to the above-mentioned preset vulnerability data and the above-mentioned mixing time node information, the preset vulnerability data is mixed into the above-mentioned big data stream data to form a vulnerability detection data stream.
[0129] For example, the historical vulnerability data detected is extracted from the running server. This data includes the types of vulnerabilities previously discovered, the specific circumstances in which the vulnerabilities were exploited, and the effects of vulnerability repairs. By analyzing this historical data, the system can understand which vulnerabilities have affected the system, as well as their characteristics and impacts.
[0130] Based on the historical vulnerability data obtained through analysis, historical vulnerability data of corresponding types are extracted from the payload library.
[0131] The system further analyzes the historical data flow characteristics of the running server, including the size, frequency and fluctuation of the data flow, etc. It determines the typical behavior and possible abnormal points of the data flow in normal operation.
[0132] The best time node for incorporating preset vulnerability data is determined based on the traffic characteristics of historical data. That is, the time point corresponding to the traffic characteristics corresponding to the vulnerability of the running server is selected as the incorporation time node information.
[0133] According to the preset vulnerability data and the time node information, these vulnerability data are mixed into the big data stream. The vulnerability detection data stream formed in this way is used to actually test the vulnerability detection algorithm and response mechanism of the system.
[0134] In summary, the method proposed in this application can simulate real security threats in a controllable environment using the payload library, effectively testing and improving the security protection capabilities of the system. This method not only helps the security team understand potential security risks, but also verifies and optimizes vulnerability detection algorithms and repair strategies through actual testing.
[0135] In some examples, determining the preset vulnerability data based on the historical vulnerability data includes:
[0136] Determine the vulnerability distribution pattern information of the above historical vulnerability data.
[0137] The preset vulnerability data is determined based on the vulnerability distribution pattern information.
[0138] For example, historical vulnerability data is analyzed to identify regular information such as the pattern, frequency, type, environment in which the vulnerability occurs, and conditions under which the vulnerability is exploited. The identified regular information is used to retrieve corresponding vulnerability data from the payload library according to the regular information. These vulnerability data simulate the behavior of real vulnerabilities, but are constructed so that they do not cause actual harm to the system during testing. Accurately simulate and test the system's detection capabilities and response strategies for known vulnerability types.
[0139] In a second aspect, the present application proposes a vulnerability scanning system based on a payload library, comprising:
[0140] The acquisition unit 21 is used to control the detection server to acquire the large data stream data in real time.
[0141] The incorporation unit 22 is used to incorporate preset vulnerability data released by the load server into the above-mentioned big data stream data to form a vulnerability detection data stream, wherein the above-mentioned preset vulnerability data is the vulnerability data included in the load library of the above-mentioned load server, and the above-mentioned preset vulnerability data is provided with preset identification bits, and the above-mentioned preset identification bits include a release sequence identification bit and a vulnerability type identification bit. The above-mentioned preset vulnerability data has no damaging effect on the system when it is not safely detected. The above-mentioned preset vulnerability data is generated based on the established release strategy of the above-mentioned load library, and the above-mentioned load library includes SQL injection code, XSS script and buffer overflow data.
[0142] The detection unit 23 is used to detect the vulnerability detection data stream through the detection server and adopt the current system vulnerability detection algorithm to detect and obtain the detection result.
[0143] The repair unit 24 is used to repair vulnerabilities based on the above detection results to update the current system vulnerability detection algorithm of the above detection server and the running server, wherein the above running server is a server that interacts with data when the system is running normally, and the above detection server is a server corresponding to the system used to upgrade the system vulnerability detection algorithm.
[0144] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0145] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0146] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0147] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0149] An embodiment of the present application also provides a computer program product, which includes computer software instructions. When the computer software instructions are executed on a processing device, the processing device executes the process of predicting the decomposition rate in alumina production in the corresponding embodiment.
[0150] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0152] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0153] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0154] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0156] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A vulnerability scanning method based on a payload library, characterized in that: include: Control the detection server to obtain large data stream data in real time; Preset vulnerability data released by the load server is mixed into the big data stream data to form a vulnerability detection data stream, wherein the preset vulnerability data is vulnerability data included in the load library of the load server, and a preset identification bit is set in the preset vulnerability data, and the preset identification bit includes a release sequence identification bit and a vulnerability type identification bit. The preset vulnerability data has no damaging effect on the system when it is not safely detected, and the preset vulnerability data is generated based on the established release strategy of the load library, and the load library includes SQL injection code, XSS script and buffer overflow data; The vulnerability detection data stream is detected by the detection server, and the current system vulnerability detection algorithm is used to detect the vulnerability to obtain the detection result; Perform vulnerability repair based on the detection result to update the current system vulnerability detection algorithm of the detection server and the operation server, wherein the operation server is a server for data interaction when the system is running normally, and the detection server is a server corresponding to the system vulnerability detection algorithm upgrade; Also includes: Control the load server to obtain attack vulnerability data from public vulnerability and exposure databases, open network application projects and security forum communities based on crawler technology; Adding a first life cycle control field to the attack vulnerability data to generate vulnerability data in the payload library, wherein the first life cycle control field is used to control the life cycle of the attack vulnerability data in the payload server, and the first life cycle is determined according to the disclosure time of the attack vulnerability data; Also includes: Adding a second life cycle control field to the vulnerability data to generate the preset vulnerability data, wherein the second life cycle is used to control the life cycle of the preset vulnerability data in the detection server; Also includes: The second life cycle L is determined based on the following formula: L=L0×S×T Wherein, L0 is the basic life cycle, S is the severity adjustment coefficient, and T is the type adjustment coefficient. The basic life cycle is determined based on the security level of the running server, the severity adjustment coefficient is determined based on the severity score of the vulnerability, and the type adjustment coefficient is determined based on the complexity of the vulnerability type. Also includes: The base score is calculated from the impact subscore, the influence score, and the development complexity subscore; Calculating a severity score for the vulnerability based on the base score and a temporal context metric; The base score is calculated based on the impact sub-score, impact score, and development complexity sub-score, including: The impact sub-score Impact is calculated according to the following formula: Impact=1-[(1-ConfImpact)×(1-IntegImpact)×(1-AvailImpact)] Among them: ConfImpact, IntegImpact and AvailImpact are the impact sub-scores on confidentiality, integrity and availability respectively; The impact score ImpactScore is calculated according to the following formula: Impact Score = a1 × Impact Wherein, a1 is the first weight coefficient; The exploitability sub-score is calculated according to the following formula: Exploitability=a2×AttackVector×AttackComplexity×PrivilegesRequired×UserInteraction Where a2 is the second weight coefficient, AttackVector is the attack vector, AttackComplexity is the attack complexity, PrivilegesRequired is the privilege requirement value, and UserInteraction is the user interaction value; The base score BaseScore is calculated according to the following formula: BaseScore=min[(ImpactScore+Exploitability),10] If the vulnerability does not affect confidentiality, integrity, and availability, the base score BaseScore is set to 0.
2. The vulnerability scanning method based on the payload library according to claim 1 is characterized in that: Also includes: All vulnerability data in the payload library are analyzed using Radare2 software to obtain vulnerability feature vectors; Generate a feature vector code based on the vulnerability feature vector; New vulnerability data is generated according to the feature vector encoding and the fuzz testing algorithm to expand the vulnerability data in the payload library.
3. The vulnerability scanning method based on the payload library according to claim 1 is characterized in that: The step of adding preset vulnerability data to the large data stream to form a vulnerability detection data stream includes: Obtaining historical vulnerability data detected by the running server; Determining the preset vulnerability data based on the historical vulnerability data; Obtaining historical data flow characteristics of the running server; Determine the incorporation time node information based on the historical data flow characteristics; According to the preset vulnerability data and the incorporation time node information, the preset vulnerability data is incorporated into the big data stream data to form a vulnerability detection data stream.
4. The vulnerability scanning method based on the payload library according to claim 3 is characterized in that: The determining the preset vulnerability data based on the historical vulnerability data includes: Determine vulnerability distribution pattern information of the historical vulnerability data; The preset vulnerability data is determined based on the vulnerability distribution regularity information.
5. A vulnerability scanning system based on a payload library, characterized in that: include: An acquisition unit, used to control the detection server to acquire large data stream data in real time; an incorporation unit, configured to incorporate preset vulnerability data published by a load server into the large data stream data to form a vulnerability detection data stream, wherein the preset vulnerability data is vulnerability data included in a load library of the load server, the preset vulnerability data is provided with preset identification bits, the preset identification bits include a release sequence identification bit and a vulnerability type identification bit, the preset vulnerability data has no damaging effect on the system when not safely detected, the preset vulnerability data is generated based on a predetermined release strategy of the load library, and the load library includes SQL injection code, XSS script and buffer overflow data; A detection unit, configured to detect the vulnerability detection data stream through a detection server and adopt a current system vulnerability detection algorithm to detect the vulnerability and obtain a detection result; A repair unit, configured to repair vulnerabilities based on the detection results, so as to update the current system vulnerability detection algorithms of the detection server and the operation server, wherein the operation server is a server for data interaction when the system is running normally, and the detection server is a server corresponding to the system vulnerability detection algorithm upgrade; Also includes: Control the load server to obtain attack vulnerability data from public vulnerability and exposure databases, open network application projects and security forum communities based on crawler technology; Adding a first life cycle control field to the attack vulnerability data to generate vulnerability data in the payload library, wherein the first life cycle control field is used to control the life cycle of the attack vulnerability data in the payload server, and the first life cycle is determined according to the disclosure time of the attack vulnerability data; Also includes: Adding a second life cycle control field to the vulnerability data to generate the preset vulnerability data, wherein the second life cycle is used to control the life cycle of the preset vulnerability data in the detection server; Also includes: The second life cycle L is determined based on the following formula: L=L0×S×T Wherein, L0 is the basic life cycle, S is the severity adjustment coefficient, and T is the type adjustment coefficient. The basic life cycle is determined based on the security level of the running server, the severity adjustment coefficient is determined based on the severity score of the vulnerability, and the type adjustment coefficient is determined based on the complexity of the vulnerability type. Also includes: The base score is calculated from the impact subscore, the influence score, and the development complexity subscore; Calculating a severity score for the vulnerability based on the base score and a temporal context metric; The base score is calculated based on the impact sub-score, impact score, and development complexity sub-score, including: The impact sub-score Impact is calculated according to the following formula: Impact=1-[(1-ConfImpact)×(1-IntegImpact)×(1-AvailImpact)] Among them: ConfImpact, IntegImpact and AvailImpact are the impact sub-scores on confidentiality, integrity and availability respectively; The impact score ImpactScore is calculated according to the following formula: Impact Score = a1 × Impact Wherein, a1 is the first weight coefficient; The exploitability sub-score is calculated according to the following formula: Exploitability=a2×AttackVector×AttackComplexity×PrivilegesRequired×U serInteraction Where a2 is the second weight coefficient, AttackVector is the attack vector, AttackComplexity is the attack complexity, PrivilegesRequired is the privilege requirement value, and UserInteraction is the user interaction value; The base score BaseScore is calculated according to the following formula: BaseScore=min[(ImpactScore+Exploitability),10] If the vulnerability does not affect confidentiality, integrity, and availability, the base score BaseScore is set to 0.
