forked from palantir/windows-event-forwarding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExternal-Devices.xml
46 lines (46 loc) · 2.47 KB
/
External-Devices.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<Subscription xmlns="http://schemas.microsoft.com/2006/03/windows/events/subscription">
<SubscriptionId>External-Devices</SubscriptionId>
<SubscriptionType>SourceInitiated</SubscriptionType>
<Description>Detection of insertion and removal of USB and other External devices.</Description>
<Enabled>true</Enabled>
<Uri>http://schemas.microsoft.com/wbem/wsman/1/windows/EventLog</Uri>
<ConfigurationMode>Custom</ConfigurationMode>
<Delivery Mode="Push">
<Batching>
<MaxItems>1</MaxItems>
<MaxLatencyTime>300000</MaxLatencyTime>
</Batching>
<PushSettings>
<Heartbeat Interval="1800000"/>
</PushSettings>
</Delivery>
<Query><![CDATA[
<QueryList>
<!-- Inspired by Microsoft Documentation and/or IADGOV -->
<Query Id="0">
<!-- 43: New USB Device Information -->
<!-- <Select Path="Microsoft-Windows-USB-USBHUB3-Analytic">*[System[Provider[@Name='Microsoft-Windows-USB-USBHUB3'] and Level=4 and EventID=43]] and *[EventData[Data[@Name='fid_DeviceDescription']="USB Mass Storage Device"]] </Select>-->
<!-- 400, 410: New Mass Storage Device Installation -->
<Select Path="Microsoft-Windows-Kernel-PnP/Configuration">*[System[Provider[@Name='Microsoft-Windows-Kernel-PnP'] and Level=4 and (EventID=400 or EventID=410)]] and *[EventData[Data[@Name='DriverName']="usbstor.inf"]] </Select>
</Query>
<!-- PNP Activity -->
<Query Id="1" Path="Security">
<!-- 6416: A new external device was recognized by the System. -->
<!-- 6419: A request was made to disable a device. -->
<!-- 6420: A device was disabled. -->
<!-- 6421: A request was made to enable a device. -->
<!-- 6422: A device was enabled.. -->
<!-- 6423: The installation of this device is forbidden by system policy. -->
<!-- 6424: The installation of this device was allowed after having previously been forbidden by policy. -->
<Select Path="Security">*[System[(EventID=6416)]]</Select>
<Select Path="Security">*[System[(EventID >=6419 and EventID <=6424)]]</Select>
</Query>
</QueryList>]]></Query>
<ReadExistingEvents>true</ReadExistingEvents>
<TransportName>http</TransportName>
<ContentFormat>RenderedText</ContentFormat>
<Locale Language="en-US"/>
<LogFile>WEC3-External-Devices</LogFile>
<AllowedSourceNonDomainComputers/>
<AllowedSourceDomainComputers>O:NSG:NSD:(A;;GA;;;DC)(A;;GA;;;NS)(A;;GA;;;DD)</AllowedSourceDomainComputers>
</Subscription>