Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Microsoft-Windows-Partition%4Diagnostic.evtx for EventID 1006 #25

Merged
merged 2 commits into from
Jul 13, 2020

Conversation

mark-hallman
Copy link
Contributor

Windows 10 creates an entry in Microsoft-Windows-Partition%4Diagnostic.evtx, EventID 1006, each time a USB device is connected to or disconnected from the system.

USBs can have two serial number values and they are not always the same. The serial number commonly referred to as iSerialNumber, is almost always unique and the value used in the WIndows registry to track USB activity. The other serial number value, which I will refer to as the "alternate" serial number, can have duplicates or may be null. The serial number value recorded in this event log is the non-unique one, the alternate serial number.

When analyzing the physical USB device, different tools display one or the other serial number. There a few tools that display both. You also use PowerShell to display both serial numbers. In the absence of the physical devices, this log allows us to map between the non-unique serial number and the unique one stored in the registry by using the DiskID. The DiskID is provided in this log and in the SYSTEM\CurrentControlSet\Enum\USBSTOR\ Device-Class\Device-SerialNumber\Device Parameters\Partmgr.

@EricZimmerman EricZimmerman merged commit 2ef43e5 into EricZimmerman:master Jul 13, 2020
@EricZimmerman
Copy link
Owner

nice!

AndrewRathbun added a commit that referenced this pull request Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants