1. Resources
  2. Detection sources
  3. Event ID 2887

Event ID 2887: During the previous 24 hour period, some clients attempted to perform LDAP binds

Daily summary of a domain controller that accepts LDAP binds without signing: how many SASL binds without signing and clear text simple binds it took in the past 24 hours. Written at the default level; 2889 names the clients.

Log source
Directory Service log
Detection value
Context
Volume
Low
Last updated
Log
Directory Service log (Microsoft-Windows-ActiveDirectory_DomainService, on by default)
Logged on
Domain controllers only
Event versions
Not published
Detects
Not read by our detection rules yet

When it is written

A domain controller writes 2887 to its Directory Service log once every 24 hours when, during that period, clients completed LDAP binds of the two kinds Microsoft recommends rejecting: a SASL bind (Negotiate, Kerberos, NTLM or Digest) that did not request signing, or a simple bind on a connection not protected by TLS. KB4520412 ties it to the policy Domain controller: LDAP server signing requirements set to None (the domain controller does not reject such binds) and to at least one such bind in the period. The event gives one count for each kind of bind and no client; its own text says that raising the LDAP Interface Events category to level 2 logs an event for each bind with the client, which is 2889. Microsoft documents it at the Warning level, in the LDAP Interface task category.

The event is written at the default diagnostic level (0), so every domain controller that accepts such binds has it without any change. Once the domain controller requires signing, the same binds are rejected and the daily summary becomes 2888. Microsoft states that new Windows Server 2025 deployments require signing by default; Windows Server 2022 and earlier accept unsigned binds unless an administrator requires signing. AD LDS instances write the same summary to their own log, which this library does not cover.

Why a defender reads it next to 2889: the library's NTLM relay rule reads the per-bind event 2889, which a domain controller writes only at diagnostic level 2. 2887 tells you, without raising any level, whether a domain controller accepts the unsigned SASL binds that Microsoft's KB4520412 describes as the opening for a machine in the middle that forwards an authentication request to a domain controller, and how many it took.

How to turn it on

Microsoft-Windows-ActiveDirectory_DomainService writes the event to the Directory Service log (Event Viewer > Applications and Services Logs > Directory Service), which is on by default. Microsoft

The log needs nothing to be turned on: a domain controller writes it from the moment it is promoted. What Active Directory writes there depends on its diagnostic logging levels, one REG_DWORD value per category under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics (for example 16 LDAP Interface Events), each from 0 (None) to 5 (Internal). Microsoft's default for every category is 0, which it describes as recording only critical and error events; several warning and information events of this library are nonetheless documented as written at that level (the CVE-2021-42291 events, the daily LDAP summaries). Some events, such as the per-client LDAP signing and channel binding events, are written only at level 2 or higher of their category; their pages say so.

Microsoft recommends keeping the levels at 0 unless you investigate an issue, notes that a higher level adds detail and events, and advises against 3 or more because it costs resources and can slow the server. The levels are set per domain controller, so set them on every domain controller whose events you need. AD LDS instances write the same kind of events to their own instance log, which this library does not cover.

Show the diagnostic logging levels of this domain controller
reg query "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics"
Based on vendor documentation.
Show the log's settings (size and retention)
wevtutil gl "Directory Service"
Based on vendor documentation.

Nothing to turn on: the event is written at diagnostic level 0, the default. It appears only while the signing policy accepts unsigned binds. Read the policy's registry value on the domain controller (LDAPServerIntegrity: 1 for None, 2 for Require signing; KB4520412 maps the Group Policy setting to it):

reg query "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters" /v LDAPServerIntegrity

On Windows Server 2025, Microsoft adds the policy Domain controller: LDAP server signing requirements enforcement, enabled by default on new deployments, which enforces signing and takes precedence over the signing level. An upgraded domain controller keeps the signing policy it had.

Fields

The template of this event is not part of client Windows and Microsoft does not publish its XML field names, so the fields are named by the labels of Microsoft’s documentation.

FieldWhat it holds
Number of simple binds performed without SSL/TLSCount of LDAP simple binds on connections without TLS that the domain controller accepted in the previous 24 hours. Each one carried the password in clear text (Microsoft's LDAP signing overview: signing does not protect simple binds).
Number of Negotiate/Kerberos/NTLM/Digest binds performed without signingCount of SASL binds that did not request signing and that the domain controller accepted in the previous 24 hours, all authentication packages together. The event does not split the count by package, client or account.

Values to know

Number of Negotiate/Kerberos/NTLM/Digest binds performed without signing

ValueMeaningSignal
A stable count from known clientsLegacy clients that bind with SASL without requesting signingFind them with 2889, move them to signing, then require signing.Noise
A first count, or a jump from the domain controller's usual levelA new source of unsigned SASL bindsRaise the diagnostic level and read 2889: a computer account or a privileged account binding without signing from an address that is not its own deserves an investigation.Worth knowing

Number of simple binds performed without SSL/TLS

ValueMeaningSignal
Above 0Simple binds sent a password in clear text to this domain controllerA credential exposure rather than a relay. 2889 with binding type 1 names the clients.Worth knowing
0No clear text simple binds in the periodExpected

Volume and noise

On a domain that has not required signing yet, most domain controllers write 2887 every day, and the counts come from ordinary clients: appliances and routers, systems that do not run Windows, and Windows applications or services that do not use signing, the three groups Microsoft sorts them into. A busy legacy application can account for most of a domain controller's count on its own.

The counts matter more than the event itself. A domain controller that never wrote 2887 and starts to, or whose count of SASL binds without signing jumps from its usual level, has a new client binding that way; 2889 tells you which.

Keeping it manageable

  • Collect 2887 from every domain controller and keep both counts as numbers in the SIEM, so that you can trend them per domain controller and see a new source or a jump.
  • Read the two counts separately. Number of Negotiate/Kerberos/NTLM/Digest binds performed without signing is the one tied to relayed authentication; Number of simple binds performed without SSL/TLS is passwords sent in clear text to the domain controller.
  • Where a count is not zero, raise 16 LDAP Interface Events to 2 on that domain controller for a while and read 2889 to name the clients, as Microsoft's LDAP signing article describes, then lower it again.
  • When no 2887 appears for an extended period, Microsoft recommends setting Domain controller: LDAP server signing requirements to Require signing. The summary then becomes 2888.

Attacks this event reveals

No detection rule or detection logic in our library reads this event yet. It is documented here because it sits next to the events they read: it explains them, follows from them or is the trace a defender looks for around them (see Related events).

Frequently asked questions

What does event 2887 mean?

The domain controller accepted, during the previous 24 hours, LDAP binds that Microsoft recommends rejecting: SASL binds that did not request signing, simple binds over a connection without TLS, or both. Its signing policy is None. The event gives a count for each kind and no client.

How do I find the clients counted in event 2887?

Set the 16 LDAP Interface Events diagnostic level to 2 on that domain controller. It then logs event 2889 for each such bind, with the client's address and port, the identity it authenticated as and the binding type. Microsoft advises lowering the level again once the clients are found, because it costs performance.

Is event 2887 a sign of an attack?

Not on its own: it is a daily count, and on most domains the binds come from legacy clients. It does show that the domain controller accepts the unsigned SASL binds that KB4520412 describes as the opening for forwarding an authentication request to a domain controller. Look at the clients in 2889, above all computer or privileged accounts binding from an address that is not their own.

How do I make event 2887 go away?

Move the clients to signing or TLS, then set Domain controller: LDAP server signing requirements to Require signing. The domain controller then rejects such binds and writes the summary 2888 when clients still try them.

References