Event ID 12: Virtual disk handle created
Written when a handle to a virtual disk file is opened, before or without mounting it. Records the file path, the disk format and how it was opened, including whether the open was read-only or only to read information.
- Channel
- Microsoft-Windows-VHDMP-Operational
- Logged by default
- Yes
- Written on
- Any host
- Volume
- Low
- Provider
- Microsoft-Windows-VHDMP
- Needs a SACL
- No
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| VhdFile | Full path of the ISO or virtual disk file that was opened |
| VhdType | Numeric virtual disk format; confirm ISO, VHD or VHDX from the extension in VhdFile |
| ReadOnly | Whether the handle was opened read-only |
| GetInfoOnly | True when the handle was opened only to read the file's metadata, not to attach the disk |
| VmId | Virtual machine GUID when the disk was opened for a virtual machine |
| Status | Result of the open; 0 is success |
Analyst notes
- 0112 usually comes just before event 1 for the same file and gives the path even when the mount itself failed. Velociraptor's ISO mount artifact reads 1, 2 and 12 together.
- 02Handles opened only to read metadata (GetInfoOnly) do not attach the disk, so a 12 alone does not prove a mount; look for the event 1 that follows.
- 03On Hyper-V hosts 12 is written for virtual machine disks as well; separate user activity from VM storage with VmId and the file path.
Pull this event
Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.
Get-WinEvent -LogName 'Microsoft-Windows-VHDMP-Operational' -FilterXPath "*[System[(EventID=12)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
ATT&CK mapping
Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.
Related events
Common questions
- What does Windows event ID 12 mean?
- Written when a handle to a virtual disk file is opened, before or without mounting it. Records the file path, the disk format and how it was opened, including whether the open was read-only or only to read information. It is written to the VHDMP Operational log (Microsoft-Windows-VHDMP-Operational).
- Is event 12 logged by default?
- Yes, a default Windows installation records it.
- Where is event 12 recorded?
- In the Microsoft-Windows-VHDMP-Operational channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten when a handle to a virtual disk file is opened, before or without mounting it. Records the file path, the disk format and how it was opened, including whether the open was read-only or only to read information. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.