last sync: 2020-Sep-25 13:37:27 UTC

Azure Policy

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

Policy DisplayName Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version
Policy Id fb893a29-21bb-418c-a157-e99480ec364c
Policy Category Security Center
Policy 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+
Policy Mode Indexed
Policy Type BuiltIn
Policy in Preview FALSE
Policy Deprecated FALSE
Policy Effect Default: Audit
Allowed: (Audit,Disabled)
Roles used none
Policy Changes
Date/Time (UTC ymd) (i) Change Change detail
2020-08-19 13:49:29 change: DisplayName previous DisplayName: [Preview]: Kubernetes Services should be upgraded to a non-vulnerable Kubernetes version
Used in Policy Initiative(s)
Initiative DisplayName Initiative Id
[Preview]: NIST SP 800-171 R2 03055927-78bd-4236-86c0-f36125a10dc9
Enable Monitoring in Azure Security Center 1f3afdf9-d0c9-4c3d-847f-89da613e70a8
[Preview]: Azure Security Benchmark 42a694ed-f65e-42b2-aa9e-8052e9740a92
[Deprecated]: DOD Impact Level 4 8d792a84-723c-4d92-a3c3-e4ed16a2d133
Policy Rule
{
  "properties": {
    "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')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/fb893a29-21bb-418c-a157-e99480ec364c",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "fb893a29-21bb-418c-a157-e99480ec364c"
}