Vulnerability detection method and device, storage medium, electronic equipment and program product
By identifying and sorting the severity of vulnerabilities in the system to be tested, and detecting and repairing them according to the severity level, the risk exposure time caused by vulnerabilities is solved, and network security is improved.
Patent Information
- Application Number
- CN202410839915.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-12
AI Technical Summary
In the case of multiple vulnerabilities, checking and repairing serious vulnerabilities one by one may lead to the exposure of risks, and the failure to repair serious vulnerabilities in a timely manner, affecting network security.
By determining the current asset information of the system to be tested, identifying potential vulnerabilities and their severity scores, detecting and repairing them according to the severity of the vulnerability, ensuring rapid detection and repair of serious vulnerabilities and reducing the exposure time of risk.
Improve vulnerability detection efficiency and network security, ensure rapid discovery and repair of serious vulnerabilities, and reduce risk exposure time.
Smart Images

Figure CN118944908A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network security technology, and in particular to a vulnerability detection method, device, storage medium, electronic device and program product. Background Art
[0002] As the current network security situation becomes increasingly severe and attack and defense drills become normalized, the number of corporate network assets is also growing tremendously. The vulnerabilities in network assets are becoming more and more easily exploited by hackers, leading to network assets being invaded by hackers and user data being leaked. As a result, security vulnerabilities may cause losses to corporate and personal property and even reputation.
[0003] In related technologies, vulnerabilities are identified through asset management tools and then repaired. When there are many vulnerabilities, checking and repairing them one by one may cause serious vulnerabilities to remain unrepaired for a long time, which will increase the risk exposure time. Summary of the invention
[0004] The purpose of the present disclosure is to provide a vulnerability detection method, device, storage medium, electronic device and program product to solve the problems in the related art.
[0005] In order to achieve the above object, the present disclosure provides a vulnerability detection method, the vulnerability detection method comprising: Determine the current assets of the system under test and obtain asset information; Determine potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities, wherein the vulnerability scores represent the severity of the vulnerabilities; According to the size of the vulnerability score corresponding to the potential vulnerability, each potential vulnerability is detected in turn to obtain a vulnerability detection result.
[0006] Optionally, the asset information includes a CPE list, and the determining the current existing assets of the system to be tested to obtain the asset information includes: Perform asset detection on the system to be tested, determine the current assets of the system to be tested, and obtain a CPE list.
[0007] Optionally, the CPE list includes asset names and asset related information. The asset detection of the system to be tested is performed to determine the current existing assets of the system to be tested, and the CPE list is obtained, including: Perform asset detection on the system to be tested to determine the current assets of the system to be tested; Determine whether the asset name of the current asset is in the preset asset database; In a case where the asset name of the currently existing asset is in the preset asset database, obtaining asset-related information corresponding to the asset name of the currently existing asset in the preset asset database; When the asset name of the currently existing asset is not in the preset asset database, a new asset name and new asset related information are generated.
[0008] Optionally, detecting each potential vulnerability in turn according to the vulnerability score corresponding to the potential vulnerability to obtain a vulnerability detection result includes: According to the size of the vulnerability score corresponding to the potential vulnerability, it is determined in sequence whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data; In the case that the vulnerability verification code corresponding to the potential vulnerability exists in the preset vulnerability library data, the potential vulnerability is detected by using the vulnerability verification code corresponding to the potential vulnerability to obtain a vulnerability detection result.
[0009] Optionally, the vulnerability detection method further includes: If the detection result shows that the potential vulnerability is a vulnerability, setting the vulnerability state of the potential vulnerability to a first vulnerability state; When the detection result is that the potential vulnerability is not a vulnerability, setting the vulnerability state of the potential vulnerability to a second vulnerability state; If the vulnerability verification code corresponding to the potential vulnerability does not exist in the preset vulnerability database data, setting the vulnerability state of the potential vulnerability to a third vulnerability state; The potential vulnerability is repaired according to the vulnerability status of the potential vulnerability, wherein the urgency of repairing the first vulnerability status is greater than the urgency of repairing the second vulnerability status, and the urgency of repairing the second vulnerability status is greater than the urgency of repairing the third vulnerability status.
[0010] The present disclosure also provides a vulnerability detection device, the vulnerability detection device comprising: The first processing module is used to determine the current assets of the system under test and obtain asset information; A second processing module is used to determine potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities, wherein the vulnerability scores represent the severity of the vulnerabilities; The third processing module is used to detect each potential vulnerability in turn according to the vulnerability score corresponding to the potential vulnerability to obtain a vulnerability detection result.
[0011] Optionally, the asset information includes a CPE list, and the first processing module includes: The first sub-processing module is used to perform asset detection on the system to be tested, determine the current assets of the system to be tested, and obtain a CPE list.
[0012] Optionally, the CPE list includes asset names and asset-related information, and the first sub-processing module is specifically configured to: Perform asset detection on the system to be tested to determine the current assets of the system to be tested; Determine whether the asset name of the current asset is in the preset asset database; In a case where the asset name of the currently existing asset is in the preset asset database, obtaining asset-related information corresponding to the asset name of the currently existing asset in the preset asset database; When the asset name of the currently existing asset is not in the preset asset database, a new asset name and new asset related information are generated.
[0013] Optionally, the third processing module includes: The second sub-processing module is used to determine in sequence whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data according to the size of the vulnerability score corresponding to the potential vulnerability; The third sub-processing module is used to detect the potential vulnerability by using the vulnerability verification code corresponding to the potential vulnerability to obtain a vulnerability detection result when there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data.
[0014] Optionally, the vulnerability detection device further includes: A fourth processing module, configured to set the vulnerability state of the potential vulnerability to a first vulnerability state if the detection result indicates that the potential vulnerability is a vulnerability; A fifth processing module, configured to set the vulnerability state of the potential vulnerability to a second vulnerability state when the detection result is that the potential vulnerability is not a vulnerability; A sixth processing module, configured to set the vulnerability state of the potential vulnerability to a third vulnerability state if the vulnerability verification code corresponding to the potential vulnerability does not exist in the preset vulnerability library data; The seventh processing module is used to repair the potential vulnerability according to the vulnerability status of the potential vulnerability, wherein the urgency of repairing the first vulnerability status is greater than the urgency of repairing the second vulnerability status, and the urgency of repairing the second vulnerability status is greater than the urgency of repairing the third vulnerability status.
[0015] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned vulnerability detection methods are implemented.
[0016] The present disclosure also provides an electronic device, including: a memory having a computer program stored thereon; A processor is used to execute the computer program in the memory to implement any step of the above-mentioned vulnerability detection method.
[0017] The embodiments of the present disclosure also provide a computer program product, including a computer program, which implements any step of the above-mentioned vulnerability detection method when executed by a processor.
[0018] Through the above technical solution, the current assets of the system to be tested are determined, the asset information is obtained, and then the potential vulnerabilities in the asset information and the vulnerability scores corresponding to the potential vulnerabilities that represent the severity of the vulnerabilities are determined. Finally, according to the size of the vulnerability scores corresponding to the potential vulnerabilities, each potential vulnerability is detected in turn to obtain the vulnerability detection results. Potential vulnerabilities with high vulnerability severity are detected first, and potential vulnerabilities with low vulnerability severity are detected later. In this way, vulnerability detection is performed according to the severity of the vulnerabilities, so that serious vulnerabilities can be quickly detected and repaired, reducing the risk exposure time and improving the overall security of the system to be tested.
[0019] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings: Figure 1 The figure is a flow chart of a vulnerability detection method according to an exemplary embodiment.
[0021] Figure 2 is a flowchart of sub-steps of step S1 according to an exemplary embodiment.
[0022] Figure 3 is a flowchart of sub-steps of step S3 according to an exemplary embodiment.
[0023] Figure 4 The figure is a flow chart showing another vulnerability detection method according to an exemplary embodiment.
[0024] Figure 5 The figure is a block diagram of a vulnerability detection device according to an exemplary embodiment.
[0025] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment.
[0026] Figure 7 is a block diagram of another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0027] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0028] In the description below, words such as “first” and “second” are only used for the purpose of distinguishing the description and should not be understood as indicating or implying relative importance or order.
[0029] As the current network security situation becomes increasingly severe and attack and defense drills become normalized, the number of corporate network assets is also growing tremendously. The vulnerabilities in network assets are becoming more and more easily exploited by hackers, leading to network assets being invaded by hackers and user data being leaked. As a result, security vulnerabilities may cause losses to corporate and personal property and even reputation.
[0030] In related technologies, vulnerabilities are identified through asset management tools and then repaired. When there are many vulnerabilities, checking and repairing them one by one may cause serious vulnerabilities to remain unrepaired for a long time, which will increase the risk exposure time.
[0031] In order to solve the above technical problems, the current assets of the system to be tested are determined to obtain asset information, and then the potential vulnerabilities in the asset information and the vulnerability scores corresponding to the potential vulnerabilities that represent the severity of the vulnerabilities are determined. Finally, each potential vulnerability is detected in turn according to the size of the vulnerability score corresponding to the potential vulnerability to obtain the vulnerability detection result. Potential vulnerabilities with high vulnerability severity are detected first, and potential vulnerabilities with low vulnerability severity are detected later. In this way, vulnerability detection is performed according to the severity of the vulnerability, so that serious vulnerabilities can be quickly detected and repaired, reducing the risk exposure time and improving the overall security of the system to be tested.
[0032] Figure 1 is a flow chart of a vulnerability detection method according to an exemplary embodiment. Figure 1 The vulnerability detection method can be applied to electronic devices, and the vulnerability detection method includes steps S1 to S3.
[0033] Step S1, determine the current assets of the system to be tested and obtain asset information.
[0034] Currently existing assets may include hardware assets and software assets, and asset information may include asset name, asset model of the hardware asset, version number of the software asset, supplier of the hardware asset, etc.
[0035] The asset information may include a Common Platform Enumeration (CPE) list. CPE is a method for naming software applications, operating systems, and hardware in a standardized manner, providing a unified identification specification. That is, a specific version of software, operating system, etc. can be uniquely identified by CPE. Step S1 may include: Perform asset detection on the system to be tested, determine the current assets of the system to be tested, and obtain a CPE list.
[0036] The CPE list may include the asset name and asset-related information. The asset-related information may be other information in the asset information except the asset name, such as the asset model of the hardware asset, the version number of the software asset, the supplier of the hardware asset, etc.
[0037] See also Figure 2 , performing asset detection on the system to be tested, determining the current existing assets of the system to be tested, and obtaining a CPE list may include steps S11 to S14.
[0038] Step S11: perform asset detection on the system to be tested to determine the current assets of the system to be tested.
[0039] Step S12, determining whether the asset name of the current asset is in the preset asset database.
[0040] If so, it indicates that the asset name of the current asset is in the preset asset database, and step S13 is executed. If not, it indicates that the asset name of the current asset is not in the preset asset database, and step S14 is executed.
[0041] Step S13, obtaining asset-related information corresponding to the asset name of the current asset in the preset asset database.
[0042] Step S14, generating a new asset name and new asset related information.
[0043] For example, the preset asset database is a public CPE list. Information such as open ports, self-starting items, installed applications, startup services, system information, and scheduled tasks can be collected on the user terminal or server through agents, active version scanning, and the like.
[0044] In Windows, most systems are installed through the Windows Installer (MSI) configuration manager. This installation method will register the corresponding key-value pairs in the registry. You can query the registry HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion \Installer and Unstaller to obtain the information of MSI installed applications in WIndows; query the patch information installed on the host through wmi, systeminfo, and powershell.
[0045] In Linux system, the software installed in the current system is mainly found through package management tools. However, some software is installed through source code, and the package management tool does not record its installation log. This embodiment proposes two methods for finding software installed through source code compilation: Source code installation usually installs binary files in the / usr / local / bin or / usr / bin directory. You can compare these files with the files in the same directory of an initialization system to find the extra files. Then compare these files with the software installed by the package management tool. You can get the software that is not installed by the package management tool but actually exists. These files are most likely installed through source code.
[0046] There are usually two files in the source directory: README and INSTALL. You can search the entire disk to see if there are directories containing both files, list them and make a secondary judgment.
[0047] Taking CPE2.3 as an example, its format is: cpe:2.3:a:flex_project:flex:2.5.37:*:*: . The collected product name and version number are used to query the public CPE list. If it exists, the corresponding supplier, product name, release version and other information are generated. If it does not exist, a new CPE is generated, including the product name and version number, to indicate that the current server or terminal has installed this application.
[0048] Step S2, determining potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities.
[0049] The vulnerability score represents the severity of the vulnerability. A larger vulnerability score represents a higher severity of the vulnerability, and a smaller vulnerability score represents a lower severity of the vulnerability.
[0050] Determining potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities may include: according to the CPE list generated in step S1, providing CPE fields through the NVD vulnerability library, identifying potential vulnerabilities existing in the CPE, and obtaining vulnerability scores corresponding to the potential vulnerabilities through the Common Vulnerability Scoring System (CVSS).
[0051] In other embodiments, the CVSS scoring system may be supplemented by a Common Misuse Scoring System (CMSS), a Common Configuration Scoring System (CCSS), or a Common Weakness Scoring System (CWSS).
[0052] Step S3, detecting each potential vulnerability in turn according to the vulnerability score corresponding to the potential vulnerability to obtain a vulnerability detection result.
[0053] See also Figure 3 , step S3 may include step S31 and step S32.
[0054] Step S31, according to the size of the vulnerability score corresponding to the potential vulnerability, it is determined in sequence whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data.
[0055] The preset vulnerability library includes a vulnerability identifier and a vulnerability verification code corresponding to the vulnerability identifier. The vulnerability identifier can be a vulnerability name or a vulnerability number, and the vulnerability name and the vulnerability number correspond one to one.
[0056] All potential vulnerabilities are sorted from large to small according to their corresponding vulnerability scores, and then it is determined in turn whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data.
[0057] If the preset vulnerability library contains a vulnerability name identical to the potential vulnerability, or a vulnerability identifier corresponding to the potential vulnerability, it indicates that the preset vulnerability library data contains a vulnerability verification code corresponding to the potential vulnerability; otherwise, it indicates that the preset vulnerability library data does not contain a vulnerability verification code corresponding to the potential vulnerability.
[0058] Step S32: when there is a vulnerability verification code corresponding to a potential vulnerability in the preset vulnerability database data, the potential vulnerability is detected by using the vulnerability verification code corresponding to the potential vulnerability to obtain a vulnerability detection result.
[0059] The vulnerability detection results include two situations: potential vulnerabilities are vulnerabilities, and potential vulnerabilities are not vulnerabilities.
[0060] Figure 4 is a flow chart of another vulnerability detection method according to an exemplary embodiment. Figure 4 The vulnerability detection method can be applied to electronic devices, and the vulnerability detection method includes steps S201 to S208.
[0061] Step S201, determine the current existing assets of the system to be tested and obtain asset information.
[0062] Step S202: determining potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities.
[0063] Among them, the vulnerability score represents the severity of the vulnerability.
[0064] Step S203, based on the vulnerability scores corresponding to the potential vulnerabilities, it is determined in sequence whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data.
[0065] If yes, it indicates that there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data, and step S204 is executed; if no, it indicates that there is no vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data, and step 207 is executed.
[0066] Step S204: Detect the potential vulnerability using the vulnerability verification code corresponding to the potential vulnerability to obtain a vulnerability detection result.
[0067] Step S205: When the detection result shows that the potential vulnerability is a vulnerability, the vulnerability state of the potential vulnerability is set to a first vulnerability state.
[0068] Step S206: When the detection result shows that the potential vulnerability is not a vulnerability, the vulnerability state of the potential vulnerability is set to a second vulnerability state.
[0069] Step S207: setting the vulnerability state of the potential vulnerability to a third vulnerability state.
[0070] Step S208: repairing the potential vulnerability according to the vulnerability status of the potential vulnerability.
[0071] The urgency of repairing the first vulnerability status is greater than the urgency of repairing the second vulnerability status, and the urgency of repairing the second vulnerability status is greater than the urgency of repairing the third vulnerability status.
[0072] For example, the first vulnerability status may be “urgent”, the second vulnerability status may be “important”, and the third vulnerability status may be “normal”.
[0073] It should be noted that the detailed description of step S201 , step S202 , step S203 and step S204 may refer to step S1 , step S2 , step S31 and step S32 , respectively, and will not be repeated in this embodiment.
[0074] The above technical solution can achieve the following effects: 1. High vulnerability discovery efficiency The traditional vulnerability scanning method is slow to find vulnerabilities and has a high false positive rate. This is mainly reflected in the fact that concurrent scanning of multiple hosts and multiple ports takes up a lot of resources, and most of the time, the accurate version number cannot be collected, and thus the vulnerability cannot be accurately identified. By actively collecting system information on the host, without relying on network scanning, and querying / generating CPE resources in the CPE dictionary based on the existing product name and version number, this method can accurately identify the vulnerability number without the need for a large number of scans.
[0075] 2. Comprehensive asset collection When traditional equipment cannot fully cover assets, asset information needs to be entered manually. However, due to the lack of understanding of assets and vulnerability scope or unclear understanding of the assets of their own business systems, assets may be missed. For example, if the business system automatically introduces the log4j2 component (a component used by a java application to record log functions), and the business personnel do not pay attention to this automatically introduced component, it may lead to omissions, which in turn leads to the failure to identify high-risk vulnerabilities in log4j, thus affecting the security of the business system. Collecting asset information in CPE format can avoid this situation. By globally searching the jar packages existing on the host, querying / building the corresponding CPE information to match vulnerabilities.
[0076] 3. Standardize asset names and classifications, and clarify vulnerability handling priorities When the format is "cpe:2.3:a:apache:log4j:1.1.3:*:*:*:*:*:*:*:*", it means that the application name is log4j, the manufacturer is apache, and the version number is 1.1.3. By matching the collected application names in the registered CPE dictionary, data such as the manufacturer and application type can be obtained. According to the system's built-in rules, the vulnerability handling level is divided into "urgent", "important", and "general". Prioritizing the handling of "urgent" vulnerabilities can prevent direct intrusion into the business system.
[0077] Based on the same inventive concept, in order to implement the above method embodiment, this embodiment provides a vulnerability detection device, such as Figure 6 As shown, Figure 6 is a block diagram of a vulnerability detection device according to an exemplary embodiment. The vulnerability detection device 600 may include: The first processing module 601 is used to determine the current assets of the system under test and obtain asset information; The second processing module 602 is used to determine potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities, wherein the vulnerability scores represent the severity of the vulnerabilities; The third processing module 603 is used to detect each potential vulnerability in turn according to the vulnerability score corresponding to the potential vulnerability to obtain a vulnerability detection result.
[0078] Optionally, the asset information includes a CPE list, and the first processing module 601 may include: The first sub-processing module is used to perform asset detection on the system to be tested, determine the current assets of the system to be tested, and obtain a CPE list.
[0079] Optionally, the CPE list includes an asset name and asset-related information, and the first sub-processing module is specifically configured to: Perform asset detection on the system to be tested to determine the current assets of the system to be tested; Determine whether the asset name of the current asset is in the preset asset database; In the case where the asset name of the current existing asset is in the preset asset database, obtaining asset-related information corresponding to the asset name of the current existing asset in the preset asset database; When the asset name of the current asset is not in the preset asset database, a new asset name and new asset related information are generated.
[0080] Optionally, the third processing module 603 may include: The second sub-processing module is used to determine whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data according to the size of the vulnerability score corresponding to the potential vulnerability; The third sub-processing module is used to detect the potential vulnerability by using the vulnerability verification code corresponding to the potential vulnerability to obtain a vulnerability detection result when there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data.
[0081] Optionally, the vulnerability detection device 600 may further include: A fourth processing module, configured to set the vulnerability state of the potential vulnerability to a first vulnerability state when the detection result shows that the potential vulnerability is a vulnerability; A fifth processing module, configured to set the vulnerability state of the potential vulnerability to a second vulnerability state when the detection result is that the potential vulnerability is not a vulnerability; A sixth processing module, configured to set the vulnerability state of the potential vulnerability to a third vulnerability state when there is no vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data; The seventh processing module is used to repair the potential vulnerability according to the vulnerability status of the potential vulnerability, wherein the repair urgency of the first vulnerability status is greater than the repair urgency of the second vulnerability status, and the repair urgency of the second vulnerability status is greater than the repair urgency of the third vulnerability status.
[0082] Regarding the vulnerability detection device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the vulnerability detection method, and will not be elaborated here.
[0083] Figure 6 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Figure 6 As shown, the electronic device 700 may include: a processor 701 , a memory 702 . The electronic device 700 may also include one or more of a multimedia component 703 , an input / output (I / O) interface 704 , and a communication component 705 .
[0084] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned vulnerability detection method. The memory 702 is used to store various types of data to support the operation of the electronic device 700. For example, these data may include instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0085] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned vulnerability detection method.
[0086] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned vulnerability detection method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned vulnerability detection method.
[0087] Figure 7 1 is a block diagram of another electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Figure 7 The electronic device 1900 includes a processor 1922, which may be one or more, and a memory 1932 for storing a computer program executable by the processor 1922. The computer program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processor 1922 may be configured to execute the computer program to perform the above-mentioned vulnerability detection method.
[0088] In addition, the electronic device 1900 may further include a power supply component 1926 and a communication component 1950, wherein the power supply component 1926 may be configured to perform power management of the electronic device 1900, and the communication component 1950 may be configured to implement communication of the electronic device 1900, for example, wired or wireless communication. In addition, the electronic device 1900 may further include an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932.
[0089] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned vulnerability detection method are implemented. For example, the non-temporary computer-readable storage medium can be the above-mentioned memory 1932 including program instructions, and the above-mentioned program instructions can be executed by the processor 1922 of the electronic device 1900 to complete the above-mentioned vulnerability detection method.
[0090] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above vulnerability detection method when executed by the programmable device.
[0091] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0092] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0093] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A vulnerability detection method, characterized in that: The vulnerability detection method comprises: Determine the current assets of the system under test and obtain asset information; Determine potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities, wherein the vulnerability scores represent the severity of the vulnerabilities; According to the size of the vulnerability score corresponding to the potential vulnerability, each potential vulnerability is detected in turn to obtain a vulnerability detection result.
2. The vulnerability detection method according to claim 1, characterized in that: The asset information includes a CPE list, and the determining of the current assets of the system to be tested to obtain the asset information includes: Perform asset detection on the system to be tested, determine the current assets of the system to be tested, and obtain a CPE list.
3. The vulnerability detection method according to claim 2, characterized in that: The CPE list includes asset names and asset related information. The asset detection of the system to be tested is performed to determine the current assets of the system to be tested, and the CPE list is obtained, including: Perform asset detection on the system to be tested to determine the current assets of the system to be tested; Determine whether the asset name of the current asset is in the preset asset database; In a case where the asset name of the currently existing asset is in the preset asset database, obtaining asset related information corresponding to the asset name of the currently existing asset in the preset asset database; When the asset name of the currently existing asset is not in the preset asset database, a new asset name and new asset related information are generated.
4. The vulnerability detection method according to claim 1, characterized in that: According to the vulnerability score corresponding to the potential vulnerability, each potential vulnerability is detected in turn to obtain a vulnerability detection result, including: According to the size of the vulnerability score corresponding to the potential vulnerability, it is determined in sequence whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data; In the case that the vulnerability verification code corresponding to the potential vulnerability exists in the preset vulnerability library data, the potential vulnerability is detected by using the vulnerability verification code corresponding to the potential vulnerability to obtain a vulnerability detection result.
5. The vulnerability detection method according to claim 4, characterized in that: The vulnerability detection method further includes: If the detection result shows that the potential vulnerability is a vulnerability, setting the vulnerability state of the potential vulnerability to a first vulnerability state; When the detection result is that the potential vulnerability is not a vulnerability, setting the vulnerability state of the potential vulnerability to a second vulnerability state; If the vulnerability verification code corresponding to the potential vulnerability does not exist in the preset vulnerability database data, setting the vulnerability state of the potential vulnerability to a third vulnerability state; The potential vulnerability is repaired according to the vulnerability status of the potential vulnerability, wherein the urgency of repairing the first vulnerability status is greater than the urgency of repairing the second vulnerability status, and the urgency of repairing the second vulnerability status is greater than the urgency of repairing the third vulnerability status.
6. A vulnerability detection device, characterized in that: The vulnerability detection device comprises: The first processing module is used to determine the current assets of the system under test and obtain asset information; A second processing module is used to determine potential vulnerabilities in the asset information and vulnerability scores corresponding to the potential vulnerabilities, wherein the vulnerability scores represent the severity of the vulnerabilities; The third processing module is used to detect each potential vulnerability in turn according to the vulnerability score corresponding to the potential vulnerability to obtain a vulnerability detection result.
7. The vulnerability detection device according to claim 6, characterized in that: The asset information includes a CPE list, and the first processing module includes: The first sub-processing module is used to perform asset detection on the system to be tested, determine the current assets of the system to be tested, and obtain a CPE list.
8. The vulnerability detection device according to claim 7, characterized in that: The CPE list includes asset names and asset related information, and the first sub-processing module is specifically used to: Perform asset detection on the system to be tested to determine the current assets of the system to be tested; Determine whether the asset name of the current asset is in the preset asset database; In a case where the asset name of the currently existing asset is in the preset asset database, obtaining asset related information corresponding to the asset name of the currently existing asset in the preset asset database; When the asset name of the currently existing asset is not in the preset asset database, a new asset name and new asset related information are generated.
9. The vulnerability detection device according to claim 6, characterized in that: The third processing module comprises: The second sub-processing module is used to determine in sequence whether there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data according to the size of the vulnerability score corresponding to the potential vulnerability; The third sub-processing module is used to detect the potential vulnerability by using the vulnerability verification code corresponding to the potential vulnerability to obtain a vulnerability detection result when there is a vulnerability verification code corresponding to the potential vulnerability in the preset vulnerability library data.
10. The vulnerability detection device according to claim 9, characterized in that: The vulnerability detection device also includes: A fourth processing module, configured to set the vulnerability state of the potential vulnerability to a first vulnerability state if the detection result indicates that the potential vulnerability is a vulnerability; A fifth processing module, configured to set the vulnerability state of the potential vulnerability to a second vulnerability state when the detection result is that the potential vulnerability is not a vulnerability; A sixth processing module, configured to set the vulnerability state of the potential vulnerability to a third vulnerability state if the vulnerability verification code corresponding to the potential vulnerability does not exist in the preset vulnerability library data; The seventh processing module is used to repair the potential vulnerability according to the vulnerability status of the potential vulnerability, wherein the urgency of repairing the first vulnerability status is greater than the urgency of repairing the second vulnerability status, and the urgency of repairing the second vulnerability status is greater than the urgency of repairing the third vulnerability status.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the vulnerability detection method described in any one of claims 1 to 5 are implemented.
12. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the vulnerability detection method according to any one of claims 1 to 5.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the vulnerability detection method described in any one of claims 1 to 5 are implemented.
