6416 Security log · Plug and Play medium severity low volume

Windows Event ID 6416 — A new external device was recognized by the system

A new external device (USB, disk, etc.) was plugged in. DeviceId and DeviceDescription are key.

Why event 6416 matters

USB-based data exfiltration (T1052.001), BadUSB attacks (malicious HID devices), hardware keyloggers. Unexpected USB device insertions on servers are highly suspicious.

How to detect it

Alert: USB device inserted into servers or sensitive workstations. Alert: HID devices (keyboards, mice) inserted unexpectedly. Baseline expected devices — deviations warrant investigation.

Log source
Security
Advanced Audit Policy — enable the 'Plug and Play' subcategory (Success and/or Failure).
Fields to pivot on
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName

MITRE ATT&CK mapping

Tactic Technique
Exfiltration Exfiltration Over Physical Medium: Exfiltration over USB (T1052.001)

Detection queries

Starting points — adapt the log source, projected fields and thresholds for your environment.

Sigma rule
title: Unexpected USB Device Inserted
status: experimental
description: External device inserted — possible data exfiltration or BadUSB
author: theadminstack.com
date: 2026/05/16
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 6416
    condition: selection
falsepositives:
    - Authorized USB device usage
    - Known devices
level: medium
tags:
    - attack.exfiltration
    - attack.t1052.001
Sentinel / Defender KQL
SecurityEvent
| where EventID == 6416   // A new external device was recognized by the system
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
Splunk SPL
index=* sourcetype="WinEventLog:Security" EventCode=6416
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count   `# A new external device was recognized by the system — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
Hunt event 6416 in Sentinel/Defender →
Build a KQL query for this event in the KQL Query Builder.
Search all event IDs →
Open the interactive Windows Event ID lookup.

Related Plug and Play events

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 a policy override

Frequently asked questions

What is Windows Event ID 6416?

A new external device was recognized by the system. A new external device (USB, disk, etc.) was plugged in. DeviceId and DeviceDescription are key.

Which log records event 6416?

Event 6416 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Plug and Play' subcategory (Success and/or Failure).

What MITRE ATT&CK techniques map to event 6416?

Event 6416 is associated with: Exfiltration Over Physical Medium: Exfiltration over USB (T1052.001).

How do you detect activity around event 6416?

Alert: USB device inserted into servers or sensitive workstations. Alert: HID devices (keyboards, mice) inserted unexpectedly. Baseline expected devices — deviations warrant investigation.