CyberKit

ATT&CK map

T1612: Build Image on Host

Tactics: Stealth. Platforms: Containers.

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.

MITRE's 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.

Telemetry that detects it

  • Image Creation
  • Network Connection Creation

Mitigations

Limit Access to Resource Over Network
Limit communications with the container service to local Unix sockets or remote access via SSH.
Network Segmentation
Deny direct remote access to internal systems through the use of network proxies, gateways, and firewalls.
Privileged Account Management
Ensure containers are not running as root by default. In Kubernetes environments, consider defining Pod Security Standards that prevent pods from running privileged containers.
Audit
Audit images deployed within the environment to ensure they do not contain any malicious components.

T1612 on attack.mitre.org

MITRE ATT&CK Enterprise 19.2. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.