Exec Into Container (kubernetes)
Platform | Author | Last Update |
---|---|---|
kubernetes | Leo Tsaousis | 2024-12-02 |
Execute into a Pod’s container
Attackers who have permissions, can run malicious commands in a Pod’s container within the cluster using “kubectl exec” command
MITRE IDs
Scope
This test case does not need Cluster-wide permissions
Required Permissions
Required Parameters
Name | Type | Description | Example Value |
---|---|---|---|
podname | str | Name of the pod to exec into | vulnerable-pod |
command | str | The command to execute within the pod. | whoami |
Attacker Action
Detection Case
ELK query
When logs are ingested into ELK, the following query can be used to identify relevant events.