Container cluster risk analysis and vulnerability assessment method and device based on environment perception

By constructing a convolutional neural network model and combining it with the configuration information and vulnerability characteristics of the container cluster, the priority of vulnerability remediation is evaluated, which solves the problem of difficulty in evaluating the priority of vulnerability remediation between containers in a cluster environment and improves the accuracy and efficiency of security assessment.

CN117874768BActive Publication Date: 2026-11-20ZHEJIANG UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410055662.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2026-11-20
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

In a container cluster environment, it is difficult to effectively assess and prioritize vulnerability remediation between different containers, and existing technologies fail to fully consider the priority assessment of the same vulnerability across multiple containers in a cluster.

Method used

By constructing a convolutional neural network model, we collect and analyze the configuration information and vulnerability characteristics of container clusters. Combining system architecture characteristics and vulnerability characteristics, we assess the priority of vulnerability remediation and consider the network communication and functional dependencies between containers.

Benefits of technology

It improves the efficiency of security analysts in allocating resources for vulnerability remediation in container clusters, provides a more accurate priority ranking of vulnerability remediation, and enhances the comprehensiveness of cluster security assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117874768B_ABST
    Figure CN117874768B_ABST
Patent Text Reader

Abstract

The application discloses a kind of container cluster risk analysis and vulnerability assessment method and device based on environmental perception, including collecting container cluster open source project, the container cluster open source project is analyzed, the relationship of configuration information and vulnerability vulnerability evaluation index is obtained and data set is constructed, convolutional neural network model is trained using the data set;Load cluster configuration environment, and extract metadata in cluster based on rule, save as system architecture feature that the network communication relationship and functional dependency relationship between the extraction cluster internal container;Scan the vulnerability contained in each container image in cluster, and obtain vulnerability vulnerability feature;The trained neural network model is used to analyze the vulnerability in container cluster environment, and the repair priority ranking of cluster vulnerability under the condition of resource constraint is evaluated in combination with system architecture feature and vulnerability vulnerability feature.Improve the difficulty of previous security engineer in the allocation of cluster vulnerability repair resources, greatly improve the efficiency of security analyst.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of information security and virtualization technology, and specifically to a method and apparatus for risk analysis and vulnerability assessment in container cluster environments within microservice projects. Background Technology

[0002] With the continuous development of virtualization technology, container technology has become increasingly mature. Containers offer advantages such as rapid startup, convenient deployment, low resource consumption, and high operational efficiency, leading to their widespread adoption by developers and organizations. Portworx's 2019 Annual Container Survey Report shows that over 87% of IT professionals are using container technology; and nearly 90% of applications running in containers are already in production environments. Similar to system virtualization, containers provide an isolated runtime environment and a simple way to package and deploy numerous instances of an application. A container is a standard software unit that packages the system libraries, files, and code required to support a target application, enabling the application to run quickly and reliably from one computing environment to another. This facilitates modularization and industrialization, simplifying development, delivery, and deployment.

[0003] Container environments have transformed the software supply chain ecosystem, accelerating application development processes. However, the use of third-party containers and open-source code has introduced numerous vulnerabilities into container environments. When adopting Docker technology, security vulnerabilities in container images are a critical consideration, as exploitation can negatively impact the confidentiality, integrity, and availability of containerized software. In a Red Hat report, developers listed vulnerability management as a top priority for building reliable container environments. Vulnerability management in containerized software involves multiple steps, such as vulnerability detection, assessment, prioritization, and remediation. Vulnerability assessment and prioritization are key steps in vulnerability management, including identifying exploitability characteristics such as attacker skill maturity, attack origination location (e.g., external or local network), and attack requirements (e.g., permissions or interaction requirements regarding the container).

[0004] Patent document CN113111353A discloses a dependency-based container image library security assessment system and method, including a management node and a detection node. The system detects security vulnerabilities in container images and assesses the remediation status of files with security vulnerabilities within sub-images through data coordination between the management and detection nodes.

[0005] Patent document CN114780965A discloses a method and system for prioritizing vulnerability remediation. The method includes simultaneously considering the vulnerability exploitation maturity, vulnerability impact scope, and vulnerability remediation difficulty of the vulnerability under test, and then reassessing the risk value using a general vulnerability scoring system. Based on the reassessed vulnerability risk value, the network environment where the vulnerability is located, and the importance of the asset where it is located, a final risk score is calculated. Based on the final risk score and the situation of the vulnerability under test on different assets, the remediation priority of the vulnerability under test is evaluated.

[0006] While some progress has been made in vulnerability assessment for container images, vulnerability assessment and detection in cluster environments still have the following two shortcomings:

[0007] (1) Within the cluster, there are functional dependencies between containers. Some containers need to be based on the parent container to function. This needs to be considered in order to better assess the security of containers and manage vulnerabilities.

[0008] (2) Currently, the severity assessment of vulnerabilities does not take into account the priority assessment results of the same vulnerability across multiple containers in a cluster, and the environmental information under the cluster is not fully considered. Summary of the Invention

[0009] To address the shortcomings of current technologies, the purpose of this application is to provide a risk analysis and vulnerability assessment method in a container cluster environment, in order to solve the problem of difficulty in assessing the priority of vulnerability remediation among different containers within the same cluster.

[0010] According to a first aspect of the embodiments of this application, a method for risk analysis and vulnerability assessment of container clusters based on environment awareness is provided, including:

[0011] Collect open-source container cluster projects, analyze the open-source container cluster projects, obtain the relationship between configuration information and vulnerability assessment indicators, construct a dataset, and use the dataset to train a convolutional neural network model.

[0012] Load the cluster configuration environment, extract metadata within the cluster based on rules, and extract network communication relationships and functional dependencies between containers within the cluster and save them as system architecture features;

[0013] Scan the vulnerabilities contained in each container image within the cluster and obtain vulnerability vulnerability characteristics, including general vulnerability assessment indicators, vulnerability exploitability scores, vulnerability impact scores, vulnerability exploitability maturity, and patch release status.

[0014] We use a trained neural network model to analyze vulnerabilities in a container cluster environment, and combine system architecture characteristics and vulnerability vulnerability characteristics to evaluate the priority ranking of cluster vulnerability remediation under resource constraints.

[0015] Optionally, collect open-source container cluster projects, analyze these projects, obtain the relationship between configuration information and vulnerability assessment metrics, construct a dataset, and train a convolutional neural network model using the dataset, including:

[0016] By leveraging the GitHub public data platform, we collected open-source projects related to Docker Compose, and filtered out toy projects based on commits to improve the representativeness of the collected projects.

[0017] Analyze the configuration files in the cluster project and construct datasets for neural network training based on common vulnerability assessment metrics, including attack vectors, attack complexity, permission requirements, and user interactions.

[0018] Convolutional neural network models are constructed, and multiple sets of convolutional neural network models are trained using the dataset to target common vulnerability assessment metrics.

[0019] Optionally, load the cluster configuration environment and extract metadata within the cluster based on rules. Extract network communication relationships and functional dependencies between containers within the cluster and save them as system architecture features, including:

[0020] The configuration information of a single container in the cluster is extracted by parsing the syntax tree and regularizing. The configuration information includes the container image source, network mode, and container dependencies.

[0021] The functional dependency characteristics of containers within the cluster are obtained by recursively querying container dependency information, and the network dependency characteristics of the cluster are extracted based on the network pattern and saved as system architecture characteristics.

[0022] Optionally, scan each container image within the cluster for vulnerabilities and obtain vulnerability characteristics, including:

[0023] By comparing the versions of the operating system software packages inside the container image with public vulnerability data sources, a list of CVE vulnerabilities inside the image can be obtained.

[0024] Call the APIs of the U.S. National Vulnerability Database (NVD) and the Exploit-DB public vulnerability database to query the vulnerability-related characteristics of the vulnerability list.

[0025] Optionally, a trained neural network model can be used to analyze vulnerabilities in a container cluster environment. Combining system architecture characteristics and vulnerability vulnerability characteristics, the priority ranking of cluster vulnerability remediation under resource constraints can be assessed, including:

[0026] Using a trained neural network model, with the container cluster environment as input, the threshold of the general vulnerability assessment index is mapped to obtain the general vulnerability assessment index value in the cluster environment, and then the vulnerability exploitability score in the cluster environment is calculated to update the vulnerability vulnerability characteristics.

[0027] The remediation cost and risk score of vulnerabilities are calculated based on system architecture characteristics and vulnerability vulnerability characteristics. The remediation priority of cluster vulnerabilities is evaluated based on the available remediation cost and the cluster system risk score.

[0028] According to a second aspect of the embodiments of this application, an environment-aware container cluster risk analysis and vulnerability assessment system is provided, comprising:

[0029] The data collection and model training module is used to collect open-source projects of container clusters, analyze the open-source projects of container clusters, obtain the relationship between configuration information and vulnerability assessment indicators, construct a dataset, and use the dataset to train a convolutional neural network model.

[0030] The environment awareness module is used to load the cluster configuration environment, extract metadata within the cluster based on rules, and generate an abstract model based on the network communication relationships and functional dependencies between containers within the cluster, which is then saved as system architecture features.

[0031] The vulnerability scanning module is used to scan for vulnerabilities contained in each container image within the cluster and obtain vulnerability vulnerability characteristics, including general vulnerability assessment metrics, vulnerability exploitability score, vulnerability impact score, vulnerability exploitability maturity, and patch release status.

[0032] The risk analysis module is used to analyze vulnerabilities in a container cluster environment using a trained neural network model. It combines system architecture characteristics and vulnerability vulnerability characteristics to evaluate the priority ranking of cluster vulnerability remediation under resource constraints.

[0033] According to a third aspect of the embodiments of this application, an electronic device is provided, comprising:

[0034] One or more processors;

[0035] Memory, used to store one or more programs;

[0036] When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described in the first aspect.

[0037] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the steps of the method as described in the first aspect.

[0038] The technical solutions provided by the embodiments of this application may include the following beneficial effects:

[0039] This application constructs the architectural characteristics of a container cluster based on the container network configuration relationships and container dependencies. It also constructs vulnerability vulnerability characteristics of container images based on general vulnerability assessment metrics, vulnerability exploitability scores, vulnerability impact scores, vulnerability exploitability maturity, and patch release status. By combining these architectural and vulnerability characteristics, the application evaluates the risk scores of vulnerabilities in a container cluster environment and ranks the vulnerability remediation priorities of the container cluster based on remediation costs and currently available remediation resources. This significantly reduces the difficulty for security engineers in allocating vulnerability remediation resources within the cluster and greatly improves the efficiency of security analysts.

[0040] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0042] Figure 1 This is a flowchart illustrating an environment-aware container cluster risk analysis and vulnerability assessment method according to an exemplary embodiment.

[0043] Figure 2 This is a flowchart illustrating a method for constructing a container cluster environment-aware computing interface according to an exemplary embodiment.

[0044] Figure 3 This is a block diagram illustrating an environment-aware container cluster risk analysis and vulnerability assessment system according to an exemplary embodiment. Detailed Implementation

[0045] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0046] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0047] Figure 1 This is a flowchart illustrating an environment-aware container cluster risk analysis and vulnerability assessment method according to an exemplary embodiment, such as... Figure 1 As shown, this method is mainly used for risk analysis and vulnerability assessment of container clusters, and may include the following steps:

[0048] S1: Collect open-source container cluster projects, analyze the open-source container cluster projects, obtain the relationship between configuration information and vulnerability assessment indicators, construct a dataset, and use the dataset to train a convolutional neural network model.

[0049] S2: Load the cluster configuration environment and extract metadata within the cluster based on rules. Extract the network communication relationships and functional dependencies between containers within the cluster and save them as system architecture features.

[0050] S3: Scan the vulnerabilities contained in each container image within the cluster and obtain vulnerability vulnerability characteristics, including general vulnerability assessment indicators, vulnerability exploitability scores, vulnerability impact scores, vulnerability exploitability maturity, and patch release status.

[0051] S4: Utilize a trained neural network model to analyze vulnerabilities in a container cluster environment, and combine system architecture characteristics and vulnerability vulnerability characteristics to evaluate the priority ranking of cluster vulnerability remediation under resource constraints.

[0052] As can be seen from the above embodiments, this application constructs the architectural features of the container cluster based on the container network configuration relationship and the dependency relationship of each container in the container cluster. It constructs the vulnerability vulnerability features of the container image based on general vulnerability assessment indicators, vulnerability exploitability sub-scores, vulnerability impact sub-scores, vulnerability exploitation maturity, and patch release status. Based on the combination of architectural features and vulnerability features, the risk score of the vulnerability is evaluated in the container cluster environment. The ranking result of the vulnerability remediation priority of the container cluster is obtained based on the remediation cost and the currently available remediation resources. This greatly improves the difficulty of security engineers in allocating vulnerability remediation resources in the cluster and greatly improves the efficiency of security analysts.

[0053] In the specific implementation of S1: Collect open-source container cluster projects, analyze these projects, obtain the relationship between configuration information and vulnerability assessment metrics, construct a dataset, and train a convolutional neural network model using this dataset; this step may include the following sub-steps:

[0054] S11: Utilize the GitHub public data platform to collect open source projects related to Docker Compose, filter out toy projects based on commits, and improve the representativeness of the collected projects;

[0055] Specifically, such as Figure 2 As shown, using the GitHub platform as the data source, open source projects containing Docker Compose were searched, and representative open source projects were selected by using commits and stars as filtering criteria. A custom script was then used to collect the data.

[0056] S12: Analyze the configuration files in the cluster project and construct datasets for neural network training using common vulnerability assessment metrics, including attack vectors, attack complexity, permission requirements, and user interactions.

[0057] Specifically, according to the Common Vulnerability Scoring System (CVSS), vulnerability assessment metrics include four parts: Attack Vector (AV), Attack Complexity (AC), Permission Requirements (PR), and User Interaction (UI). Analysis of configuration files in the cluster project revealed a correspondence between some information in the container environment variables and vulnerability assessment metrics. For example, ports, networks, and links correspond to AV, and environment and secrets correspond to AC. For instance, the environment variable information in one cluster environment variable set is as follows:

[0058] ['MYSQL_ROOT_PASSWORD=root','MYSQL_DATABASE=laravel']

[0059] As the definition suggests, if a password setting for the container exists in the environment variables, then the vulnerability threshold corresponding to AC in its vulnerability assessment metric is E, and its actual vulnerability value can only be H. Datasets for neural network training are constructed using general vulnerability assessment metrics.

[0060] Table 1. Mapping of Vulnerability Assessment Indicators and Cluster Environmental Variables

[0061]

[0062] S13: Construct a convolutional neural network model and train multiple convolutional neural network models using the dataset to target a common vulnerability assessment metric.

[0063] Specifically, a convolutional neural network model is constructed. Using the dataset, multiple convolutional neural network models are trained for general vulnerability assessment metrics. The text information of the cluster configuration file is used as the training set. Precision and Recall are used as model evaluation metrics to train classification models, where AV is a multi-classifier, and AC, PR, and UI are binary classifiers, and are encapsulated as a classification calculation interface.

[0064] In the specific implementation of S2: the cluster configuration environment is loaded, and metadata within the cluster is extracted based on rules. The network communication relationships and functional dependencies between containers within the cluster are extracted and saved as system architecture features. This step may include the following sub-steps:

[0065] S21: Extract the configuration information of a single container in the cluster through syntax tree parsing and regularization. The configuration information includes the container image source, network mode, and container dependencies.

[0066] Specifically, in the cluster configuration file, the environment configuration information of containers is stored in a specific text format. This format includes dependencies between containers; for example, the `depend_on` directive typically indicates dependencies between containers within the same cluster, while the `network` and `link` directives typically indicate network relationships between containers within the same cluster. The configuration information of individual containers in the cluster is extracted through syntax tree parsing and regularization. This configuration information includes the container image source, network mode, and container dependencies.

[0067] S22: Obtain the functional dependency characteristics of containers within the cluster by recursively querying container dependency information, extract the network dependency characteristics of the cluster based on the network pattern, and save them as system architecture characteristics.

[0068] Specifically, the functional dependency characteristics of containers within the cluster are obtained by recursively querying container dependency information, and the network dependency characteristics of the cluster are extracted based on the network pattern and saved as system architecture characteristics.

[0069] In the specific implementation of S3: scanning for vulnerabilities contained in each container image within the cluster and collecting vulnerability vulnerability characteristics; this step may include the following sub-steps:

[0070] S31: Obtain a list of CVE vulnerabilities within the container image by comparing the versions of the operating system software packages inside the container image with public vulnerability data sources;

[0071] Specifically, the list of CVE vulnerabilities inside the container image is obtained by comparing the versions of the operating system software packages inside the container image with public vulnerability data sources.

[0072] S32: Call the APIs of the U.S. National Vulnerability Database (NVD) and the Exploit-DB public vulnerability database to query the vulnerability-related characteristics of the vulnerability list;

[0073] Specifically, the APIs of the U.S. National Vulnerability Database (NVD) and the Exploit-DB public vulnerability database are invoked to query the vulnerability-related characteristics of the vulnerability list, including general vulnerability assessment metrics, vulnerability exploitability scores, vulnerability impact scores, vulnerability exploitability maturity, and patch release status.

[0074] Table 2 Vulnerability Characteristics and Values

[0075]

[0076] In the specific implementation of S4: A trained neural network model is used to analyze vulnerabilities in a container cluster environment. Combining system architecture characteristics and vulnerability vulnerability characteristics, the priority ranking of cluster vulnerability remediation under resource constraints is evaluated. This step may include the following sub-steps:

[0077] S41: Using a trained neural network model, with the container cluster environment as input, map the threshold of the general vulnerability assessment index to obtain the general vulnerability assessment index value in the cluster environment, and then calculate the vulnerability exploitability score in the cluster environment to update the vulnerability vulnerability characteristics.

[0078] Specifically, in S1, neural network models for each set of vulnerability assessment indicators have been trained. The input information is the container's environmental variable information. The classifier maps and calculates the input container environmental variable information to obtain the corresponding vulnerability threshold. Combined with the vulnerability's CVSS vulnerability index, the vulnerability assessment index value in the cluster environment is obtained. The vulnerability exploitability score in the cluster environment is calculated, and the vulnerability vulnerability characteristics are updated.

[0079] S42: Calculate the remediation cost and risk score of vulnerabilities based on system architecture characteristics and vulnerability vulnerability characteristics. Using the exploitable remediation cost as a constraint, and the cluster system risk score as the basis, evaluate the remediation priority ranking of cluster vulnerabilities. Specifically, S2 obtains the system architecture characteristics of the container cluster, namely system network dependency NetDep and system functional dependency FunDep; S3 obtains vulnerability vulnerability characteristics, such as vulnerability exploitation maturity Vulnerability. exploit Patch release status, vulnerability impact score (ISC), vulnerability exploitability score (ESC). Define relevant variables, including the remediation status (ρ) of vulnerability v. v The cost of fixing vulnerability v v Risk score R of vulnerability v vMaximum available repair resources Cost max Cluster system risk score.

[0080] Using the available remediation resources in the vulnerability remediation plan as constraints and the cluster system risk score as the basis, the remediation priority of cluster vulnerabilities is evaluated and ranked. The cluster system risk score is the final evaluation metric, and the goal of the vulnerability remediation plan is to minimize the Risk-Score, that is, to achieve minRS while consuming less cost than available resources.

[0081] RS=∑ 0≤i≤n R i ρ i (1)

[0082] Cost v =(k1ESC+k2Vul)Patch (2)

[0083] R V =ISC(ω1NetDep+ω2Fundep) (3)

[0084] ∑ 0≤i≤n Cost i ρ i ≤Cost max (4)

[0085] ISC, ESC∈(0,10) (5)

[0086] Patch, Vul∈(0,1) (6)

[0087] k1, k2, ω1, ω2∈N (7)

[0088] ρ i ∈{0, 1}, i∈[1, n] (8)

[0089] The risk score of vulnerability v in the current cluster environment can be calculated according to formula (3), and the repair cost required to fix the vulnerability can be calculated according to formula (2). Under the premise of satisfying formula (4), the vulnerability in the container cluster is repaired. When repair resources are sufficient, i.e. Vulnerability remediation plans in container clusters are implemented according to R v Ranking is required; given limited remediation resources, vulnerability remediation needs to be prioritized while satisfying formula (4), and R should be prioritized for remediation according to the integer planning. v / Cost v Larger vulnerabilities are prioritized to minimize the risk to the cluster when resources are limited for patching.

[0090] Table 3. Values ​​for Vulnerability Exploitation Maturity

[0091]

[0092]

[0093] Table 4: Patch Release Status Values

[0094] Patch release status illustrate Value Official Official organizations have released relevant patches. 0.9 Third Party Third-party release of related patches 0.95 None No patch has been released yet. 1

[0095] Corresponding to the aforementioned embodiments of the environment-aware container cluster risk analysis and vulnerability assessment method, this application also provides embodiments of the environment-aware container cluster risk analysis and vulnerability assessment apparatus.

[0096] Figure 3 This is a block diagram illustrating an environment-aware container cluster risk analysis and vulnerability assessment device according to an exemplary embodiment. (Refer to...) Figure 3 The device includes:

[0097] The data collection and model training module 1 is used to collect open source projects of container clusters, analyze the open source projects of container clusters, obtain the relationship between configuration information and vulnerability assessment indicators and construct a dataset, and use the dataset to train a convolutional neural network model.

[0098] Environment awareness module 2 is used to load the cluster configuration environment, extract metadata within the cluster based on rules, and generate an abstract model based on the network communication relationships and functional dependencies between containers within the cluster, which is then saved as system architecture features.

[0099] Vulnerability scanning module 3 is used to scan for vulnerabilities contained in each container image within the cluster and obtain vulnerability vulnerability characteristics, including general vulnerability assessment indicators, vulnerability exploitability score, vulnerability impact score, vulnerability exploitability maturity, and patch release status.

[0100] Risk Analysis Module 4 is used to analyze vulnerabilities in a container cluster environment using a trained neural network model, and to evaluate the priority ranking of cluster vulnerability remediation under resource constraints by combining system architecture characteristics and vulnerability vulnerability characteristics.

[0101] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0102] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0103] Accordingly, this application also provides an electronic device, including: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the environment-aware container cluster risk analysis and vulnerability assessment method described above.

[0104] Accordingly, this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the above-described environment-aware container cluster risk analysis and vulnerability assessment method.

[0105] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this application are indicated by the claims.

[0106] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for risk analysis and vulnerability assessment of container clusters based on environment awareness, characterized in that, include; Collect open-source container cluster projects, analyze the open-source container cluster projects, obtain the relationship between configuration information and vulnerability assessment indicators, construct a dataset, and use the dataset to train a convolutional neural network model. Load the cluster configuration environment, extract metadata within the cluster based on rules, and extract network communication relationships and functional dependencies between containers within the cluster and save them as system architecture features; Scan the vulnerabilities contained in each container image within the cluster and obtain vulnerability vulnerability characteristics, including general vulnerability assessment indicators, vulnerability exploitability scores, vulnerability impact scores, vulnerability exploitability maturity, and patch release status. We use a trained neural network model to analyze vulnerabilities in a container cluster environment, and combine system architecture characteristics and vulnerability vulnerability characteristics to evaluate the priority ranking of cluster vulnerability remediation under resource constraints. This involves using a trained neural network model to analyze vulnerabilities in a container cluster environment, and combining system architecture characteristics with vulnerability vulnerability characteristics to assess the priority ranking of cluster vulnerability remediation under resource constraints, including: Using a trained neural network model, with the container cluster environment as input, the threshold of the general vulnerability assessment index is mapped to obtain the general vulnerability assessment index value in the cluster environment, and then the vulnerability exploitability score in the cluster environment is calculated to update the vulnerability vulnerability characteristics. The remediation cost and risk score of vulnerabilities are calculated based on system architecture characteristics and vulnerability vulnerability characteristics. The remediation priority of cluster vulnerabilities is evaluated based on the available remediation cost and the cluster system risk score.

2. The method according to claim 1, characterized in that, Collect open-source container cluster projects, analyze these projects, obtain the relationship between configuration information and vulnerability assessment metrics, construct a dataset, and train a convolutional neural network model using this dataset, including: By leveraging the GitHub public data platform, we collected open-source projects related to Docker Compose, and filtered out toy projects based on commits to improve the representativeness of the collected projects. Analyze the configuration files in the cluster project and construct datasets for neural network training based on common vulnerability assessment metrics, including attack vectors, attack complexity, permission requirements, and user interactions. Convolutional neural network models are constructed, and multiple sets of convolutional neural network models are trained using the dataset to target common vulnerability assessment metrics.

3. The method according to claim 1, characterized in that, Load the cluster configuration environment and extract metadata within the cluster based on rules. Extract network communication relationships and functional dependencies between containers within the cluster and save them as system architecture features, including: The configuration information of a single container in the cluster is extracted by parsing the syntax tree and regularizing. The configuration information includes the container image source, network mode, and container dependencies. The functional dependency characteristics of containers within the cluster are obtained by recursively querying container dependency information, and the network dependency characteristics of the cluster are extracted based on the network pattern and saved as system architecture characteristics.

4. The method according to claim 1, characterized in that, Scan each container image within the cluster for vulnerabilities and obtain vulnerability characteristics, including: By comparing the versions of the operating system software packages inside the container image with public vulnerability data sources, a list of CVE vulnerabilities inside the image can be obtained. Call the APIs of the U.S. National Vulnerability Database (NVD) and the Exploit-DB public vulnerability database to query the vulnerability-related characteristics of the vulnerability list.

5. A container cluster risk analysis and vulnerability assessment system based on environment awareness, characterized in that, include: The data collection and model training module is used to collect open-source projects of container clusters, analyze the open-source projects of container clusters, obtain the relationship between configuration information and vulnerability assessment indicators, construct a dataset, and use the dataset to train a convolutional neural network model. The environment awareness module is used to load the cluster configuration environment, extract metadata within the cluster based on rules, and generate an abstract model based on the network communication relationships and functional dependencies between containers within the cluster, which is then saved as system architecture features. The vulnerability scanning module is used to scan for vulnerabilities contained in each container image within the cluster and obtain vulnerability vulnerability characteristics, including general vulnerability assessment metrics, vulnerability exploitability score, vulnerability impact score, vulnerability exploitability maturity, and patch release status. The risk analysis module is used to analyze vulnerabilities in a container cluster environment using a trained neural network model, and to evaluate the priority ranking of cluster vulnerability remediation under resource constraints by combining system architecture characteristics and vulnerability vulnerability characteristics. This involves using a trained neural network model to analyze vulnerabilities in a container cluster environment, and combining system architecture characteristics with vulnerability vulnerability characteristics to assess the priority ranking of cluster vulnerability remediation under resource constraints, including: Using a trained neural network model, with the container cluster environment as input, the threshold of the general vulnerability assessment index is mapped to obtain the general vulnerability assessment index value in the cluster environment, and then the vulnerability exploitability score in the cluster environment is calculated to update the vulnerability vulnerability characteristics. The remediation cost and risk score of vulnerabilities are calculated based on system architecture characteristics and vulnerability vulnerability characteristics. The remediation priority of cluster vulnerabilities is evaluated based on the available remediation cost and the cluster system risk score.

6. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-4.

7. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Container mirror image library safety evaluation system and method based on dependency relationship

    CN113111353A

  • Vulnerability repair priority evaluation method and system

    CN114780965A