Event ID 12: Registry Event (Object Create and Delete)
Logs registry key and value create and delete operations. This event is useful for monitoring for changes to Registry persistence locations or specific malware registry modifications.
- Channel
- Microsoft-Windows-Sysmon/Operational
- Logged by default
- No
- Written on
- Any host
- Volume
- High
- Provider
- Microsoft-Windows-Sysmon
- Needs a SACL
- No
To have this event
- Sysmon installed, with a configuration that includes this event type.
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| UtcTime | UTC timestamp of registry operation |
| ProcessGuid | Process GUID performing the operation |
| ProcessId | Process ID |
| Image | Process executable path |
| EventType | Type of registry event (CreateKey/DeleteKey) |
| TargetObject | Full registry key path (e.g., HKLM\Software\...) |
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System[(EventID=12)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Also relevant, depending on field values
- T1547 Boot or Logon Autostart Execution
- T1547.001 Registry Run Keys / Startup Folder
- T1547.002 Authentication Package
- T1547.003 Time Providers
- T1547.004 Winlogon Helper DLL
- T1547.005 Security Support Provider
- T1547.010 Port Monitors
- T1547.012 Print Processors
- T1547.014 Active Setup
- T1546 Event Triggered Execution
- T1546.001 Change Default File Association
- T1546.002 Screensaver
- T1546.003 Windows Management Instrumentation Event Subscription
- T1546.007 Netsh Helper DLL
- T1546.008 Accessibility Features
- T1546.009 AppCert DLLs
- T1546.010 AppInit DLLs
- T1546.011 Application Shimming
- T1546.012 Image File Execution Options Injection
- T1546.015 Component Object Model Hijacking
- T1574.011 Services Registry Permissions Weakness
- T1574.012 COR_PROFILER
- T1562 Impair Defenses
- T1562.001 Disable or Modify Tools
- T1562.002 Disable Windows Event Logging
- T1562.004 Disable or Modify System Firewall
- T1562.006 Indicator Blocking
- T1505.005 Terminal Services DLL
Common questions
- What does Windows event ID 12 mean?
- Logs registry key and value create and delete operations. This event is useful for monitoring for changes to Registry persistence locations or specific malware registry modifications. It is written to the Sysmon log (Microsoft-Windows-Sysmon/Operational).
- Is event 12 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 12 recorded?
- In the Microsoft-Windows-Sysmon/Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderLogs registry key and value create and delete operations. This event is useful for monitoring for changes to Registry persistence locations or specific malware registry modifications. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.