LDAP Signing Bypass: One Signed Record, Domain Takeover

By 12 min read
LDAP signing bypass CVE-2026-70229 lets NTLM relay reach domain controllers despite enforced signing

For years, “require LDAP signing” was the advice that ended the conversation about NTLM relay to domain controllers. In October 2026 SpecterOps showed it did not: a single signed message could carry a stolen identity and an Active Directory change past the check.

The short answer: the LDAP signing bypass, tracked as CVE-2026-70229, let an attacker relay a victim’s NTLM authentication through their own signed LDAP session so the domain controller ran a change with the victim’s rights. Microsoft patched it on 13 October 2026, and the technique has been in Impacket’s ntlmrelayx since 30 October. If any domain controller missed the October update, it is exposed to public tooling today.

What is the LDAP signing bypass?

The LDAP signing bypass is a logic flaw in how Windows domain controllers processed a re-authentication inside an already signed LDAP connection. SpecterOps researcher Raj Patel published the details on 23 October 2026 under the title “Signed, Sealed, and Relayed, NTLM-style”. Microsoft tracks it as CVE-2026-70229 and titles it a Windows Active Directory Domain Services remote code execution vulnerability.

SpecterOps says every Windows Server from 2016 to 2025 was vulnerable until the October 2026 cumulative update. The DC in the write-up had both LDAP signing and LDAP channel binding enforced, and the attack still worked over port 389.

The research credits the user mad31k with first reporting the bug to Microsoft as part of a larger remote code execution chain. SpecterOps also notes that OpenAI’s Daybreak Red model, used under OpenAI’s trusted access programme, helped reverse engineer the relevant DLLs and pinpoint the bug, which the authors say cut research time significantly.

Key figures for CVE-2026-70229: CVSS 8.1, 32 affected builds, port 389, 17 days to tooling.
The flaw is rated Critical, affects plain LDAP only, and was in public tooling 17 days after the patch. Data: Microsoft MSRC, GitHub.

Background: why LDAP signing mattered

What NTLM relay is

NTLM relay is an attack where an adversary sits between a victim and a server and passes the victim’s NTLM authentication messages along, so the server believes the attacker is the victim. The attacker never needs the victim’s password. Relay to a domain controller’s LDAP service is especially valuable because LDAP is how you change Active Directory objects.

What LDAP signing and channel binding do

LDAP signing means the client and server agree, during the bind, to sign every later LDAP message with a session key. Microsoft’s guidance describes it as requiring SASL binds to request integrity protection, and it is set with the policy “Domain controller: LDAP server signing requirements”. An attacker who relays authentication does not learn that key, so in theory they cannot send valid signed requests.

Channel binding ties the authentication to a specific TLS connection. SpecterOps stresses that it applies only to LDAPS on port 636, not to plain LDAP on 389. That distinction is the heart of this story.

What SASL records are

SASL (Simple Authentication and Security Layer) is the framework that plugs NTLM or Kerberos into LDAP and adds the optional signing and sealing layer. Signed traffic travels in length-prefixed SASL records, and one signature covers everything inside a record, which can hold more than one LDAP message.

SpecterOps also explains why SMB-to-LDAP relay used to be hard: the Windows SMB client always asks for signing during NTLM negotiation, and LDAP honours that request. That flag, normally a defence, is what makes this bypass work.

How does the attack work?

SpecterOps describes the attack in four conceptual steps. No exploit detail is needed to understand the defensive picture.

  1. The attacker opens their own signed LDAP session with a domain controller on 389/TCP, using a valid domain account or, where the DC accepts it, an anonymous NTLM SASL context. Because it is their session, they know its signing key.
  2. A victim is coerced into authenticating over SMB. Coercion means tricking a Windows machine into connecting to an attacker-controlled host. The victim’s NTLM messages are relayed into the attacker’s existing LDAP connection as a re-authentication.
  3. The victim’s final NTLM message and an LDAP write are packed into one SASL record, signed with the attacker’s original key.
  4. The DC verifies the record once with the attacker’s key, completes the bind as the victim, then executes the write under the victim’s identity without checking the signature again.
Five-stage flow of the LDAP signing bypass from signed session to identity switch on the DC.
The trick is timing: the signature is checked before the identity changes, and never after. Data: SpecterOps.

Why it only works once per record

The attacker never learns the victim’s session key. SpecterOps notes that a second record, signed with the attacker’s key after the switch, is rejected. So the attacker gets exactly the operations they stacked in that one record, which is enough for a single, well-chosen write.

What the attacker can change

The worked example in the research writes the attribute msDS-AllowedToActOnBehalfOfOtherIdentity on the victim computer. That sets up resource-based constrained delegation (RBCD), a Kerberos feature that lets one account impersonate users to another. The research says the same flaw also enables shadow credentials through msDS-KeyCredentialLink, an attribute that stores a key a principal can authenticate with.

When the relayed victim is a domain controller’s machine account, SpecterOps and NSB Cyber both say the path leads to DCSync, the replication-based theft of all password hashes, and from there to full domain and forest compromise.

What does not work

SpecterOps says authentication coerced over WebDAV or HTTP fails: the DC returns an operations error because the bind never completes. The victim has to be an SMB client.

What was the root cause, and how did Microsoft fix it?

According to SpecterOps, the bug sits in the DC’s LDAP request handling (the function LDAP_CONN::ProcessRequestEx). The DC checked each record’s signature against the connection’s security context, but after a Bind changed the identity partway through a record, the remaining messages ran as the new identity and were never verified with that identity’s key.

The October 2026 fix gives every LDAP connection an identity counter. When a record arrives, the DC saves a snapshot of the counter. A Bind that installs a new security context increments it, and if the two no longer match, the DC discards the rest of the record. The stacked write never runs.

Four-step flow of Microsoft's identity counter fix that discards stacked LDAP operations.
The patch does not change signing; it stops a record from outliving the identity that signed it. Data: SpecterOps.

How Microsoft rates it

Microsoft’s Security Update Guide, revised on 4 November 2026, gives CVE-2026-70229 a CVSS 3.1 base score of 8.1 with high attack complexity, classifies it as CWE-863 (incorrect authorization), and rates it Critical. It was marked not exploited and not publicly disclosed at release, with an exploitability assessment of “Exploitation More Likely”. Microsoft’s FAQ says exploitation needs specific network and timing conditions.

Who is affected and how do you check exposure?

Any Active Directory environment with a domain controller that has not installed the October 2026 cumulative update and that accepts LDAP on 389/TCP is in scope. Microsoft lists 32 affected products, including client builds of Windows 10 and 11, but the practical target is the domain controller.

Windows Server version October 2026 update (13 Oct 2026)
Windows Server 2025 KB5126646
Windows Server 2022 KB5126655
Windows Server 2019 KB5126651
Windows Server 2016 KB5126868
Windows Server 2012 R2 KB5126836
Windows Server 2012 KB5126835

To check exposure:

  • Confirm the build on every DC, not just a sample. A single unpatched DC is enough, because the attacker chooses which one to talk to.
  • List what can reach 389/TCP on your DCs. If workstation subnets and servers can reach it freely, the network precondition is met.
  • Check how easy coercion is. The attack needs a victim that will authenticate over SMB to an attacker host. Domain controllers and servers that can make outbound SMB connections to arbitrary internal hosts widen the path.
  • Know your defaults. SpecterOps notes that on Windows Server 2025, SMB signing is required by default for outbound connections and new AD deployments require LDAP signing by default. Those defaults did not prevent this bug, because the attacker’s session is properly signed.

Is there public tooling?

Yes, and that is why this research belongs on a red team reading list and a patch priority list at the same time. SpecterOps released a wrapper around ntlmrelayx called “The LDAP Switcheroo”. The GitHub repository grayhatkiller/switcheroo was created on 23 October 2026 and had 68 stars and 10 forks when checked for this article, with no licence file.

More important for defenders, Impacket itself now has it. Pull request 2345 to fortra/impacket, titled “Add SMB and LDAP signing bypass to ntlmrelayx (cross-user re-authentication)”, was merged on 30 October 2026. Its author says the new –reauth-bypass option means a plain NTLM relay is enough against a target that enforces signing, a domain controller included. That puts the technique in the most widely used relay tool, 17 days after Microsoft’s patch.

Timeline from the September 2026 SMB fix to ntlmrelayx support on 30 October 2026.
About seven weeks separate the first quiet fix from public ntlmrelayx support. Data: Microsoft MSRC, blackfield.ch, SpecterOps, GitHub.

If you run internal penetration tests, expect testers to try this against unpatched DCs. Our earlier pieces on BloodHound 9.10’s new ADCS attack paths and the ARES Active Directory red team platform show how quickly AD techniques move from research into standard tooling.

How does it compare with the SMB signing bypass?

The LDAP flaw has a sibling. On 21 October 2026, two days before the SpecterOps post, blackfield.ch published “Defeating enforced SMB signing: a note”. It describes an SMB session where the attacker authenticates as an account they control, then re-authenticates the same session with a relayed privileged authentication. The server keeps the original signing key and never checks that the new identity matches. The post covers both NTLM and Kerberos.

The blackfield author later updated the post to say MSRC confirmed the issue was reported by mad31k as part of an RCE chain and fixed as CVE-2026-69676, and that KB5124008 of 8 September 2026 was the first build with the same-user check. SpecterOps says it found a similar SMB bug independently and that Microsoft fixed it quietly in September.

  LDAP signing bypass SMB signing bypass
CVE (per source) CVE-2026-70229 (Microsoft, SpecterOps) CVE-2026-69676 (as reported by blackfield.ch)
Microsoft title AD DS Remote Code Execution Windows Kerberos Remote Code Execution
Fixed 13 October 2026 8 September 2026
CVSS 3.1 (Microsoft) 8.1, high complexity, no privileges 8.8, low complexity, low privileges
Protocol and port LDAP, 389/TCP only SMB
Core mistake Identity switch inside one signed SASL record Re-authenticated session keeps old signing key
Public tooling switcheroo; ntlmrelayx –reauth-bypass krbrelayx fork; ntlmrelayx –reauth-bypass

The shared lesson: signing protects message integrity, but it says nothing about whether the identity behind the key changed mid-session. Both fixes add exactly that identity check.

How do you detect LDAP signing bypass attempts?

None of the sources publishes indicators of compromise or a MITRE ATT&CK mapping for this technique, so detection relies on the behaviour around it.

Directory changes

  • Audit writes to msDS-AllowedToActOnBehalfOfOtherIdentity and msDS-KeyCredentialLink. NSB Cyber recommends using event 5136 (a directory service object was modified) and correlating it with the account, source host and time. A computer account editing its own or another machine’s delegation or key credentials is rarely legitimate.
  • Watch for replication requests from non-DC hosts, the signature of DCSync, which is the usual end goal.

Network behaviour

  • Look for SMB-to-LDAP flows: a host that receives an SMB authentication from a server or DC and then talks LDAP on 389 to a domain controller shortly after. NSB Cyber also flags unusual machine-account authentication.
  • Baseline which hosts use 389/TCP. A workstation or new Linux box opening LDAP sessions to DCs deserves a look.

Why the usual LDAP signing events will not help much

Microsoft’s guidance uses Directory Service events 2887, 2888 and 2889 to find clients that bind without signing, with 2889 enabled by setting the “16 LDAP Interface Events” diagnostic value to 2. Those events are still worth collecting, but in this attack the attacker’s bind is signed, so it is unlikely to stand out there. Treat them as hygiene, not as detection for CVE-2026-70229.

How do you mitigate it?

In priority order, combining SpecterOps’ and NSB Cyber’s recommendations:

  1. Install the October 2026 cumulative update on every domain controller. This is the only fix. NSB Cyber stresses that the other controls do not replace it.
  2. Install the September 2026 update on all servers to close the related SMB signing bypass. Note that SpecterOps cites two different KB numbers for that update, so verify against Microsoft’s catalogue for your build.
  3. Restrict inbound 389/TCP on DCs to systems that need it. SpecterOps says blocking 389 stops the technique; NSB Cyber advises checking application dependencies first.
  4. Enforce LDAP signing and LDAP channel binding together, and move LDAP clients to LDAPS where you can. Either control alone leaves a path open.
  5. Reduce NTLM use and limit the ability of untrusted hosts to coerce authentication from servers and DCs.
  6. Monitor delegation and key-credential changes as described above, so that a missed patch is caught before DCSync.

Open questions

  • Exact version range. SpecterOps says Server 2016 to 2025; Microsoft’s affected list also includes Server 2012 and 2012 R2. Defenders should go by Microsoft’s list.
  • Reporting date. The verified text gives no date for mad31k’s report, and the RCE chain it was part of has not been described publicly.
  • Second SMB KB number. SpecterOps names both KB5129235 and KB5122882 as the September update in different sections, and blackfield.ch points to KB5124008.
  • In-the-wild use. Microsoft marked the bug not exploited at release. With ntlmrelayx support public, that may not stay true, and no source has yet published hunting results.

The bottom line

LDAP signing was never broken as cryptography; the domain controller simply checked the signature before it checked who was speaking. CVE-2026-70229 is patched, but it is now a flag in ntlmrelayx, so any domain controller that missed the October 2026 update should be treated as exposed to routine relay attacks. Patch every DC, close 389 where you can, and watch for delegation and key-credential writes.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is the LDAP signing bypass?

It is a flaw, tracked as CVE-2026-70229, in how Windows domain controllers handled re-authentication inside a signed LDAP session. An attacker could relay a victim's NTLM authentication through their own signed connection and have an LDAP change run with the victim's privileges, even with LDAP signing required.

Which Windows versions are affected by CVE-2026-70229?

SpecterOps says every Windows Server from 2016 to 2025 was vulnerable until the October 2026 update. Microsoft's Security Update Guide lists 32 affected builds, including Windows Server 2012, 2012 R2, 2016, 2019, 2022 and 2025.

Is CVE-2026-70229 exploited in the wild?

Microsoft's Security Update Guide marked it as not exploited and rated it 'Exploitation More Likely'. No public source reviewed for this article reports in-the-wild abuse, but working tooling has been public since late October 2026.

Does LDAPS or channel binding stop the attack?

The bypass works only over plain LDAP on 389/TCP. SpecterOps explains that LDAPS uses TLS rather than an NTLM signing key, so there is nothing to stack onto. Channel binding applies only to LDAPS, which is why a DC with both signing and channel binding enforced still fell over 389.

What patch fixes the LDAP signing bypass?

The October 2026 cumulative updates released on 13 October 2026, for example KB5126646 for Windows Server 2025, KB5126655 for Server 2022, KB5126651 for Server 2019 and KB5126868 for Server 2016.

What does an attacker need to exploit it?

Network access to a domain controller on 389/TCP, a way to open a signed LDAP session (a valid domain account, or an anonymous NTLM context where the DC accepts one), and a victim machine that can be coerced into authenticating over SMB.

Is ntlmrelayx able to bypass LDAP signing now?

Yes. Impacket pull request 2345, merged on 30 October 2026, adds a --reauth-bypass option that implements the SMB and LDAP signing bypasses by cross-user re-authentication. Patched servers reject it.

How is this related to the SMB signing bypass?

Both abuse re-authentication on a session whose signing key the attacker already holds. The SMB variant was described by blackfield.ch on 21 October 2026, and its author reports Microsoft fixed it as CVE-2026-69676 in the September 2026 update.

Keep reading

LDAP signing bypassCVE-2026-70229NTLM relayActive DirectorySpecterOpsntlmrelayxred team tools