ESXi System and Account Enumeration
Description
Detects shell commands that collect ESXi host details or the local account list, including uname -a, system
version, hostname, and esxcli system account list. The output identifies the build and the accounts that can
log in. Listing accounts shows which identities exist before one of them is changed or used.
Query · kuery
data_stream.dataset: "vsphere.log" and event.module: "vsphere" and message: ( "uname -a" or "esxcli system version get" or "esxcli system hostname get" or "esxcli system account list" )
Investigation fields
Pivot points the source recommends for triage.
@timestampmessageevent.originalhost.hostnamelog.file.path
Implementation guide
This rule requires ESXi host logs collected by the Elastic vSphere integration: https://www.elastic.co/docs/reference/integrations/vsphere
Known false positives
- Administrators run these commands during inventory, troubleshooting, and support. Review whether the same session continues into virtual machine shutdown, snapshot removal, or a datastore search.
Analyst notes
Investigating ESXi System and Account Enumeration
These commands collect the OS build, product version, hostname, or the local account list. Account listing is the higher-interest command. Version and hostname checks are common on their own.
Possible investigation steps
- Read message to see which command ran.
- Check the same session for vm process list, vm process kill, chmod, or a search under /vmfs/volumes.
- For esxcli system account list, compare the listed accounts with the known set for that host.
False positive analysis
A single version or hostname check during maintenance is commonly benign. Several of these commands in one session, especially account listing followed by VM shutdown, deserves review.
Response and remediation
- If the same session kills virtual machines or writes a file under /tmp, isolate the host.
- Otherwise record the account and source for hunting on other hosts.