A file was deleted and archived by Sysmon. TargetFilename, Image, Archived (whether Sysmon archived a copy) are key.
Attack tool or payload cleanup — attacker deletes their tools after use. Ransomware deleting shadow copies. Malware self-deleting after execution. Sysmon can archive deleted files for forensic recovery.
Alert: deletion of recently created executables or scripts. Alert: deletion from startup folders or service directories after brief existence. Correlate with Sysmon 1 (process create) → Sysmon 23 (file delete) sequence.
ImageCommandLineParentImageUserHashes | Tactic | Technique |
|---|---|
| Defense Evasion | Indicator Removal: File Deletion (T1070.004) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 23 // File deleted (archived)
// EventData holds: Image, CommandLine, ParentImage, User, Hashes
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=23
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# File deleted (archived) — add EventData fields: Image, CommandLine, ParentImage, User`
File deleted (archived). A file was deleted and archived by Sysmon. TargetFilename, Image, Archived (whether Sysmon archived a copy) are key.
Event 23 is written to the Microsoft-Windows-Sysmon/Operational channel by Microsoft-Windows-Sysmon. Requires Sysmon installed with a config that logs this event (e.g. SwiftOnSecurity / Olaf Hartong).
Event 23 is associated with: Indicator Removal: File Deletion (T1070.004).
Alert: deletion of recently created executables or scripts. Alert: deletion from startup folders or service directories after brief existence. Correlate with Sysmon 1 (process create) → Sysmon 23 (file delete) sequence.