ESXi SSH Access Enabled
Description
Detects ESXi SSH being turned on. SSH is often left disabled so the host is managed through the local console, the Host Client, or vCenter. Enabling it opens a remote shell that can copy files onto the host and run commands against the datastore.
Query · kuery
data_stream.dataset:vsphere.log and message:("SSH access has been enabled" or "hostsvc/enable_ssh")
Investigation fields
Pivot points the source recommends for triage.
@timestampmessageevent.originalhost.hostnamelog.file.pathhost.ip
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 enable SSH for a documented troubleshooting window. ESXi often disables the service again on reboot, so a later enable by a known operator can be expected.
Analyst notes
Investigating ESXi SSH Access Enabled
SSH is disabled on many ESXi hosts. Turning it on is the step that lets an intruder who already has the root password open a shell and stage a payload in /tmp.
Possible investigation steps
- Confirm whether the hit is the hostd sentence SSH access has been enabled or the shell command hostsvc/enable_ssh.
- Review source.ip and the account on nearby authentication events.
- Check for a following cd /tmp, file upload, or vm process command.
- Ask whether a change ticket opened SSH on this host.
False positive analysis
Documented troubleshooting enables SSH and should disable it afterward. An enable with no ticket, followed by datastore commands, is the intrusion pattern.
Response and remediation
- If the enable was not approved, disable SSH (vim-cmd hostsvc/disable_ssh) after preserving logs.
- Rotate the root password and review accounts added in the same window.
- Hunt other hosts for the same hostd event.