For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Azure Kubernetes Service (AKS) local admin account is enabled misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_141

Category - Subcategory

IAM - Overly Permissive

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

Disabling the local admin account for your Azure Kubernetes Service (AKS) cluster can help improve the security of your cluster. The local admin account has full access to all resources within the cluster, and can make any changes to the cluster and its contents.

//

How to Fix

Resource: azurerm_kubernetes_cluster

  • Arguments: local_account_disabled [source,go]


resource "azurerm_kubernetes_cluster" "ckv_unittest_pass" { name = "example-aks1" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name local_account_disabled = true

default_node_pool { name = "default" node_count = 1 vm_size = "Standard_D2_v2" }

identity { type = "SystemAssigned" }

tags = { Environment = "Production" } }

Last updated

Was this helpful?