Container and Resource Discovery

T1613

Technique.View on attack.mitre.org

About this technique

Adversaries may attempt to discover containers and other resources that are available within a containers environment. Other resources may include images, deployments, pods, nodes, and other information such as the status of a cluster.

These resources can be viewed within web applications such as the Kubernetes dashboard or can be queried via the Docker and Kubernetes APIs. In Docker, logs may leak information about the environment, such as the environment’s configuration, which services are available, and what cloud provider the victim may be utilizing. The discovery of these resources may inform an adversary’s next steps in the environment, such as how to perform lateral movement and which methods to utilize for execution.

Detection rules1

Rules on DetectionCode tagged with T1613.

Sigma1

RuleLevelLog source
Kubernetes Potential Enumeration Activitymediumkubernetes / NULL

Splunk0

No Splunk rules are mapped to this technique yet.

Groups1

Software4

Campaigns0

None recorded.

Procedure examples5

Groups1

Used byProcedure example
GroupTeamTNT

TeamTNT has checked for running containers with docker ps and for specific container names with docker inspect. TeamTNT has also searched for Kubernetes pods running in a local network.

Software4

Used byProcedure example
MalwareCanisterWorm

CanisterWorm has performed environment fingerprinting to identify Kubernetes clusters. CanisterWorm has also searched for Kubernetes pods using the command ` os.path.exists("/var/run/secrets/kubernetes.io/serviceaccount") or "KUBERNETES_SERVICE_HOST" in os.environ `.

MalwareHildegard

Hildegard has used masscan to search for kubelets and the kubelet API for additional running containers.

ToolPeirates

Peirates can enumerate Kubernetes pods in a given namespace.

MalwareTeamPCP Cloud Stealer

TeamPCP Cloud Stealer can identify Docker and Kubernetes environments for credentials.

References2

  1. Docker API Open source
    Docker. (n.d.). Docker Engine API v1.41 Reference. Retrieved March 31, 2021.
  2. Kubernetes API Open source
    The Kubernetes Authors. (n.d.). The Kubernetes API. Retrieved March 29, 2021.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.