A penetration tester is analyzing a Kubernetes cluster deployed on AWS (EKS) where a compromised pod is running with a service account that has access to the AWS IAM OIDC provider endpoint. The pod's container is running as root and has the host network namespace enabled. Which technique allows the tester to pivot from the container to the underlying cloud infrastructure?
Trap 1: Execute the docker-runc exploit directly against the Docker daemon…
EKS uses containerd, not Docker, and container escape via runc requires root on the host, which is a different vector.
Trap 2: Modify the kube-dns deployment manifest to redirect cloud control…
DNS redirection does not provide cloud credential access.
Trap 3: Leverage the Azure Instance Metadata Service endpoint to retrieve…
AWS EKS does not use Azure metadata services.
- A
Execute the docker-runc exploit directly against the Docker daemon socket mounted inside the container.
Why it fails: EKS uses containerd, not Docker, and container escape via runc requires root on the host, which is a different vector.
- B
Query the local Kubernetes API server using the projected service account token mounted in the pod to extract AWS STS credentials if an IAM role is annotated.
The projected service account token authenticates to the Kubernetes API, and where an IAM role is annotated via IRSA, the pod can request AWS STS credentials through the OIDC provider. This pivots from the compromised pod into the AWS account, matching the scenario's cloud pivot requirement.
- C
Modify the kube-dns deployment manifest to redirect cloud control plane traffic to a local proxy.
Why it fails: DNS redirection does not provide cloud credential access.
- D
Leverage the Azure Instance Metadata Service endpoint to retrieve subscription-level access tokens.
Why it fails: AWS EKS does not use Azure metadata services.