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.
| Field | What it tells you |
|---|---|
| Client | IP address (and often port) of the client that issued the LDAP search |
| Starting node | The search base distinguished name the query ran against |
| Filter | The LDAP filter used; broad filters like (objectClass=*) or (objectClass=user) over the whole domain are typical of collectors |
| Search scope | Scope of the search (base, one-level or subtree); subtree over the domain root is the enumeration pattern |
| Visited entries | Number of directory entries examined; very high counts mark bulk enumeration |
| Returned entries | Number of entries returned to the client |
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
Related events
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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten 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.