Skip to content
WETNav
Directory ServiceActive Directory

Event ID 1644: Expensive, inefficient or slow LDAP search

Written on a domain controller for LDAP searches that are expensive, inefficient or slow. With the right diagnostics on, it records the client, the search base, the filter and the scope, which exposes bulk directory enumeration.

Channel
Directory Service
Logged by default
No
Written on
Domain controller
Volume
High
Provider
Microsoft-Windows-ActiveDirectory_DomainService
Needs a SACL
No

To have this event

  • Registry: HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics '15 Field Engineering' = 5
  • Set search-time and inefficiency thresholds under NTDS\Parameters (e.g. 'Expensive Search Results Threshold', 'Inefficient Search Results Threshold', 'Search Time Threshold (msecs)')

Key fields

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

ClientIP address (and often port) of the client that issued the LDAP search
Starting nodeThe search base distinguished name the query ran against
FilterThe LDAP filter used; broad filters like (objectClass=*) or (objectClass=user) over the whole domain are typical of collectors
Search scopeScope of the search (base, one-level or subtree); subtree over the domain root is the enumeration pattern
Visited entriesNumber of directory entries examined; very high counts mark bulk enumeration
Returned entriesNumber of entries returned to the client
Have one of these events? Paste it into the decoder

Analyst notes

  • 011644 is one of the clearest signals of AD enumeration tools (for example SharpHound/BloodHound collectors), which issue broad subtree searches that show up as expensive queries.
  • 02Pivot on Client to find the host doing the enumeration, then on the filters and scope to see what it was collecting.
  • 03Requires Field Engineering diagnostics and search thresholds; without them this event is not written. Even enabled, busy environments produce benign expensive queries, so baseline normal clients.

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 'Directory Service' -FilterXPath "*[System[(EventID=1644)]]" -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.

Also relevant, depending on field values

Common questions

What does Windows event ID 1644 mean?
Written on a domain controller for LDAP searches that are expensive, inefficient or slow. With the right diagnostics on, it records the client, the search base, the filter and the scope, which exposes bulk directory enumeration. It is written to the Directory Service log (Directory Service).
Is event 1644 logged by default?
No. It must be enabled before it is recorded.
Where is event 1644 recorded?
In the Directory Service channel on the domain controller.

Written on a domain controller for LDAP searches that are expensive, inefficient or slow. With the right diagnostics on, it records the client, the search base, the filter and the scope, which exposes bulk directory enumeration.