Windows event log ยท Security6416 A new external device was recognized by the system
- Security
- 6 fields
Security.evtxMicrosoft-Windows-Security-Auditing
Fields EvtxECmd extracts
6 columns in the EvtxECmd CSV
- UserName
%domain%\%user% (%sid%)- %domain% = /Event/EventData/Data[@Name="SubjectDomainName"]
- %user% = /Event/EventData/Data[@Name="SubjectUserName"]
- %sid% = /Event/EventData/Data[@Name="SubjectUserSid"]
- PayloadData1
DeviceId: %DeviceId%- %DeviceId% = /Event/EventData/Data[@Name="DeviceId"]
- PayloadData2
DeviceName: %DeviceDescription%- %DeviceDescription% = /Event/EventData/Data[@Name="DeviceDescription"]
- PayloadData3
Class: %ClassName% (%ClassId%)- %ClassName% = /Event/EventData/Data[@Name="ClassName"]
- %ClassId% = /Event/EventData/Data[@Name="ClassId"]
- PayloadData4
VendorIds: %VendorIds%- %VendorIds% = /Event/EventData/Data[@Name="VendorIds"]
- PayloadData5
LocationInformation: %LocationInformation%- %LocationInformation% = /Event/EventData/Data[@Name="LocationInformation"]
Sample event
Event XML from the map file
<Event>
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="54849625-5478-4994-a5ba-3e3b0328c30d"/>
<EventID>6416</EventID>
<Version>1</Version>
<Level>0</Level>
<Task>13316</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2021-01-14 13:41:45.4788422"/>
<EventRecordID>201476</EventRecordID>
<Correlation/>
<Execution ProcessID="4" ThreadID="23336"/>
<Channel>Security</Channel>
<Computer>PC</Computer>
<Security/>
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-18</Data>
<Data Name="SubjectUserName">PC$</Data>
<Data Name="SubjectDomainName">WORKGROUP</Data>
<Data Name="SubjectLogonId">0x3E7</Data>
<Data Name="DeviceId">USBSTOR\Disk&amp;Ven_JetFlash&amp;Prod_Transcend_64GB&amp;Rev_1100\1234567890ABCDEF&amp;0</Data>
<Data Name="DeviceDescription">JetFlash Transcend 64GB USB Device</Data>
<Data Name="ClassId">4d36e967-e325-11ce-bfc1-08002be10318</Data>
<Data Name="ClassName">DiskDrive</Data>
<Data Name="VendorIds">, USBSTOR\DiskJetFlashTranscend_64GB__1100, USBSTOR\DiskJetFlashTranscend_64GB__, USBSTOR\DiskJetFlash, USBSTOR\JetFlashTranscend_64GB__1, JetFlashTranscend_64GB__1, USBSTOR\GenDisk, GenDisk,</Data>
<Data Name="CompatibleIds">, USBSTOR\Disk, USBSTOR\RAW, GenDisk,</Data>
<Data Name="LocationInformation">-</Data>
</EventData>
</Event>References
4 links
- docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-6416(opens in new tab)
- docs.microsoft.com/en-us/windows-hardware/drivers/install/system-defined-device-setup-classes-available-to-vendors(opens in new tab)
- port139.hatenablog.com/entry/2018/10/28/174310(opens in new tab)
- github.com/nasbench/EVTX-ETW-Resources/blob/main/ETWProvidersCSVs/Internal/Microsoft-Windows-Security-Auditing.csv(opens in new tab)
Source: evtx/Maps/Security_Microsoft-Windows-Security-Auditing_6416.map(opens in new tab) by Gabriele Zambelli @gazambelli and contributors(opens in new tab), MIT License(opens in new tab)