MITRE ATT&CKtechnique
T1612 Build Image on Host
- Domain
- enterprise
- Tactics
- Stealth
- Platforms
- Containers
- Version
- 2.0
- Created
- 2021-03-30
Description
Adversaries may build a container image directly on a host to bypass defenses that monitor for the retrieval of malicious images from a public registry. A remote build request may be sent to the Docker API that includes a Dockerfile that pulls a vanilla base image, such as alpine, from a public or local registry and then builds a custom image upon it.
An adversary may take advantage of that build API to build a custom image on the host that includes malware downloaded from their C2 server, and then they may utilize Deploy Container using that custom image. If the base image is pulled from a public registry, defenses will likely not detect the image as malicious since it’s a vanilla image. If the base image already resides in a local registry, the pull may be considered even less suspicious since the image is already in the environment.
Related
Tactic · MITRE ATT&CK (1)
- TA0005 Stealth tactic
Referenced by MITRE ATT&CK · mitigates (4)
Referenced by Compliance · mitigates (13)
- CIS-16.8 Separate Production and Non-Production Systems CIS Safeguard v8.1
- CIS-4.6 Securely Manage Enterprise Assets and Software CIS Safeguard v8.1
- NIST-AC-17 Remote Access NIST 800-53 control
- NIST-AC-2 Account Management NIST 800-53 control
- NIST-AC-3 Access Enforcement NIST 800-53 control
- NIST-AC-6 Least Privilege NIST 800-53 control
- NIST-CM-2 Baseline Configuration NIST 800-53 control
- NIST-CM-6 Configuration Settings NIST 800-53 control
- NIST-CM-7 Least Functionality NIST 800-53 control
- NIST-RA-5 Vulnerability Monitoring and Scanning NIST 800-53 control
- NIST-SA-11 Developer Testing and Evaluation NIST 800-53 control
- NIST-SC-7 Boundary Protection NIST 800-53 control
- NIST-SI-4 System Monitoring NIST 800-53 control
References
- https://blog.aquasec.com/malicious-container-image-docker-container-host Aqua Build Images on Hosts
- https://docs.docker.com/engine/api/v1.41/#operation/ImageBuild Docker Build Image
- https://web.archive.org/web/20220106180157/https://info.aquasec.com/hubfs/Threat%20reports/AquaSecurity_Cloud_Native_Threat_Report_2021.pdf Aqua Security Cloud Native Threat Report June 2021