Overview

FieldValue
ID1003
NameNamespaced pod attach
Risk CategoryElevation of Privilege
Risk LevelHigh
Role TypeRole
API Groupscore
Resourcespods/attach
Verbscreate
TagsCodeExecution LateralMovement PodAttach PotentialPrivilegeEscalation

Description

Allows attaching to the input/output streams of pods within a specific namespace. This can provide interactive access to containers in that namespace, risking code execution, lateral movement, and potential privilege escalation through compromised workloads.

Abuse Scenarios

  1. Attach to a running container’s process within the namespace.
kubectl attach -it <pod-name> -n <namespace> -c <container-name>
# Example: Attach to a logging agent pod in the 'monitoring' namespace
# kubectl attach -it fluentd-xyz -n monitoring -c fluentd