Editar

Compartir vía


Kubernetes node vulnerability assessment

Defender for Cloud can scan the VMs that host Kubernetes nodes to assess vulnerabilities to the OS and installed software. Recommendations for remediation are generated for the customer security team to review and remediate as part of the shared responsibility to maintain the Kubernetes nodes of a cluster.

Prerequisite

Vulnerability assessment of the nodes must be enabled by turning on the Agentless scanning for machines option in the Defender for Containers, Defender Cloud Security Posture Management, or Defender for Servers P2 plan.

Review the Kubernetes node vulnerability recommendations

If vulnerabilities are found for a Kubernetes node, a recommendation is generated for the customer to review. To review Kubernetes node recommendations for remediation in the Azure portal:

  1. Select Recommendations from the Defender for Cloud menu. Screenshot of selecting the recommendations submenu of the Defender for Cloud pane.

  2. Select the AKS nodes should have vulnerability findings resolved recommendation. Screenshot showing the selection of the nodes recommendation line.

  3. The full details of the Kubernetes node recommendation are shown. Along with a full description of the vulnerability, other details such as the name of the affected Kubernetes node pool and its cluster are presented. Screenshot showing the details of the recommendation for the Kubernetes node.

  4. Select the Findings tab to view a list of CVEs relating to the Kubernetes node. Screenshot of selecting the findings tab to view a list of CVEs related to the Kubernetes node.

  5. Selecting one of the CVE lines opens a pane giving full details about the CVE and all the Kubernetes node resources that also have this vulnerability. Screenshot of the pane showing all the details of the CVE and Kubernetes node resources affected.

In the details pane, the Node pool instances section shows the nodes to be affected by the remediation. The More affected resources shows other nodes that have the same CVE and should be remediated as well.

Remediate Kubernetes node vulnerabilities

Kubernetes node vulnerabilities are remediated by updating the node pool VM image version. The customer upgrades the node pool, as part of the shared responsibility between the Kubernetes service and the customer. The customer upgrades the node pool in one of two ways - either upgrade the node pool VM image and/or the cluster's Kubernetes service, to a newer version. It is recommended to upgrade the node pool VM image first. In some cases, the customer needs to upgrade the cluster's Kubernetes service version and the node pool VM image version to remediate the vulnerability.

Important

The cluster's Kubernetes version and the node pool VM image can be set to auto-upgrade. These versions should be regularly upgraded to provide maximum security for you AKS resources.

Upgrade the node pool VM image

  1. Select the Fix button in the recommendations pane. Screenshot showing the details of the recommendation for the Kubernetes node and the highlighted Fix button.

  2. To upgrade the node pool VM image, select the Update Image button or select Upgrade Kubernetes to upgrade the cluster Kubernetes service version. Screenshot showing the overview details of the Kubernetes node pool for updating its image.

Next steps

Learn how to use the Cloud Security Explorer to investigate vulnerabilities in a cluster node.