Detection rules for VMware ESXi data sources. Each rule includes its MITRE ATT&CK mapping, impact rating, and a description of what it detects.

This category contains 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

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.

ESXi Firewall Rule Modification Detection

Detects modifications to ESXi firewall ruleset configurations using esxcli network firewall commands. Attackers modify firewall rules to enable outbound connections for C2 communication or to expose management interfaces.

ESXi Host Compromise Indicators

Detects indicators of ESXi host compromise including ransomware preparation activities, suspicious file operations on virtual machines, logging tampering, and abnormal system changes. Monitors for encryption tools, VM power operations, and file system modifications.

ESXi Local Account Manipulation Detection

Detects creation or modification of local ESXi user accounts. Attackers create backdoor accounts on ESXi hosts for persistent access, or modify existing accounts to escalate privileges.

ESXi Ransomware Attack Detection

Detects ESXi ransomware attack patterns including mass VM shutdown, VMDK encryption indicators, suspicious script execution, and deletion of VM snapshots. ESXiArgs and similar ransomware families target ESXi hosts to encrypt virtual machine disk files.

ESXi Syslog Forwarding Disruption Detection

Detects attempts to disable or modify ESXi syslog forwarding to prevent security monitoring. Attackers disable syslog to operate without detection by the SIEM.

ESXi Unsigned VIB Installation Detection

Detects installation of unsigned or community-supported VIB (vSphere Installation Bundle) packages on ESXi hosts. APT groups use malicious VIBs for persistent backdoor access to hypervisors that survive reboots and updates.

ESXi Virtual Disk Theft Detection

Detects potential theft of virtual machine disk files (.vmdk) through Datastore Browser downloads, SCP transfers, or unauthorized vmkfstools operations. Attackers exfiltrate VMDK files to obtain complete system images.

PowerCLI Script Execution Detection

Detects PowerCLI script execution on VMware ESXi hosts by monitoring for authentication events and command execution patterns associated with MS Web Services Client Protocol, which is unique to PowerCLI connections. PowerCLI is VMware's powerful command-line tool that can be used by attackers to perform reconnaissance, lateral movement, or persistence on virtualized infrastructure.

VMware ESXi Hypervisor Escape Attempt Detection

Detects potential hypervisor escape attempts through suspicious VMX process activity, abnormal privilege escalation, or unauthorized access to host resources from guest VMs. This rule identifies various indicators of compromise including CVE-2024-37085 exploitation, VMCI backdoor attempts, and unauthorized vpxuser activities.

VMware Tools Vulnerability Exploitation

Detects potential exploitation of VMware Tools vulnerabilities by monitoring for suspicious authentication events, command execution patterns, and error messages related to VMware Tools operations. VMware Tools vulnerabilities can be exploited to gain unauthorized access to virtual machines or escalate privileges within the virtualized environment.

VMware vCenter Server Attack Indicators

Detects potential attacks targeting vCenter Server including authentication anomalies, privilege escalation attempts, and suspicious command execution. Monitors for indicators of compromise such as unusual SSH enablement, service modifications, and administrative group changes.

Virtual Machine Escape Detection

Detects VM escape attempts through abnormal guest operations, suspicious VMware Tools activity, or attempts to access host resources from guest VMs. VM escape is a critical security event where an attacker breaks out of virtual machine containment to access the hypervisor or host system.

vSphere API Abuse Detection

Detects potential vSphere API abuse including unauthorized access attempts, suspicious API calls, and exploitation attempts. Monitors for authentication failures, unusual vpxuser activity, and rapid API requests that could indicate compromise or abuse of VMware vSphere infrastructure.