CyberKit

Event IDs

Sysmon event 23

FileDelete (File Delete archived)

Channel: Microsoft-Windows-Sysmon/Operational. Category: File Deletion.

What it records

Logs a file deletion and additionally saves the deleted file into the configured ArchiveDirectory (default C:\Sysmon).

Why it matters

Attackers frequently delete tools, payloads, or logs to cover their tracks; having the actual deleted file preserved alongside the deletion event lets an investigator recover and analyze evidence the attacker tried to destroy.

What triggers it

Normal file cleanup/uninstall activity, and notably, malware or an intruder deleting dropped tools, staged data, or artifacts to hinder forensic analysis.

Fields that carry the answer

Key fields
FieldWhat it tells you
ImageThe process that deleted the file, which identifies what performed the cleanup, whether legitimate uninstall activity or an attacker covering tracks.
TargetFilenameThe full path of the deleted file, which shows exactly what evidence the actor wanted gone.
HashesAlso doubles as the filename of the preserved copy in the ArchiveDirectory. Use it to locate and directly recover the deleted file for analysis.
ArchivedConfirms whether the deleted file was actually preserved, if false, the archive copy isn't available and another recovery method is needed.

In practice

Image C:\Users\jsmith\AppData\Local\Temp\tool.exe deletes TargetFilename C:\Users\jsmith\AppData\Local\Temp\output.txt, and because ArchiveDirectory is configured, Sysmon preserves a copy under C:\Sysmon named after the value in Hashes, with Archived=true, letting the analyst recover and read the exact data the actor tried to destroy instead of losing it to the deletion.

Sample record

File Delete archived:
RuleName: -
UtcTime: 2024-02-11 09:44:51.663
ProcessGuid: {a1b2c3d4-1234-65a1-0000-001122334477}
ProcessId: 6120
User: CORP\jdoe
Image: C:\Windows\Temp\stager.exe
TargetFilename: C:\Windows\Temp\stager.exe
Hashes: SHA256=A1B2C3D4E5F60718293A4B5C6D7E8F90112233445566778899AABBCCDDEEFF00
IsExecutable: true
Archived: true

ATT&CK techniques

Sources

Paste a record into Event XML or open a log in EVTX Reader.