Removing evidence of persistence.
What gives it awayDeletion of keys the same actor created earlier, particularly autostart keys.
ATT&CK T1070Nothing matches that yet. Tell us what you were looking for and it goes on the list.
Sysmon · Event 12
A registry key was created or removed. It pairs with Event 13, which records the values written into those keys, and the deletion half is the more interesting one — removing a key is how evidence and security settings both disappear.
Also written as Sysmon 12Sysmon Event ID 12
Read the EventType field to distinguish creation from deletion — they are the same event ID and mean quite different things. Deletion of service keys, security product configuration, or Sysmon's own configuration is worth alerting on.
Sanitised. Addresses come from the RFC 5737 documentation ranges.
Registry object added or deleted:
RuleName: -
EventType: DeleteKey
UtcTime: 2026-08-28 09:20:44.019
ProcessGuid: {a1b2c3d4-0000-0000-0000-00000000abcd}
ProcessId: 7412
Image: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
TargetObject: HKLM\System\CurrentControlSet\Services\WinHelpSvc
User: CORP\jbrooks Everything else in the log line is context.
DeleteKeySomething was removed. In a security-relevant location this is the interesting case. CreateKeyOrdinary and very high volume. Most of the time it is one of these.
What gives it awayDeletion of keys the same actor created earlier, particularly autostart keys.
ATT&CK T1070What gives it awayDeletion of keys under a security product's configuration path by an unexpected process.
ATT&CK T1562.001What gives it awayDeletion of a service key shortly after that service was installed and started.
ATT&CK T1070Event | where Source == 'Microsoft-Windows-Sysmon' and EventID == 12 | where RenderedDescription has 'DeleteKey' | where TargetObject has_any ('\\Services\\','Windows Defender','\\Run\\') | project TimeGenerated, Computer, Image, TargetObject Read the EventType field, which is either CreateKey or DeleteKey. Both share event ID 12, and rules that ignore EventType will match creations they did not intend to — which is most of the volume.
Sysmon writes the kernel form of the path rather than the familiar one, so HKEY_LOCAL_MACHINE appears as \REGISTRY\MACHINE and HKEY_USERS as \REGISTRY\USER. Rules written against the friendly names silently match nothing. Newer Sysmon versions abbreviate to HKLM and HKU in the rendered output, so check which form your version produces before writing filters.
Very, if left unfiltered — Windows creates and deletes registry keys constantly as part of normal operation. It is only usable with a configuration that names the paths worth watching: autorun locations, service definitions, and the shell extension keys. Scoped that way the volume drops to almost nothing and nearly every event means something.
12 records a key being created or deleted, 13 records a value being written, and 14 records a key or value being renamed. Persistence usually needs 12 and 13 together — a key appears and then a value is written into it — while 14 is rarer and often used to hide something by moving it out of the way of whatever is looking.
Last reviewed 28 August 2026