T1610 – Deploy Container (Prisma Cloud Detection)

Prisma Cloud Alert Details

Alert ID: PRISMA-DEPLOY-CONTAINER-1610-7842
Alert Time: 2024-02-13 09:15:33 EST
Severity: HIGH (82/100)
Source: Prisma Cloud Compute
Rule: “Unauthorized Container Deployment – Crypto Mining”
MITRE ATT&CK: T1610 – Deploy Container

Alert Details:

Detection: Unauthorized container deployed in Kubernetes cluster

Cluster: dev-eks-cluster-02

Namespace: default (unauthorized namespace)

Image: docker.io/monero/xmrig:latest

Container Name: kube-system-worker (masquerading as system pod)

Deployment Time: 09:08 EST

Container Details:

– Image Source: Public Docker Hub (not approved registry)

– Image Tag: latest (unsigned, untrusted)

– Privileges: Privileged mode enabled

– Host Network: Enabled

– Resource Limits: None (unlimited CPU)

Behavior Analysis:

– CPU Usage: 95% immediately after start

– Network Connections:

  – mining.pool.support:3333 (Monero mining pool)

  – xmr-usa.dwarfpool.com:8005

  – 185.143.221[.]89:443 (C2)

– Processes:

  – /bin/xmrig –config=config.json

  – /bin/bash -c while true; do curl -s http://194.165.16[.]89/keepalive; done

Anomaly Detection:

– No Kubernetes deployment or service associated

– Container created via direct Docker API (not kubectl)

– Source: Worker node IP 10.0.78.34 (compromised node)

– Image not in approved registry list

– Mining behavior detected

SOC Investigation Process

StepActionTools UsedFindings
1. Alert ValidationVerify Prisma Cloud alertPrisma Cloud ConsoleConfirmed unauthorized crypto-mining container
2. Immediate ContainmentKill container, block imagekubectl, PrismaContainer terminated; image blocked
3. Source InvestigationIdentify compromised nodeKubernetes Audit LogsWorker node 10.0.78.34 had SSH compromise
4. Node RemediationIsolate and reimage nodeAWS EC2, AnsibleNode isolated; reimaged from clean AMI
5. Cluster-wide CheckScan for other malicious containersPrisma, kube-benchNo other unauthorized containers found
6. Access ReviewReview Kubernetes RBACKubernetes AuditNode’s kubelet credentials abused

Jira Incident Report

Ticket: SOC-2024-068
Summary: T1610 – Unauthorized Crypto-Mining Container Deployed in Dev Cluster
Status: RESOLVED
Resolution: MALICIOUS – Container Removed
Priority: P2 – MEDIUM
Labels: T1610, deploy-container, crypto-mining, kubernetes, prisma-cloud
Components: Container-Security, Cloud-Security


INCIDENT ANALYSIS REPORT

1. Initial Context:

  • Detection Source: Prisma Cloud Compute.
  • Alert: “Unauthorized Container Deployment – Crypto Mining”.
  • Cluster: dev-eks-cluster-02.
  • Time: 2024-02-13 09:15 EST.
  • Technique: MITRE ATT&CK T1610 – Deploy Container.

2. Technical Analysis:

  • Attack Chain:

1. Attacker exploited SSH on worker node 10.0.78.34 (weak password)

2. Gained root access to node

3. Used node’s kubelet credentials to deploy container via Docker API (bypassing Kubernetes)

4. Deployed xmrig miner masquerading as kube-system-worker

5. Container connected to mining pools and C2

  • Container Details:
  • Image: docker.io/monero/xmrig:latest (public, untrusted)
  • Name: kube-system-worker (evasion)
  • Privileges: Privileged, host network
  • Resources: Unlimited CPU (caused node slowdown)
  • Malicious Activity:
  • Monero mining at ~95% CPU
  • Connections to mining pools
  • Beacon to C2 every 60 seconds
  • Node Compromise:
  • SSH brute force from IP 45.134.225[.]78
  • Root access obtained due to weak password
  • No MFA on SSH (should be key-only)

3. Investigation Findings:

  • Timeline:

08:45 – SSH brute force from 45.134.225[.]78

08:47 – Attacker gains root access

08:50 – Attacker downloads kubectl, examines cluster

08:55 – Attacker deploys miner via Docker API

09:08 – Miner container starts

09:12 – Prisma Cloud detects crypto-mining behavior

09:15 – Alert triggers

09:16 – Container terminated

09:20 – Node isolated

  • Impact:
  • Mining ran for 8 minutes
  • Estimated cost: $50 in cloud compute
  • No customer data accessed
  • No lateral movement
  • Indicators of Compromise (IoCs):

Network:

– Attacker IP: 45.134.225[.]78

– Mining Pools: mining.pool.support:3333, xmr-usa.dwarfpool.com:8005

– C2: 185.143.221[.]89:443

Container:

– Image: docker.io/monero/xmrig:latest

– Name: kube-system-worker

4. Containment Actions:

  • Immediate Actions:
  • Terminated malicious container.
  • Blocked mining pool domains at firewall.
  • Isolated compromised worker node.
  • Reimaged node from clean AMI.
  • Cluster-wide Actions:
  • Scanned all nodes for similar activity (none).
  • Reviewed all containers for unauthorized images.
  • Rotated all kubelet credentials.
  • Prevention:
  • Blocked public Docker Hub registry (allow only approved).
  • Implemented admission controller to validate images.
  • Enforced resource limits.

5. Root Cause Analysis:

  • Primary Cause: Weak SSH password on worker node.
  • Contributing Factors:
  1. SSH exposed to internet (should be internal only).
  2. No MFA or key-based authentication.
  3. Kubelet credentials allowed container deployment.
  4. No admission control for untrusted images.

6. Business Impact:

  • Operational Impact: Node offline for 2 hours; miner consumed resources.
  • Financial Impact: ~$50 in compute costs.
  • Data Exposure: None.

7. Remediation & Prevention:

Completed Actions:

  • checkedContainer terminated.
  • checkedNode reimaged.
  • checkedCredentials rotated.

Technical Controls Enhanced:

  • checkedDisabled SSH password authentication (key only).
  • checkedMoved SSH to internal VPN only.
  • checkedImplemented image allowlist in admission controller.
  • checkedEnabled Prisma Cloud runtime protection.
  • checkedDeployed network policies to block mining pools.

8. Conclusion:

Attackers compromised a worker node via weak SSH and deployed a crypto-mining container. Prisma Cloud detected the unauthorized container and mining behavior within minutes. The container was terminated, node reimaged, and controls enhanced.

Closure Rationale: Container removed; node secured; mining blocked.

Analyst: [Walter White], SOC Analyst
Date: 2024-02-13 11:00 EST

Leave a Comment