VeriKQL by Kaushik Saha

T1124 System Time Discovery

Discoveryon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0151 Behavior-chain, platform-aware detection strategy for T1124 System Time Discovery

AN0430 Windows

Untrusted or unusual process/script (cmd.exe, powershell.exe, w32tm.exe, net.exe, custom binaries) queries system time/timezone (e.g., w32tm /tz, net time \\host, Get-TimeZone, GetTickCount API) and (optionally) is followed within a short window by time-based scheduling or conditional execution (e.g., schtasks /create, at.exe, PowerShell Start-Sleep with large values).

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4688
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4688)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonEventCode=7
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (7)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (7)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=10
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (10)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (10)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SysmonEventCode=11
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (11)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (11)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:PowerShellEventCode=4103, 4104, 4105, 4106
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Microsoft-Windows-PowerShell/Operational", "Windows PowerShell") | where EventID in (4103, 4104, 4105, 4106)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Microsoft-Windows-PowerShell/Operational", "Windows PowerShell") | where EventID in (4103, 4104, 4105, 4106)
etw:Microsoft-Windows-Kernel-ProcessHigh-frequency or suspicious sequence of QueryPerformanceCounter/GetTickCount API calls from a non-standard process lineageNot mapped to Sentinel yet.
WinEventLog:TaskSchedulerEventCode=106
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Microsoft-Windows-TaskScheduler/Operational") | where EventID in (106)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Microsoft-Windows-TaskScheduler/Operational") | where EventID in (106)
WinEventLog:TaskSchedulerTask registration/execution shortly after a time discovery event
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Microsoft-Windows-TaskScheduler/Operational")
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Microsoft-Windows-TaskScheduler/Operational")
EDR:TelemetryProcess lineage and API usage enrichment (GetSystemTime, GetTimeZoneInformation, NtQuerySystemTime)Not mapped to Sentinel yet.

AN0431 Linux

A process (often spawned by a shell, interpreter, or malware implant) executes time discovery via commands (date, timedatectl, hwclock, cat /etc/timezone, /proc/uptime) or direct syscalls (time(), clock_gettime) and is (optionally) followed by scheduled task creation/modification (crontab, at) or conditional sleep logic.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLtype=EXECVE or SYSCALL for /bin/date, /usr/bin/timedatectl, /sbin/hwclock, /bin/cat /etc/timezone, /bin/cat /proc/uptimeNot mapped to Sentinel yet.
auditd:SYSCALLRules capturing clock_gettime, time, gettimeofday syscalls when enabledNot mapped to Sentinel yet.
linux:syslogsudo/date/timedatectl execution by non-standard usersNot mapped to Sentinel yet.
linux:croncron activityNot mapped to Sentinel yet.

AN0432 macOS

Process/script execution of systemsetup -gettimezone, date, ioreg, or API usage (timeIntervalSinceNow, gettimeofday) followed by time-based scheduling (launchd plist modification) or sleep-based execution.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogprocess exec events of systemsetup, date, ioreg with command_line parameters indicating time discoveryNot mapped to Sentinel yet.
macos:unifiedlogNew/modified launchd plist (persistence/scheduling) within TimeWindow after time queryNot mapped to Sentinel yet.

AN0433 ESXi

Interactive or remote shell/API invocation of esxcli system clock get or querying time parameters via hostd/vpxa shortly followed by time/ntp configuration checks or scheduled task creation, executed by non-standard accounts or outside maintenance windows.

MITRE log sourceIn Microsoft Sentinel
esxi:shell/var/log/shell.log entries containing "esxcli system clock get"Not mapped to Sentinel yet.
esxi:hostd/var/log/hostd.log API calls reading/altering time/ntp settingsNot mapped to Sentinel yet.
esxi:syslog/var/log/vpxa.log task invocations tied to time configurationNot mapped to Sentinel yet.

AN0434 Network Devices

Non-standard or rare users/locations issue CLI commands like "show clock detail" or "show timezone"; optionally followed by configuration of time/timezone or NTP sources. AAA/TACACS+ accounting and syslog correlate execution to identity, source IP, and privilege level.

MITRE log sourceIn Microsoft Sentinel
networkdevice:syslogcommand-exec: CLI commands containing "show clock", "show clock detail", "show timezone" executed by suspicious user/sourceNot mapped to Sentinel yet.
networkdevice:configconfig-change: timezone or ntp server configuration change after a time query commandNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

3 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.