Detection rules for VMware ESXi Data sources. Every rule contains its MITRE ATT&CK mapping, an impact rating, and details on what it identifies.

This category lists 14 detection rules.

RuleCategoryTechniqueImpact (C/I/A)
ESXi Direct SSH Login DetectionRemote AccessT1021.004 - Remote Services: SSHC:3 / I:3 / A:2
ESXi Firewall Rule Modification DetectionDefense EvasionT1562.004 - Impair Defenses: Disable or Modify System FirewallC:2 / I:3 / A:2
ESXi Host Compromise IndicatorsExecutionT1059 - Command and Scripting InterpreterC:3 / I:3 / A:3
ESXi Local Account Manipulation DetectionPersistenceT1098 - Account ManipulationC:3 / I:3 / A:2
ESXi Ransomware Attack DetectionImpactT1486 - Data Encrypted for ImpactC:3 / I:3 / A:3
ESXi Syslog Forwarding Disruption DetectionDefense EvasionT1562.002 - Impair Defenses: Disable Windows Event LoggingC:1 / I:3 / A:2
ESXi Unsigned VIB Installation DetectionPersistenceT1195.002 - Supply Chain Compromise: Compromise Software Supply ChainC:3 / I:3 / A:3
ESXi Virtual Disk Theft DetectionCollectionT1005 - Data from Local SystemC:3 / I:1 / A:1
PowerCLI Script Execution DetectionExecutionT1059 - Command and Scripting InterpreterC:3 / I:3 / A:2
VMware ESXi Hypervisor Escape Attempt DetectionPrivilege EscalationT1611 - Escape to HostC:3 / I:3 / A:3
VMware Tools Vulnerability ExploitationInitial AccessT1190 - Exploit Public-Facing ApplicationC:3 / I:3 / A:2
VMware vCenter Server Attack IndicatorsInitial AccessT1190 - Exploit Public-Facing ApplicationC:3 / I:3 / A:3
Virtual Machine Escape DetectionPrivilege EscalationT1611 - Escape to HostC:3 / I:3 / A:3
vSphere API Abuse DetectionLateral MovementT1210 - Exploitation of Remote ServicesC:3 / I:3 / A:2

Rule Example

Below is an example of a rule definition for ESXi Direct SSH Login Detection (view in repository):

# Rule version v1.0.0

dataTypes:
  - vmware-esxi
name: ESXi Direct SSH Login Detection
impact:
  confidentiality: 3
  integrity: 3
  availability: 2
category: Remote Access
technique: "T1021.004 - Remote Services: SSH"
adversary: origin
references:
  - https://kb.vmware.com/s/article/1017910
  - https://attack.mitre.org/techniques/T1021/004/
description: |
  Detects direct SSH login to ESXi hosts, which is a security concern as ESXi management should primarily be done through vCenter. Direct SSH access is commonly used by attackers for ransomware deployment and post-exploitation activities.

  Next Steps:
  1. Verify the SSH login was from an authorized administrator
  2. Check if SSH was enabled as part of authorized maintenance
  3. Review commands executed during the SSH session
  4. Disable SSH access after maintenance is complete
  5. Implement SSH access controls and key-based authentication
  6. Monitor for post-login suspicious activity
where: |
  exists("log.message") &&
  (
    (contains("log.message", "SSH") && contains("log.message", "login")) ||
    (contains("log.message", "sshd") && contains("log.message", "Accepted")) ||
    (contains("log.message", "SSH session") && contains("log.message", "opened")) ||
    (contains("log.message", "SSH") && contains("log.message", "enabled")) ||
    (contains("log.message", "ssh") && contains("log.message", "connection from"))
  )
groupBy:
  - adversary.hostname
  - adversary.ip

Rule Details

ESXi Direct SSH Login Detection

Identifies direct SSH logins to ESXi hosts, a security risk since ESXi management should normally occur through vCenter. Attackers frequently use direct SSH access for ransomware deployment and post-exploitation activity.

ESXi Firewall Rule Modification Detection

Identifies changes to ESXi firewall ruleset configurations made through esxcli network firewall commands. Attackers alter firewall rules to allow outbound connections for C2 communication or to expose management interfaces.

ESXi Host Compromise Indicators

Identifies signs of ESXi host compromise, such as ransomware preparation, suspicious file operations on virtual machines, logging tampering, and abnormal system changes. It monitors for encryption tools, VM power operations, and file system modifications.

ESXi Local Account Manipulation Detection

Identifies the creation or modification of local ESXi user accounts. Attackers establish backdoor accounts on ESXi hosts to maintain persistent access, or alter existing accounts to escalate privileges.

ESXi Ransomware Attack Detection

Flags ESXi ransomware attack patterns such as mass VM shutdown, indications of VMDK encryption, suspicious script execution, and removal of VM snapshots. ESXiArgs and comparable ransomware families target ESXi hosts in order to encrypt virtual machine disk files.

ESXi Syslog Forwarding Disruption Detection

Identifies attempts to disable or alter ESXi syslog forwarding in order to prevent security monitoring. Attackers turn off syslog to operate without being detected by the SIEM.

ESXi Unsigned VIB Installation Detection

Identifies installation of unsigned or community-supported VIB (vSphere Installation Bundle) packages on ESXi hosts. APT groups leverage malicious VIBs to maintain persistent backdoor access to hypervisors that remain through reboots and updates.

ESXi Virtual Disk Theft Detection

Identifies possible theft of virtual machine disk files (.vmdk) via Datastore Browser downloads, SCP transfers, or unauthorized vmkfstools operations. Attackers exfiltrate VMDK files to acquire complete system images.

PowerCLI Script Execution Detection

Identifies PowerCLI script execution on VMware ESXi hosts by monitoring authentication events and command execution patterns linked to MS Web Services Client Protocol, which is specific to PowerCLI connections. PowerCLI is VMware's powerful command-line tool, and attackers can use it for reconnaissance, lateral movement, or persistence on virtualized infrastructure.

VMware ESXi Hypervisor Escape Attempt Detection

Identifies possible hypervisor escape attempts via suspicious VMX process activity, abnormal privilege escalation, or unauthorized access to host resources from guest VMs. This rule detects multiple indicators of compromise, such as CVE-2024-37085 exploitation, VMCI backdoor attempts, and unauthorized vpxuser activities.

VMware Tools Vulnerability Exploitation

Identifies possible exploitation of VMware Tools vulnerabilities by monitoring suspicious authentication events, command execution patterns, and error messages tied to VMware Tools operations. Vulnerabilities in VMware Tools can be exploited to gain unauthorized access to virtual machines or to escalate privileges within the virtualized environment.

VMware vCenter Server Attack Indicators

Identifies possible attacks against vCenter Server, including authentication anomalies, privilege escalation attempts, and suspicious command execution. It monitors for indicators of compromise, such as unusual SSH enablement, service modifications, and administrative group changes.

Virtual Machine Escape Detection

Identifies VM escape attempts via abnormal guest operations, suspicious VMware Tools activity, or efforts to access host resources from guest VMs. VM escape is a critical security event in which an attacker breaks out of virtual machine containment to reach the hypervisor or host system.

vSphere API Abuse Detection

Identifies possible vSphere API abuse, such as unauthorized access attempts, suspicious API calls, and exploitation attempts. It monitors for authentication failures, unusual vpxuser activity, and rapid API requests that may indicate compromise or abuse of VMware vSphere infrastructure.