Detection: ESXi Sensitive Files Accessed

Description

This detection identifies access to sensitive system and configuration files on an ESXi host, including authentication data, service configurations, and VMware-specific management settings. Interaction with these files may indicate adversary reconnaissance, credential harvesting, or preparation for privilege escalation, lateral movement, or persistence.

1`esxi_syslog` Message="*shell[*" Message IN ("*/etc/shadow*","*/etc/vmware/hostd/hostd.xml*", "*/etc/vmware/vpxa/vpxa.cfg*","*/etc/sfcb/sfcb.cfg*","*/etc/security/*", "*/etc/likewise/krb5-affinity.conf*","*/etc/vmware-vpx/vcdb.properties*") 
2| rex field=_raw "\]: \[(?<user>\w+)\]:(?<command>.+)" 
3| rex field=_raw "Z (?<dest>[\w\.]+)\s" 
4| stats min(_time) as firstTime max(_time) as lastTime count by dest user command 
5| `security_content_ctime(firstTime)` 
6| `security_content_ctime(lastTime)` 
7| `esxi_sensitive_files_accessed_filter`

Data Source

Name Platform Sourcetype Source
VMWare ESXi Syslog N/A 'vmw-syslog' 'vmware:esxlog'

Macros Used

Name Value
esxi_syslog sourcetype=vmw-syslog OR sourcetype=vmware:esxlog*
esxi_sensitive_files_accessed_filter search *
esxi_sensitive_files_accessed_filter is an empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.

Annotations

Default Configuration

This detection is configured by default in Splunk Enterprise Security to run with the following settings:

Setting Value
Disabled true
Cron Schedule 0 * * * *
Earliest Time -70m@m
Latest Time -10m@m
Schedule Window auto
Creates Notable Yes
Rule Title %name%
Rule Description %description%
Notable Event Fields user, dest
Creates Risk Event True
This configuration file applies to all detections of type TTP. These detections will use Risk Based Alerting and generate Notable Events.

Implementation

This is based on syslog data generated by VMware ESXi hosts. To implement this search, you must configure your ESXi systems to forward syslog output to your Splunk deployment. These logs must be ingested with the appropriate Splunk Technology Add-on for VMware ESXi Logs, which provides field extractions and CIM compatibility.

Known False Positives

Administrators may access these files for initial setup or troubleshooting. Limited in most environments. Tune as needed.

Associated Analytic Story

Risk Based Analytics (RBA)

Risk Message:

Sensitive files accessed on ESXi host $dest$ with $command$.

Risk Object Risk Object Type Risk Score Threat Objects
dest system 70 No Threat Objects

Detection Testing

Test Type Status Dataset Source Sourcetype
Validation Passing N/A N/A N/A
Unit Passing Dataset vmware:esxlog vmw-syslog
Integration ✅ Passing Dataset vmware:esxlog vmw-syslog

Replay any dataset to Splunk Enterprise by using our replay.py tool or the UI. Alternatively you can replay a dataset into a Splunk Attack Range


Source: GitHub | Version: 1