Hello Wazuh Team,
I am currently evaluating Wazuh 5.0.0 Beta4 in a lab environment and have encountered what appears to be an issue with the processing of Windows Security Event ID 6416 (Plug and Play Events / USB Device Detection).
Windows Security Event ID 6416 is successfully generated by the operating system when a USB storage device is connected. However, the event is not available in Wazuh Threat Hunting and cannot be found by searching:
event.code:6416
No results are returned.
Using Event Viewer and PowerShell, I confirmed that Event ID 6416 is generated successfully.
Example:
Event ID: 6416 Message: A new external device was recognized by the system.
The event contains USB storage information including:
Device ID: USBSTOR\Disk&Ven_&Prod_USB_DISK_3.0... Device Name: USB DISK 3.0 USB Device Class Name: DiskDrive
It also generates an associated event for:
Device Name: USB Mass Storage Device Class Name: USB
The following audit policy is enabled:
Advanced Audit Policy Configuration → Detailed Tracking → Audit PNP Activity = Success
The Windows agent is configured to monitor the Security Event Log:
<localfile> <location>Security</location> <log_format>eventchannel</log_format> </localfile>
The agent log confirms:
Analyzing event log: 'Security'
Other Windows Security events are successfully processed by Wazuh.
Examples include:
These events are:
Searching for:
event.code:6416
returns no results.
Searching for USB-related fields (USBSTOR, USB DISK, VID/PID) also returns no results.
I expected Event ID 6416 to be:
Is Event ID 6416 currently supported in Wazuh 5.0.0 Beta4?
If not, is this a known limitation of the current beta, or does additional configuration need to be enabled to ingest and normalize Plug and Play (6416) Security events?
I would appreciate any guidance or confirmation regarding the expected behavior.
Thank you for your assistance.
Best regards,
jack
Dear Wazuh Team,
I have successfully configured and tested USB storage device detection in our Wazuh 5.0.0 environment.
The Windows agent is generating Event ID 6416, and the events are being successfully collected and indexed. I created a custom Security Analytics rule named “USB Storage Device Connected” and configured a detector using the appropriate Wazuh events data source.
The detector is now generating findings successfully in Threat Hunting with the following details:
The remaining requirement is whitelisting/exception handling.
For example, in a production environment we may want to alert when an unauthorized USB storage device is connected, while allowing approved devices or approved USB storage identifiers without generating a critical finding.
Could you please confirm:
I have attached the current detection results for reference.
Thank you for your assistance.
Best regards,
jack