githubEdit

Kubectl-Kubeletctl

Download binary: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-kubectl-binary-with-curl-on-linux

Download:

curl -LO https://github.com/cyberark/kubeletctl/releases/download/v1.7/kubeletctl_linux_amd64

We can:

Interact with the cluster using kubectl

Read Kubernetes secrets

Do recon inside the cluster

Switch service accounts to escalate your privileges

Lateral movement into other workloads

Gain access to the Kubernetes nodes

Note: If the user is in the microk8s group, we can issue kubectl commands with the microk8s.kubectl or "k0s kubectl" pretext.

Example commands:

1)

2)

3)

4)

5)

6)

7)

For a detailed usage: we can do kubectl help or search online https://kubernetes.io/docs/reference/kubectl/

If the kubernetes services are exposed to the internet, and anonymous access is allowed, we can do:

1)

2)

3)

Last updated