Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / EVASION

Time Changes

This note documents detection patterns related to System Time Changes within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4616System time changedCriticalPrimary indicator of manual or programmatic time manipulation
System1Time changed (Kernel-General)HighCaptures system-level time adjustments
System35Time service syncMediumIndicates time synchronization attempt
System37Time difference detectedHighLarge drift may indicate tampering
System50Time jump correctionHighSignificant correction applied

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Time moved backwardsSystem time decreasesCriticalStrong anti-forensics signal
Time change before log clear4616 → 1102 sequenceCriticalAttempt to break timeline
Time change before executionPrecedes suspicious processHighTimeline manipulation
Frequent time adjustmentsMultiple 4616 eventsHighPossible script/tool usage
Time drift from NTP baselineLarge offsetMediumCould indicate tampering or misconfig
Time change under non-adminUnexpected user contextCriticalPrivilege misuse

Common Tools

ToolUsage
PowerShellSet-Date
w32tmTime sync / manual offset
date / time (cmd)Manual change
custom malwareTimestamp evasion
domain time manipulationNTP abuse

Relevant Artifacts

  • Security Event ID 4616
  • System Event IDs 1, 35, 37, 50
  • Sysmon Event ID 1 (process responsible)
  • Prefetch for:
    • powershell.exe
    • cmd.exe
    • w32tm.exe
  • Registry:
    • SYSTEM\CurrentControlSet\Services\W32Time
  • Windows Time Service logs
  • MFT timestamps (compare anomalies)
  • Event log timeline inconsistencies

MITRE ATT&CK References

  • T1070 Indicator Removal on Host
  • T1070.006 Timestomp
  • T1562 Impair Defenses

Decision Tree

  1. Was time changed?

    • Security 4616
    • System 1
  2. Direction of change?

    • Forward (sync)
    • Backward (suspicious)
  3. Who performed it?

    • SYSTEM
    • Administrator
    • Unexpected user
  4. What process caused it?

    • PowerShell
    • cmd
    • w32tm
    • Unknown binary
  5. Timing suspicious?

    • Before log clear
    • Before execution
    • After intrusion
  6. Correlate:

    • Log gaps
    • MFT inconsistencies
    • Event ordering anomalies
  7. Scope:

    • Single event
    • Repeated manipulation
    • Domain-wide impact

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4616
| project TimeGenerated, Computer, SubjectUserName, PreviousTime, NewTime
Sysmon
| where EventID == 1
| where CommandLine has_any ("Set-Date","w32tm","date ","time ")
| project TimeGenerated, Computer, User, CommandLine

EQL

process where event.code == "1" and process.command_line like "*Set-Date*"
any where event.code == "4616"

Sigma

title: System Time Change Detection
id: 91acb2f1-time-change
status: experimental
description: Detects system time modifications which may indicate anti-forensic behavior
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-04-05
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4616
  condition: selection
fields:
  - SubjectUserName
  - PreviousTime
  - NewTime
falsepositives:
  - Legitimate admin activity
  - NTP sync
level: high
tags:
  - attack.defense_evasion
  - attack.t1070
  - attack.t1070.006

Snort

alert udp any any -> any 123 (msg:"NTP Large Time Offset Detected"; content:"|1b|"; depth:1; detection_filter:track by_src, count 5, seconds 60; sid:900001; rev:1;)

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Audit policyEnable time change auditingCriticalRequired for visibility
Sysmon process loggingTrack responsible processesCriticalAttribution
NTP enforcementDomain-controlled time syncHighPrevent drift
Least privilegeRestrict time change rightsHighReduce abuse
SIEM correlationDetect timeline anomaliesCriticalCore detection layer
AlertingTrigger on backward time changeHighStrong signal