A confidence identification method based on software vulnerability identification and information storage medium
By introducing the confidence identification method for software vulnerability identification in the knowledge graph method, using package name and version information matching to set the confidence level, and combining the software package naming matrix to match alias, the convenience of vulnerability information display and query in the existing technology is solved. The lack of problems improves the accuracy and comprehensiveness of vulnerability detection and provides a basis for vulnerability repair.
Patent Information
- Application Number
- CN202111204320.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-10-15
AI Technical Summary
The existing knowledge graph methods have shortcomings in the display and query convenience of vulnerability information, and lack universality, making it difficult to effectively identify and evaluate the confidence of software vulnerabilities.
A confidence identification method based on software vulnerability identification is proposed. By collecting known software vulnerability information from multiple predetermined links, extracting the package name and version information of the software to be tested, and combining it with CPE information, vulnerability description information and open source software The issuance information is matched, different confidence levels are set to determine the possibility of vulnerabilities, and alias matches are used to improve accuracy.
It improves the accuracy and comprehensiveness of software vulnerability detection results, provides a more accurate confidence assessment for vulnerability detection, and provides a basis for subsequent vulnerability repair strategies.
Smart Images

Figure CN114201757B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment and network operation security, and in particular to a confidence identification method based on software vulnerability identification and an information storage medium. Background Art
[0002] In order to improve the quality of answers returned by search engines and the efficiency of user queries, Google proposed the concept of knowledge graph in 2012. Knowledge graph is based on data sets, forms a relationship network between data through analysis and processing, and displays it through visualization. It is essentially a structured network with rich semantic relationships. In recent years, with the rapid development of artificial intelligence, knowledge graph has also made great progress and produced many excellent results. At present, Minzhe Guo et al. proposed an ontology-based method to model the CVE security vulnerability library (Guo M, Wang J A. An ontology-based approach to model common vulnerabilities and exposures in information security [C] / / ASEE Southest Section Conference. 2009.). With the help of concepts, axioms and basic attributes in the ontology, the complex relationships between individuals, between individuals and concepts, and between concepts are discovered. This solution is currently mainly used for the display of vulnerability information, and there are problems such as insufficient visualization effect and insufficient query convenience. Tao Yaodong et al. proposed an in-depth study of the knowledge base of industrial Internet security vulnerabilities (Tao Yaodong, Jia Xintong, Wu Yunkun. A research method for industrial Internet security vulnerabilities based on knowledge graph [J]. Information Technology and Network Security, 2020, 39(01): 6-13+18.), which mined the correlation between vulnerabilities-products, events-vulnerabilities and events-products, and analyzed them, achieving certain results. However, the main disadvantage of this solution is that it only targets industrial Internet vulnerabilities and is not universal. Summary of the invention
[0003] In view of the above problems, the present invention is proposed to provide a technical solution that overcomes the above problems or at least partially solves the above problems. Therefore, one aspect of the present invention provides a confidence identification method based on software vulnerability identification, the method comprising: collecting known software vulnerability information from a plurality of predetermined links, the known software vulnerability information including CPE information, vulnerability description information, and open source software release information; extracting the package name and version information of the software to be tested; matching the package name and version information with the CPE information respectively; if the match with the CPE information is successful, identifying the source of the vulnerability data corresponding to the CPE information as the first confidence, and determining that the software to be tested has the vulnerability corresponding to the CPE information; if the match with the CPE information is unsuccessful, matching the package name and version information with the vulnerability description data respectively; if the match with the vulnerability description data is successful, identifying the source of the vulnerability data corresponding to the vulnerability description data as the second confidence, and determining that the software to be tested has the vulnerability corresponding to the CPE information. The software under test has a vulnerability corresponding to the vulnerability description data; if the match with the vulnerability description data fails, the package name and version information are matched with the open source software release information respectively; if the package name matches the open source software release information successfully, and the version number is less than the repair version number, the source of the vulnerability data corresponding to the open source software release information is identified as the third confidence level, and a first possibility is determined that the software under test has a vulnerability corresponding to the open source software release information; if the package name matches the CPE information, the vulnerability description data or the open source software release information successfully, but the version number does not match successfully, the source of the vulnerability data corresponding to the CPE information and the vulnerability description data is identified as the fourth confidence level, the fourth confidence level is the lowest confidence level, and a second possibility is determined that the software under test has a vulnerability corresponding to the CPE information and the vulnerability description data.
[0004] Optionally, if the package name fails to match the CPE information, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; the alias is matched with the CPE information, and if the match is successful, the version information is matched with the CPE information, and if the version information matches successfully, the data source corresponding to the CPE information is identified as the fifth confidence level, and it is determined that the software under test has a vulnerability corresponding to the CPE information, and the fifth confidence level is lower than the first confidence level.
[0005] Optionally, if the package name fails to match the vulnerability description data, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; the alias is matched with the vulnerability description data, and if the match is successful, the version information is matched with the vulnerability description data, and if the version information matches successfully, the data source corresponding to the vulnerability description data is identified as a sixth confidence level, and it is determined that the software under test has a vulnerability corresponding to the vulnerability description data, and the sixth confidence level is lower than the second confidence level.
[0006] Optionally, if the package name fails to match the open source software release information, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; the alias is matched with the open source software release information, and if the match is successful, the version information is matched with the open source software release information, and if the version information matches successfully, the data source corresponding to the open source software release information is identified as the seventh confidence level, and a third possibility that the software to be tested has a vulnerability corresponding to the open source software release information is determined, the seventh confidence level is lower than the third confidence level, and the third possibility is greater than the second possibility.
[0007] Optionally, the package name and version information are matched with the CPE information, vulnerability description data, and open source software release information respectively, including: first matching the package name with the CPE information, vulnerability description data, and open source software release information, and after a successful match, matching the version information with the CPE information, vulnerability description data, and open source software release information.
[0008] The present invention provides a confidence identification system for software vulnerability identification, the system comprising:
[0009] A vulnerability information collection module is used to collect known software vulnerability information from multiple predetermined links, wherein the known software vulnerability information includes CPE information, vulnerability description information, and open source software release information;
[0010] Information extraction module, used to extract the package name and version information of the software to be tested;
[0011] A first matching module, used to match the package name and version information with the CPE information respectively;
[0012] A first confidence identification module, if the CPE information is successfully matched, identifies the vulnerability data source corresponding to the CPE information as a first confidence level, and determines that the software to be tested has the vulnerability corresponding to the CPE information;
[0013] The second matching module, if the match with the CPE information fails, matches the package name and version information with the vulnerability description data respectively;
[0014] A second confidence identification module, if the vulnerability description data is successfully matched, identifies the vulnerability data source corresponding to the vulnerability description data as a second confidence level, and determines that the software to be tested has a vulnerability corresponding to the vulnerability description data;
[0015] The third matching module, if the match with the vulnerability description data fails, matches the package name and version information with the open source software release information respectively;
[0016] A third confidence identification module, if the package name matches the open source software release information successfully, and the version number is less than the fixed version number, identifies the source of the vulnerability data corresponding to the open source software release information as the third confidence level, and determines the first possibility that the software under test has the vulnerability corresponding to the open source software release information;
[0017] The fourth confidence identification module, if the package name matches the CPE information, vulnerability description data or open source software release information successfully, but the version number matches unsuccessfully, then the source of the vulnerability data corresponding to the CPE information and vulnerability description data is identified as the fourth confidence, and the fourth confidence is the lowest confidence, and the second possibility that the software under test has a vulnerability corresponding to the CPE information and vulnerability description data is determined.
[0018] Optionally, the system also includes: a software package naming matrix query module, if the package name fails to match the CPE information, the package name is retrieved through the software package naming matrix to obtain the alias corresponding to the package name; the first matching module matches the alias with the CPE information, if the match is successful, the version information is matched with the CPE information; a fifth confidence identification module, if the version information matches successfully, the data source corresponding to the CPE information is identified as the fifth confidence, and it is determined that the software under test has a vulnerability corresponding to the CPE information, and the fifth confidence is lower than the first confidence.
[0019] Optionally, if the package name fails to match the vulnerability description data, the software package naming matrix query module searches the software package naming matrix according to the package name to obtain an alias corresponding to the package name; the second matching module matches the alias with the vulnerability description data, and if the match is successful, the second matching module matches the version information with the vulnerability description data; the sixth confidence identification module identifies the data source corresponding to the vulnerability description data as a sixth confidence level if the version information matches successfully, and determines that the software under test has a vulnerability corresponding to the vulnerability description data, and the sixth confidence level is lower than the second confidence level.
[0020] Optionally, if the package name fails to match the open source software release information, the software package naming matrix query module retrieves the package name through the software package naming matrix to obtain an alias corresponding to the package name; the third matching module matches the alias with the open source software release information, and if the match is successful, matches the version information with the open source software release information; the seventh confidence identification module, if the version information matches successfully, identifies the data source corresponding to the open source software release information as the seventh confidence, and determines the third possibility that the software under test has a vulnerability corresponding to the open source software release information, the seventh confidence is lower than the third confidence, and the third possibility is greater than the second possibility; if the alias matches the CPE information, vulnerability description data or open source software release information successfully, but the version number matches unsuccessfully, then the source of the vulnerability data corresponding to the CPE information and vulnerability description data is identified as the fourth confidence, the fourth confidence is the lowest confidence, and the second possibility that the software under test has a vulnerability corresponding to the CPE information and vulnerability description data is determined.
[0021] The present invention also provides an information storage medium, which stores a computer program, and the computer program executes the software vulnerability identification method described above.
[0022] The technical solution provided by the present application has at least the following technical effects or advantages: the present invention sets confidence levels for different vulnerability data sources based on the data matched by the package name or alias, and whether the version number information matches, thereby determining the accuracy of the vulnerability detection results and achieving the comprehensiveness of the vulnerability detection, while providing a basis for subsequent vulnerability repair strategies.
[0023] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above technical solution of the present invention and its objectives, features and advantages more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] 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 invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0025] Figure 1 A flow chart of a confidence identification method for software vulnerability identification provided by the present invention is shown;
[0026] Figure 2 The diagram shows the confidence levels set in the software vulnerability identification method proposed in the present invention. DETAILED DESCRIPTION
[0027] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0028] Security experts in this field generally learn about the latest discovered vulnerability information through vulnerability library platforms. Currently, the commonly used vulnerability platforms at home and abroad are: the US National Information Security Vulnerability Library NVD, the Global Information Security Vulnerability Fingerprint Library and File Detection Service CVESCAN, CVE platform, SECURITYFOCUS platform, CNVD platform, CNNVD platform, and NSFOCUS platform of Green Alliance Technology. These platforms will publish discovered software vulnerabilities on schedule. It has been described in detail above and will not be repeated here. In addition, various software manufacturers and network companies will also publish discovered software vulnerabilities; commercial software generally publishes vulnerabilities that appeared in the previous version fixed by the software upgrade when the software version is upgraded. It can be found from the above description that the sources of vulnerability disclosure information are wide, and various vulnerability disclosure information also has inaccurate problems. When using known vulnerabilities to perform security testing of predetermined software, identification errors often occur, and due to the multi-source of vulnerability data, the data used for security testing is not comprehensive, which may lead to the problem that some vulnerabilities cannot be detected. The present invention aims to improve the accuracy and comprehensiveness of software vulnerability detection results.
[0029] CVE is a common name given to widely recognized information security vulnerabilities or weaknesses that have been exposed. Using a common name can help users share data in various independent vulnerability databases and vulnerability assessment tools. Specifically, the CVE official website has detailed information on the vulnerability, including the CPE information of the vulnerability. A CVE vulnerability may include multiple CPE information, and a CPE information may also exist in multiple CVE vulnerabilities. Therefore, there is a correspondence between CPE information and CVE vulnerabilities, and the CPE information can be used to match the corresponding CVE vulnerability. The CPE information contains the name and version information of the corresponding open source component, which can match the open source component with the CVE vulnerability.
[0030] The format of CPE is as follows:
[0031] cpe:2.3:part:vendor:product:version:update:edition:language:sw_edition:target_sw:target_hw:other, where part indicates the target type, and part can be any of a, h, and o. a indicates the application, h indicates the hardware platform, and o indicates the operating system. vendor indicates the manufacturer. product indicates the product name. version indicates the version number. update indicates the update package. edition indicates the version. language indicates the language item. The following is an example of CPE information. cpe begins with the format, 2.3 indicates the cpe that uses the 2.3 version protocol, o indicates the os operating system, redhat indicates a certain manufacturer, enterprise_linux indicates a certain product of the manufacturer, and 6.0 indicates the version number of the product.
[0032] The detailed description of CVE vulnerabilities provided by the NVD official website includes CPE information (Official CommonPlatform Enumeration (CPE) Dictionary), such as: cpe:2.3:a:fasterxml:jackson-databind:2.7.8:*:*:*:*:*:*:*:*; the CVE vulnerabilities of open source components can be obtained by matching CPE information and open source component information. The standard format of CPE information is roughly as follows: cpe:2.3:part:vendor:product:version:update:edition:language:sw_edition:target_sw:tar get_hw:other, wherein the format begins with cpe; 2.3 indicates CPE that uses version 2.3 of the protocol (basically all of them use version 2.3 of the protocol now); part indicates the target type, and the allowed values are a (application), h (hardware platform), and o (operating device). The open source component analyzed in the present invention belongs to an application, that is, part is a; vendor indicates the manufacturer; product indicates the manufacturer's product name; version indicates the version number of the product; update indicates the update package; edition indicates the version; and language indicates the language item. Another example, cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*:*, where cpe starts with the format, 2.3 indicates cpe that uses version 2.3 of the protocol, o indicates the OS operating device, redhat indicates the manufacturer, enterprise_linux indicates the product of this manufacturer, and 6.0 indicates the version number of this product.
[0033] Based on the authority of the NVD official website, the present invention uses CPE information as the first priority matching order for software security detection. After all, the NVD official website does not include all software, and it is a national vulnerability library of the United States. Many domestic software vulnerabilities are not included in the library. Based on this, the present invention provides a confidence identification method based on software vulnerability identification.
[0034] One aspect of the present invention provides a confidence identification method based on software vulnerability identification, such as Figure 1 As shown, the method includes: collecting known software vulnerability information from multiple predetermined links, wherein the known software vulnerability information includes CPE information, vulnerability description information, and open source software release information;
[0035] Extract the package name and version information of the software to be tested; match the package name and version information with the CPE information respectively; if the match with the CPE information is successful, identify the source of the vulnerability data corresponding to the CPE information as the first confidence level, and determine that the software to be tested has the vulnerability corresponding to the CPE information; if the match with the CPE information is unsuccessful, match the package name and version information with the vulnerability description data respectively; if the match with the vulnerability description data is successful, identify the source of the vulnerability data corresponding to the vulnerability description data as the second confidence level, and determine that the software to be tested has the vulnerability corresponding to the vulnerability description data; if the match with the vulnerability description data is unsuccessful, match the package name and version information with the vulnerability description data respectively The open source software release information is matched; if the package name matches the open source software release information successfully, and the version number is less than the repair version number, the source of the vulnerability data corresponding to the open source software release information is identified as the third confidence level, and the first possibility that the software to be tested has the vulnerability corresponding to the open source software release information is judged; if the package name matches the CPE information, vulnerability description data or the open source software release information successfully, but the version number does not match successfully, the source of the vulnerability data corresponding to the CPE information and the vulnerability description data is identified as the fourth confidence level, the fourth confidence level is the lowest confidence level, and the second possibility that the software to be tested has the vulnerability corresponding to the CPE information and the vulnerability description data is judged.
[0036] The method adds a confidence field to the filtered vulnerability data by matching the vulnerability information source and the package name, thereby determining whether the vulnerability data is an exact match or a fuzzy match. The first confidence level and the second confidence level may belong to an exact match, while the third confidence level and the fourth confidence level may belong to a fuzzy match.
[0037] However, when collecting vulnerability data, it is necessary to extract the software package information of many different operating systems in real time, including the software package names. However, different operating systems have different ways of naming software packages, which leads to different names. When identifying vulnerabilities, if only the software package names of known vulnerabilities are collected and identified, it is easy to miss software with different names but essentially the same, which will affect the identification of vulnerabilities.
[0038] This application extracts the upstream source information of the spec files of the software packages of all operating systems. If the upstream sources are the same, it means that the two software packages are essentially the same software package. Based on the upstream source information, the software packages based on the same upstream source are determined, and a mapping relationship is established between the package names of these software packages, which are aliases to each other, and a software package naming matrix is constructed based on these package names. For example, the name of the software package of the openeuler operating system is "python-memcached", while the name of the software package of the opensuse operating system is "memcached". The two software packages have different names, but are compiled from the same upstream source file, but are actually the same software package.
[0039] In the above, it is mentioned that in the software package naming matrix, one aspect of the present invention further provides a method for constructing the software package naming matrix, the method comprising:
[0040] S1. Obtain the open source file information of all software of each operating system;
[0041] S2. parse the upstream source information of all software according to the open source file information;
[0042] S3. If software with different names for different operating systems has the same upstream source, it is considered that the different names correspond to the same software;
[0043] S4. Establish a mapping relationship between different names of the same software, and form a software package naming matrix based on the mapping relationship;
[0044] S5. Match the name of the software to be tested based on the software package naming matrix to obtain the alias of the software to be tested;
[0045] The above method can be mainly used in lunix open source projects. By parsing the spec files, control files and other configuration files in the software package, these configuration files record which upstream open source components the software is compiled from. Software compiled based on the same upstream open source components (upstream source) is considered to be essentially the same software and may have the same vulnerabilities.
[0046] CPE stands for Common Platform Enumeration, which means common platform enumeration item. It is a unified naming convention for IT products, including systems, platforms, upstream components, and software packages. The common format is as follows:
[0047] cpe: / ::::::
[0048] Among them, part indicates the target type, and the allowed values are a (application), h (hardware platform), and o (operating system); vendor indicates the vendor; product indicates the product name; version indicates the version number; update indicates the update package; edition indicates the version; and language indicates the language item. The upstream component information (upstream source information) of the open source software can be obtained through the CPE file.
[0049] This method tracks the upstream names of software packages and the software package names corresponding to other Linux distributions in real time, and establishes a mapping relationship between software names developed based on the same upstream open source components to form a matrix. This matrix can be used to associate components affected by vulnerabilities, and find out whether the relevant Linux distribution has the vulnerability based on the information in the CPE of the vulnerability. If the vulnerability exists, the vulnerability is associated with the affected software in the corresponding Linux distribution. Thus, the software package names of different Linux vendors can be matched by building a software package naming matrix.
[0050] As a specific implementation method, it is detected whether an application software A has a vulnerability. The application software A is developed based on an open source program, and the vulnerability library does not have any record of the vulnerability of the application software A. First, the software name of the application software is obtained by scanning the predetermined file of the application software A, and the software name is matched with the software information of the known vulnerability library. If the match is successful, the vulnerability of the software is determined. If the match is not successful, the software name is matched in the software package naming matrix. If the match is successful, the alias corresponding to the application software is determined. The alias is further matched in the known vulnerability library. If the match is successful, it is determined that the software has a vulnerability. If the match is not successful, it is considered that the software does not have a vulnerability.
[0051] In the software package naming matrix, each software is an entity with related attributes. The entity and related attributes form an AI, and the relationship between entities forms a knowledge structure that can be used for calculations. As a software knowledge graph, the software package naming matrix contains rich information and can be used to expand the software package name and perform reasoning operations using the attribute relationship between software.
[0052] The SPEC file is a configuration file for the software package, which includes the name of the software package, the actual version number of the software, the release serial number, the software authorization method, the upstream source component name, and the source code package. By parsing the SPEC file, you can obtain the upstream component information (upstream source information) of the software.
[0053] As a specific implementation method, according to the spec file information of the known vulnerable software, the upstream open source component information (upstream source information) in the corresponding software package is parsed.
[0054] As another specific implementation, the upstream open source component information (upstream source information) in the corresponding software package can also be parsed based on the control file information of the known vulnerable software.
[0055] The software security is identified based on the software package naming matrix to identify whether the software has vulnerabilities, including: matching the software name of the software to be tested in the software package naming matrix, and if the match is successful, determining the alias of the software to be tested according to the matching result.
[0056] When the software naming matrix fails to match the software name to be detected, the method further includes:
[0057] S1' obtains the open source file information of the software to be tested;
[0058] S2′ parses the upstream open source component information according to the open source file information;
[0059] S3' matches the upstream open source component information with the related information of the known vulnerable software in the vulnerability library;
[0060] S4' If a match is found, it is determined that the software to be tested has a vulnerability corresponding to the matched software.
[0061] Through this process, the software package naming matrix will be updated and supplemented based on the results of upstream open source component matching, thereby further improving the software package naming matrix. In fact, with the continuous emergence of new software, the software package naming matrix is constantly updated and improved.
[0062] The present invention also provides a system for constructing a software package naming matrix, the system comprising:
[0063] The open source file acquisition module is used to obtain the open source file information of all software of each operating system;
[0064] An upstream source information parsing module, which parses the upstream source information of all software according to the open source file information;
[0065] A software package naming matrix building module, if software with different names in different operating systems have the same upstream source, the different names are considered to correspond to the same software, and a mapping relationship between the different names of the same software is established, and a software package naming matrix is formed based on the mapping relationship;
[0066] A package name expansion module is used to match the name of the software to be tested based on the software package naming matrix to obtain an alias of the software to be tested;
[0067] As a specific implementation, the upstream source information parsing module parses the upstream source information of all software according to the spec file information of the known vulnerability software.
[0068] As another specific implementation, the upstream source information parsing module parses the upstream source information of all software based on the control file information of the known vulnerable software.
[0069] The package name expansion module searches the software package naming matrix using the software name of the software to be tested, and obtains an alias corresponding to the software name.
[0070] The vulnerability identification module is also used to match the software to be tested with the known information in the vulnerability library according to the package name of the software to be tested; if the match is unsuccessful, the package name expansion module finds its alias through the package naming matrix, and the vulnerability identification module matches the vulnerability information in the known vulnerability database based on the alias to identify the vulnerability.
[0071] This application not only uses the package name of the software to be tested for matching, but also uses the alias of the software to be tested and the alias of the constructed software with known vulnerabilities to match, so as to comprehensively detect possible vulnerabilities in the software to be tested, thereby ensuring the comprehensiveness of vulnerability detection.
[0072] If the package name fails to match the CPE information, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; the alias is matched with the CPE information, and if the match is successful, the version information is matched with the CPE information, and if the version information matches successfully, the data source corresponding to the CPE information is identified as the fifth confidence level, and it is determined that the software under test has a vulnerability corresponding to the CPE information, and the fifth confidence level is lower than the first confidence level. The fifth confidence level is slightly lower than the first confidence level and may belong to the category of exact matching.
[0073] If the package name fails to match the vulnerability description data, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; the alias is matched with the vulnerability description data, and if the match is successful, the version information is matched with the vulnerability description data, and if the version information matches successfully, the data source corresponding to the vulnerability description data is identified as the sixth confidence level, and it is determined that the software under test has a vulnerability corresponding to the vulnerability description data, and the sixth confidence level is lower than the second confidence level. The sixth confidence level is slightly lower than the second confidence level and may belong to the category of exact matching.
[0074] If the package name fails to match the open source software release information, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; the alias is matched with the open source software release information, and if the match is successful, the version information is matched with the open source software release information, and if the version information matches successfully, the data source corresponding to the open source software release information is identified as the seventh confidence level, and the third possibility that the software under test has a vulnerability corresponding to the open source software release information is judged, the seventh confidence level is lower than the third confidence level, and the third possibility is greater than the second possibility; if the alias successfully matches the CPE information, the vulnerability description data, or the open source software release information, but the version number fails to match, the vulnerability data source corresponding to the CPE information and the vulnerability description data is identified as the fourth confidence level, the fourth confidence level is the lowest confidence level, and the second possibility that the software under test has a vulnerability corresponding to the CPE information and the vulnerability description data is judged. .
[0075] As a specific implementation method, Figure 2 As shown, the package name and version information are matched with the CPE information, vulnerability description data, and open source software release information respectively, including: first matching the package name with the CPE information, vulnerability description data, and open source software release information, and after a successful match, matching the version information with the CPE information, vulnerability description data, and open source software release information.
[0076] The present invention provides a confidence identification system for software vulnerability identification, the system comprising:
[0077] A vulnerability information collection module is used to collect known software vulnerability information from multiple predetermined links, wherein the known software vulnerability information includes CPE information, vulnerability description information, and open source software release information;
[0078] Information extraction module, used to extract the package name and version information of the software to be tested;
[0079] A first matching module, used to match the package name and version information with the CPE information respectively;
[0080] A first confidence identification module, if the CPE information is successfully matched, identifies the vulnerability data source corresponding to the CPE information as a first confidence level, and determines that the software to be tested has the vulnerability corresponding to the CPE information;
[0081] The second matching module, if the match with the CPE information fails, matches the package name and version information with the vulnerability description data respectively;
[0082] A second confidence identification module, if the vulnerability description data is successfully matched, identifies the vulnerability data source corresponding to the vulnerability description data as a second confidence level, and determines that the software to be tested has a vulnerability corresponding to the vulnerability description data;
[0083] The third matching module, if the match with the vulnerability description data fails, matches the package name and version information with the open source software release information respectively;
[0084] A third confidence identification module, if the package name matches the open source software release information successfully, and the version number is less than the fixed version number, identifies the source of the vulnerability data corresponding to the open source software release information as the third confidence level, and determines the first possibility that the software under test has the vulnerability corresponding to the open source software release information;
[0085] The fourth confidence identification module, if the package name matches the CPE information, vulnerability description data or open source software release information successfully, but the version number matches unsuccessfully, then the source of the vulnerability data corresponding to the CPE information and vulnerability description data is identified as the fourth confidence, and the fourth confidence is the lowest confidence, and the second possibility that the software under test has a vulnerability corresponding to the CPE information and vulnerability description data is determined.
[0086] Optionally, the system also includes: a software package naming matrix query module, if the package name fails to match the CPE information, the package name is retrieved through the software package naming matrix to obtain the alias corresponding to the package name; the first matching module matches the alias with the CPE information, if the match is successful, the version information is matched with the CPE information; a fifth confidence identification module, if the version information matches successfully, the data source corresponding to the CPE information is identified as the fifth confidence, and it is determined that the software under test has a vulnerability corresponding to the CPE information, and the fifth confidence is lower than the first confidence.
[0087] Optionally, if the package name fails to match the vulnerability description data, the software package naming matrix query module searches the software package naming matrix according to the package name to obtain an alias corresponding to the package name; the second matching module matches the alias with the vulnerability description data, and if the match is successful, the second matching module matches the version information with the vulnerability description data; the sixth confidence identification module identifies the data source corresponding to the vulnerability description data as a sixth confidence level if the version information matches successfully, and determines that the software under test has a vulnerability corresponding to the vulnerability description data, and the sixth confidence level is lower than the second confidence level.
[0088] Optionally, if the package name fails to match the open source software release information, the software package naming matrix query module retrieves the package name through the software package naming matrix to obtain an alias corresponding to the package name; the third matching module matches the alias with the open source software release information, and if the match is successful, matches the version information with the open source software release information; the seventh confidence identification module, if the version information matches successfully, identifies the data source corresponding to the open source software release information as the seventh confidence, and determines the third possibility that the software under test has a vulnerability corresponding to the open source software release information, the seventh confidence is lower than the third confidence, and the third possibility is greater than the second possibility; if the alias matches the CPE information, vulnerability description data or open source software release information successfully, but the version number matches unsuccessfully, then the source of the vulnerability data corresponding to the CPE information and vulnerability description data is identified as the fourth confidence, the fourth confidence is the lowest confidence, and the second possibility that the software under test has a vulnerability corresponding to the CPE information and vulnerability description data is determined.
[0089] The present invention also provides an information storage medium, which stores a computer program, and the computer program executes the software vulnerability identification method described above.
[0090] The technical solution provided by the present application has at least the following technical effects or advantages: the present invention sets confidence levels for different vulnerability data sources through data matched by package names, thereby determining the accuracy of vulnerability detection results and achieving comprehensiveness of vulnerability detection, while providing a basis for subsequent vulnerability repair strategies.
[0091] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0092] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0093] It should be noted that the above embodiments illustrate the present invention rather than limit the present invention, and those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation to the claims.
Claims
1. A confidence identification method based on software vulnerability identification, characterized in that: The method includes: Collecting known software vulnerability information from multiple predetermined links, wherein the known software vulnerability information includes CPE information, vulnerability description information, and open source software release information; Extract the package name and version information of the software to be tested; Match the package name and version information with the CPE information respectively; If both are successfully matched with the CPE information, the vulnerability data source corresponding to the CPE information is identified as the first confidence level, and it is determined that the software to be tested has the vulnerability corresponding to the CPE information; If the package name and CPE information cannot be matched, the package name and version information are matched with the vulnerability description data respectively; If all are successfully matched with the vulnerability description data, the vulnerability data source corresponding to the vulnerability description data is identified as the second confidence level, and it is determined that the software to be tested has the vulnerability corresponding to the vulnerability description data; If the package name fails to match the vulnerability description data, the package name and version information are matched with the open source software release information respectively; If the package name matches the open source software release information successfully, and the version number is less than the repair version number, then the source of the vulnerability data corresponding to the open source software release information is identified as the third confidence level, and the first possibility that the software under test has the vulnerability corresponding to the open source software release information is judged; if the package name matches the CPE information, vulnerability description data or open source software release information successfully, but the version number does not match successfully, then the source of the vulnerability data corresponding to the CPE information and vulnerability description data is identified as the fourth confidence level, the fourth confidence level is the lowest confidence level, and the second possibility that the software under test has the vulnerability corresponding to the CPE information and vulnerability description data is judged; If the package name fails to match the open source software release information, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; Matching the alias with the open source software release information, if the match is successful, matching the version information with the open source software release information, if the version information matches successfully, identifying the data source corresponding to the open source software release information as a seventh confidence level, and determining a third possibility that the software to be tested has a vulnerability corresponding to the open source software release information, the seventh confidence level is lower than the third confidence level, and the third possibility is greater than the second possibility; If the alias successfully matches the CPE information, vulnerability description data or open source software release information, but the version number matches unsuccessfully, the source of the vulnerability data corresponding to the CPE information and vulnerability description data is identified as the fourth confidence level, which is the lowest confidence level, and a second possibility is determined that the software under test has a vulnerability corresponding to the CPE information and vulnerability description data.
2. The confidence identification method based on software vulnerability identification according to claim 1 is further characterized in that: If the package name fails to match the CPE information, the package name is retrieved through the software package naming matrix to obtain an alias corresponding to the package name; Match the alias with the CPE information. If the match is successful, match the version information with the CPE information. If the version information matches successfully, identify the data source corresponding to the CPE information as the fifth confidence level, and determine that the software under test has a vulnerability corresponding to the CPE information, and the fifth confidence level is lower than the first confidence level.
3. The confidence identification method based on software vulnerability identification according to claim 2 is further characterized in that: If the package name fails to match the vulnerability description data, the package name is retrieved through the software package naming matrix to obtain the alias corresponding to the package name; The alias is matched with the vulnerability description data. If the match is successful, the version information is matched with the vulnerability description data. If the version information matches successfully, the data source corresponding to the vulnerability description data is identified as a sixth confidence level, and it is determined that the software under test has a vulnerability corresponding to the vulnerability description data, and the sixth confidence level is lower than the second confidence level.
4. The confidence identification method based on software vulnerability identification according to any one of claims 1 to 3 is further characterized in that: The package name and version information are matched with the CPE information, vulnerability description data, and open source software release information respectively, including: first matching the package name with the CPE information, vulnerability description data, and open source software release information, and after a successful match, matching the version information with the CPE information, vulnerability description data, and open source software release information.
5. A confidence identification system for software vulnerability identification, characterized in that: The system includes: A vulnerability information collection module is used to collect known software vulnerability information from multiple predetermined links, wherein the known software vulnerability information includes CPE information, vulnerability description information, and open source software release information; Information extraction module, used to extract the package name and version information of the software to be tested; A first matching module, used to match the package name and version information with the CPE information respectively; A first confidence identification module, if the CPE information is successfully matched, identifies the vulnerability data source corresponding to the CPE information as a first confidence level, and determines that the software to be tested has the vulnerability corresponding to the CPE information; The second matching module, if the match with the CPE information fails, matches the package name and version information with the vulnerability description data respectively; A second confidence identification module, if the vulnerability description data is successfully matched, identifies the vulnerability data source corresponding to the vulnerability description data as a second confidence level, and determines that the software to be tested has a vulnerability corresponding to the vulnerability description data; The third matching module, if the match with the vulnerability description data fails, matches the package name and version information with the open source software release information respectively; A third confidence identification module, if the package name matches the open source software release information successfully, and the version number is less than the fixed version number, identifies the source of the vulnerability data corresponding to the open source software release information as the third confidence level, and determines the first possibility that the software under test has the vulnerability corresponding to the open source software release information; A fourth confidence identification module, if the package name matches the CPE information, vulnerability description data or open source software release information successfully, but the version number matches unsuccessfully, identifies the source of the vulnerability data corresponding to the CPE information and vulnerability description data as a fourth confidence level, the fourth confidence level being the lowest confidence level, and determines a second possibility that the software under test has a vulnerability corresponding to the CPE information and vulnerability description data; If the package name fails to match the open source software release information, the software package naming matrix query module searches the package name through the software package naming matrix to obtain an alias corresponding to the package name; The third matching module matches the alias with the open source software release information, and if the match is successful, matches the version information with the open source software release information; a seventh confidence identification module, which identifies the data source corresponding to the open source software release information as the seventh confidence level if the version information matches successfully, and determines the third possibility that the software under test has a vulnerability corresponding to the open source software release information, the seventh confidence level being lower than the third confidence level, and the third possibility being greater than the second possibility; If the alias successfully matches the CPE information, vulnerability description data or open source software release information, but the version number matches unsuccessfully, the source of the vulnerability data corresponding to the CPE information and vulnerability description data is identified as the fourth confidence level, which is the lowest confidence level, and a second possibility is determined that the software under test has a vulnerability corresponding to the CPE information and vulnerability description data.
6. The confidence identification system for software vulnerability identification according to claim 5, further characterized in that: The system also includes: A software package naming matrix query module, if the package name fails to match the CPE information, searches the package name through the software package naming matrix to obtain an alias corresponding to the package name; The first matching module matches the alias with the CPE information, and if the match succeeds, matches the version information with the CPE information; The fifth confidence identification module identifies the data source corresponding to the CPE information as a fifth confidence level if the version information matches successfully, and determines that the software under test has a vulnerability corresponding to the CPE information, and the fifth confidence level is lower than the first confidence level.
7. The confidence identification system for software vulnerability identification according to claim 6, further characterized in that: If the package name If the matching with the vulnerability description data fails, the software package naming matrix query module searches the software package naming matrix according to the package name to obtain the alias corresponding to the package name; The second matching module matches the alias with the vulnerability description data, and if the match succeeds, the second matching module matches the version information with the vulnerability description data; The sixth confidence identification module identifies the data source corresponding to the vulnerability description data as a sixth confidence level if the version information matches successfully, and determines that the software under test has a vulnerability corresponding to the vulnerability description data, and the sixth confidence level is lower than the second confidence level.
8. An information storage medium, characterized in that: The information storage medium stores a computer program, and the computer program executes the confidence identification method based on software vulnerability identification as described in any one of claims 1-4.
