Skip to content
WETNav
ApplicationCredential Access

Event ID 216: ESENT database location change detected

Written by the Extensible Storage Engine when a database's location changes, for example when an engine attaches a database from a path it has not seen before. On a domain controller this is a key signal that the Active Directory database (ntds.dit) was copied.

Channel
Application
Logged by default
Yes
Written on
Domain controller, Any host
Volume
Low
Provider
ESENT
Needs a SACL
No

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

Database NamePath of the database whose location changed. On a DC, a path pointing at a copy of ntds.dit (for example under C:\Windows\Temp or a mounted shadow copy) is high-signal
Process NameProcess that triggered the change (rendered in the event body)
Have one of these events? Paste it into the decoder

Analyst notes

  • 01On a domain controller, 216 referencing a non-standard ntds.dit path is one of the clearest signs of credential theft via 'ntdsutil ... ifm' or a Volume Shadow Copy of the system drive.
  • 02Correlate with 325/326/327 for the same database path and with 4688/Sysmon 1 for ntdsutil.exe, vssadmin.exe, diskshadow.exe or esentutl.exe.
  • 03ESENT backs many products (Windows Update, Defender, Exchange), so on non-DC hosts these events are usually benign; the ntds.dit path is what makes a DC case stand out.
  • 04ESENT events render their fields from a positional template; read the event body to confirm the exact path and process.

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 'Application' -FilterXPath "*[System[(EventID=216)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

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.

Common questions

What does Windows event ID 216 mean?
Written by the Extensible Storage Engine when a database's location changes, for example when an engine attaches a database from a path it has not seen before. On a domain controller this is a key signal that the Active Directory database (ntds.dit) was copied. It is written to the Application log (Application).
Is event 216 logged by default?
Yes, a default Windows installation records it.
Where is event 216 recorded?
In the Application channel on the domain controller or any host.

Written by the Extensible Storage Engine when a database's location changes, for example when an engine attaches a database from a path it has not seen before. On a domain controller this is a key signal that the Active Directory database (ntds.dit) was copied.