Attacks and Exploits

A tester has a shell inside a Kubernetes pod and wants to reach the underlying node. Which three pod settings would allow this? (Choose three.)

Choose 3 answers

Show the answer

Correct answersB. Mount the host's container runtime socket into the podC. Run the container with the privileged flag setE. Mount the node's root filesystem into the pod with hostPath

AWhy not this: Resource limits cap usage to protect the node from exhaustion and give the pod no access to the host.

BWhy this is right: With the runtime socket, the tester can start a new container that mounts the host, reaching the node.

CWhy this is right: Privileged mode gives the container near-host capabilities and device access, enabling escape.

DWhy not this: A read-only root filesystem limits what can be written and does not expose the host.

EWhy this is right: A hostPath mount of the node's root lets the tester read and write host files, such as credentials or cron jobs.

A privileged container, an exposed runtime socket and a hostPath mount of the node's root each remove the isolation boundary and give access to the host. A read-only root filesystem is a hardening setting that restricts writes inside the container and does not expose the node. CPU and memory limits only cap resource use.