ID | Technique | Tactic |
---|---|---|
T1070.006 | Timestomp | Defense Evasion |
Detection: ESXi System Clock Manipulation
Description
This detection identifies a significant change to the system clock on an ESXi host, which may indicate an attempt to manipulate timestamps and evade detection or forensic analysis
Search
1`esxi_syslog` Message="*NTPClock*" AND Message="*system clock stepped*"
2| rex field=_raw "stepped to (?<epoch_time>\d+\.\d+),.+delta\s(?<delta>\d+)\s"
3| rex field=_raw "Z (?<dest>[\w\.]+)\s"
4| eval epoch_time=tonumber(epoch_time)
5| eval delta=tonumber(delta)
6| eval event_time=round(_time, 0)
7| eval direction=if(epoch_time < event_time, "backward", "forward")
8| eval original_time=if(direction=="backward", epoch_time + delta, epoch_time - delta)
9| eval stepped_to_str=strftime(epoch_time, "%Y-%m-%d %H:%M:%S")
10| eval original_time_str=strftime(original_time, "%Y-%m-%d %H:%M:%S")
11| stats min(_time) as firstTime max(_time) as lastTime count by dest direction original_time_str stepped_to_str epoch_time delta
12| `security_content_ctime(firstTime)`
13| `security_content_ctime(lastTime)`
14| `esxi_system_clock_manipulation_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_system_clock_manipulation_filter | search * |
esxi_system_clock_manipulation_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 |
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
Limited false positives in most environments, however tune as needed
Associated Analytic Story
Risk Based Analytics (RBA)
Risk Message:
Large time change on ESXi host $dest$.
Risk Object | Risk Object Type | Risk Score | Threat Objects |
---|---|---|---|
dest | system | 50 | 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