Misconfigured and Vulnerable Cluster Components

Misconfigured and Vulnerable Cluster Components

The API server was locked. The kubelet was not.

What Is Misconfigured and Vulnerable Cluster Components?

The API server is not the only thing a cluster exposes: every node runs a kubelet with its own API, and an old cluster runs old software. You'll be refused by the API server, read every pod spec from a kubelet's unauthenticated read-only port, use a database password written into one, and read the node's out-of-support version. Then you'll close the port, require webhook authentication on the kubelet, rotate the password and plan the upgrade path. Maps to OWASP Kubernetes Top Ten K07, Misconfigured and Vulnerable Cluster Components.

What You'll Learn in Misconfigured and Vulnerable Cluster Components

Misconfigured and Vulnerable Cluster Components — Training Steps

  1. The API server says no

    Bob's scan of Varnholt's address range found a Kubernetes API server. It requires a credential, which he does not have. The same scan found another open port on a worker node: 10255. Varnholt runs real-time ad auctions for publishers. Its bidding services process billions of requests a day.

  2. The kubelet's read-only port

    Port 10255 is the kubelet's read-only port. It predates kubelet authentication and, when enabled, serves the node's pods to anyone who asks over plain HTTP.

  3. How old is this node

    The kubelet also serves its metrics on the same port, including its own build version.

  4. Open the bidding database

    The database is reachable from the same network as the node. Bob connects with the password from the pod spec.

  5. Read the advertisers' strategies

    Bob reads what each advertiser bids and on whom.

  6. Check your understanding

  7. A competitor knows our bids

    Varnholt's security team links a leak of advertiser bidding data to a session on the bidding database from an unknown address.

  8. Check the node versions

    Alice starts with the nodes themselves.

  9. Open the kubelet configuration

    Alice opens the kubelet configuration baked into the node image.

  10. Three settings that open the kubelet

    The kubelet has its own authentication and authorization, separate from the API server's. Here, all of it is off.

Security Framework Coverage

OWASP Kubernetes Top 10

  • K07:2025 Misconfigured and Vulnerable Cluster Components

CWE

  • CWE-1395 Dependency on Vulnerable Third-Party Component
  • CWE-306 Missing Authentication for Critical Function

MITRE ATT&CK

  • T1613 Container and Resource Discovery
  • T1552.007 Unsecured Credentials: Container API

CIS Controls

  • CIS 7 Continuous Vulnerability Management
  • CIS 4 Secure Configuration of Enterprise Assets and Software

NIST CSF

  • PR.AT-02 Individuals in specialized roles are provided with awareness and training so that they possess the knowledge and skills to perform relevant tasks with cybersecurity risks in mind
  • ID.RA Risk Assessment
  • PR.PS Platform Security

NICE Framework

  • IO-WRL-005 Systems Administration
  • DD-WRL-001 Cybersecurity Architecture