Check provider logo

Kubernetes web UI (Dashboard) is disabled on Kubernetes Engine clusters

cs_kubernetes_dashboard_disabled

Severityhigh
Servicecs
by Prowler

Alibaba Cloud Kubernetes Engine clusters should not have the Kubernetes Dashboard (web UI) enabled. The Dashboard uses a highly privileged Service Account that can perform administrative operations across the cluster. Use the ACK Console instead, which provides fine-grained access control through RAM policies and RBAC integration.

Risk

The Kubernetes Dashboard uses a highly privileged Service Account with broad cluster access. If compromised through a vulnerability or unauthorized access, an attacker could gain full control over the cluster, deploy malicious workloads, exfiltrate secrets, and escalate privileges, impacting confidentiality, integrity, and availability of all workloads and data.

Run this check with Prowler CLI

prowler alibabacloud --checks cs_kubernetes_dashboard_disabled

Recommendation

Delete the Kubernetes Dashboard deployment from the kube-system namespace using kubectl or the ACK Console. Use the ACK Console for cluster management instead of the Kubernetes Dashboard.

Remediation

CLI

kubectl delete deployment kubernetes-dashboard -n kube-system

Other
  1. Log on to the ACK Console.
  2. Select the target cluster and select the kube-system namespace in the Namespace pop-menu.
  3. Input dashboard in the deploy filter bar.
  4. Make sure there is no result after the filter.
  5. If dashboard exists, delete the deployment by selecting Delete in the More pop-menu.

Source Code

Resource Type

ALIYUN::CS::ManagedKubernetesCluster

References