Skip to content
WETNav

Investigation · Devices

Was a USB storage device connected, and which one?

Prove a removable device was attached and identify it by model and serial, from the recognition and storage events plus the USB registry and setupapi trail.

When you would ask thisYou are investigating possible data theft or a malicious device and need the exact drive, when it connected, and who was logged on.

Steps

  1. 1

    Check the device-recognition events

    Security event 6416, 'a new external device was recognized by the system', is written when Plug and Play auditing is enabled; read ClassName, DeviceDescription, DeviceId (which embeds the vendor and product IDs) and SubjectUserName. Event 6424 records a device allowed after previously being forbidden by device-installation policy. These are the cleanest attribution events because they tie the device to a user and a precise time, but only exist where the Plug and Play auditing subcategory was turned on.

  2. 2

    Identify the exact drive from the storage log

    The Partition Diagnostic log records disk-level detail when a storage device is attached, including the Model, Manufacturer, SerialNumber and Capacity of the disk, along with its device identifiers. Use event 1006 here to pin down which physical drive connected, down to its serial number. This log is present by default, so it often exists even when Security object-access auditing for removable storage was never configured, making it the reliable identification source.

  3. 3

    Confirm with Plug and Play configuration

    The PnP device-configuration events add the install and start timeline. Event 400 records a device being configured and 410 a device being started, each naming the device instance path, which for a USB mass-storage device contains the vendor and product IDs and, for USBSTOR, the device serial. Correlating the first 400/410 for a given instance path against 1006 and 6416 gives you the first-connect time from three independent sources, which is strong for a report.

  4. 4

    Attribute it to a user and any file activity

    Tie the connection time to the active logon session: find the 4624 whose session was open on that host at the device's connect time and read TargetUserName and TargetLogonId. If the device was accessed, file activity shows as 4663 on files that carry a SACL, or as 5145 if the data was reached over a share rather than the local drive. A device that connects with no following file access is still a finding, but the file events are what prove staging or exfiltration.

Where it goes wrong

  • Security 6416 depends on the Plug and Play auditing subcategory, which is off by default, so its absence does not mean no device connected; fall back to the Partition Diagnostic log and the registry.
  • The Partition Diagnostic log is noisy and the exact event fields vary by Windows build, so confirm the SerialNumber field name against the events you actually have rather than assuming it.
  • A USB device serial whose second character is '&' was assigned by Windows because the hardware has no real serial, so two different devices can share such a pseudo-serial; do not treat it as a unique hardware identifier.
  • Mapping a device to the drive letter it received requires SYSTEM\MountedDevices, because the event logs identify the device, not the mount point.
  • A device can connect without any file access being logged, so a connection event alone does not prove data was taken.
  • Event timestamps are UTC; align them with the logon session times in the same zone before concluding who was present.

Beyond event logs

USBSTOR registry key

HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR

One subkey per USB storage device ever attached, holding the FriendlyName and the device serial in the instance ID. The key's timestamps and the associated Properties record first and last connection times across reboots.

MountedDevices

HKLM\SYSTEM\MountedDevices

Maps drive letters and volume GUIDs to the underlying device, which is how you prove which letter a given USB serial was mounted as when files were written to it.

setupapi device log

C:\Windows\INF\setupapi.dev.log

Plain-text log of device driver installation that records the first time each device was installed, with the device instance path, giving a first-seen timestamp independent of the event logs.

SRUM database

C:\Windows\System32\sru\SRUDB.dat

The System Resource Usage Monitor can show bytes written by applications over time, which helps corroborate that data was moved to the device even when per-file auditing was off.

Per-user mount points

NTUSER.DAT: Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2

Ties a specific user profile to a specific removable volume GUID, strengthening attribution of the device to a person rather than just to the machine.

References