Cleared Windows Event Logs Can Retain Recoverable Records in EVTX Slack Space

· Original article ↗

Summary

Arctic Wolf analysts found that clearing Windows EVTX logs can leave earlier records in file slack space, including ransomware-related evidence that standard forensic tools may miss. They recommend recovering and flagging possible old records.

Key points

  • In investigated cases, clearing an EVTX log reset its header and truncated data after the first 64 KB cluster, but earlier event records could remain in the file's slack space.
  • In a ransomware investigation, analysts found an encryptor command line and records of netscan activity in System.EVTX, despite the activity predating the log's reported entries.
  • A cleared Windows PowerShell EVTX file contained 44 event records, of which only one was allocated; all 44 contained the same log-clearing command.
  • Analysts corroborated event records using Windows Event Viewer, EvtxECmd, and Magnet AXIOM; their testing found that forensic tools generally did not flag or parse records in EVTX slack space.
  • Arctic Wolf built a proof-of-concept Python script to carve and rebuild older records, and recommends that forensic tools flag possible old data and label recovered records as partial.

Article Details

Attack Vectors
  • During a ransomware incident, the threat actor cleared Windows Event Logs, including by repeatedly running a PowerShell command that cleared logs.
  • The encryptor required the correct password to execute; analysts recovered its command line from an allocated System.EVTX file.
Defensive Notes
  • Do not assume clearing a Windows Event Log removes its underlying EVTX records; earlier records may remain in file slack space.
  • Review cleared EVTX files for residual records, including through manual raw-data analysis and tools that can parse records sequentially without relying on the file header.
  • The article reports that standard forensic tools may not identify, alert on, or parse EVTX slack-space records. Validate parsed output against raw data and corroborate findings with multiple tools where possible.
  • The authors recommend that industry-standard tools detect possible old data in cleared EVTX files, recover it where possible, and label recovered records as partial.

MITRE ATT&CK

Products

Tools

Related Articles