Asset risk detection method, medium, device and computing equipment

By collecting the port information of cloud native application assets and using the vulnerability information database to conduct automatic risk testing, the problem of low efficiency in risk detection of cloud native application assets in the existing technology is solved, and efficient and comprehensive one-time risk detection is achieved.

CN116112253BActive Publication Date: 2024-10-15NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310093075.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-30
Publication Date
2024-10-15
Estimated Expiration
2043-01-30

AI Technical Summary

Technical Problem

In the existing technology, the cloud native application asset risk detection efficiency based on manual means is low, and there are omissions and efficiency problems in the face of various risk aspects.

Method used

By collecting port information of cloud-native application assets and conducting automatic risk testing on the assets under test based on the preset vulnerability information database, manual operations are reduced and risk detection efficiency is improved.

Benefits of technology

It achieves efficient risk detection of cloud native application assets, reduces manual operations, improves risk detection efficiency, and ensures comprehensive detection of multiple risk aspects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112253B_ABST
    Figure CN116112253B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provide an asset risk detection method, medium, device and computing equipment. The asset risk detection method includes: in response to the asset to be tested being a cloud native application asset, the port information corresponding to the asset to be tested is collected, and in response to the obtained port information, the risk test is performed on the asset to be tested according to the vulnerability information library and port information corresponding to the preset cloud native application to determine the risk status of the asset to be tested, and the port information of the asset to be tested is collected. Automatic risk detection of the asset to be tested is achieved according to the vulnerability information library corresponding to the preset cloud native application by implementing the port information of the asset to be tested, thereby reducing manual operations when risk investigation of the asset to be tested and improving the efficiency of risk detection of the asset to be tested. The assets to be tested include cloud native application assets and non-cloud native application assets. The method can realize risk detection of cloud native application assets and improve the efficiency of risk detection of cloud native application assets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of cloud native security technology. More specifically, the embodiments of the present disclosure relate to asset risk detection methods, media, devices and computing equipment. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] With the development of cloud-native technology, software products and tools developed based on cloud-native technology are gradually being used in enterprises.

[0004] As the business of enterprises increases, the number of assets based on Kubernetes cloud-native applications is also increasing. Assets can be hardware devices such as servers. By installing cloud-native applications, software products deployed on servers can be better cloud-based. Accordingly, enterprises will also have concerns about the security of cloud-native application assets. Enterprises will arrange professionals to regularly conduct penetration tests, security assessments, and risk investigations on cloud-native application assets. However, due to the installation of cloud-native applications, assets are exposed to many types of risks, and the above-mentioned risk detection method based on manual means has the problem of low efficiency. Summary of the invention

[0005] The present disclosure provides an asset risk detection method, medium, device and computing equipment to improve the detection efficiency of cloud native application assets.

[0006] In a first aspect of the embodiments of the present disclosure, a method for detecting asset risks is provided, the method comprising:

[0007] In response to the asset to be tested being a cloud native application asset, collecting port information corresponding to the asset to be tested; the cloud native application asset represents an asset equipped with a preset cloud native application;

[0008] In response to the obtained port information, a risk test is performed on the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application and the port information to determine the risk status of the asset to be tested.

[0009] In a second aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the method provided in the first aspect is implemented.

[0010] In a third aspect of the embodiments of the present disclosure, there is provided an asset risk detection device, the device comprising:

[0011] The collection module is used to collect port information corresponding to the asset under test in response to the asset under test being a cloud native application asset; the cloud native application asset represents an asset equipped with a preset cloud native application.

[0012] The testing module is used to respond to the obtained port information and perform a risk test on the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application and the port information to determine the risk status of the asset to be tested.

[0013] In a fourth aspect of the embodiments of the present disclosure, there is provided a computing device, comprising: at least one processor and a memory;

[0014] The memory stores computer-executable instructions;

[0015] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the asset risk detection method provided in the first aspect.

[0016] In an embodiment of the present disclosure, an asset risk detection method, medium, apparatus and computing device are provided. The method collects port information corresponding to the asset to be tested in response to the asset to be tested being a cloud native application asset, where the cloud native application asset represents an asset equipped with a preset cloud native application; in response to the obtained port information, a risk test is performed on the asset to be tested according to a vulnerability information library and port information corresponding to the preset cloud native application to determine the risk status of the asset to be tested. By collecting the port information of the asset to be tested, automatic risk detection of the asset to be tested is implemented according to the vulnerability information library corresponding to the preset cloud native application, thereby reducing manual operations during risk investigation of the asset to be tested, thereby improving the efficiency of risk detection of the asset to be tested. The asset to be tested includes cloud native application assets and non-cloud native application assets. The method can realize risk detection of cloud native application assets and improve the efficiency of risk detection of cloud native application assets. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:

[0018] Figure 1 The following schematically shows an application scenario diagram provided according to an embodiment of the present disclosure;

[0019] Figure 2 The following schematically shows a flow chart of an asset risk detection method provided according to an embodiment of the present disclosure;

[0020] Figure 3The following schematically shows a flow chart of an asset risk detection method provided according to another embodiment of the present disclosure;

[0021] Figure 4 A schematic diagram of feature detection is schematically shown;

[0022] Figure 5 A schematic diagram schematically shows a risk test for unauthorized use of the kubectl 10250 service;

[0023] Figure 6 The following schematically shows a flow chart of an asset risk detection method provided according to another embodiment of the present disclosure;

[0024] Figure 7 A schematic diagram of tactical categories in ATT&CK provided according to an embodiment of the present disclosure is schematically shown;

[0025] Figure 8 The structure diagram of a computer-readable storage medium provided according to an embodiment of the present disclosure is schematically shown;

[0026] Fig. 9 The structure diagram of the asset risk detection device provided according to an embodiment of the present disclosure is schematically shown;

[0027] Fig.10 The schematic diagram shows a structure of a computing device provided according to an embodiment of the present disclosure.

[0028] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0029] The principles and spirit of the present disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0030] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0031] According to an embodiment of the present disclosure, an asset risk detection method, medium, apparatus and computing device are proposed.

[0032] In this article, it should be understood that the terms involved are only used to facilitate understanding and do not represent any limitation on the meaning. In addition, any number of elements in the drawings is used for example rather than limitation, and any naming is only used to distinguish and does not have any limiting meaning.

[0033] In addition, the data involved in the present disclosure may be data authorized by the user or fully authorized by all parties, and the collection, dissemination, and use of the data shall comply with the requirements of relevant national laws and regulations. The implementation methods / examples of the present disclosure may be combined with each other.

[0034] The following is a description of the terms used in this disclosure:

[0035] Cloud-native application assets: refers to servers installed with cloud-native applications, on which software products can be deployed, allowing software products to be developed based on cloud-native applications.

[0036] kubernetes: abbreviated as K8s, which is an abbreviation formed by replacing the eight characters "ubernete" in the middle of the name with 8. It is an open source containerized application for managing multiple hosts in a cloud platform. Kubernetes makes the deployment of containerized applications simple and efficient.

[0037] ATT&CK: (Adversarial Tactics, Techniques and Common Knowledge), which is an attack behavior knowledge base and model. It is a model that describes the various stages of an attack and the attack techniques used in each stage from the attacker's perspective. It is an authoritative and professional risk assessment tool. SUMMARY OF THE INVENTION

[0039] The inventors of the present invention have found that with the maturity and implementation of cloud-native applications, the cloud-native concept has also been widely recognized, and software products and tools developed based on cloud-native applications have gradually begun to be used in the daily life of enterprises.

[0040] As the business of enterprises increases, cloud-native application assets are increasing. Enterprises are increasingly concerned about the security of cloud-native application assets and need to determine the risks faced by cloud-native application assets. However, in related technologies, risk detection of cloud-native applications is mainly carried out manually, which consumes a lot of manpower and material resources. In addition, in the face of the many types of risk aspects corresponding to cloud-native applications, the manual detection method may miss a certain risk aspect and have low efficiency.

[0041] In this solution, when it is determined that the asset to be tested is a cloud-native application asset, the port information of the asset to be tested is collected. The port information represents the openness of the application service in the port. Therefore, by obtaining the port information, it can be determined whether to perform risk testing on the application service in the port, and the risk status of the asset to be tested can be obtained. The whole process requires less manual operation, and the risk status of the asset to be tested can be automatically determined, which has the advantage of high efficiency.

[0042] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.

[0043] Application Scenario Overview

[0044] First reference Figure 1 As shown, Figure 1 A schematic diagram of an application scenario provided according to an embodiment of the present disclosure is schematically shown, and the devices involved in the application scenario include: multiple assets to be tested, which may or may not be installed with cloud native applications, that is, the assets to be tested include cloud native application assets and non-cloud native application assets. When risk detection is performed on the assets to be tested, the assets to be tested can be screened to determine the cloud native application assets, and port information for the cloud native application assets can be obtained, so as to implement risk detection of the assets to be tested based on the port information and obtain the risk status of the cloud native application assets.

[0045] Exemplary Methods

[0046] Combine the following Figure 1 For application scenarios, refer to Figure 2-Figure 7 To describe the method for asset risk detection according to an exemplary embodiment of the present disclosure. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present disclosure, and the embodiments of the present disclosure are not limited in this regard. On the contrary, the embodiments of the present disclosure can be applied to any applicable scenario.

[0047] refer to Figure 2 , Figure 2 The following schematically shows a flow chart of an asset risk detection method provided according to an embodiment of the present disclosure. Figure 2 As shown, the method includes:

[0048] Step S201: In response to the asset to be tested being a cloud-native application asset, port information corresponding to the asset to be tested is collected.

[0049] Optionally, the cloud native application asset represents an asset with a preset cloud native application installed. The cloud native application may be a Kubernetes cloud native application or other cloud native applications. In practice, it may be determined whether the preset cloud native application is a Kubernetes cloud native application or other cloud native application based on risk detection requirements.

[0050] Assets can represent servers. An enterprise may have multiple servers based on business needs. Depending on the different businesses implemented by the software products in the server, or whether to go to the cloud, you can choose to install cloud native applications on the server, or not. Assets installed with cloud native applications are cloud native application assets. For cloud native application assets, because cloud native applications are installed, the assets bring certain security risks related to cloud native applications.

[0051] In order to test the risks faced by cloud-native application assets, you can first determine whether the asset to be tested is a cloud-native application asset. When the asset to be tested is a cloud-native application asset, you can perform subsequent testing processes.

[0052] When the asset to be tested is a cloud-native application asset, the port information of the cloud-native application asset can be collected. The port information indicates the ports opened by the asset and the application services opened in the open ports. Based on the port information, it can be determined whether to perform risk testing on the port.

[0053] Step S202: In response to the obtained port information, a risk test is performed on the asset to be tested according to the vulnerability information library and port information corresponding to the preset cloud native application to determine the risk status of the asset to be tested.

[0054] For the preset cloud native application, a vulnerability information library corresponding to the preset cloud native application can be determined. The vulnerability information library contains vulnerability information related to the preset cloud native application. Therefore, based on the vulnerability information library, risk tests related to the preset cloud native application can be performed on the assets under test, thereby achieving risk testing for each vulnerability in the vulnerability information library to avoid omissions.

[0055] Specifically, after obtaining the port information, the risk test can be performed on the asset to be tested based on the custom tool collection, that is, the risk detection process is completed based on the pre-set program. When the risk detection is completed, the risk status of the corresponding asset to be tested can be obtained. The risk status indicates the actual vulnerabilities of the asset to be tested that are related to the preset cloud native application.

[0056] When the preset cloud native application is a Kubernetes cloud native application, for each Kubernetes cloud native vulnerability that may exist in the asset to be tested, set up any program that can detect the vulnerability of the Kubernetes cloud native application, and use the program as a tool to implement risk detection based on the tool to determine whether the asset to be tested has the cloud native vulnerability.

[0057] Among them, cloud-native application assets will face a variety of vulnerabilities, and risk detection of all vulnerabilities can be achieved based on various custom tools. Among them, each tool can be displayed on the interface to prevent testers from missing a vulnerability that needs to be tested.

[0058] Based on the collection of custom tools, automatic testing of the assets to be tested can be achieved without manual testing, which reduces the consumption of manpower and material resources and improves testing efficiency.

[0059] In an embodiment of the present disclosure, in response to the asset to be tested being a cloud-native application asset, port information corresponding to the asset to be tested is collected; the cloud-native application asset represents an asset equipped with a preset cloud-native application, and in response to the obtained port information, a risk test is performed on the asset to be tested according to the vulnerability information library and port information corresponding to the preset cloud-native application to determine the risk status of the asset to be tested. By collecting the port information and the vulnerability information library corresponding to the preset cloud-native application, risk detection of the asset to be tested is automatically implemented, thereby reducing manual operations during risk investigation of cloud-native application assets and improving the efficiency of determining the risk status of cloud-native application assets.

[0060] Figure 3 A schematic diagram of a flow chart of an asset risk detection method provided according to another embodiment of the present disclosure is shown as follows: Figure 3 As shown, the method includes:

[0061] Step S301: Obtain the network address information of the asset to be tested.

[0062] After the asset to be tested is determined, the network address information of the asset to be tested can be obtained. The network address information can be in the form of IPV4 (Internet Protocol version 4) or IPV6 (Internet Protocol Version 6).

[0063] The asset to be tested may be configured first, for example, the information that can be collected may be configured, and the information that can be collected may at least include network address information, so as to perform feature detection on the asset to be tested based on the network address information. In addition, the information that can be collected may also include other information, such as operating system, network segment information, and service category, so as to generate a subsequent risk assessment report based on the above information.

[0064] In order to distinguish and detect different assets to be tested, network address information can be obtained, and the network address information of the assets to be tested is unique. For example, there are 100 assets to be tested, and the network address information of each asset to be tested can be obtained, and the obtained network address information is different, so as to facilitate subsequent feature detection of each asset to be tested.

[0065] Step S302: Perform feature detection on the asset to be tested based on the network address information to determine whether the asset to be tested is a cloud-native application asset according to the feature detection result.

[0066] After obtaining the network address information of the asset to be tested, feature detection can be performed on the asset to be tested to obtain feature detection results. Feature detection refers to detecting the preset port of the corresponding asset to be tested (server) based on the network address information and obtaining feature detection results. Among them, for cloud-native application assets and non-cloud-native application assets, the corresponding feature detection results are different. Therefore, based on the feature detection results, it can be determined whether the asset to be tested is a cloud-native application asset.

[0067] Exemplarily, for the asset 1 to be tested, the network address information of the asset 1 to be tested is obtained, and the feature detection result of the asset 1 to be tested is obtained based on the network address information.

[0068] Based on the network address information of the asset to be tested, feature detection of the asset to be tested can be easily and conveniently achieved.

[0069] In an exemplary embodiment of the present disclosure, the step of performing feature detection on the asset to be detected based on network address information includes:

[0070] According to the network address information, the preset port of the corresponding asset to be tested is detected to obtain the characteristic detection result.

[0071] After the network address information is obtained, different assets to be tested can be determined based on the network address information. Based on the network address information, a preset port of the asset to be tested can be accessed to obtain a feature detection result.

[0072] Among them, when the cloud native application is Kubernetes, there is a fact for the Kubernetes cloud native application assets: the preset port of the Kubernetes cloud native application assets is the / version port of the external authentication API Server service, and the relevant information of Kubernetes can be obtained by detecting the port; exemplarily, the preset port can be port 6443.

[0073] Based on the above facts, when determining whether the asset to be tested is a Kubernetes cloud native application asset, a custom tool can be used to perform feature detection on the 6443 port of the asset to be tested, and determine whether the asset to be tested is a Kubernetes cloud native application asset based on the feature detection results. The custom tool here refers to any program that can obtain feature detection results from the 6443 port and determine whether the 6443 port is the / version port based on the feature detection results.

[0074] The feature detection results obtained include the following three situations: obtaining preset information, not obtaining any information, and obtaining information but not including preset information. The specific process of judging whether the 6443 port is the / version port based on the feature detection results is as follows: when the preset information is obtained, it can be determined that the 6443 port is an open port and the asset to be tested is a Kubernetes cloud native application asset; when no information is obtained, or the information obtained is not the preset information, it can be determined that the asset to be tested is not a Kubernetes cloud native application asset.

[0075] Figure 4 A schematic diagram of feature detection is schematically shown, such as Figure 4 As shown, when the user is performing feature detection, the user can enter the domain name or network address information of the asset to be tested on the display interface and select the "Feature Detection" option. When the user clicks the execution button, the above process of obtaining the feature detection results can be executed and the feature detection results can be displayed.

[0076] By detecting the preset ports of the asset to be tested, it is possible to accurately obtain feature detection results for determining whether the asset to be tested is a cloud-native application asset, thereby improving the accuracy of determining whether the asset to be tested is a cloud-native application asset.

[0077] In an exemplary embodiment of the present disclosure, the step of determining whether the asset to be tested is a cloud-native application asset according to the feature detection result includes:

[0078] In response to the feature detection result including at least version information of a preset cloud native application, it is determined that the asset to be tested is a cloud native application asset.

[0079] When the preset cloud native application is a Kubernetes cloud native application, when the feature detection result is obtained, it can be determined whether the feature detection result includes the version information of Kubernetes. When the version information is included, it indicates that the asset to be tested is a cloud native application asset.

[0080] Exemplarily, when the domain name information of the asset to be tested is kubernetes-test.com, a customized tool collection is used to perform feature detection on the asset to be tested. If the obtained feature detection result contains version information, exemplarily, the version information is v1.20.2, then it is determined that the asset to be tested is a kubernetes cloud-native application asset.

[0081] By judging whether the feature detection results contain the version information of Kubernetes, it is possible to intuitively and accurately determine whether the asset to be tested is a cloud-native application asset, thereby improving the accuracy of determining cloud-native application assets.

[0082] Step S303: In response to the asset to be tested being a cloud-native application asset, a full port scan is performed on the asset to be tested to obtain port information corresponding to each port.

[0083] In an exemplary embodiment of the present disclosure, the port information includes identification information of whether the corresponding port is open.

[0084] The asset under test has multiple ports. When the services implemented by the asset under test are different, that is, when the software products developed based on the cloud native applications installed on the asset under test are different, the ports opened by the asset under test are also different. Based on this, the port information of each port of the asset under test is obtained by performing a full port scan on the asset under test.

[0085] Exemplarily, the asset to be tested contains 65535 ports, and the port information corresponding to each port is obtained by full port scanning. When a port is open, the identification information in the corresponding port information is on; when a port is not open, the identification information in the corresponding port information is off. Therefore, the open port of the asset to be tested can be determined based on the identification information in the port information.

[0086] Based on the identification information contained in the port information, it is easy to determine whether the corresponding port is open, thereby improving the accuracy of determining the open ports of the asset under test, and the comprehensiveness of the determined open ports can be improved through full port scanning.

[0087] Step S304: In response to not obtaining the version information of the preset cloud-native application, determining that the asset to be tested is not a cloud-native application asset.

[0088] In contrast to the above situation where the asset to be tested is determined to be a cloud-native application asset, when it is determined based on the feature detection result that the version information of the preset cloud-native application is not obtained, it can be determined that the asset to be tested is not a cloud-native application asset.

[0089] When it is determined that the asset to be tested is not a cloud-native application asset, there is no need to conduct subsequent risk testing on the asset.

[0090] By identifying non-cloud native application assets, you can avoid risk testing of the assets, simplify processing steps, reduce resource utilization, and improve the testing efficiency of cloud native application assets.

[0091] Step S305: Determine whether the corresponding port is an open port according to the identification information.

[0092] After obtaining the port information, it is possible to determine whether the port is an open port according to the identification information in the port information. For a port, when the identification information in the port information is on, the port is determined to be an open port; when the identification information is off, the port is determined to be a closed port.

[0093] Step S306: Perform risk testing on the open ports of the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application.

[0094] There are many types of cloud native applications, such as kubernetes cloud native applications and other cloud native applications. For each cloud native application, a corresponding vulnerability information library can be pre-set, and the vulnerability information library contains the vulnerabilities of the cloud native application. When a port is open, there is an open application service on the port, and risk testing is performed on the application service in the open port of the asset to be tested based on each vulnerability in the vulnerability information library. For example, when risk testing is performed on an asset equipped with a kubernetes cloud native application, a vulnerability information library for the kubernetes cloud native application can be set.

[0095] Specifically, when performing risk testing, an attack program corresponding to each vulnerability in the vulnerability information library corresponding to the preset cloud native application can be executed on each open port to obtain a risk status, which can be whether a certain vulnerability exists on a certain port. For example, when the preset application is a kubernetes cloud native application, there are N vulnerabilities in the vulnerability information library, and the attack program corresponding to the N vulnerabilities is executed on the application service in each open port.

[0096] After the open ports are determined, risk testing can be performed on the application services in the open ports, without having to perform risk testing on the application services in all ports, thereby improving the efficiency of risk testing.

[0097] In an exemplary embodiment of the present disclosure, the vulnerability information library contains multiple vulnerabilities for different application services; risk testing is performed on the open ports of the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application, including:

[0098] Determine the application service opened by the open port; in response to the application service opened by the open port hitting the target vulnerability in the vulnerability information library corresponding to the preset cloud native application, perform risk testing on the application service in the open port according to the attack program corresponding to the target vulnerability, and obtain the corresponding risk status.

[0099] Optionally, the application service opened by the open port hits a target vulnerability in a vulnerability information library corresponding to a preset cloud native application, indicating that the application service opened by the open port has a target vulnerability corresponding to the open application service and included in the vulnerability information library.

[0100] For open ports, there will be open application services, but some of the application services in the ports may be system services, and some of the application services in the ports may be application services of preset cloud native applications. Risk testing is performed on application services of preset cloud native applications. Therefore, open application services can be screened as application services of preset cloud native applications, thereby further reducing the application services in the open ports that need to be risk-detected.

[0101] When a full port scan is performed on the asset to be tested to obtain port information corresponding to each port, the port information may also include the name of the application service opened by the port, thereby determining the application service opened by the open port.

[0102] After obtaining an open application service, for any vulnerability and any open application service, determine whether the open application service hits the vulnerability. If it does, the vulnerability is determined as a target vulnerability, and a risk test is performed on the application service in the open port according to the attack program corresponding to the target vulnerability. If the vulnerability is not hit, there is no need to perform a risk test on the application service in the open port according to the attack program corresponding to the target vulnerability.

[0103] Through the above steps, it is possible to implement targeted risk testing based on the application services in the ports without having to execute attack programs corresponding to all vulnerabilities on all open ports, further reducing the number of ports and application services that require risk testing.

[0104] Optionally, the process of performing risk testing on application services in the port can be automatically performed based on scripts and / or automation tools.

[0105] Exemplarily, when the asset to be tested has port 10250, and based on the above method, it is determined that port 10250 is an open port, and there is an open application service kubectl of a preset cloud native application, according to the vulnerability information library of the kubernetes cloud native application, it may have a vulnerability that can be unauthorized to exploit in the kubectl 10250 service. Therefore, the attack program corresponding to the vulnerability is executed on the application service in the 10250 service port. If the root permission of the current kubernetes internal pod user can be obtained after executing the attack program corresponding to the vulnerability, it indicates that the asset to be tested has a vulnerability that can be unauthorized to exploit in the kubectl 10250 service.

[0106] Figure 5 The following schematic diagram shows a risk test for unauthorized use of the kubectl 10250 service. Figure 5 As shown, when performing a risk test on the vulnerability of unauthorized exploitation of the kubectl 10250 service, you can enter the domain name or IP address of the asset to be tested, select the option "unauthorized kubectl 10250 service", and when receiving the execution operation triggered by the user, an information supplement dialog box can pop up, in which you can enter the service port to be attacked by the attack program. If you do not enter it, it means that the 10250 port is risk tested; if you enter other ports, you can perform risk tests on other ports. Alternatively, for a vulnerability, after the above steps of filtering application services, after determining one or more ports where the vulnerability may exist, you can automatically fill in the port names of each port in the pop-up information supplement dialog box to implement risk testing of the application services in the corresponding ports.

[0107] For example, the Kubernetes cloud native application vulnerability information library can refer to the following table to perform risk testing on application services in each port.

[0108]

[0109] Figure 6 The flowchart of the asset risk detection method provided according to another embodiment of the present disclosure is schematically shown; Figure 6 As shown, the method includes:

[0110] Step S601: In response to the asset to be tested being a cloud-native application asset, port information corresponding to the asset to be tested is collected; the cloud-native application asset represents an asset equipped with a preset cloud-native application.

[0111] Step S602: In response to the obtained port information, a risk test is performed on the asset to be tested according to the vulnerability information library and port information corresponding to the preset cloud native application to determine the risk status of the asset to be tested.

[0112] Step S601 can refer to Figure 2 Step S201 and step S602 in the embodiment shown in FIG. Figure 2 Step S202 in the illustrated embodiment will not be described in detail here.

[0113] Step S603: Determine the attack category corresponding to the risk status based on the security matrix.

[0114] The security matrix includes the correspondence between risk conditions and attack categories; the attack category indicates the attack stage of the risk condition.

[0115] After determining the risk status, the attack category corresponding to the risk status can also be determined. Specifically, the risk status can be mapped based on the security matrix. The attack category can indicate the degree of development of the vulnerability. Exemplarily, the attack category can be initial access, execution, persistence, privilege escalation, lateral movement, defense evasion, credential access, etc. Initial access means that the attacker establishes a foothold in the enterprise environment; execution means that the attacker uses ready-made malware and ransomware to attack; persistence means maintaining long-term access to the network or system; privilege escalation means attempting to obtain higher-level permissions; lateral movement means moving from one system to another in a compromised environment; defense bypass means taking actions to counter the defense measures to achieve the purpose of bypassing; credential access means attempting to steal information such as account names and passwords; wherein the severity of the above attack categories increases in sequence.

[0116] In an exemplary embodiment of the present disclosure, the attack category is a tactical category in the attack behavior knowledge base and model. The attack behavior knowledge base and model (Adversarial Tactics, Techniques, and Common Knowledge) is ATT&CK, which is mainly used in the fields of evaluating attack and defense capability coverage, APT intelligence analysis, threat hunting, and attack simulation. ATT&CK is an authoritative risk assessment tool in the security field. ATT&CK contains tactical categories, namely ATT&CK Tactic. According to the official definition, ATT&CK contains 14 tactical categories, and each tactical category corresponds to different attack techniques.

[0117] Figure 7 The following schematically shows a schematic diagram of tactical categories in ATT&CK provided according to an embodiment of the present disclosure. Figure 7As shown in the figure, several tactical categories in ATT&CK are schematically displayed, as well as the number of attack techniques corresponding to each tactical category.

[0118] In an exemplary embodiment of the present disclosure, a certain risk condition may correspond to one or more attack categories.

[0119] Exemplarily, based on the risk status of unauthorized exploitation of the kubectl 10250 service determined in the above steps, based on the correspondence between the risk status and the attack category in the security matrix, the vulnerability is mapped to the Container Administration Command attack technology (https: / / attack.mitre.org / techniques / T1609 / ) under the attack category of Execution, and the Exploit Public-Facing Application attack technology (https: / / attack.mitre.org / techniques / T1190 / ) under the attack category of Initial Access.

[0120] Based on the security matrix, the risk status can be mapped and analyzed, so that not only the risk status can be determined, but also the corresponding development degree of the risk status can be intuitively determined. For example, for the two attack categories of initial access and privilege escalation, privilege escalation indicates that the vulnerability has a greater degree of development.

[0121] By mapping the risk status, the attack category corresponding to the risk status can be determined, the attack stage of the risk status can be intuitively determined, the risk status can be analyzed, and the imperfections of the existing manual assessment of asset risk detection can be improved.

[0122] In an exemplary embodiment of the present disclosure, the step of determining an attack category corresponding to a risk condition based on a security matrix includes:

[0123] For each risk condition, the risk scores of each attack category corresponding to the risk condition are summed to obtain a sum result; the sum result is the risk score corresponding to the risk condition.

[0124] When determining the attack category corresponding to the risk condition, the risk score corresponding to the risk condition can also be determined. If the asset to be tested has multiple risk conditions, for each risk condition, the risk score corresponding to the risk condition can be determined based on each attack category triggered by the risk condition.

[0125] The same or different risk scores can be set for different attack categories. For example, the attack categories can be initial access, execution, persistence, privilege escalation, lateral movement, defense bypass, credential access, etc. The risk score for each attack category is the same (each attack category can be 10 points), or different risk scores are set for different attack categories. Optionally, the higher the development level corresponding to the attack category, the higher the risk score. For example, initial access is 8 points, execution is 9 points, persistence is 10 points, privilege escalation is 10 points, etc.; the risk scores corresponding to different attack categories can be set according to actual needs, and no specific limitation is made here.

[0126] For example, when it is determined that the attack categories triggered by the risk condition of anonymous user access to the Kubernetes ApiServer include: initial access, execution, and credential access, the risk scores corresponding to the three attack categories can be summed, and the summed result can be determined as the risk score corresponding to the risk condition. When the three attack categories are all 10 points, it can be determined that the risk score corresponding to the risk condition is 30 points.

[0127] The following table shows the attack categories and risk scores corresponding to various risk conditions (vulnerability details) by way of example. Here, the risk scores corresponding to each attack category are set to 10 points.

[0128]

[0129] The risk scores of various attack categories triggered based on the risk conditions can accurately determine the risk scores corresponding to the risk conditions, and the degree of harm of the risk conditions can be intuitively determined through the risk scores corresponding to the risk conditions.

[0130] In an exemplary embodiment of the present disclosure, after the step of obtaining the risk score, the method further includes:

[0131] Generate a risk assessment report corresponding to the asset to be tested.

[0132] Among them, a risk assessment report of the asset to be tested can also be generated, so that relevant information of the asset to be tested can be intuitively determined.

[0133] In an exemplary embodiment of the present disclosure, the step of generating a risk assessment report corresponding to the asset to be tested includes:

[0134] For the asset to be tested, a risk assessment report corresponding to the risk condition is generated based on at least one of the operating system, network segment information, business category, and network address information of the asset to be tested, as well as the risk condition corresponding to the asset to be tested, the attack category and risk score corresponding to each risk condition. After the above steps, when it is determined that the asset to be tested is a cloud-native application asset and the risk score is obtained, a risk assessment report for the asset to be tested can be generated. When generating a risk assessment report for the asset to be tested, information such as the operating system, network segment information, and business category of the asset to be tested can be obtained. Among them, the business category is determined based on the function of the asset to be tested, for example, the business category is domain name resolution or load balancing; or, it can also be an actual business, such as the software product in the asset to be tested is a music type, a game type, etc.; or, it can also be the division of the department to which the asset to be tested belongs in the enterprise, for example, the technical support department-security center.

[0135] By summarizing at least one of the operating system, network segment information, business category, and network address information of the above-mentioned asset to be tested, as well as the risk status corresponding to the asset to be tested, the attack category and risk score corresponding to each risk status, a risk assessment report is obtained, so that based on the risk assessment report, the basic information of the asset to be tested, as well as the risk status faced, the hazards of the risk status, etc. can be determined.

[0136] In addition, version information of cloud-native applications can also be stored in the risk assessment report.

[0137] For example, the asset risk detection and assessment report for the asset to be tested, kubernetes-test.com, generated based on the above steps is as follows:

[0138] Risk detection and assessment: The asset to be tested is determined to be a Kubernetes cloud-native application asset, and a risk of unauthorized use of the kubectl 10250 service is found, triggering the Initial Access tactic category and Execution tactic category of the ATT&CK security matrix. The risk score is 20 points. Please pay attention to and fix this risk in a timely manner.

[0139] Basic asset information: domain name is kubernetes-test.com, network address is 192.168.0.1 (IPV4), 0:0:0:0:0:0:0:7f00:01 (IPV6); business division: Technical Support Department-Security Center; operating system: Linux; version information: v1.20.2.

[0140] Based on the generated risk assessment report, relevant personnel can quickly and intuitively understand the risk status and basic information of the asset to be tested.

[0141] In an exemplary embodiment of the present disclosure, after the step of generating a risk assessment report corresponding to the risk status, the method further includes:

[0142] Determine a clustering condition; the clustering condition is a content corresponding to at least one of the operating system, network segment information, service category, and network address information;

[0143] At least one risk assessment report that meets the clustering condition is screened, and risk conditions existing in all risk assessment reports that meet the condition are determined.

[0144] After generating a corresponding risk assessment report for each risk condition, the risk assessment report corresponding to the asset to be tested can be determined, so that the risk conditions existing in different assets to be tested can be clustered to determine what kind of risk conditions a certain type of asset to be tested is prone to.

[0145] Specifically, a clustering condition may be determined, and the clustering condition may be at least one of an operating system, network segment information, service category, network address information, and version information. Exemplarily, it may be one of the above, or a combination of any two or more.

[0146] After the clustering condition is determined, the risk assessment report that meets the clustering condition can be determined. Specifically, for each risk assessment report, the content of each field in the clustering condition can be extracted from the risk assessment report to determine whether the content of each field obtained from the risk assessment report is the same as the clustering condition. If they are the same, it means that the risk assessment report is a risk assessment report that meets the clustering condition.

[0147] After obtaining risk assessment reports that meet the clustering condition from all or part of the stored risk assessment reports, risk conditions that exist in all risk assessment reports or in most risk assessment reports can also be determined, and the determined risk conditions are determined as clustering results.

[0148] For example, when the screening condition is that the operating system is Linux, the risk assessment reports with the operating system being Linux are screened. If 10 risk assessment reports are screened out, the risk conditions in these 10 risk assessment reports are determined. If all or most of them have risk condition A, it is determined that the asset under test with the operating system being Linux is prone to risk condition A.

[0149] Based on the clustering operation of the risk assessment report, it is possible to analyze what kind of risk conditions different assets to be tested are prone to, so that based on the clustering results, the assets to be tested can be maintained in advance to reduce the possibility of the risk condition occurring.

[0150] In an exemplary embodiment of the present disclosure, after the step of obtaining the risk score, the method further includes:

[0151] For each risk situation, determine the corresponding risk treatment recommendations based on the risk situation and the corresponding risk score.

[0152] Among them, risk treatment suggestions corresponding to the risk situation can also be generated. Based on the risk treatment suggestions, it is convenient for relevant staff to maintain the assets to be tested to reduce the possibility of the risk situation occurring again.

[0153] Specifically, for each risk condition, a risk treatment suggestion may be predetermined based on the risk condition and the risk score corresponding to the risk condition, so that after obtaining a certain risk condition and a risk score, a corresponding risk treatment suggestion may be directly determined.

[0154] The urgency level of the risk handling suggestion can be set. The urgency level is related to the risk score corresponding to the risk situation. The higher the risk score, the higher the urgency level; the lower the risk score, the lower the urgency level. Specifically, the urgency levels corresponding to different risk scores can be set.

[0155] Optionally, the generated risk treatment recommendations can also be displayed in the risk assessment report.

[0156] For example, if there is a risk of unauthorized use of the kubectl 10250 service, the risk score is 20 points, and the added risk disposal suggestion is: the cause of this risk is usually a development configuration error. Please check the configuration file parameters of the current kubectl server, and change the value of the anonymous key under the authentication parameter to enabled: false. The urgency level is medium.

[0157] By adding risk treatment suggestions, relevant staff can understand the cause and treatment method of the risk situation, thereby reducing the possibility of the risk situation occurring in the future.

[0158] In an exemplary embodiment of the present disclosure, after the step of determining the risk status of the asset to be tested, the method further includes: correcting the risk status.

[0159] In addition, after determining the risk status of the asset to be tested, the risk status can be directly corrected. For example, after determining the risk status, the error correction program corresponding to the risk status can be directly triggered. For example, when there is a risk status of unauthorized use of the kubectl10250 service, the value of the anonymous key under the authentication parameter in the configuration file parameters is directly changed to enabled:false.

[0160] Through direct error correction, the vulnerabilities in the assets under test can be repaired, thereby improving the efficiency of vulnerability repair for the assets under test.

[0161] In summary, in order to automatically determine whether the asset to be tested has a risk condition related to the preset cloud native application, this application starts from the asset to be tested and determines whether the asset to be tested is a cloud native application asset to determine whether to continue the subsequent risk test, wherein when determining whether the asset to be tested is a cloud native application asset, the judgment is made based on the network address information of the asset to be tested. And when the asset to be tested is a cloud native application asset, by obtaining the port information and the vulnerability information library corresponding to the preset cloud native application, it is determined which ports to perform risk testing, and the open ports can be risk tested according to the openness of the ports. Different risk tests can also be performed on different ports according to the vulnerability information corresponding to the application services in the open ports and the cloud native applications.

[0162] In addition, after obtaining the risk status, the risk status can be further mapped to the tactical categories in the authoritative ATT&CK, so as to intuitively determine the development level corresponding to the risk status, so as to make a more comprehensive assessment of the risks faced by the assets to be tested. In addition, by calculating the risk status score, the risks faced by the assets to be tested can be displayed from the data. By displaying and clustering the risk assessment report, the risks faced by the assets to be tested can be analyzed, so that corresponding measures can be taken based on the results of the analysis to reduce the probability of the risk.

[0163] Exemplary Media

[0164] After introducing the method of the exemplary embodiment of the present disclosure, next, refer to Figure 8 A storage medium according to an exemplary embodiment of the present disclosure is described.

[0165] refer to Figure 8 As shown, the storage medium 80 stores a program product for implementing the above method according to an embodiment of the present disclosure, which may adopt a portable compact disk read-only memory (CD-ROM) and include program code, which is used to enable a computing device to execute the asset risk detection method provided by the present disclosure. However, the program product of the present disclosure is not limited thereto.

[0166] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0167] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium.

[0168] Program code for performing the disclosed operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN).

[0169] Exemplary Devices

[0170] After introducing the medium of the exemplary embodiment of the present disclosure, next, reference is made to Fig. 9 An asset risk detection device according to an exemplary embodiment of the present disclosure is described, which is used to implement a method in any of the above method embodiments. Its implementation principles and technical effects are similar and will not be repeated here.

[0171] The asset risk detection device 90 provided by the present disclosure includes:

[0172] The collection module 901 is used for collecting port information corresponding to the asset under test in response to the asset under test being a cloud native application asset; the cloud native application asset represents an asset equipped with a preset cloud native application;

[0173] The testing module 902 is used to respond to the obtained port information and perform a risk test on the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application and the port information to determine the risk status of the asset to be tested.

[0174] In one embodiment of the present disclosure, the device further includes: a feature detection module, configured to:

[0175] Get the network address information of the asset to be tested;

[0176] A feature detection is performed on the asset to be tested based on the network address information to determine whether the asset to be tested is a cloud-native application asset according to a result of the feature detection.

[0177] In one embodiment of the present disclosure, when the feature detection module performs feature detection on the asset to be detected based on the network address information, it is specifically used to:

[0178] The preset port of the corresponding asset to be tested is detected according to the network address information to obtain a feature detection result.

[0179] In one embodiment of the present disclosure, when the feature detection module determines whether the asset to be tested is a cloud-native application asset according to the feature detection result, it is specifically used to:

[0180] In response to the feature detection result at least including the version information of the preset cloud native application, it is determined that the asset to be tested is a cloud native application asset.

[0181] In one embodiment of the present disclosure, when collecting the port information corresponding to the asset to be tested, the collection module 901 is specifically used to:

[0182] A full port scan is performed on the asset to be tested to obtain port information corresponding to each port; the port information includes identification information of whether the corresponding port is open.

[0183] In one embodiment of the present disclosure, the test module 902 includes an open port determination unit and a test unit;

[0184] The open port determination unit is used to: determine whether the corresponding port is an open port according to the identification information;

[0185] The testing unit is used to perform risk testing on the open ports of the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application.

[0186] In one embodiment of the present disclosure, the vulnerability information library contains multiple vulnerabilities for different application services; the testing unit is specifically used to:

[0187] Determine the application service opened by the open port;

[0188] In response to the application service opened by the open port hitting the target vulnerability in the vulnerability information library corresponding to the preset cloud native application, a risk test is performed on the application service in the open port according to the attack program corresponding to the target vulnerability, and a corresponding risk status is obtained; wherein, the application service opened by the open port hits the target vulnerability in the vulnerability information library corresponding to the preset cloud native application, indicating that the application service opened by the open port has the target vulnerability included in the vulnerability information library and corresponding to the open application service.

[0189] In one embodiment of the present disclosure, the device further includes an attack category determination module, which is used to:

[0190] After the step of obtaining the corresponding risk status, the attack category corresponding to the risk status is determined based on the security matrix; the security matrix includes the corresponding relationship between the risk status and the attack category; the attack category indicates the attack stage of the risk status.

[0191] In one embodiment of the present disclosure, the attack category is a tactical category in an attack behavior knowledge base and model.

[0192] In one embodiment of the present disclosure, when the attack category determination module determines the attack category corresponding to the risk status based on the security matrix, it is specifically used to:

[0193] For each risk condition, the risk scores of each attack category corresponding to the risk condition are summed to obtain a sum result; the sum result is the risk score corresponding to the risk condition.

[0194] In one embodiment of the present disclosure, when determining whether the asset to be tested is a cloud-native application asset according to the feature detection result, the feature detection module is further used to:

[0195] In response to not obtaining the version information of the preset cloud-native application, it is determined that the asset to be tested is not a cloud-native application asset.

[0196] In one embodiment of the present disclosure, the device further includes a generating module, which is used to:

[0197] After the step of obtaining the risk score, a risk assessment report corresponding to the asset to be tested is generated.

[0198] In one embodiment of the present disclosure, the generating module is specifically used for:

[0199] For the asset to be tested, a risk assessment report corresponding to the risk status is generated based on at least one of the operating system, network segment information, business category, and network address information of the asset to be tested, as well as the risk status corresponding to the asset to be tested, the attack category and risk score corresponding to each risk status.

[0200] In one embodiment of the present disclosure, the device further includes: a clustering module, configured to:

[0201] After the step of generating a risk assessment report corresponding to the risk status, a clustering condition is determined; the clustering condition is a content corresponding to at least one of the operating system, network segment information, service category, and network address information;

[0202] At least one risk assessment report that meets the clustering condition is screened, and risk conditions existing in all risk assessment reports that meet the condition are determined.

[0203] In one embodiment of the present disclosure, the apparatus further includes: a suggestion generating module, configured to:

[0204] After the risk score is obtained, for each risk situation, a corresponding risk handling suggestion is determined according to the risk situation and the corresponding risk score.

[0205] In one embodiment of the present disclosure, the device further includes: an error correction module, configured to:

[0206] After determining the risk status of the asset to be tested, the risk status is corrected.

[0207] The asset risk detection device provided by the embodiment of the present invention can achieve the above Figure 2 , Figure 3 and Figure 6 The asset risk detection method of the illustrated embodiment has similar implementation principles and technical effects, which will not be described in detail here.

[0208] Exemplary Computing Devices

[0209] After introducing the method, medium and apparatus of the exemplary embodiments of the present disclosure, next, reference is made to Fig.10 A computing device according to an exemplary embodiment of the present disclosure is described.

[0210] Fig.10 The computing device 100 shown is merely an example and should not bring any limitation to the functionality and scope of use of the embodiments of the present disclosure.

[0211] like Fig.10As shown, the computing device 100 is in the form of a general computing device. The components of the computing device 100 may include, but are not limited to: at least one processing unit 1001, at least one storage unit 1002, and a bus 1003 connecting different system components (including the processing unit 1001 and the storage unit 1002). Among them, at least one storage unit 1002 stores computer-executable instructions; at least one processing unit 1001 includes a processor, and the processor executes the computer-executable instructions to implement the method described above.

[0212] The bus 1003 includes a data bus, a control bus, and an address bus.

[0213] The storage unit 1002 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 10021 and / or a cache memory 10022 , and may further include a readable medium in the form of a non-volatile memory, such as a read-only memory (ROM) 10023 .

[0214] The storage unit 1002 may also include a program / utility 10025 having a set (at least one) of program modules 10024, such program modules 10024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.

[0215] The computing device 100 may also communicate with one or more external devices 1004 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 1005. Furthermore, the computing device 100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1006. Fig.10 As shown, the network adapter 1006 communicates with other modules of the computing device 100 via the bus 1003. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computing device 100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0216] It should be noted that although several units / modules or sub-units / modules of the asset risk detection device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present disclosure, the features and functions of two or more units / modules described above may be embodied in one unit / module. Conversely, the features and functions of one unit / module described above may be further divided to be embodied by multiple units / modules.

[0217] In addition, although the operations of the disclosed method are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0218] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. An asset risk detection method, characterized in that: The method comprises: In response to the asset to be tested being a cloud native application asset, collecting port information corresponding to the asset to be tested; the cloud native application asset represents an asset equipped with a preset cloud native application; In response to the obtained port information, a risk test is performed on the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application and the port information to determine the risk status of the asset to be tested; and a risk score corresponding to the risk status of the asset to be tested is determined; Generate a risk assessment report corresponding to the asset to be tested; Determine a clustering condition; the clustering condition is a content corresponding to at least one of an operating system, network segment information, service category, and network address information; At least one risk assessment report that meets the clustering condition is screened, and risk conditions existing in all risk assessment reports that meet the condition are determined.

2. The method according to claim 1, characterized in that The method further comprises: Get the network address information of the asset to be tested; A feature detection is performed on the asset to be tested based on the network address information to determine whether the asset to be tested is a cloud-native application asset according to a result of the feature detection.

3. The method according to claim 2, characterized in that The step of performing feature detection on the asset to be tested based on the network address information includes: The preset port of the corresponding asset to be tested is detected according to the network address information to obtain a feature detection result.

4. The method according to claim 3, characterized in that The step of determining whether the asset to be tested is a cloud-native application asset according to the feature detection result includes: In response to the feature detection result at least including the version information of the preset cloud native application, it is determined that the asset to be tested is a cloud native application asset.

5. The method according to claim 4, characterized in that The step of collecting the port information corresponding to the asset to be tested includes: A full port scan is performed on the asset to be tested to obtain port information corresponding to each port; the port information includes identification information of whether the corresponding port is open.

6. The method according to claim 5, characterized in that In response to the obtained port information, a risk test is performed on the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application and the port information, including: Determine whether the corresponding port is an open port according to the identification information; Perform risk testing on the open ports of the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application.

7. The method according to claim 6, characterized in that The vulnerability information library contains multiple vulnerabilities for different application services; Performing risk testing on the open ports of the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application includes: Determine the application service opened by the open port; In response to the application service opened by the open port hitting the target vulnerability in the vulnerability information library corresponding to the preset cloud native application, a risk test is performed on the application service in the open port according to the attack program corresponding to the target vulnerability, and a corresponding risk status is obtained; wherein, the application service opened by the open port hits the target vulnerability in the vulnerability information library corresponding to the preset cloud native application, indicating that the application service opened by the open port has the target vulnerability included in the vulnerability information library and corresponding to the open application service.

8. The method according to claim 7, characterized in that The step of determining the risk score corresponding to the risk status of the asset to be tested includes: An attack category corresponding to the risk status is determined based on a security matrix; the security matrix includes a corresponding relationship between the risk status and the attack category; and the attack category indicates the attack stage of the risk status.

9. The method according to claim 8, characterized in that The attack categories are tactical categories in the attack behavior knowledge base and model.

10. The method according to claim 8, characterized in that The step of determining an attack category corresponding to the risk condition based on the security matrix comprises: For each risk condition, the risk scores of each attack category corresponding to the risk condition are summed to obtain a sum result; the sum result is the risk score corresponding to the risk condition.

11. The method according to claim 4, characterized in that The method further comprises: In response to not obtaining the version information of the preset cloud-native application, it is determined that the asset to be tested is not a cloud-native application asset.

12. The method according to claim 1, characterized in that The step of generating a risk assessment report corresponding to the asset to be tested includes: For the asset to be tested, a risk assessment report corresponding to the risk status is generated based on at least one of the operating system, network segment information, business category, and network address information of the asset to be tested, as well as the risk status corresponding to the asset to be tested, the attack category and risk score corresponding to each risk status.

13. The method according to claim 10, characterized in that After the step of obtaining the risk score, it also includes: For each risk situation, a corresponding risk treatment suggestion is determined based on the risk situation and the corresponding risk score.

14. The method according to any one of claims 1 to 13, characterized in that: After the step of determining the risk status of the asset to be tested, the method further includes: Correct the risk condition.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 14 is implemented.

16. An asset risk detection device, characterized in that: The device comprises: A collection module, configured to collect port information corresponding to the asset under test in response to the asset under test being a cloud native application asset; the cloud native application asset represents an asset equipped with a preset cloud native application; A testing module, configured to, in response to the obtained port information, perform a risk test on the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application and the port information to determine the risk status of the asset to be tested; An attack category determination module, used to determine a risk score corresponding to the risk status of the asset to be tested; A generating module, used to generate a risk assessment report corresponding to the asset to be tested; A clustering module is used to determine clustering conditions; the clustering conditions are the content corresponding to at least one of the operating system, network segment information, business category, and network address information; screen at least one risk assessment report that meets the clustering conditions, and determine the risk status of all risk assessment reports that meet the conditions.

17. The device according to claim 16, characterized in that The device also includes a feature detection module, which is used to: Get the network address information of the asset to be tested; A feature detection is performed on the asset to be tested based on the network address information to determine whether the asset to be tested is a cloud-native application asset according to a result of the feature detection.

18. The device according to claim 17, characterized in that When the feature detection module performs feature detection on the asset to be detected based on the network address information, it is specifically used to: The preset port of the corresponding asset to be tested is detected according to the network address information to obtain a feature detection result.

19. The device according to claim 18, characterized in that When determining whether the asset to be tested is a cloud-native application asset according to the feature detection result, the feature detection module is specifically used to: In response to the feature detection result at least including the version information of the preset cloud native application, it is determined that the asset to be tested is a cloud native application asset.

20. The device according to claim 19, characterized in that When collecting the port information corresponding to the asset to be tested, the acquisition module is specifically used to: A full port scan is performed on the asset to be tested to obtain port information corresponding to each port; the port information includes identification information of whether the corresponding port is open.

21. The device according to claim 20, characterized in that The test module includes an open port determination unit and a test unit; The open port determination unit is used to: determine whether the corresponding port is an open port according to the identification information; The testing unit is used to perform risk testing on the open port of the asset to be tested according to the vulnerability information library corresponding to the preset cloud native application.

22. The device according to claim 21, characterized in that The vulnerability information library contains multiple vulnerabilities for different application services; the testing unit is specifically used for: Determine the application service opened by the open port; In response to the application service opened by the open port hitting the target vulnerability in the vulnerability information library corresponding to the preset cloud native application, a risk test is performed on the application service in the open port according to the attack program corresponding to the target vulnerability, and a corresponding risk status is obtained; wherein, the application service opened by the open port hits the target vulnerability in the vulnerability information library corresponding to the preset cloud native application, indicating that the application service opened by the open port has the target vulnerability included in the vulnerability information library and corresponding to the open application service.

23. The device according to claim 22, characterized in that The attack category determination module is specifically used to: After the step of obtaining the corresponding risk status, determining the attack category corresponding to the risk status based on the security matrix; the security matrix includes the corresponding relationship between the risk status and the attack category; The attack category indicates the attack stage of the risk status.

24. The device according to claim 23, characterized in that The attack categories are tactical categories in the attack behavior knowledge base and model.

25. The device according to claim 23, characterized in that When the attack category determination module determines the attack category corresponding to the risk status based on the security matrix, it is specifically used to: For each risk condition, the risk scores of each attack category corresponding to the risk condition are summed to obtain a sum result; the sum result is the risk score corresponding to the risk condition.

26. The device according to claim 19, characterized in that The feature detection module is further used to: In response to not obtaining the version information of the preset cloud-native application, it is determined that the asset to be tested is not a cloud-native application asset.

27. The device according to claim 16, characterized in that The generation module is specifically used for: For the asset to be tested, a risk assessment report corresponding to the risk status is generated based on at least one of the operating system, network segment information, business category, and network address information of the asset to be tested, as well as the risk status corresponding to the asset to be tested, the attack category and risk score corresponding to each risk status.

28. The device according to claim 25, characterized in that The device also includes a suggestion generating module, which is used to: After the risk score is obtained, for each risk situation, a corresponding risk handling suggestion is determined according to the risk situation and the corresponding risk score.

29. The device according to any one of claims 16 to 28, characterized in that The device further comprises: an error correction module, configured to: After determining the risk status of the asset to be tested, the risk status is corrected.

30. A computing device, characterized in that include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 14.

31. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.