DET-167 · human · confidence Medium
USB Storage Device History
The USBSTOR registry key lists every USB storage device the machine has seen, with serial numbers.
HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR has one subkey per device type, then one per serial number. It holds the make, model, serial, friendly name, and first and last connect times. This answers the first question in an exfiltration case: which drive was plugged in, and when. Correlate with MountedDevices and USB keys for drive letters and with setupapi.dev.log for the first-ever connection. Note the key is under CurrentControlSet, not just ControlSet001.
- Data sources
- Registry hive collectionEDR device-control eventsSysmon registry events
- Platforms
- Windows
Logic
For each endpoint, export USBSTOR serials and last-connect times. Compare to the approved-device list. Flag serials seen on more than 3 machines, new serials in the last 7 days, and devices connected within hours of a resignation notice or a large file read.
False positives
Personal phones and approved encrypted drives. Many users have a stick for presentations.
Catches 8 techniques
- TAM-H-ACT-005Carrying Data Out on Hardware
- TAM-H-CVR-044Working Inside a Virtual Machine
- TAM-H-RCH-025Portable Storage Ports
- TAM-H-STG-004Browsing for Valuable Files
- TAM-H-STG-008Changing How a Device Starts
- TAM-H-STG-037Plugging In Storage
- TAM-H-STG-039Prepping a Drive for Writing
- TAM-H-STG-040Probing the Defenses