Overview

FieldValue
ID1005
NameNamespaced pod port-forward
Risk CategoryInformation Disclosure
Risk LevelMedium
Role TypeRole
API Groupscore
Resourcespods/portforward
Verbscreate
TagsLateralMovement NetworkManipulation PodPortForward

Description

Permits forwarding local ports to ports on pods within a specific namespace. This can expose internal services within that namespace, enable lateral movement, and potentially lead to information disclosure from applications not intended for external access.

Abuse Scenarios

  1. Forward a local port to a port on a specific pod within the namespace.
kubectl port-forward <pod-name> -n <namespace> <local-port>:<pod-port>
# Example: Forward local port 3000 to port 3000 of a frontend pod
# kubectl port-forward my-frontend-pod -n default 3000:3000