Windows event log ยท Security4634 An account was logged off

  • Security
  • 3 fields
  • Security.evtx
  • Microsoft-Windows-Security-Auditing

Fields EvtxECmd extracts

3 columns in the EvtxECmd CSV

  • PayloadData1Target: %TargetDomainName%\%TargetUserName%
    • %TargetDomainName% = /Event/EventData/Data[@Name="TargetDomainName"]
    • %TargetUserName% = /Event/EventData/Data[@Name="TargetUserName"]
  • PayloadData2LogonType %LogonType%
    • %LogonType% = /Event/EventData/Data[@Name="LogonType"]
  • PayloadData3LogonId: %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>4634</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>12545</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2019-04-28T02:36:24.487352400Z"/>
    <EventRecordID>90550</EventRecordID>
    <Correlation/>
    <Execution ProcessID="940" ThreadID="17172"/>
    <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">0x19bf00c7</Data>
    <Data Name="LogonType">2</Data>
  </EventData>
</Event>

References

5 links

Source: evtx/Maps/Security_Microsoft-Windows-Security-Auditing_4634.map(opens in new tab) by Barrie Hill and contributors(opens in new tab), MIT License(opens in new tab)