Component composite vulnerability detection method and device, equipment, medium and product

By obtaining and processing vulnerability information, a component composite vulnerability data table is formed, and components are compared one by one, which solves the problem of failure to detect component composite vulnerabilities in the existing technology and achieves efficient detection and search of component composite vulnerabilities.

CN118869366AActive Publication Date: 2024-10-29BEIJING BEIDA SOFTWARE ENG DEV CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411345305.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2024-10-29
Estimated Expiration
2044-09-26

AI Technical Summary

Technical Problem

Existing vulnerability detection methods fail to effectively consider compound vulnerabilities caused by the interaction between different components, and cannot effectively detect component compound vulnerabilities between software and hardware.

Method used

By obtaining the vulnerability information, determining the vulnerability data table, obtaining the vulnerability array field, and storing it in the local database, a component composite vulnerability data table is formed, and the components and vulnerable components of the device to be detected are compared one by one to determine whether the device has vulnerabilities, which improves the vulnerability search efficiency. and accuracy.

Benefits of technology

It realizes the detection of component composite vulnerabilities, improves the vulnerability search efficiency, improves the search for component composite vulnerabilities, and ensures vulnerability detection between software and hardware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869366A_ABST
    Figure CN118869366A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device, equipment, a medium and a product for detecting composite vulnerabilities of components, and relates to the field of network security, the method comprises the following steps: acquiring vulnerability information; determining a vulnerability data table based on the vulnerability information; obtaining a vulnerability array field based on the vulnerability data table, the vulnerability array field being used for storing a vulnerability component, and storing the vulnerability array field in a local database to obtain a component composite vulnerability data table; to-be-detected components of the to-be-detected equipment are obtained, the to-be-detected components comprise to-be-detected software components and to-be-detected hardware components, the to-be-detected components and the vulnerability components are compared one by one, and whether vulnerabilities exist in the to-be-detected equipment or not is determined. The problem of vulnerability caused by mutual influence between different components is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cybersecurity, and in particular to a method, apparatus, device, medium, and product for detecting composite vulnerabilities. Background Technology

[0002] In today's digital age, cybersecurity issues are becoming increasingly prominent, threatening development in various fields. Among cybersecurity threats, component vulnerabilities are particularly serious. Component vulnerabilities refer to security flaws that exist in various components of software or hardware.

[0003] Dependencies introduced during project development or software running on a computer may not pose security risks when existing independently, but vulnerabilities can arise when the software runs on a specific version of an operating system. Similarly, two open-source components introduced during software development may not present vulnerabilities when used individually, but a vulnerability can be introduced when both are used together. Vulnerabilities resulting from multiple factors are called compound vulnerabilities.

[0004] Existing vulnerability detection methods mainly target the running software and hardware themselves, without taking into account vulnerabilities caused by the interaction between different components. Summary of the Invention

[0005] The purpose of this application is to provide a method, apparatus, device, medium, and product for detecting component composite vulnerabilities, which can solve the vulnerability problem caused by the mutual influence between different components.

[0006] To achieve the above objectives, this application provides the following solution: Firstly, this application provides a method for detecting component composite vulnerabilities, including: Obtain vulnerability information; Based on the vulnerability information, a vulnerability data table is determined; Based on the vulnerability data table, the vulnerability array field is obtained. The vulnerability array field is used to store vulnerability components. The vulnerability array field is stored in the local database to obtain the component composite vulnerability data table. The components to be tested of the device to be tested are obtained, including software components and hardware components to be tested. The components to be tested are compared one by one with the vulnerable components to determine whether the device to be tested has vulnerabilities.

[0007] Secondly, this application provides a device for detecting composite component vulnerabilities, comprising: The first acquisition module is used to acquire vulnerability information; The determination module is used to determine a local vulnerability data table based on the vulnerability information; The second acquisition module is used to acquire a vulnerability array field based on the local vulnerability data table. The vulnerability array field is used to store vulnerability component information. The vulnerability array field is stored in the local database to obtain a component composite vulnerability data table. The comparison module is used to obtain the components to be tested of the device under test. The components to be tested include information on the software components to be tested and information on the hardware components to be tested. The components to be tested are compared one by one with the vulnerable components to determine whether the device under test has vulnerabilities.

[0008] Thirdly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for detecting composite vulnerabilities of any of the above-described components.

[0009] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for detecting composite vulnerabilities of any of the above-described components.

[0010] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of a method for detecting composite vulnerabilities of any of the components described above.

[0011] According to the specific embodiments provided in this application, the following technical effects are disclosed: This application provides a method, apparatus, device, medium, and product for detecting composite component vulnerabilities. It determines a vulnerability data table based on acquired vulnerability information, obtains a vulnerability array field from the vulnerability data table to store vulnerable components, and stores this field in a local database to obtain a composite component vulnerability data table. This table represents the set of all components that contribute to composite component vulnerabilities, including those between software and between software and hardware, thus improving vulnerability detection efficiency and refining the detection of composite component vulnerabilities. Furthermore, by acquiring the components to be tested from the device under test (including software and hardware components), and comparing these components one by one with vulnerable components, it determines whether the device under test has vulnerabilities, thereby achieving the detection of composite component vulnerabilities. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is an application environment diagram of a component composite vulnerability detection method in one embodiment of this application; Figure 2 A schematic flowchart of a component composite vulnerability detection method provided in an embodiment of this application; Figure 3 A single data structure diagram of the vulnerability data table `vulnerable_module` provided in an embodiment of this application; Figure 4 A flowchart for determining whether a device under test has a vulnerability is provided in one embodiment of this application; Figure 5 A flowchart for determining whether a component to be detected matches a vulnerable component is provided in one embodiment of this application; Figure 6 A flowchart illustrating a method for handling vulnerabilities in a device under test provided in an embodiment of this application; Figure 7 A schematic diagram of the structure of a component composite vulnerability detection device provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0014] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0015] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0016] This application provides a method for detecting composite vulnerabilities in components, which can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be set up independently, integrated into server 104, or placed in the cloud or on another server. Terminal 102 can send acquired vulnerability information to server 104. After receiving the acquired vulnerability information, server 104 determines a vulnerability data table based on the acquired vulnerability information, obtains a vulnerability array field based on the vulnerability data table, and stores the vulnerability array field in a local database to obtain a component composite vulnerability data table. Server 104 obtains the components to be tested from the device under test, including software and hardware components, and compares these components with the vulnerable components one by one to determine whether the device under test has vulnerabilities. Server 104 can then feed back the detection result of whether the device under test has vulnerabilities to terminal 102. In addition, in some embodiments, the method for detecting composite vulnerabilities of components can also be implemented separately by the server 104 or the terminal 102. For example, the terminal 102 can directly obtain vulnerability information and compare the component to be detected with the vulnerable component one by one to determine whether the device to be detected has a vulnerability. Alternatively, the server 104 can obtain vulnerability information from the data storage system and compare the component to be detected with the vulnerable component one by one to determine whether the device to be detected has a vulnerability.

[0017] The terminal 102 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. The server 104 can be implemented using a standalone server or a server cluster composed of multiple servers, or it can be a cloud server.

[0018] In one exemplary embodiment, such as Figure 2 As shown, a method for detecting composite component vulnerabilities is provided. This method is executed by a computer device, specifically by a terminal or server alone, or by both a terminal and a server. In this embodiment, the method is applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps 210 to 240. Wherein: Step 210: Obtain vulnerability information.

[0019] In one feasible approach, methods for obtaining vulnerability information include, but are not limited to, the following: 1. Use web scraping tools (such as Python's Scrapy framework) to write a web crawler program to selectively scrape vulnerability information from the National Information Security Vulnerability Impact Platform (https: / / www.cnvd.org.cn / ), the National Information Security Vulnerability Database (https: / / www.cnnvd.org.cn / ), and the US Vulnerability Database (https: / / nvd.nist.gov / ). 2. Download vulnerability information files: Some vulnerability databases offer vulnerability information file download functionality. For example, the US Vulnerability Database NVD provides options to download vulnerability information in XML, CSV, and other formats. Users can choose the appropriate format to download the vulnerability information according to their needs.

[0020] Step 220: Determine the vulnerability data table based on the vulnerability information.

[0021] Specifically, from the vulnerability information obtained in step 210, we extract composite vulnerability information resulting from the interaction between software components, between software and hardware components, and between hardware components. Based on the extracted composite vulnerability information, we extract the component information of the vulnerable components, including: vulnerability ID, vulnerability name, vulnerability source, published date, vulnerability description, related links, vendor, product name, component version, logical relationship between components (operator), vulnerability source, vulnerability name, published date, vulnerability description, related links, etc.

[0022] It's understandable that there might be discrepancies between the component version information disclosed on security vulnerability websites and the actual released versions of the components. Furthermore, the component version information disclosed on security vulnerability websites cannot be automatically recognized and compared by computers. Therefore, component version information needs to be normalized. The component version normalization algorithm can convert various versions into a format that computers can uniformly recognize and compare, enabling computerized searching for complex component vulnerabilities. Simultaneously, storing vulnerable components containing component data structures in a local database allows for rapid vulnerability retrieval using database search techniques, improving the efficiency of vulnerability finding.

[0023] For example, the component version information is serialized into a string, and the specific steps are as follows: Step 2201: Convert the characters in the component version information to lowercase, and remove the component vendor (Vendor) information and product (product) information contained in the component version information. The above component vendor (Vendor) information and product (product) information include both uppercase and lowercase information.

[0024] Step 2202: Uniformly replace the characters that are neither Arabic letters nor digits in the string of the vulnerable component version information with the dot character ".", and multiple consecutive dot characters are reduced to one dot character.

[0025] Step 2203: Mark the following characters contained in the vulnerable component version information without distinguishing between uppercase and lowercase: Pre-alpha, Dev, alpha, α, beta, β, Release Candidate, RC, GA, General Availability, Stable, Maintenance Release, Patch, LTS, Long Term Support.

[0026] Step 2204: Set each interval between two dot characters "." as an interval, and the interval between the beginning and the end of the string as an interval. According to the version string from front to back, each interval with less than 16 characters is filled with leading zero characters, the interval with more than 16 characters retains the first 16 characters. If the string has less than 8 intervals, zeros are uniformly added at the end. Finally, the string "99" is uniformly added at the end of the string. Process each version string into a fixed 130-character string.

[0027] Exemplarily, after processing the component version 1.22.333 according to the above steps, it becomes: 000000010000002200000333000000000000000000000000000000000000000099.

[0028] Step 2205: For the strings marked in Step 1203, according to the relationship of Pre-alpha < Dev < alpha / α < beta / β < Release Candidate / RC < GA / General Availability / Stable / < MaintenanceRelease < Patch < LTS / Long Term Support, replace the last two characters of the string with 01, 02, 03,..., 09 respectively.

[0029] Exemplarily, after processing the component version 1.22.33-beta according to the above steps, it becomes: 00000001000000220000033300000000000000000000000000000000000000000004.

[0030] After normalizing the version information of the vulnerable components, a component data structure containing the version information of the vulnerable components is obtained. The vulnerable components containing this component data structure are then stored in a local database to obtain the vulnerability data table `vulnerable`. This vulnerability data table includes three structures: `vulnerable`, `node`, and `module`. `node` represents the structure of a single node in the `vulnerable` table, where a single node is extracted from the node set `nodes`. `module` represents the structure of a single component within a single node, where a single component `module` is extracted from the component set `modules`. The vulnerability data table `vulnerable` mentioned above is shown in Table 1. Table 1

[0031] Step 230: Obtain the vulnerability array field based on the vulnerability data table. This vulnerability array field is used to store vulnerable components. Store the above vulnerability array field into the local database to obtain the component composite vulnerability data table vulnerable-module, as shown in Table 2: Table 2

[0032] In an exemplary embodiment, node data is extracted from the vulnerability data table, and all combinations of the vulnerability components are listed according to the logical relationships represented in the node data. Each combination of the vulnerability components corresponds to a vulnerability array field. When the logical relationship is represented as AND, the vulnerability components in all the vulnerability array fields are obtained to determine a combination of the vulnerability components; when the logical relationship is represented as OR, one vulnerability component is obtained from each of the vulnerability array fields to determine a combination of the vulnerability components.

[0033] Specifically, each node in the `nodes` set of the `vulnerable` data table is extracted. Based on the `and` or `or` logical relationships represented by the `operator` in the node data, all combinations of vulnerable components in the vulnerability array fields `childs` and `modules` are listed. Each combination of vulnerable components corresponds to a vulnerability array field. When the logical relationship represented by the `operator` is "and", it indicates that a vulnerability occurs when both vulnerable components in the `childs` and `modules` arrays exist simultaneously; when the logical relationship represented by the `operator` is "or", it indicates that a vulnerability occurs when only one of the vulnerable components in the `childs` and `modules` arrays exists. All the above vulnerability array fields are stored in the local database to form the component composite vulnerability data table `vulnerable_module`. The `node` data represents node data, and the `module` data represents vulnerable component data. The entire component composite vulnerability data table displays all sets of components that lead to component composite vulnerabilities between software and between software and hardware. Using database retrieval technology, vulnerabilities can be found quickly, improving vulnerability search efficiency and perfecting the search for component composite vulnerabilities.

[0034] For example, such as Figure 3 As shown, Figure 3 This is a single data structure diagram of the vulnerability data table `vulnerable_module` provided in an embodiment of this application. Based on the logical relation "or" represented by the operator in `node1`, an OR operation is performed on the vulnerable components `module1` and `module2` in the `childs` field of the vulnerability array and the vulnerable component `module3` in the `modules` field of the vulnerability array. From the logical relation "or", it can be seen that the simultaneous existence of `module1` and `module3` will result in a vulnerability, or the simultaneous existence of `module2` and `module3` will result in a vulnerability. Furthermore, if the logical relation is "and", the simultaneous existence of `module1`, `module2`, and `module3` will result in a vulnerability. The logically operated `module1`, `module2`, and `module3` form the component composite vulnerability data tables `vulnerable_module` data 1 and `vulnerable_module` data 2. The three data entries of the above component composite vulnerability data table `vulnerable_module` are shown in Table 3: Table 3

[0035] Step 240: Obtain the components to be tested from the device under test. The components to be tested include software components and hardware components to be tested. Compare the components to be tested with the vulnerable components one by one to determine whether the device under test has vulnerabilities.

[0036] Specifically, Software Composition Analysis (SCA) technology is used to obtain information about the software components included in the device under test, and Hardware Profiling technology is used to obtain the hardware information of the device under test. The components under test are then compared one by one with the vulnerable components to determine whether the device under test has vulnerabilities. The specific steps include the following: Step 2401: When the vulnerability array field modules contains only one vulnerable component, if the component to be detected matches one of the aforementioned vulnerable components, then the device to be detected has a vulnerability.

[0037] Step 2402: When the vulnerability array field modules contains multiple vulnerable components, if the component to be detected matches multiple vulnerable components, then the device to be detected has a vulnerability.

[0038] For example, such as Figure 4 As shown, Figure 4This is a flowchart illustrating how to determine whether a device under test has a vulnerability, as provided in one embodiment of this application. Software Composition Analysis (SCA) and Hardware Profiling techniques are used to detect components a, b, and c, which can be either hardware components or software components. Each of the components to be tested, a, b, and c, is searched for a match in the vulnerability array field "modules" of the vulnerable_module table. If component a matches a vulnerable component in the "modules" field, or if component a matches one of the components in the "modules" field, or if the "modules" field contains only component a, then the device under test has a vulnerability. If the "modules" field contains more than one component, it is necessary to check if any other components in the "modules" field besides component a can be matched with components b and c detected in the device under test. If all of them can be matched, then a vulnerability exists; if one cannot be matched, then no vulnerability exists; otherwise, the device under test has no vulnerability. The process of searching for each of the components to be tested, a, b, and c, in the "modules" field of the vulnerable_module table is repeated. If none of the components a, b, or c match a vulnerable component in the "modules" field, then the device under test has no vulnerability.

[0039] For example, such as Figure 5 As shown, Figure 5This flowchart illustrates the process for determining whether a component to be tested matches a vulnerable component, as provided in this embodiment. The component to be tested is searched for for a match in the `modules` field of the `vulnerable_module` table. The information of the component to be tested is compared with the information in the `vulnerable_module` table. First, the component product name (`product`) and component vendor (`vendor`) are compared. If they are the same, it is determined whether the component version of the component to be tested is contained in the `versionEnum` field. If the `versionEnum` field contains the component version of the component to be tested, then the component to be tested matches a vulnerable component in the `vulnerable_module` table, where `versionEnum` represents an enumeration of vulnerable versions of the component. If the `versionEnum` field does not contain the component version of the component to be tested, it is determined whether the `excludeVersion` field contains the component version of the component to be tested. If the `excludeVersion` field contains the component version of the component to be tested, then the component to be tested does not match a vulnerable component in the `vulnerable_module` table, where `excludeVersion`... Version represents the enumeration of versions without vulnerabilities. If the excludeVersion field in the table does not contain a version of the component under test, the version of the component under test is normalized. The normalized version is then searched for in the table field range [startVersion, endVersion] by string size comparison. The inclusion relationship between the left and right sides of the range is determined by the startinclude and endinclude fields. If the normalized version of the component can be found in the table field range by string size comparison, then the component under test matches a vulnerable component in the composite vulnerability data table vulnerable_module. Here, startVersion represents the starting version containing the vulnerability, endVersion represents the ending version containing the vulnerability, startinclude indicates whether the starting version is included, and endinclude indicates whether the ending version is included. If the normalized version of the component cannot be found in the table field range by string size comparison, then the component under test does not match a vulnerable component in the composite vulnerability data table vulnerable_module.

[0040] In another exemplary embodiment of this application, when the device under test has a vulnerability, it is necessary to provide the user with remediation suggestions. The component vulnerability detection method provided in this embodiment includes the following steps: Step 2501: If the device to be tested has a vulnerability, determine the component to be tested corresponding to the vulnerability. There is at least one set of components to be tested, and each set of components to be tested corresponds to a current version. When there is only one set of components to be tested, check whether the current version corresponding to this set of components to be tested includes official fix suggestions. When there are multiple sets of components to be tested, check whether the current version corresponding to each of the multiple sets of components to be tested includes official fix suggestions.

[0041] Step 2502: If the current version includes official fix suggestions, provide feedback on all such official fix suggestions to the users; Step 2503: If the current version does not include the official fix suggestion, query the higher version corresponding to the current version. The higher version is obtained by using the component library used in Software Composition Analysis (SCA) technology.

[0042] Step 2504: If no higher version corresponding to the current version is found, then the current version is the highest version.

[0043] Step 2505: If a higher version corresponding to the current version is found, at least one higher version vulnerability component obtained by combining at least one group of the components to be detected is compared with the vulnerability component one by one. If the higher version vulnerability component does not have a vulnerability, all combinations of the higher versions are sent to the user as a remediation suggestion; if the higher version vulnerability component has a vulnerability, the total vulnerability score of each group of higher version vulnerability components is calculated, and the higher version combination corresponding to the higher version vulnerability component with the lowest total vulnerability score is fed back to the user as a remediation suggestion.

[0044] For example, such as Figure 6 As shown, Figure 6This is a flowchart illustrating a method for handling vulnerabilities in a device under test, as provided in an embodiment of this application. Software Composition Analysis (SCA) and Hardware Profiling techniques are used to detect components a, b, c, d, e, and f, which can be either hardware or software components. Vulnerable component combinations a and b, g and h, and e and g are obtained from a component composite vulnerability data table. The components to be tested, a, b, c, d, e, and f, are compared with the vulnerability component combinations a and b, g and h, and e and g, respectively. If a vulnerability exists, it is checked whether the current version includes official remediation suggestions. If so, these suggestions are provided to the user. If not, the version combination is switched; that is, a higher version is searched for. If no higher version is found, the current version is considered the highest version. If a higher version is found, each current version corresponds to at least one higher version, and each group of components to be tested corresponds to at least one higher version. The higher-version vulnerability components obtained from one group of components to be tested are compared one by one with the vulnerability components, or multiple groups of higher-version vulnerability components obtained from combining multiple groups of components to be tested are compared one by one, until the comparison of the last version combination is completed. If the higher-version vulnerable component does not contain a vulnerability, all combinations of higher versions are sent to the user as remediation suggestions. If the higher-version vulnerable component does contain a vulnerability, the total vulnerability score of each group of higher-version vulnerable components is calculated, and the higher-version combination corresponding to the higher-version vulnerable component with the lowest total vulnerability score is sent to the user as a remediation suggestion. By finding all version combinations containing vulnerable components, the solution with the least impact on the system is found based on the vulnerability scores of different version combinations; the lower the vulnerability score, the less harmful the version combination is to the system.

[0045] This application also provides an application scenario in which the above-described method for detecting composite component vulnerabilities is applied. Specifically, the method for detecting composite component vulnerabilities provided in this embodiment obtains the component name of the device to be tested as component a, the manufacturer as Microsoft, and the version as 1.0. This component information can be directly compared with the component information of the vulnerable component to determine whether the component to be tested has a vulnerability. If a vulnerability exists, a remediation suggestion is provided, finding a higher version of component a, assuming it is 2.0. This generates new component information: component name as component a, manufacturer as Microsoft, version 2.0. This new component information is compared again with the component information of the vulnerable component to determine whether the component to be tested has a vulnerability. If no vulnerability exists, the user is advised to upgrade component a to version 2.0; if a vulnerability still exists, and the only version of component a higher than 1.0 is 2.0, the vulnerability score of versions 1.0 and 2.0 of component a needs to be compared, and the version with the lowest vulnerability score is sent to the user as the remediation suggestion.

[0046] Based on the same inventive concept, this application also provides a device for detecting a component composite vulnerability as described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the component composite vulnerability detection device provided below can be found in the limitations of the component composite vulnerability detection method described above, and will not be repeated here.

[0047] In one exemplary embodiment, such as Figure 7 As shown, a device for detecting composite component vulnerabilities is provided, comprising: On the other hand, such as Figure 7 The diagram shown is a structural schematic of the component composite vulnerability detection device provided in an embodiment of this application. Figure 7 As shown, the device 700 includes: The first acquisition module 710 is used to acquire vulnerability information; Module 720 is used to determine the local vulnerability data table based on vulnerability information; The second acquisition module 730 is used to acquire the vulnerability array field based on the local vulnerability data table. The vulnerability array field is used to store vulnerability component information. The vulnerability array field is stored in the local database to obtain the component composite vulnerability data table. The comparison module 740 is used to obtain the components to be tested of the device under test, including the information of the software components to be tested and the information of the hardware components to be tested. The components to be tested are compared with the vulnerable components one by one to determine whether the device under test has vulnerabilities.

[0048] As an optional implementation, the prediction model construction apparatus provided in this application embodiment includes a determination module 720 specifically used for: Extracting composite vulnerability information from components based on vulnerability information, where composite vulnerability information includes software and... Information on composite vulnerabilities in components caused by the interaction between software, software and hardware, and hardware and hardware. Based on the composite vulnerability information of the components, the component information of the vulnerable components is extracted. The component information includes the component manufacturer, component product name and component version. The component version is normalized to obtain the component data structure of the component version. The vulnerable component containing the component data structure is stored in the local database to obtain the vulnerability data table.

[0049] As an optional implementation, the prediction model construction apparatus provided in this application embodiment, wherein the second acquisition module 730 is specifically used for: Extract node data from the vulnerability data table, and list all combinations of vulnerability components based on the logical relationships represented in the node data. Each combination of vulnerability components corresponds to a vulnerability array field.

[0050] As an optional implementation, the comparison module 740 of the predictive model construction apparatus provided in this application embodiment is specifically used for: When the vulnerability array field contains only one vulnerable component, if the component to be detected matches the vulnerable component, then the device to be detected has a vulnerability. When the vulnerability array field contains multiple vulnerable components, if the component to be detected matches the vulnerable component, then the device to be detected has a vulnerability.

[0051] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 8 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores video tag processing data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a method for detecting composite vulnerabilities.

[0052] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0053] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0054] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0055] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0056] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0057] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0058] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0059] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0060] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for detecting component composite vulnerabilities, It is characterized in that The detection method of the component composite vulnerability includes: Get vulnerability information; Determine a vulnerability data table based on the vulnerability information; Based on the vulnerability data table, a vulnerability array field is obtained, where the vulnerability array field is used to store vulnerability components, and the vulnerability array field is stored in a local database to obtain a component composite vulnerability data table; Obtain components to be detected of the device to be detected, wherein the components to be detected include software components to be detected and hardware components to be detected, and compare the components to be detected with the vulnerability components one by one to determine whether the device to be detected has a vulnerability.

2. The method for detecting a composite vulnerability of a component according to claim 1, It is characterized in that The obtaining of a local vulnerability data table based on the vulnerability information specifically includes: Extract component composite vulnerability information based on the vulnerability information, wherein the component composite vulnerability information includes Including composite vulnerability information of the components caused by the mutual influence between software and software, composite vulnerability information of the components caused by the mutual influence between software and hardware, and composite vulnerability information of the components caused by the mutual influence between hardware and hardware; Based on the component composite vulnerability information, component information of the vulnerable component is extracted, the component information including component manufacturer, component product name and component version. The component version is normalized to obtain a component data structure of the component version, and the vulnerable component containing the component data structure is stored in a local database to obtain a vulnerability data table.

3. The method for detecting a composite vulnerability of a component according to claim 1, It is characterized in that The obtaining of vulnerability array fields based on the vulnerability data table specifically includes: Node data is extracted from the vulnerability data table, and all combinations of the vulnerability components are listed according to the logical relationship represented in the node data, and each combination of the vulnerability components corresponds to a vulnerability array field.

4. The method for detecting a composite vulnerability of a component according to claim 3, It is characterized in that The step of listing all combinations of the vulnerability components according to the logical relationship represented in the node data specifically includes: When the logical relationship is characterized by AND, obtaining the vulnerability components in all the vulnerability array fields to determine a combination of the vulnerability components; When the logical relationship is represented by "or", one vulnerability component is obtained from each of all the vulnerability array fields to determine a combination of the vulnerability components.

5. The method for detecting a composite vulnerability of a component according to claim 1, It is characterized in that The step of comparing the components to be detected with the vulnerable components one by one to determine whether the device to be detected has a vulnerability specifically includes: When the vulnerability array field contains only one vulnerability component, if the component to be detected matches the vulnerability component, the device to be detected has a vulnerability; When the vulnerability array field contains a plurality of vulnerability components, if the component to be detected matches the vulnerability component, the device to be detected has a vulnerability.

6. The method for detecting a composite vulnerability of a component according to claim 1, It is characterized in that The component composite vulnerability detection method further includes: If the device to be detected has a vulnerability, find out whether the current version of the component to be detected comes with an official repair suggestion based on the component to be detected that causes the vulnerability; If the current version comes with the official repair suggestion, feeding back the official repair suggestion to the user; If the current version does not come with the official repair suggestion, query a higher version corresponding to the current version; If no higher version corresponding to the current version is found, the current version is the highest version; If a higher version corresponding to the current version is found, at least one group of higher version vulnerability components obtained by combining at least one group of components to be detected are compared one by one with the vulnerability components; if the higher version vulnerability components do not have vulnerabilities, all combinations of the higher versions are sent to the user as repair suggestions; if the higher version vulnerability components have vulnerabilities, the total vulnerability scores of each group of the higher version vulnerability components are calculated, and the higher version combination corresponding to the higher version vulnerability components with the lowest total vulnerability score is fed back to the user as a repair suggestion.

7. A detection device for component composite vulnerabilities, It is characterized in that The component composite vulnerability detection device comprises: A first acquisition module is used to obtain vulnerability information; A determination module, used to determine a local vulnerability data table based on the vulnerability information; A second acquisition module is used to acquire a vulnerability array field based on the local vulnerability data table, the vulnerability array field is used to store vulnerability component information, and store the vulnerability array field in a local database to obtain a component composite vulnerability data table; The comparison module is used to obtain the components to be detected of the device to be detected, wherein the components to be detected include software component information to be detected and hardware component information to be detected, and compare the components to be detected with the vulnerability components one by one to determine whether the device to be detected has a vulnerability.

8. A computer device, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the component composite vulnerability detection method described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the component composite vulnerability detection method described in any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the component composite vulnerability detection method described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Software component supply chain security detection method and device based on knowledge graph

    CN115033894A

  • Open source component risk detection method and device, electronic equipment and storage medium

    CN116167056A

  • System failure event-based approach to addressing security breaches

    US20170310700A1