Windows event log ยท Microsoft-Windows-Sysmon/Operational12 RegistryEvent (Object create and delete)
- Sysmon
- 6 fields
Microsoft-Windows-Sysmon%4Operational.evtxMicrosoft-Windows-Sysmon
Fields EvtxECmd extracts
6 columns in the EvtxECmd CSV
- UserName
%User%- %User% = /Event/EventData/Data[@Name="User"]
- PayloadData1
ProcessID: %ProcessID%, ProcessGUID: %ProcessGUID%- %ProcessGUID% = /Event/EventData/Data[@Name="ProcessGuid"]
- %ProcessID% = /Event/EventData/Data[@Name="ProcessId"]
- PayloadData2
RuleName: %RuleName%- %RuleName% = /Event/EventData/Data[@Name="RuleName"]
- PayloadData3
Image: %Image%- %Image% = /Event/EventData/Data[@Name="Image"]
- PayloadData4
EventType: %EventType%- %EventType% = /Event/EventData/Data[@Name="EventType"]
- PayloadData5
TargetObject: %TargetObject%- %TargetObject% = /Event/EventData/Data[@Name="TargetObject"]
Sample event
Event XML from the map file
<Event>
<System>
<Provider Name="Microsoft-Windows-Sysmon" Guid="5770385f-c22a-43e0-bf4c-06f5698ffbd9"/>
<EventID>12</EventID>
<Version>2</Version>
<Level>4</Level>
<Task>12</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2019-05-19 18:05:33.4542958"/>
<EventRecordID>18969</EventRecordID>
<Correlation/>
<Execution ProcessID="2004" ThreadID="1976"/>
<Channel>Microsoft-Windows-Sysmon/Operational</Channel>
<Computer>IEWIN7</Computer>
<Security UserID="S-1-5-18"/>
</System>
<EventData>
<Data Name="RuleName">Defense Evasion - PowerShell Audit Settings Changed</Data>
<Data Name="EventType">DeleteValue</Data>
<Data Name="UtcTime">2019-05-19 18:05:33.438</Data>
<Data Name="ProcessGuid">365abb72-9aeb-5ce1-0000-0010f0b51800</Data>
<Data Name="ProcessId">860</Data>
<Data Name="Image">C:\Windows\system32\reg.exe</Data>
<Data Name="TargetObject">HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging\EnableScriptBlockLogging</Data>
</EventData>
</Event>References
5 links
- docs.microsoft.com/en-us/sysinternals/downloads/sysmon(opens in new tab)
- github.com/sbousseaden/EVTX-ATTACK-SAMPLES(opens in new tab)
- blackhillsinfosec.com/a-sysmon-event-id-breakdown/(opens in new tab)
- github.com/nasbench/EVTX-ETW-Resources/blob/main/ETWProvidersCSVs/ThirdParty/Microsoft-Windows-Sysmon.csv(opens in new tab)
- ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx(opens in new tab)
Source: evtx/Maps/Microsoft-Windows-Sysmon-Operational_Microsoft-Windows-Sysmon_12.map(opens in new tab) by Andrew Rathbun and contributors(opens in new tab), MIT License(opens in new tab)