last sync: 2021-Sep-24 16:09:49 UTC

Azure Policy definition

Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version

Name Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version
Azure Portal
Id fb893a29-21bb-418c-a157-e99480ec364c
Version 1.0.2
details on versioning
Category Security Center
Microsoft docs
Description Upgrade your Kubernetes service cluster to a later Kubernetes version to protect against known vulnerabilities in your current Kubernetes version. Vulnerability CVE-2019-9946 has been patched in Kubernetes versions 1.11.9+, 1.12.7+, 1.13.5+, and 1.14.0+
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-08-19 13:49:29 change Previous DisplayName: [Preview]: Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version
Used in Initiatives
Initiative DisplayName Initiative Id Initiative Category State
[Deprecated]: Azure Security Benchmark v1 42a694ed-f65e-42b2-aa9e-8052e9740a92 Regulatory Compliance Deprecated
[Deprecated]: Azure Security Benchmark v2 bb522ac1-bc39-4957-b194-429bcd3bcb0b Regulatory Compliance Deprecated
[Deprecated]: DoD Impact Level 4 8d792a84-723c-4d92-a3c3-e4ed16a2d133 Regulatory Compliance Deprecated
[Preview]: CMMC Level 3 b5629c75-5c77-4422-87b9-2509e680f8de Regulatory Compliance Preview
[Preview]: NIST SP 800-171 R2 03055927-78bd-4236-86c0-f36125a10dc9 Regulatory Compliance Preview
[Preview]: NIST SP 800-53 Rev. 5 179d1daa-458f-4e47-8086-2a68d0d6c38f Regulatory Compliance Preview
FedRAMP High d5264498-16f4-418a-b659-fa7ef418175f Regulatory Compliance GA
FedRAMP Moderate e95f5a9f-57ad-4d03-bb0b-b1d16db93693 Regulatory Compliance GA
NIST SP 800-53 Rev. 4 cf25b9c1-bd23-4eb6-bd2c-f4f3ac644a5f Regulatory Compliance GA
JSON
{
  "displayName": "Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version",
  "policyType": "BuiltIn",
  "mode": "Indexed",
  "description": "Upgrade your Kubernetes service cluster to a later Kubernetes version to protect against known vulnerabilities in your current Kubernetes version. Vulnerability CVE-2019-9946 has been patched in Kubernetes versions 1.11.9+, 1.12.7+, 1.13.5+, and 1.14.0+",
  "metadata": {
    "version": "1.0.2",
    "category": "Security Center"
  },
  "parameters": {
    "effect": {
      "type": "String",
      "metadata": {
        "displayName": "Effect",
        "description": "Enable or disable the execution of the policy"
      },
      "allowedValues": [
        "Audit",
        "Disabled"
      ],
      "defaultValue": "Audit"
    }
  },
  "policyRule": {
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.ContainerService/managedClusters"
        },
        {
          "anyOf": [
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "in": [
                "1.13.4",
                "1.13.3",
                "1.13.2",
                "1.13.1",
                "1.13.0"
              ]
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "in": [
                "1.12.6",
                "1.12.5",
                "1.12.4",
                "1.12.3",
                "1.12.2",
                "1.12.1",
                "1.12.0"
              ]
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "in": [
                "1.11.8",
                "1.11.7",
                "1.11.6",
                "1.11.5",
                "1.11.4",
                "1.11.3",
                "1.11.2",
                "1.11.1",
                "1.11.0"
              ]
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.10.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.9.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.8.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.7.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.6.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.5.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.4.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.3.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.2.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.1.*"
            },
            {
              "field": "Microsoft.ContainerService/managedClusters/kubernetesVersion",
              "Like": "1.0.*"
            }
          ]
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]"
    }
  }
}