Technique.View on attack.mitre.org
Adversaries may deploy a container into an environment to facilitate execution or evade defenses. In some cases, adversaries may deploy a new container to execute processes associated with a particular image or deployment, such as processes that execute or download malware. In others, an adversary may deploy a new container configured without network rules, user limitations, etc. to bypass existing defenses within the environment. In Kubernetes environments, an adversary may attempt to deploy a privileged or vulnerable container into a specific node in order to Escape to Host and access other containers running on the node.
Containers can be deployed by various means, such as via Docker's create and start APIs or via a web application such as the Kubernetes dashboard or Kubeflow. In Kubernetes environments, containers may be deployed through workloads such as ReplicaSets or DaemonSets, which can allow containers to be deployed across multiple nodes. Adversaries may deploy containers based on retrieved or built malicious images or from benign images that download and execute malicious payloads at runtime.
Rules on DetectionCode tagged with T1610.
| Rule | Type | Risk | Data source |
|---|---|---|---|
| Linux Suspicious Docker Build Command Execution | Anomaly | NULL | Sysmon for Linux EventID 1 |
| Linux Suspicious Privileged Container Execution | Anomaly | NULL | Sysmon for Linux EventID 1 |
None recorded.
| Used by | Procedure example |
|---|---|
| GroupSalt Typhoon | Salt Typhoon has enabled Linux containers in victim network device environments using `guestshell enable`. |
| GroupTeamPCP | TeamPCP has deployed privileged DaemonSets to delete files on targeted Kubernetes clusters. |
| GroupTeamTNT | TeamTNT has deployed different types of containers into victim environments to facilitate execution. TeamTNT has also transferred cryptocurrency mining software to Kubernetes clusters discovered within local IP address ranges. |
| Used by | Procedure example |
|---|---|
| MalwareDoki | Doki was run through a deployed container. |
| MalwareKinsing | Kinsing was run through a deployed Ubuntu container. |
| ToolPeirates | Peirates can deploy a pod that mounts its node’s root file system, then execute a command to create a reverse shell on the node. |
| MalwareTeamPCP Cloud Stealer | TeamPCP Cloud Stealer can deploy a pod in Kubernetes containers to run a script to establish persistence. |
Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.