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

Event ID 2889: The following client performed a SASL LDAP bind without requesting signing, or a simple bind over a cleartext connection

Written by a domain controller for each LDAP bind without signing or simple bind without TLS, with the client address and identity. Needs 16 LDAP Interface Events at level 2. Where signing is not required, relayed NTLM binds show here.

Log source
Directory Service log
Detection value
Supporting
Volume
High (estimate)
Last updated
Log
Directory Service log (Microsoft-Windows-ActiveDirectory_DomainService, on by default)
Logged on
Domain controllers only
Event versions
Not published
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
2 groups that MITRE ATT&CK records using these techniques
Fields the rules read
The event ID and the provider only

When it is written

A domain controller writes 2889 to its Directory Service log when a client binds to LDAP in one of the two ways Microsoft recommends rejecting: a SASL bind (Negotiate, Kerberos, NTLM or Digest) that does not request signing, or a simple bind on a connection that is not protected by TLS. Microsoft's update article describes the trigger as a client that does not use signing for binds on sessions on port 389. Each event names one client: its address and port, the identity it tried to authenticate as and the binding type.

The event is written only while the 16 LDAP Interface Events diagnostic level of the domain controller is 2 or higher. At the default level the domain controller writes only a daily summary with the number of such binds (2887), so 2889 is what turns the count into client addresses and names. When the domain controller requires signing (LDAPServerIntegrity 2), it rejects these binds and counts them in the daily summary 2888; Microsoft does not say whether 2889 is still written for a rejected bind. Microsoft states that new Windows Server 2025 deployments require signing by default.

Why it matters for detection: Microsoft explains that the keys that sign an LDAP session can only be obtained by knowing the user's password, so a machine in the middle that forwards someone else's NTLM authentication to LDAP can complete only an unsigned bind. On a domain controller that accepts unsigned binds, such a relayed bind is recorded here, among the binds of the legacy clients.

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.

Diagnostic level. Set the 16 LDAP Interface Events value to 2 on every domain controller whose binds you want to see. Read the current value first; the second command is the one Microsoft's update article gives to set it:

reg query "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics" /v "16 LDAP Interface Events"
reg add "HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics" /v "16 LDAP Interface Events" /t REG_DWORD /d 2

Microsoft presents this level as an investigation setting: its LDAP signing pages advise turning it off once the clients are found, because it costs domain controller performance, and the logging guidance recommends 0 outside investigations. Keeping it at 2 for detection is a trade-off to measure on your own domain controllers. Do not go to 3 or higher for this event.

Signing policy. Whether such binds are accepted depends on Domain controller: LDAP server signing requirements (registry value LDAPServerIntegrity: 1 for None, 2 for Require signing). Read it with:

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

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
Client IP addressAddress of the client that performed the bind, followed by a colon and the TCP source port in Microsoft's sample (address:port). For a relayed authentication it is the address of the relaying machine, not of the account's owner.
Identity the client attempted to authenticate asAccount the client authenticated as, in DOMAIN\name form in Microsoft's sample. Computer accounts end with $.
Binding Type0 for a SASL bind that does not use signing, 1 for a simple bind (Microsoft: one that does not support signing). Microsoft's Windows Server 2008 page for the event shows the message without this line.

Values to know

Binding Type

ValueMeaningSignal
0SASL bind that does not use signingWhat a relayed NTLM authentication to LDAP produces, and also what every SASL client that does not request signing produces. Read it with the identity and the address.Attack signal
1Simple bind that does not support signingThe password crossed the network in clear text. A credential exposure rather than a relay; the rule matches it too.Worth knowing

Identity the client attempted to authenticate as

ValueMeaningSignal
Ends with $A computer accountMicrosoft states that Windows LDAP clients request signing by default, so an unsigned bind by a computer account is unusual. A domain controller's account here is urgent.Attack signal
A privileged accountAn administrator or other Tier 0 accountPrivileged accounts should not bind without signing; a relayed bind with such an account can change the directory.Attack signal
A service account of a known applicationThe configured identity of a legacy clientThe clients Microsoft expects these events to find. Fix them, then exclude what remains by address and identity together.Noise

Client IP address

ValueMeaningSignal
An address that does not belong to the identityThe bind came from another machine than the account's ownFor a computer account, compare with the computer's real addresses. A relayed bind comes from the relaying machine.Attack signal
Address of a known legacy clientAn application, appliance or script you have identifiedNoise

Volume and noise

On most domains that have not required signing yet, the event is dominated by ordinary clients. Microsoft sorts them into three groups: appliances and routers, devices that do not run Windows, and Windows applications or services that do not use signing (for example a simple bind on port 389). Its guidance is to identify each device by the address in the event, make it sign or use TLS, and only then require signing.

There is one event per bind, not per client, so a single application that binds every few minutes fills the log on its own. Look at the daily summary 2887 before raising the diagnostic level: its counts tell you how many 2889 events to expect.

Keeping it manageable

  • Keep every 2889 from every domain controller: the relay rule matches the event ID alone, and a relayed bind is distinguished by its identity and address, not by any value you could filter on at collection time.
  • For alerting, exclude known legacy clients by the pair of Client IP address and identity, never by the identity alone: a relayed bind carries a real account name.
  • Alert first on identities that end with $ and on privileged accounts, and on binding type 0 from an address that is not the account's own computer.
  • The lasting fix is Microsoft's: move the clients to signing or TLS, then set Domain controller: LDAP server signing requirements to Require signing. Unsigned binds are then rejected and counted in 2888.
  • Check the size of the Directory Service log (wevtutil gl "Directory Service") before raising the level, so that a busy legacy client does not roll the other events of the log out.

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Why do I see event 2887 but no event 2889?

2887 is the daily summary that every domain controller writes at the default diagnostic level. 2889 needs the 16 LDAP Interface Events diagnostic level at 2 or higher on that domain controller. Raise it, and each unsigned or clear text bind is logged with the client address and identity.

Does event 2889 mean an NTLM relay attack?

Usually not. Most events come from appliances, devices that do not run Windows and applications that bind without signing or with clear text simple binds, which Microsoft expects administrators to find and fix. A relay looks like one of these binds, so look for an identity that does not belong to the client address, above all a computer account or a privileged account, and for binding type 0.

Is it safe to leave the LDAP Interface Events level at 2?

Microsoft describes the level as a setting for investigations, warns that it costs domain controller performance and advises turning it off once the clients are found. Level 2 is what this event needs; never go to 3 or higher for it. If you keep it on for detection, watch the load and the log size of your domain controllers.

Does event 2889 cover LDAPS on port 636?

No. Signing applies to SASL binds without TLS, and Microsoft's trigger is a bind on port 389. Binds over TLS are protected by channel binding, which has its own events: 3039 when validation fails, and the audit events 3074 and 3075.

References