Overview of GhostFrame ESXi Framework
Recent threat intelligence research published by Recorded Future details GhostFrame, a previously undocumented post-exploitation framework designed specifically for compromised VMware ESXi environments. Identified by Insikt Group, the framework is utilized by a threat activity group designated as TAG-218, whose operational patterns overlap with Settra ransomware deployments.
GhostFrame shifts the post-exploitation paradigm by operating directly from the virtualization layer. Rather than targeting individual virtual machines (VMs) separately, attackers who achieve initial root-level access to an ESXi host can deploy GhostFrame to manage hosted VMs, harvest credentials, and pivot deeper into victim networks from a single centralized interface.
Technical Analysis and Capabilities
GhostFrame consists of a web-based operator panel featuring “Sessions” and “Builder” sections, alongside the compiled ESXi implant designated as vmhostd-core. Operators must already possess root privileges on the target hypervisor, as the framework does not rely on a software vulnerability for initial access.
Persistence and Defense Evasion
Once deployed to a compromised ESXi host, the implant establishes persistence through several distinct mechanisms:
- Binary Placement: The implant copies itself to
/opt/vmhostd-core. - Startup Script Modification: It modifies the ESXi boot script located at
/etc/rc.local.d/local.shto execute the binary automatically upon boot. - Security Control Suppression: The startup script repeatedly disables the ESXi firewall and the
execInstalledOnlysecurity control—which normally restricts unsigned binaries—approximately every five seconds to neutralize administrative recovery attempts. - Configuration Backup: It executes
/sbin/auto-backup.shto preserve these modifications across system reboots. - Process Masquerading: The malware modifies its process name to
vmhostdto mimic legitimate VMware daemons.
Command-and-Control and Network Behavior
When attempting to communicate with its command-and-control (C2) server, the implant executes a distinctive multi-port connection strategy. It attempts simultaneous Transmission Control Protocol (TCP) connections across six specific ports: 53, 2222, 3389, 4444, 8443, and 9443. The first successful connection is utilized for C2 traffic, while unsuccessful connections are closed. This behavior generates near-simultaneous TCP SYN packets from the hypervisor to a single destination IP address.
Functionally, the implant acts as an in-memory shellcode loader, executing received machine code directly in memory without writing payloads to disk. If memory allocation fails, it falls back to a conventional /bin/sh reverse shell.
Lateral Movement and VM Manipulation
GhostFrame provides comprehensive control over the hypervisor ecosystem:
- VM Management: Operators can enumerate virtual machines, alter power states, create or delete snapshots, and enable Virtual Network Computing (VNC) access.
- Network Pivoting: The framework includes a SOCKS5 proxy component named
gfsoxto route traffic through the hypervisor into restricted internal networks. - Credential Harvesting: Components such as
sdkmonintercept credentials from Windows systems hosted on the hypervisor.
Actionable Mitigations and Detection
Defenders seeking how to detect GhostFrame ESXi implant activity should focus on hypervisor-level integrity monitoring and network telemetry.
- Monitor Startup Scripts: Regularly inspect
/etc/rc.local.d/local.shand/opt/directories for unauthorized modifications or unknown binaries mimicking legitimate daemon names. - Analyze Network Traffic: Hunt for anomalous multi-port connection attempts originating from ESXi management interfaces toward external IP addresses across ports 53, 2222, 3389, 4444, 8443, and 9443.
- Harden Access Controls: Restrict root access to ESXi hypervisors, enforce strict multi-factor authentication for management planes, and monitor for changes to firewall states and security settings like
execInstalledOnly.
Related: Weekly Threat Briefing: Trezor Supply Chain, LLMJacking & Flowise, Hackers Build Autonomous AI Frameworks for Credential Theft