CyberKit

Event IDs

Sysmon event 12

RegistryEvent (Object create and delete)

Channel: Microsoft-Windows-Sysmon/Operational. Category: Registry.

What it records

Logs the creation and deletion of registry keys and values.

Why it matters

Registry key create/delete activity is a core signal for autostart-location monitoring and for spotting malware-specific registry modifications used to configure or conceal itself.

What triggers it

Normal software install/uninstall activity as well as malware creating persistence keys or cleaning up its own registry footprint.

Fields that carry the answer

Key fields
FieldWhat it tells you
EventTypeDistinguishes a key/value create from a delete: a delete right after other activity can indicate an attacker cleaning up after themselves.
ImageThe process that made the registry change, which identifies what created or removed the key.
TargetObjectThe full registry key path affected. Pivot straight to known autostart/persistence locations to see if this touches one.

In practice

An EventType=CreateKey record shows Image C:\Users\jsmith\AppData\Roaming\upd.exe creating TargetObject HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run: a process running from a user-writable AppData path creating a key under a well-known autostart location is a strong persistence signal, and an analyst would immediately check Event 13 for what value and command line were written under it.

Sample record

Registry object added or deleted:
RuleName: technique_id=T1112,technique_name=Modify Registry
EventType: CreateKey
UtcTime: 2024-01-15 14:45:01.345
ProcessGuid: {A1B2C3D4-E5F6-4A5B-8C9D-0E1F2A3B0007}
ProcessId: 2200
Image: C:\Windows\System32\reg.exe
TargetObject: HKU\S-1-5-21-1111111111-2222222222-3333333333-1001\Software\Microsoft\Windows\CurrentVersion\Run
User: CORP\jsmith

ATT&CK techniques

Sources

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