Vulnerability detection method and device, equipment and storage medium

By building a vulnerability detection tool based on a vulnerability dictionary, the problem of low vulnerability detection accuracy in intelligent connected cars is solved, efficient vulnerability scanning of automotive systems is achieved, and information security is enhanced.

CN118606952APending Publication Date: 2024-09-06BEIJING TOPSEC NETWORK SECURITY TECH +2

Patent Information

Application Number
CN202410696984.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing vulnerability detection technology is difficult to accurately detect vulnerabilities in intelligent connected cars. Traditional tools lack the detection capabilities for automotive systems and firmware, resulting in low detection accuracy.

Method used

By obtaining the vulnerability dictionary of the target vehicle, a highly targeted vulnerability detection tool is constructed, including a vulnerability exploitation script. Vulnerability scanning is performed on the information under test based on the vulnerability dictionary, and asset information identification and vulnerability description information are used for matching to improve the accuracy of vulnerability scanning. sex and efficiency.

Benefits of technology

It improves the accuracy and efficiency of vulnerability detection in intelligent connected vehicles, can effectively discover vulnerabilities in automotive systems, simplifies scan results, and enhances information security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606952A
    Figure CN118606952A
Patent Text Reader

Abstract

The embodiment of the invention provides a vulnerability detection method and device, equipment and a storage medium, and relates to the technical field of vulnerability detection. The method comprises the following steps: acquiring a tested piece information set of a target vehicle, and acquiring a vulnerability dictionary of the target vehicle; constructing a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary; wherein the vulnerability detection tool comprises vulnerability utilization scripts of a plurality of target vulnerability objects; and performing vulnerability scanning on the detected piece information set based on the vulnerability detection tool to obtain a vulnerability scanning result. According to the embodiment of the invention, the vulnerability dictionary of the target vehicle is acquired, and the corresponding vulnerability detection tool is constructed in a targeted manner according to the vulnerability dictionary, so that the vulnerability scanning accuracy of the automobile system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vulnerability detection, and in particular to a vulnerability detection method, apparatus, device and storage medium. Background Art

[0002] With the increasing development of intelligent connected vehicles, the degree of intelligence of vehicles is getting higher and higher, and the complexity of their systems is increasing. Therefore, the risk of vehicle systems being attacked by external hackers is gradually increasing. Therefore, it is becoming more and more important to conduct information security testing on intelligent connected vehicles.

[0003] At present, most of the mainstream vulnerability detection technologies are aimed at traditional IT hosts or networks. Since the internal structure of intelligent connected vehicles is composed of a variety of electronic components, and different components involve different systems or firmware, and traditional vulnerability scanning tools lack the ability to detect vulnerabilities in these systems or firmware, the accuracy of vulnerability detection is not high. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a vulnerability detection method, device, equipment and storage medium to improve the accuracy of vulnerability detection for intelligent connected vehicles.

[0005] In a first aspect, an embodiment of the present application provides a vulnerability detection method, comprising:

[0006] Obtaining a test piece information set of a target vehicle, and obtaining a vulnerability dictionary of the target vehicle;

[0007] Constructing a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary; wherein the vulnerability detection tool includes vulnerability exploitation scripts for a plurality of target vulnerability objects;

[0008] Based on the vulnerability detection tool, a vulnerability scan is performed on the information set of the tested component to obtain a vulnerability scanning result.

[0009] In an embodiment of the present application, by obtaining a vulnerability dictionary of a target vehicle and constructing a corresponding vulnerability detection tool in a targeted manner based on the vulnerability dictionary, the accuracy of vulnerability scanning of the automobile system can be improved.

[0010] In some possible embodiments, the step of constructing a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary includes:

[0011] Determining a vulnerability information template corresponding to the target vehicle based on the vulnerability dictionary; wherein the vulnerability information template includes at least one vulnerability description keyword;

[0012] Matching the vulnerability information template with a pre-collected public vulnerability library, and determining a number of target vulnerability objects that are matched;

[0013] Acquire vulnerability exploitation scripts corresponding to the plurality of target vulnerability objects to construct a vulnerability detection tool corresponding to the target vehicle.

[0014] In an embodiment of the present application, a vulnerability template is constructed according to a vulnerability dictionary to match the corresponding vulnerability object to construct a corresponding vulnerability detection tool, thereby further improving the accuracy and efficiency of vulnerability scanning for automobiles.

[0015] In some possible embodiments, matching the vulnerability information template with a pre-collected public vulnerability library and determining a number of target vulnerability objects that match the template includes:

[0016] Based on the vulnerability dictionary, semantic extraction is performed on vulnerability risk description information of each vulnerability object in the public vulnerability library to obtain at least one description keyword corresponding to each vulnerability object;

[0017] A match is performed based on the at least one vulnerability description keyword and the at least one description keyword to determine a number of target vulnerability objects that are matched.

[0018] In an embodiment of the present application, by performing semantic extraction on the description information of the public vulnerability library and matching the vulnerability objects with the extracted keywords and the vulnerability templates, the efficiency of vulnerability scanning for automobiles is further improved.

[0019] In some possible embodiments, performing vulnerability scanning on the tested device information set based on the vulnerability detection tool to obtain vulnerability scanning results includes:

[0020] Based on the vulnerability dictionary, each piece of tested device information in the tested device information set is identified by asset information, and each piece of tested device information in the tested device information set is divided into asset objects according to the asset information identification;

[0021] Obtain vulnerability description information of each target vulnerability object in the vulnerability detection tool;

[0022] Performing information matching based on the asset information identifier and the vulnerability description information to respectively determine target vulnerability objects that match each asset object in the vulnerability detection tool, and respectively determine vulnerability exploitation scripts corresponding to each asset object;

[0023] Use the corresponding vulnerability exploitation scripts to perform vulnerability scans on the tested component information of each asset object to obtain vulnerability scan results.

[0024] In an embodiment of the present application, the collected information of the device under test is divided according to asset objects, and vulnerability objects are matched based on asset information identification and vulnerability description information, and then the corresponding vulnerability exploitation script is used to perform vulnerability scanning on the corresponding information of the device under test, thereby further improving the efficiency of vulnerability scanning.

[0025] In some possible embodiments, obtaining the measured component information set of the target vehicle includes at least one of the following:

[0026] Utilizing a preset debugging tool to debug and connect a target component of a target vehicle to obtain system-related information of the target component as part of the measured component information set;

[0027] Extracting a firmware file of a target component in a target vehicle, parsing the firmware file to obtain key vulnerability information of the target component as part of the tested component information set;

[0028] In response to the information import request, configuration information corresponding to the target component is obtained based on the information import request as a part of the measured component information set.

[0029] In the embodiments of the present application, the information of the tested parts of the automobile is collected in a variety of ways, thereby improving the flexibility and comprehensiveness of the information collection of the tested parts of the automobile.

[0030] In some possible embodiments, the vulnerability detection method further includes:

[0031] Vulnerability objects with similarity higher than a preset threshold in the vulnerability scanning results are aggregated to obtain vulnerability scanning aggregated results.

[0032] In the embodiment of the present application, vulnerability objects with high similarity in the vulnerability scanning results are aggregated to simplify the vulnerability scanning results, thereby further improving the convenience of vulnerability scanning for automobiles.

[0033] In some possible embodiments, obtaining the vulnerability dictionary of the target vehicle includes:

[0034] The manufacturer information or product information of each tested component in the target vehicle is obtained based on a preset hierarchical division strategy; wherein the hierarchical division strategy includes a perception layer, a decision layer and an execution layer, the secondary classification of the perception layer includes at least one of a radar sensor, a visual sensor and a map database, the secondary classification of the decision layer includes at least one of a computing platform, a chip and an algorithm database, and the secondary classification of the execution layer includes at least one of a braking system, a steering system, a drive system and a lighting system;

[0035] Extract keywords based on the manufacturer information or product information of each of the tested devices to obtain vulnerability keywords corresponding to each of the tested devices;

[0036] A vulnerability dictionary of the target vehicle is constructed based on vulnerability keywords corresponding to each of the tested components.

[0037] In an embodiment of the present application, by obtaining a vulnerability dictionary for a car according to a hierarchical division strategy, the comprehensiveness of the vulnerability dictionary can be improved, thereby further improving the accuracy of vulnerability scanning for the car.

[0038] In a second aspect, an embodiment of the present application provides a vulnerability detection device, including:

[0039] An information acquisition module, used to acquire a set of information about a target vehicle's tested component and to acquire a vulnerability dictionary of the target vehicle;

[0040] A tool construction module, used to construct a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary; wherein the vulnerability detection tool includes vulnerability exploitation scripts of several target vulnerability objects;

[0041] The vulnerability scanning module is used to perform vulnerability scanning on the information set of the tested component based on the vulnerability detection tool to obtain vulnerability scanning results.

[0042] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the method described in any embodiment of the first aspect when executing the program.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the first aspect can be implemented.

[0044] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, wherein when the computer program is executed by a processor, the method described in any embodiment of the first aspect can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A schematic diagram of a vulnerability detection method provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of the structure of a vulnerability detection device provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0050] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0051] It should be noted that the existing technology lacks vulnerability detection tools for intelligent connected vehicles (including autonomous driving services). If vulnerability scanning tools are used for traditional IT hosts or networks, it is impossible to fully and accurately detect the vulnerabilities in intelligent connected vehicles.

[0052] Specifically, traditional vulnerability scanning tools are mainly based on the TCP / IP protocol to scan various networked services and detect security vulnerabilities of designated systems. However, since automobile host systems generally use customized Android systems and have no external services, when using traditional vulnerability scanning tools to scan for vulnerabilities, some of them cannot detect the corresponding system information, while others can only detect very little useful information.

[0053] Therefore, there is an urgent need for a solution for vulnerability scanning for intelligent connected vehicles, especially for autonomous driving services.

[0054] like Figure 1 As shown, the embodiment of the present application provides a vulnerability detection method, which may include the steps of:

[0055] S1. Obtain a set of information about the target vehicle's tested components and obtain a vulnerability dictionary for the target vehicle.

[0056] Specifically, the information of each tested device of the target vehicle is obtained according to the actual detection requirements to form a set of tested device information. The tested device can be hardware or software related to the detection requirements in the car, and the detection requirements can be vulnerability detection of the software and hardware of a certain business system of the car, such as vulnerability detection of software and hardware related to the car's autonomous driving business.

[0057] In addition, based on the hardware or software related to the detection requirements, the keywords corresponding to each tested component can be sorted out to form a vulnerability dictionary of the target vehicle. For example, according to the manufacturer or product information of each tested component, the corresponding manufacturer or product name can be sorted out as the keyword of the corresponding tested component.

[0058] S2. Construct a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary; wherein the vulnerability detection tool includes vulnerability exploitation scripts for several target vulnerability objects.

[0059] Specifically, according to the sorted vulnerability dictionary, relevant vulnerability objects can be matched in a targeted manner, and vulnerability detection tools can be built based on the vulnerability exploitation scripts of these vulnerability objects. For example, semantic matching can be performed with a preset vulnerability library based on the acquired vulnerability dictionary, and the matching vulnerability objects can be screened out as target vulnerability objects, and then the corresponding vulnerability exploitation scripts can be obtained based on these target vulnerability objects to build a vulnerability detection tool corresponding to the target vehicle.

[0060] S3. Perform vulnerability scanning on the information set of the tested component based on the vulnerability detection tool to obtain vulnerability scanning results.

[0061] It is understandable that based on a certain vulnerability detection tool, the vulnerability exploitation scripts therein can be used in sequence to perform vulnerability scans on the tested device information set to verify whether there are vulnerabilities matching the target vulnerability object in the tested device information set.

[0062] Based on this, by obtaining the vulnerability dictionary corresponding to the target vehicle in a targeted manner according to the vulnerability detection requirements, the corresponding vulnerability exploitation scripts can be obtained for the components of the system such as the autonomous driving business of the intelligent connected vehicle, thereby realizing targeted vulnerability scanning of the vehicle system or firmware, thereby effectively improving the accuracy of vulnerability scanning of the vehicle system.

[0063] In some possible embodiments, step S2, constructing a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary, may include the following steps:

[0064] S201, determining a vulnerability information template corresponding to a target vehicle based on a vulnerability dictionary; wherein the vulnerability information template includes at least one vulnerability description keyword;

[0065] S202, matching the vulnerability information template with a pre-collected public vulnerability library, and determining a number of target vulnerability objects that are matched;

[0066] S203: Acquire vulnerability exploitation scripts corresponding to a number of target vulnerability objects to construct a vulnerability detection tool corresponding to the target vehicle.

[0067] It should be noted that based on the acquired vulnerability dictionary, a vulnerability information template corresponding to the target vehicle can be constructed. Specifically, the vulnerability description keywords of the vulnerability information template can be defined by classifying, arranging, summarizing and simplifying the vulnerability keywords in the vulnerability dictionary. It is understandable that simplified vulnerability keywords can be obtained by classifying and simplifying the vulnerability keywords in the vulnerability dictionary. The corresponding vulnerability description keywords can be determined by model training or manual definition based on the simplified vulnerability keywords. These vulnerability description keywords are used to describe key information of one or more vulnerability objects. Exemplarily, pre-defined vulnerability keywords and their corresponding vulnerability description keywords can be used as the original annotation data set for neural network model training. By inputting the vulnerability keywords of the vulnerability dictionary into the trained model, the corresponding vulnerability description keywords output by the model can be obtained.

[0068] Based on the vulnerability description keywords of the vulnerability information template, the pre-collected public vulnerability database can be matched, and the vulnerability object corresponding to the vulnerability information with an information matching degree higher than the set threshold can be determined as the target vulnerability object. Among them, the public vulnerability database can include CVE (Common Vulnerabilities and Exposures), CNVD (China National Vulnerability Database) and other vulnerability information databases.

[0069] For the target vulnerability object matched by the vulnerability information template, the corresponding vulnerability exploitation script can be collected to construct a vulnerability detection tool corresponding to the target vehicle. It can be understood that the vulnerability exploitation script is used to verify whether there is a corresponding vulnerability in the information to be tested.

[0070] In some possible embodiments, step S202, matching the vulnerability information template with a pre-collected public vulnerability library and determining a number of target vulnerability objects that match the matching, may include the following steps:

[0071] S2021. Perform semantic extraction on vulnerability risk description information of each vulnerability object in the public vulnerability library based on the vulnerability dictionary to obtain at least one description keyword corresponding to each vulnerability object;

[0072] S2022: Matching is performed based on at least one vulnerability description keyword and at least one description keyword to determine a number of target vulnerability objects that are matched.

[0073] It should be noted that, based on the vulnerability keywords in the vulnerability dictionary, semantic extraction can be performed on the vulnerability risk description information of each vulnerability object in the public vulnerability library. For example, description keywords that are the same as the vulnerability keywords or have similar semantic types can be directly extracted from the vulnerability risk description information, thereby obtaining at least one description keyword corresponding to each vulnerability object.

[0074] Then, information matching is performed based on the vulnerability description keywords of the vulnerability information template and the description keywords of the public vulnerability library (for example, by comparing text similarity, etc.) to screen out vulnerability objects in the public vulnerability library that match the vulnerability information template as several target vulnerability objects corresponding to the vulnerability information template.

[0075] It is understandable that the vulnerability description keywords of the vulnerability information template can also be classified according to the vulnerability object, that is, the vulnerability description keywords in the vulnerability information template are divided into n groups, and each group of vulnerability description keywords is used to describe a vulnerability object. Then, in the process of matching the vulnerability information template with the public vulnerability library, based on each vulnerability object, a group of vulnerability description keywords corresponding to each vulnerability object can be used to match the information with the description keywords of the public vulnerability library. Similarly, the description keywords in the public vulnerability library can also be grouped according to the vulnerability object. Therefore, by matching the information of each group of description keywords with each group of vulnerability description keywords, the matching between the vulnerability information template and the vulnerability object of the public vulnerability library can be achieved.

[0076] Based on this, the efficiency of vulnerability scanning for automobiles is further improved by performing semantic extraction on the description information of the public vulnerability library and using the extracted keywords to match vulnerability objects with vulnerability templates.

[0077] In some possible embodiments, step S3, performing vulnerability scanning on the tested device information set based on a vulnerability detection tool to obtain vulnerability scanning results, may include the following steps:

[0078] S301, performing asset information identification on each piece of tested piece information in the tested piece information set based on the vulnerability dictionary, and dividing each piece of tested piece information in the tested piece information set into asset objects according to the asset information identification;

[0079] S302, obtaining vulnerability description information of each target vulnerability object in the vulnerability detection tool;

[0080] S303, performing information matching based on the asset information identifier and the vulnerability description information to respectively determine the target vulnerability objects that match the respective asset objects in the vulnerability detection tool, and respectively determine the vulnerability exploitation scripts corresponding to the respective asset objects;

[0081] S304: Use corresponding vulnerability exploitation scripts to perform vulnerability scans on the tested component information of each asset object to obtain vulnerability scan results.

[0082] It should be noted that the vulnerability dictionary can be keywords about the manufacturer name or product name. Based on the vulnerability dictionary, the collected information of the tested device can be respectively identified as asset information. Finally, all the information of the tested device can be divided and classified according to the asset object based on the asset information identification.

[0083] Then, by matching the asset information identifier with the vulnerability description information of each target vulnerability object in the vulnerability detection tool, the target vulnerability object corresponding to each asset object can be determined. Therefore, during the vulnerability scanning process, for the tested device information corresponding to each asset object, it is only necessary to use the vulnerability exploitation script corresponding to the target vulnerability object corresponding to the asset object.

[0084] Based on this, compared with the method of using vulnerability detection tools to perform vulnerability scans on all the tested information separately using all vulnerability exploitation scripts, the method of performing vulnerability scans by dividing asset objects and matching corresponding vulnerability exploitation scripts greatly improves the efficiency of vulnerability scanning.

[0085] In some possible embodiments, obtaining a set of information about a test piece of a target vehicle includes at least one of the following:

[0086] Use the preset debugging tool to debug and connect the target components of the target vehicle to obtain system-related information of the target components as part of the information set of the tested component;

[0087] Extract the firmware files of the target components in the target vehicle and parse the firmware files to obtain the key vulnerability information of the target components as part of the information set of the tested component;

[0088] In response to the information import request, configuration information corresponding to the target component is obtained based on the information import request as part of the measured component information set.

[0089] It should be noted that since smart connected vehicles involve a variety of software and hardware, it is necessary to obtain information about these software or hardware in different ways to improve the comprehensiveness and accuracy of vulnerability scanning.

[0090] Specifically, there are three ways to collect the information of the tested part: 1. Use the preset debugging tool (test tool) to connect to the tested part, such as obtaining the system-related information of the target part through adb connection; 2. Extract the firmware files of the target parts (some key systems, such as the smart cockpit system, etc.) in the target vehicle, and parse these firmware files to obtain the key vulnerability information; 3. Obtain the configuration information of the tested part through manual import, such as the configuration information of the sensor. It can be understood that for the same part (test part), the tested part information of the part can be obtained through one or more of the above methods.

[0091] In some possible embodiments, the vulnerability detection method further includes:

[0092] The vulnerability objects in the vulnerability scanning results whose similarity is higher than a preset threshold are aggregated to obtain the vulnerability scanning aggregation result.

[0093] It should be noted that, for vulnerability scanning results, the vulnerability objects with high similarity can be aggregated to simplify the generated vulnerability scanning report. Specifically, the vulnerability scanning results include several vulnerability objects existing in the information set of the test piece. For these vulnerability objects, similarity calculation can be performed based on the vulnerability description information of each vulnerability object; in addition, similarity calculation can also be performed based on the vulnerability type to which each vulnerability object belongs.

[0094] Then, the vulnerability objects with similarity higher than the set threshold are aggregated. Specifically, the vulnerability objects with similarity higher than the set threshold are first classified, and finally one or more vulnerability objects with a high retention level are selected for each type of vulnerability object.

[0095] For example, any two vulnerability objects with similarities higher than a threshold can be classified into one category, and then the similarities between other vulnerability objects and the two vulnerability objects are obtained. If the similarities are higher than the threshold, the vulnerability objects are classified into the same category, and so on. For example, these vulnerability objects can also be clustered and fused through a preset clustering model, such as clustering based on a K-Means clustering algorithm.

[0096] In some possible embodiments, obtaining a vulnerability dictionary of a target vehicle includes:

[0097] The manufacturer information or product information of each tested component in the target vehicle is obtained based on a preset hierarchical division strategy; wherein the hierarchical division strategy includes a perception layer, a decision layer, and an execution layer, the secondary classification of the perception layer includes at least one of a radar sensor, a visual sensor, and a map database, the secondary classification of the decision layer includes at least one of a computing platform, a chip, and an algorithm database, and the secondary classification of the execution layer includes at least one of a braking system, a steering system, a drive system, and a lighting system;

[0098] Extract keywords based on the manufacturer information or product information of each device under test to obtain vulnerability keywords corresponding to each device under test;

[0099] The vulnerability dictionary of the target vehicle is constructed based on the vulnerability keywords corresponding to each tested component.

[0100] It should be noted that each tested part in the target vehicle can be software or hardware, for example, software includes computing platform, algorithm database, map database, etc., and hardware includes sensors, chips, etc. Specifically, first set the hierarchical division strategy according to the detection requirements, for example, the first-level classification is set as perception layer, decision layer and execution layer, where the second-level classification of the perception layer can include various radar sensors (millimeter wave radar, ultrasonic radar and lidar, etc.), visual sensors (monocular camera, binocular camera and infrared sensor, etc.) and map database, etc., the second-level classification of the decision layer can include computing platform, chip and algorithm database, etc., and the second-level classification of the execution layer can include braking system, steering system, drive system and lighting system, etc.

[0101] Then, by extracting keywords based on the acquired manufacturer information or product information of each tested component, vulnerability keywords are obtained and used to construct a vulnerability dictionary of the target vehicle.

[0102] Based on this, by using the vulnerability dictionary of the target vehicle, the corresponding vulnerability information template can be obtained in a targeted manner, and the corresponding vulnerability detection tool can be matched and constructed, thereby effectively improving the accuracy and efficiency of vulnerability scanning for the target vehicle.

[0103] Please refer to Figure 2 , Figure 2 FIG. 1 is a block diagram showing the components of a vulnerability detection device provided in some embodiments of the present application. It should be understood that the vulnerability detection device is similar to the above-mentioned Figure 1 Corresponding to the method embodiment, it is able to execute each step involved in the above method embodiment. The specific functions of the vulnerability detection device can be found in the description above. To avoid repetition, the detailed description is appropriately omitted here.

[0104] Figure 2 The vulnerability detection device includes at least one software function module that can be stored in a memory in the form of software or firmware or fixed in the vulnerability detection device, and the vulnerability detection device includes:

[0105] The information acquisition module 210 is used to acquire the information set of the tested component of the target vehicle and acquire the vulnerability dictionary of the target vehicle;

[0106] A tool construction module 220 is used to construct a vulnerability detection tool corresponding to a target vehicle based on a vulnerability dictionary; wherein the vulnerability detection tool includes vulnerability exploitation scripts for a number of target vulnerability objects;

[0107] The vulnerability scanning module 230 is used to perform vulnerability scanning on the information set of the tested component based on the vulnerability detection tool to obtain vulnerability scanning results.

[0108] It can be understood that the above-mentioned device item embodiments correspond to the method item embodiments of the present invention. A vulnerability detection device provided by the embodiment of the present invention can implement the vulnerability detection method provided by any method item embodiment of the present invention.

[0109] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.

[0110] like Figure 3 As shown, some embodiments of the present application provide an electronic device 300, which includes: a memory 310, a processor 320, and a computer program stored in the memory 310 and executable on the processor 320, wherein the processor 320 can implement a method of any embodiment of the vulnerability detection method as described above when reading the program from the memory 310 through a bus 330 and executing the program.

[0111] Processor 320 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 320 can be a microprocessor.

[0112] The memory 310 may be used to store instructions executed by the processor 320 or data related to the execution of instructions. These instructions and / or data may include codes for implementing some or all functions of one or more modules described in the embodiments of the present application. The processor 320 of the disclosed embodiment may be used to execute instructions in the memory 310 to implement the method shown above. The memory 310 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.

[0113] Some embodiments of the present application further provide a computer-readable storage medium having a computer program stored thereon. The computer program is executed by a processor to execute the method described in the method embodiment.

[0114] Some embodiments of the present application further provide a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.

[0115] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0116] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0117] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0118] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0119] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0120] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0121] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A vulnerability detection method, It is characterized in that include: Obtaining a test piece information set of a target vehicle, and obtaining a vulnerability dictionary of the target vehicle; Constructing a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary; wherein the vulnerability detection tool includes vulnerability exploitation scripts for a plurality of target vulnerability objects; Based on the vulnerability detection tool, a vulnerability scan is performed on the information set of the tested component to obtain a vulnerability scanning result.

2. The vulnerability detection method according to claim 1, It is characterized in that The step of constructing a vulnerability detection tool corresponding to the target vehicle based on the vulnerability dictionary includes: Determining a vulnerability information template corresponding to the target vehicle based on the vulnerability dictionary; wherein the vulnerability information template includes at least one vulnerability description keyword; Matching the vulnerability information template with a pre-collected public vulnerability library, and determining a number of target vulnerability objects that are matched; Acquire vulnerability exploitation scripts corresponding to the plurality of target vulnerability objects to construct a vulnerability detection tool corresponding to the target vehicle.

3. The vulnerability detection method according to claim 2, It is characterized in that The step of matching the vulnerability information template with a pre-collected public vulnerability library and determining a number of target vulnerability objects that are matched includes: Based on the vulnerability dictionary, semantic extraction is performed on vulnerability risk description information of each vulnerability object in the public vulnerability library to obtain at least one description keyword corresponding to each vulnerability object; A match is performed based on the at least one vulnerability description keyword and the at least one description keyword to determine a number of target vulnerability objects that are matched.

4. The vulnerability detection method according to claim 1, It is characterized in that The step of performing vulnerability scanning on the tested component information set based on the vulnerability detection tool to obtain vulnerability scanning results includes: Based on the vulnerability dictionary, each piece of tested piece of information in the tested piece of information set is identified by asset information, and each piece of tested piece of information in the tested piece of information set is divided into asset objects according to the asset information identification; Obtain vulnerability description information of each target vulnerability object in the vulnerability detection tool; Performing information matching based on the asset information identifier and the vulnerability description information to respectively determine target vulnerability objects that match each asset object in the vulnerability detection tool, and respectively determine vulnerability exploitation scripts corresponding to each asset object; Use the corresponding vulnerability exploitation scripts to perform vulnerability scans on the tested component information of each asset object to obtain vulnerability scan results.

5. The vulnerability detection method according to claim 1, It is characterized in that The step of obtaining the measured component information set of the target vehicle includes at least one of the following: Utilizing a preset debugging tool to debug and connect a target component of a target vehicle to obtain system-related information of the target component as part of the measured component information set; Extracting a firmware file of a target component in a target vehicle, parsing the firmware file to obtain key vulnerability information of the target component as part of the tested component information set; In response to the information import request, configuration information corresponding to the target component is obtained based on the information import request as a part of the measured component information set.

6. The vulnerability detection method according to claim 1, It is characterized in that Also includes: Vulnerability objects with similarity higher than a preset threshold in the vulnerability scanning results are aggregated to obtain vulnerability scanning aggregated results.

7. The vulnerability detection method according to claim 1, It is characterized in that The obtaining of the vulnerability dictionary of the target vehicle includes: The manufacturer information or product information of each tested component in the target vehicle is obtained based on a preset hierarchical division strategy; wherein the hierarchical division strategy includes a perception layer, a decision layer and an execution layer, the secondary classification of the perception layer includes at least one of a radar sensor, a visual sensor and a map database, the secondary classification of the decision layer includes at least one of a computing platform, a chip and an algorithm database, and the secondary classification of the execution layer includes at least one of a braking system, a steering system, a drive system and a lighting system; Extract keywords based on the manufacturer information or product information of each of the tested devices to obtain vulnerability keywords corresponding to each of the tested devices; A vulnerability dictionary of the target vehicle is constructed based on vulnerability keywords corresponding to each of the tested components.

8. An electronic device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the vulnerability detection method according to any one of claims 1 to 7 can be implemented when the processor executes the program.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vulnerability detection method according to any one of claims 1 to 7 is executed.

10. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the vulnerability detection method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Bug detection tool generation method, device and equipment and readable storage medium

    CN111309311A

  • Vehicle data control method and device, equipment and storage medium

    CN113259401A

  • Vehicle machine system vulnerability detection method and device, electronic equipment and computer readable storage medium

    CN114238985A

  • Firmware detection method and device, equipment and storage medium

    CN115544515A

  • Vulnerability detection method and device

    CN115577367A

Cited By

  • Permeation test method, product, equipment and medium based on LLM and entity extraction

    CN118916879A