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

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
T1059.001 · PowerShellA Windows PowerShell command using Get-WinEvent and ClearLog was recorded in the cleared Windows PowerShell EVTX file.T1070.001 · Clear Windows Event LogsThe threat actor cleared Windows Event Logs, including repeatedly running a command that called ClearLog for logs with records.T1486 · Data Encrypted for ImpactThe incident involved a ransomware encryptor that analysts reported had run; the article describes it as an encryption binary.
Products
PowerShellTo confirm this hypothesis, analysts reviewed another EVTX file from another incident where log clearing occurred; in this case, the Windows PowerShell EVTX file.Windows Event LogHowever, new research by Arctic Wolf® Incident Response analysts indicates that clearing a Windows Event Log does not wipe the underlying Windows Event Log (EVTX) file.Windows VistaWith the release of Windows Vista in 2007, Microsoft replaced the older EVT file format with the newer EVTX format.
Tools
EvtxECmdThese 104 event log entries were corroborated using Windows Event Viewer, Zimmerman Tools’ EvtxECmd, and Magnet AXIOM.Magnet AXIOMThese 104 event log entries were corroborated using Windows Event Viewer, Zimmerman Tools’ EvtxECmd, and Magnet AXIOM.netscan.exeA separate, supposedly cleared, log entry also contained evidence of the threat actor’s use of netscan.exe and a leaked threat actor hostname.X-WaysAnalysts can speed up manual review by using a feature of X-Ways forensics called “Templates” which highlight areas of bytes based on a preset byte offset.
