Back to services
service6443/tcp

Kubernetes

KubernetesK8sKube

Kubernetes is a container orchestration platform. Exposed API server and kubelet ports allow pod creation, command execution, and cluster compromise.

Ports

PortProtocolDescription
6443tcpKubernetes API
10250tcpKubelet API
10255tcpKubelet (read-only)
2379tcpetcd

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
.envEnvironment variables with API keys and DB creds
config.phpApplication configuration file
wp-config.phpWordPress database credentials
web.configIIS configuration file
.git/configGit repository configuration
robots.txtDisallowed paths (information disclosure)
sitemap.xmlURL structure enumeration

Default Credentials

UsernamePasswordContext
adminadminGeneric admin account
rootrootGeneric root account

Known CVEs

IdentifierTypeDescription
CVE-2024-3727RCEKubelet API auth bypass

Exploitation Primitives

TechniqueTool / CommandResult
Kubelet Execkubectl --server=https://<target>:6443 --insecure-skip-tls-verify run --image=alpine test -- shPod creation
etcd Accessetcdctl --endpoints=http://<target>:2379 get / --prefix --keys-onlyRead cluster secrets

Notes

etcd usually stores cluster secrets including service account tokens. If etcd is accessible, the cluster is compromised.

Kubelet API on 10250 allows running commands in any pod without auth.

`kubectl --server=https://<target>:6443 --insecure-skip-tls-verify get pods --all-namespaces`

Seen on

ShodanCensysFOFAZoomEye

References