SecurityObject Access
Event ID 5039: A registry key was virtualized
A registry key was virtualized.
- Channel
- Security
- Logged by default
- No
- Written on
- Any host
- Volume
- Moderate
- Audit subcategory
- Registry
- Needs a SACL
- Yes
To have this event
- Enable Registry:
auditpol /set /subcategory:"Registry" /success:enable /failure:enable
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 'Security' -FilterXPath "*[System[(EventID=5039)]]" -MaxEvents 50 |
Select-Object TimeCreated, Id, MachineName, Message-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.
Common questions
- What does Windows event ID 5039 mean?
- A registry key was virtualized. It is written to the Windows Security log (Security).
- Is event 5039 logged by default?
- No. It must be enabled before it is recorded. It is controlled by the "Registry" Advanced Audit Policy subcategory (Object Access). It also requires a SACL on the audited object.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderA registry key was virtualized. Needs the "Registry" audit subcategory. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.