Windows event log ยท Security4647 User initiated logoff
- Security
- 2 fields
Security.evtxMicrosoft-Windows-Security-Auditing
Fields EvtxECmd extracts
2 columns in the EvtxECmd CSV
- UserName
Target: %TargetDomainName%\%TargetUserName%- %TargetDomainName% = /Event/EventData/Data[@Name="TargetDomainName"]
- %TargetUserName% = /Event/EventData/Data[@Name="TargetUserName"]
- PayloadData3
LogonId: %TargetLogonId%- %TargetLogonId% = /Event/EventData/Data[@Name="TargetLogonId"]
Sample event
Event XML from the map file
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}"/>
<EventID>4647</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>12545</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2019-04-27T13:52:34.546260800Z"/>
<EventRecordID>90222</EventRecordID>
<Correlation ActivityID="{32dfcbe2-f43e-0002-74cc-df323ef4d401}"/>
<Execution ProcessID="940" ThreadID="11816"/>
<Channel>Security</Channel>
<Computer>pooh</Computer>
<Security/>
</System>
<EventData>
<Data Name="TargetUserSid">S-1-5-21-1987904521-730768085-2188298509-1001</Data>
<Data Name="TargetUserName">baz</Data>
<Data Name="TargetDomainName">POOH</Data>
<Data Name="TargetLogonId">0x12130a4a</Data>
</EventData>
</Event>References
5 links
- ponderthebits.com/2018/02/windows-rdp-related-event-logs-identification-tracking-and-investigation/(opens in new tab)
- ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4647(opens in new tab)
- docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4647(opens in new tab)
- github.com/nasbench/EVTX-ETW-Resources/blob/main/ETWProvidersCSVs/Internal/Microsoft-Windows-Security-Auditing.csv(opens in new tab)
- frsecure.com/blog/rdp-connection-event-logs/(opens in new tab)
Source: evtx/Maps/Security_Microsoft-Windows-Security-Auditing_4647.map(opens in new tab) by Barrie Hill and contributors(opens in new tab), MIT License(opens in new tab)