DET-051 · human · confidence Low
First Connection Record in setupapi.dev.log
The setupapi.dev.log file notes the first time each device was ever installed on the machine.
C:\Windows\INF\setupapi.dev.log has a section for each device install with a timestamp and the device ID. For USB drives it gives the very first connection time, which registry data often overwrites. It does not tell you when a drive was removed. Use it to date when an unfamiliar drive first appeared, and to show a device was new to that machine. Logs rotate, so grab it early.
- Data sources
- setupapi.dev.logEndpoint triage collection
- Platforms
- Windows
Logic
Search for lines '>>> [Device Install' with 'USBSTOR' or 'USB\\VID'. Extract the section start time and the device ID. Compare against USBSTOR serials to build 'first seen' and 'last seen' per device.
False positives
Every newly attached USB peripheral shows up. The file is small and rolls over.