Join our Newsletter — 33% off our NHI Course
Home› Guides› How to find exposed Kubernetes API servers, dashboards…
Guide Cloud Security

How to find exposed Kubernetes API servers, dashboards and kubelets: a quick self-audit of your own clusters

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 19 November 2026 14 min read
On this page

This guide shows platform and security teams how to audit their own Kubernetes estate for API servers, dashboards and kubelets that are reachable from places they should not be, and how to close each finding. Internet-facing control planes are scanned continuously, so the question is not whether someone will find an open endpoint but whether you find it first. Everything here is defensive discovery of clusters you own or are authorised to assess: you work from your own inventory, cloud accounts and cluster configuration, not from probing other people's address space.

The guide is a quick, repeatable self-audit. It sits alongside the broader cluster hardening and identity material on this site; it does not repeat general RBAC design, admission control or secrets encryption, which are covered in the Kubernetes Security Guide and related pages.

Key takeaways

  • Three components matter most for exposure: the API server, any web dashboard, and the kubelet HTTPS endpoint on every node. Each has its own authentication and authorisation settings.
  • The Kubernetes documentation states that kubelet requests not rejected by another authenticator are treated as anonymous by default, and that the default kubelet authorisation mode is AlwaysAllow. Check every node pool, not just the control plane.
  • Anonymous access to the API server is enabled by default when an authorisation mode other than AlwaysAllow is used. That is normally safe only because RBAC grants the anonymous user very little; a single bad binding changes that.
  • The Kubernetes Dashboard project is archived and no longer maintained. Any instance you still run is unmaintained software in front of cluster credentials and should be removed or replaced.
  • get on nodes/proxy is not read-only. The kubelet documentation warns that it authorises executing commands in any container on the node. Treat it as a cluster admin grade permission.
  • Start from inventory: list every cluster, every load balancer and every public IP in your own accounts, then test reachability from outside using only those targets.

Why exposed control planes keep turning up

Kubernetes clusters are created by many routes: managed services, infrastructure as code, quick start scripts, vendor appliances and lab environments that quietly become production. Each route has its own defaults for where the API server listens and who can reach it. The Kubernetes documentation notes that by default the API server listens on port 6443 on the first non-localhost network interface, protected by TLS, and that in a typical production cluster the API serves on port 443. A cluster built on a cloud instance with a public interface can therefore publish its API to the internet without anyone deciding that it should.

Dashboards and kubelets add more surface. A dashboard is a web application that proxies requests to the API server, so whoever can reach it and present a token can act with that token's rights. The kubelet runs on every node and exposes an HTTPS API that, in the words of the Kubernetes documentation, gives access to data of varying sensitivity and allows operations with varying levels of power on the node and within containers.

From an identity point of view, every one of these endpoints is a door for non-human credentials. Service account tokens, kubelet client certificates, cloud provider credentials and CI pipeline tokens all authenticate here. An exposed endpoint turns any leaked token into a remote foothold, which maps to MITRE ATT&CK techniques such as Exploit Public-Facing Application (T1190), External Remote Services (T1133) and Container and Resource Discovery (T1613).

Scope and rules of engagement

Before you scan anything, write down the scope. This audit covers only:

  • Clusters, nodes, load balancers and IP ranges your organisation owns or operates, confirmed from your own cloud accounts, IPAM records or hosting contracts.
  • Third party or customer environments only where you hold written authorisation to assess them.
  • Read-only checks: confirming reachability and the response to an unauthenticated request. No attempt to use, guess or replay credentials.

Do not use internet-wide search engines or scan data to look at other organisations' clusters. If your external attack surface management tool reports a Kubernetes endpoint, confirm it belongs to you before acting, and route anything that does not to your security operations team rather than probing it. Tell your cloud and network teams when external checks will run so that alerts are expected.

Step 1: build the inventory of what should exist

An exposure audit fails if you only test what you already know about. Build the list from several sources and reconcile them:

  • Managed Kubernetes services. In each cloud account and subscription, list every managed cluster and record whether its API endpoint is public, private, or public with an allow list of source ranges.
  • Self-managed clusters. Search infrastructure as code repositories, configuration management and instance tags for control plane nodes. Look for kubeadm, k3s and similar installers in build scripts.
  • Load balancers and ingress. List every public load balancer, ingress controller and gateway and the backend services they route to. Dashboards are often published through an ingress rule that someone added for convenience.
  • Public IP addresses. Export every public IP attached to compute instances, especially node pools. A node with a public address may expose its kubelet even when the API server is private.
  • Kubeconfig files and CI configuration. The server URLs in kubeconfig files held by pipelines and administrators reveal clusters that the inventory missed.

Record an owner for every cluster. An unowned cluster is the most likely place to find an old dashboard or a node pool built from a stale template.

Step 2: check API server reachability and anonymous access

For each cluster API endpoint in your inventory, answer two questions from a network location outside your organisation, such as a dedicated audit host: can I reach it at all, and what does it give an unauthenticated caller?

Reachability should match the design. A private cluster should not answer from the internet. A public endpoint should be restricted to known source ranges where your platform supports that.

Next, look at anonymous access. The Kubernetes authentication documentation explains that when anonymous access is enabled, requests not rejected by other authenticators are treated as anonymous and given the username system:anonymous and the group system:unauthenticated. It also states that anonymous access is enabled by default if an authorisation mode other than AlwaysAllow is used, and can be disabled with --anonymous-auth=false on the API server. Newer releases also let you use an AuthenticationConfiguration file to limit which endpoints accept anonymous requests.

Anonymous access being enabled is not itself a breach. What matters is what the anonymous identity is authorised to do. The RBAC documentation lists system:public-info-viewer as bound to both system:authenticated and system:unauthenticated, giving read-only access to non-sensitive cluster information. It also notes that system:discovery and system:basic-user were bound to system:unauthenticated before v1.14. From inside the cluster, with your own administrator access, review bindings for the anonymous identities:

kubectl get clusterrolebindings,rolebindings -A -o wide | grep -E 'system:anonymous|system:unauthenticated'

Illustrative only; adapt to your tooling. Any binding beyond the default public information role deserves a ticket. A binding that grants system:anonymous or system:unauthenticated access to secrets, pods or cluster-wide resources is a critical finding: anyone who can reach the API can use it.

You can confirm the effective permission of the anonymous user without making unauthenticated calls from outside, by using impersonation from an administrator context:

kubectl auth can-i --list --as=system:anonymous

Illustrative only. The output should be limited to discovery and health style endpoints.

Step 3: find every dashboard and decide its future

The Kubernetes Dashboard repository now states that the project is archived and no longer maintained due to lack of active maintainers and contributors, and suggests Headlamp as an alternative. That changes the audit question from "is the dashboard configured safely" to "why is it still running".

To find dashboards in your own clusters, search for the common namespace and deployment names, and also for any web UI exposed through an ingress or a service of type LoadBalancer or NodePort:

  • Namespaces such as kubernetes-dashboard, and deployments or services whose names include dashboard.
  • Ingress rules and gateway routes that point to those services.
  • Services in any namespace with an external IP that serve a web interface.

When you find one, check how it authenticates. The dashboard access control documentation explains that the dashboard acts only as a proxy and passes authentication information to the API server, and that it supports an Authorization header on every request or a bearer token entered on the login view. Its own default privileges are narrow: access to its settings ConfigMap and to metrics. Risk comes from two places:

  • The token people log in with. If administrators paste long-lived service account tokens with broad rights into the login view, anyone who obtains that token from a browser, a chat message or a wiki page holds that power. The dashboard documentation itself notes that every service account has a Secret with a valid bearer token that can be used to log in, which is exactly the pattern you want to retire.
  • Extra rights granted to the dashboard's own service account. Older tutorials bound the dashboard service account to cluster-admin so that no login was needed. Search for any binding that grants the dashboard's service account more than the documented defaults.

The fix order is: remove public exposure immediately (delete the ingress rule or change the service type), revoke any broad binding on the dashboard service account, rotate any token known to have been used to log in, then plan removal or replacement with a maintained tool that uses your identity provider rather than pasted tokens.

Step 4: check every kubelet

Kubelets are the component most often missed, because they live on worker nodes rather than the control plane. The kubelet documentation is explicit about the defaults:

  • Requests to the kubelet's HTTPS endpoint that are not rejected by other configured authentication methods are treated as anonymous by default, with username system:anonymous and group system:unauthenticated.
  • The default kubelet authorisation mode is AlwaysAllow, which allows all requests.

Managed services and hardened installers usually override these defaults, but you must confirm it per node pool. On each node, or in the kubelet configuration your provisioning applies, check that:

  • Anonymous authentication is disabled (--anonymous-auth=false or the equivalent configuration file field), so unauthenticated requests receive 401 Unauthorized.
  • Client certificate authentication is enabled with --client-ca-file, and the API server presents its own client certificate with --kubelet-client-certificate and --kubelet-client-key.
  • Bearer token authentication, if used, goes through --authentication-token-webhook, so the kubelet calls the TokenReview API.
  • Authorisation is delegated to the API server with --authorization-mode=Webhook, so the kubelet calls the SubjectAccessReview API for each request.
  • Any legacy unauthenticated read-only port is disabled in the kubelet configuration.

Then check network reachability. Nodes with public IP addresses, or security groups that allow inbound traffic from any source to node ports, can expose the kubelet even when the API server is private. From your external audit host, confirm that the kubelet port on each of your own node addresses does not answer. From inside the network, confirm that only the control plane and your monitoring systems can reach it.

Step 5: review who can reach kubelets through the API

Even a well locked kubelet can be reached indirectly through the API server. The kubelet documentation maps kubelet paths to the nodes resource with subresources such as stats, metrics, log, spec, checkpoint and proxy, with all other paths falling under proxy. It warns that nodes/proxy permission grants access to all other kubelet APIs, including those that can execute commands in any container on the node, and that because some endpoints use WebSockets over HTTP GET, even get on nodes/proxy is not a read-only permission.

Search your roles and cluster roles for rules that include nodes/proxy or wildcard resources on the nodes resource, and list who is bound to them. Monitoring agents are the usual holders. Each should be justified, scoped to the narrowest subresource it needs (for example nodes/stats or nodes/metrics) and owned. This is a non-human identity review: the subjects are almost always service accounts.

Step 6: fix, verify and keep it fixed

Use a short severity scale so fixes are prioritised consistently:

FindingSuggested priorityFirst action
Anonymous or unauthenticated identity bound to anything beyond public info, on a reachable APICriticalRemove the binding, then review audit logs for its use
Kubelet answering from the internet with anonymous auth or AlwaysAllowCriticalBlock at the network layer, then fix kubelet configuration
Dashboard published publiclyHighRemove the ingress or external service; rotate tokens used to log in
Public API endpoint with no source restrictionHighRestrict to known ranges or move to a private endpoint
Broad nodes/proxy grantsMedium to highNarrow to specific subresources; assign owners

These priorities are NHI Mgmt Group suggestions; align them with your own risk scale.

After each fix, repeat the same external and internal checks to confirm the endpoint no longer answers or now returns 401. Where a critical finding existed, treat it as a possible incident: review the API server audit log for requests from system:anonymous or from unexpected source addresses, check for new workloads, service accounts and bindings, and rotate credentials that were reachable. The Kubernetes Audit Log Detection Guide covers the queries in more depth.

To keep the estate clean, turn the audit into guardrails: policy as code that rejects anonymous bindings and public dashboard services at admission, node pool templates that set kubelet authentication and authorisation explicitly, and a scheduled external check against your own inventory that alerts on any new answering endpoint.

Common failure patterns

  • Auditing only the control plane. Teams confirm the API is private and forget that worker nodes have public addresses and permissive security groups.
  • Trusting defaults across distributions. Managed service defaults do not carry over to self-built clusters, edge clusters or lab installs that were promoted.
  • Keeping the dashboard "because it is internal". Internal today becomes public after one ingress change, and the project no longer receives fixes.
  • Pasting long-lived service account tokens into web UIs. Those tokens end up in browser history, screenshots and chat, and rarely get rotated.
  • Treating get as read-only. get on nodes/proxy allows command execution, per the kubelet documentation.
  • Probing outside scope. Using internet scan data to look at clusters you do not own creates legal and ethical risk and adds nothing to your own security.
  • One-off audits. Without a recurring check, new clusters and node pools reintroduce the same exposure within weeks.

Practitioner checklist

  • Written scope covering only clusters and address ranges you own or are authorised to assess.
  • Reconciled inventory of clusters, node pools, public IPs, load balancers and kubeconfig server URLs, each with an owner.
  • Every API endpoint either private or restricted to known source ranges.
  • No bindings for system:anonymous or system:unauthenticated beyond the default public information role.
  • No Kubernetes Dashboard published externally; a dated plan to remove or replace every remaining instance.
  • Every kubelet with anonymous authentication disabled and Webhook authorisation, confirmed per node pool.
  • Kubelet ports unreachable from the internet on all your node addresses.
  • nodes/proxy grants listed, justified, narrowed and owned.
  • Audit log review and credential rotation completed for any critical finding.
  • Recurring external check and admission policies in place to stop regressions.

Standards and references

Related NHI Mgmt Group resources: How to audit Kubernetes cluster admin bindings · How to rotate a Kubernetes service account token and detect old token use · kube-bench and Kubescape Guide · Attack Surface Management Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.