T1610
Deploy a container
Description from ATT&CK
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.
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.(Citation: Docker Containers API)(Citation: Kubernetes Dashboard)(Citation: Kubeflow Pipelines) Adversaries may deploy containers based on retrieved or built malicious images or from benign images that download and execute malicious payloads at runtime.(Citation: Aqua Build Images on Hosts)
Atomic Tests
Atomic Test #1 - Deploy Docker container
Adversaries may deploy containers based on retrieved or built malicious images or from benign images that download and execute malicious payloads at runtime. They can do this using docker create and docker start commands. Kinsing & Doki was exploited using this technique.
Supported Platforms: containers
auto_generated_guid: 59aa6f26-7620-417e-9318-589e0fb7a372
Inputs:
None
Attack Commands: Run with bash!
1
2
3
docker build -t t1610 $PathtoAtomicsFolder/T1610/src/
docker run --name t1610_container --rm -itd t1610 bash /tmp/script.sh
Cleanup Commands:
1
2
3
docker stop t1610_container
docker rmi -f t1610:latest
Dependencies: Run with sh!
Description: Verify docker is installed. Check Prereq Commands:
1
2
which docker
Get Prereq Commands:
1
2
if [ "" == "`which docker`" ]; then echo "Docker Not Found"; if [ -n "`which apt-get`" ]; then sudo apt-get -y install docker ; elif [ -n "`which yum`" ]; then sudo yum -y install docker ; fi ; else echo "Docker installed"; fi
Description: Verify docker service is running. Check Prereq Commands:
1
2
sudo systemctl status docker --no-pager
Get Prereq Commands:
1
2
sudo systemctl start docker