Lateral movement

Controller of pods with role that allows attaching or executing commands inside a pod

Risk Level

Hazardous (3)

Platform(s)
  • N/A

Compliance Frameworks

Description

Controllers are responsible for pods state using a declaration of pod definition. Pods utilize a service account associated with them to communicate with the Kubernetes API, and that service account is mounted by default to any newly created containers. Orca has detected that the Controller {K8sController} creates pods that can execute code or command in a container or ""attaching"" to a container. An attacker with access to the pod's container can extract the service account token and impersonate to it in order to gain a persistence foothold of the {K8sController.PodSpec.K8sCluster} cluster or to gain access to sensitive data accessible by other pods.
  • Recommended Mitigation

    Consider changing {K8sController}'s role according to the least privilege principle.