# Windows Server LDAP Signing Bypass via Reauthentication (CVE-2026-70229) Enables NTLM Relay and Active Directory Domain Compromise

> CVE-2026-70229 is an incorrect-authorization flaw in Windows Active Directory Domain Services (LDAP) in which a signed LDAP record is verified once under the original identity, but a directory operation in the same record is executed under a new identity established by an in-record NTLM bind. This lets an attacker relay a coerced SMB client's NTLM authentication to a domain controller's signed LDAP (389/TCP) and perform directory writes with the victim's privileges, potentially leading to RBCD, shadow credentials, DCSync and domain compromise. Microsoft fixed it on 2026-10-13 (KB5126646 for Server 2025).

- **Author:** Threadlinqs Team
- **Published:** 2026-12-01T18:59:35Z
- **Last updated:** 2026-12-01T18:59:35Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7199
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7199.png
- **ID:** TL-2026-7199
- **Severity:** CRITICAL (CVSS 8.1)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 9
- **CVEs:** CVE-2026-70229

## Description

CVE-2026-70229 (CVSS 3.1 8.1, AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE-863 Incorrect Authorization) was published by Microsoft and NVD on 2026-10-13 as a Windows Active Directory Domain Services remote code execution vulnerability rated Critical by the vendor, with 'Exploitation More Likely'. NVD describes it as 'Incorrect authorization in Active Directory Domain Services allows an unauthorized attacker to execute code over a network.' Microsoft states exploitation depends on specific network configurations and timing. It was first reported by mad31k (as part of a larger RCE) and disclosed in depth by Raj Patel of SpecterOps (post 'Signed, Sealed, and Relayed, NTLM-style: Bypassing LDAP Signing Through Reauthentication', 2026-10-23, with co-author credit to Duane Michael; guidance from Elad Shamir). The LDAP variant was found in September 2026, reported to Microsoft on 2026-10-06 and fixed in the 2026-10-13 cumulative updates.

Root cause: LDAP signing normally defeats NTLM relay because the attacker does not know the relayed victim's session key and so cannot sign subsequent requests. In the vulnerable code path (LDAP_CONN::ProcessRequestEx, with LDAP_REQUEST::DecryptSignedOrSealedMessage, LDAP_CONN::BindRequest, MoveSecurityContext/InstallNewSecurityContext/SetSecurityContextAtts and LDAP_CONN::ModifyRequest), SASL signature verification happens once per received record, and nothing checks whether the connection's authenticated identity changes partway through that record. The attacker first binds over signed LDAP on 389/TCP with a session key it knows (identity X, e.g. a low-privileged domain account, or anonymous NTLM SASL where accepted). The attacker then coerces a victim (identity Y) to authenticate over SMB and relays the NTLM NEGOTIATE, CHALLENGE and AUTHENTICATE messages through GSS-SPNEGO SASL binds on the signed LDAP session. The final AUTHENTICATE message is placed in a BindRequest, followed in the same SASL record by a malicious ModifyRequest signed with X's key. The domain controller verifies the record once with X's key, completes the bind as Y, then executes the ModifyRequest with Y's privileges. The attacker does not need the victim's password or session key. The victim must be an SMB client because it sets NTLMSSP_NEGOTIATE_SIGN; WebDAV/HTTP clients fail with operationsError (0x4DC) because no successful bind completes. LDAPS (636/TCP) is not affected by this technique, and channel binding (which ties authentication to a TLS channel) does not address the flaw on plaintext LDAP.

Impact depends on the privileges of the relayed identity. In the SpecterOps lab (Kali attacker, Windows Server 2022 victim, Server 2025 DC build 26100.33451 / KB5129235 before the fix) the attacker relayed a server machine account and wrote msDS-AllowedToActOnBehalfOfOtherIdentity to set up resource-based constrained delegation (RBCD). The post states the impact can extend to shadow credentials (msDS-KeyCredentialLink), computer takeover, DCSync and full domain or forest compromise; GBHackers notes that relaying a domain controller machine account could permit unauthorized directory changes and DCSync credential theft (password hashes, Kerberos keys).

Tooling: SpecterOps released 'switcheroo' (The LDAP Switcheroo, github.com/grayhatkiller/switcheroo; files README.md and switcheroo.py), a Python wrapper that starts Impacket ntlmrelayx.py, must run as root (SMB listener on 445/TCP), requires a pinned Impacket build exposing LDAP signing/security-context APIs (PyPI 0.13.1 is insufficient), defaults to writing an RBCD descriptor (or an arbitrary attribute via -attribute/-value), and verifies the write with an independent signed read-back. The post says the attack was later integrated into upstream Impacket ntlmrelayx.py. Coercion tools such as Coercer or PetitPotam are required to trigger victim authentication. SpecterOps also used a custom Wireshark plugin to decrypt LDAP messages and OpenAI's Daybreak Red model to help reverse engineer DLLs. A related SMB signing bypass was independently found, silently patched in September 2026 (KB5122882) and published by Lyderic Lefebvre (blackfield.ch); it is a separate issue.

Fix: each LDAP connection now has an identity counter. LDAP_REQUEST::ReceivedClientData snapshots the counter per request, LDAP_CONN::SetSecurityContextAtts increments it when identity changes, and if the counter differs from the snapshot mid-record the DC discards the rest of the record. The fixed Server 2025 build is 26100.33648 (KB5126646). Exploitation status: no CISA KEV listing is present in NVD data (last modified 2026-10-28), and the CISA Coordinator SSVC entry records exploitation 'none', automatable 'no', technical impact 'total'. Forkast reports Microsoft's record notes observation 'in limited scenarios' while also saying it was not publicly disclosed or exploited at filing; sources are therefore in tension and no confirmed in-the-wild campaign or attribution exists. Public exploit tooling exists. Sources also disagree on affected scope (SpecterOps: Server 2016-2025 DCs, 2022 and 2025 tested; GBHackers: Server 2012 through 2025; Forkast: Server 2012 through 2025 incl. Server Core, Windows 10 1607-22H2 and Windows 11 23H2-26H2); all are recorded. The SpecterOps post has no detection section; detection guidance is from GBHackers (unexpected computer account changes; replication requests from non-DC systems) plus behavioral inference from tool documentation. No network IOCs (C2 IPs/domains) have been published, so BeaconBeagle correlation was not applicable.

## MITRE ATT&CK

- T1187 Forced Authentication
- T1557 Adversary-in-the-Middle
- T1003.006 OS Credential Dumping: DCSync
- T1212 Exploitation for Credential Access
- T1098 Account Manipulation
- T1078.002 Valid Accounts: Domain Accounts

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**CVE-2026-70229 Relayed LDAP Write - Computer Account Sets RBCD or Shadow Credential Attribute** (`TL-2026-7199-SPL-001`)

Detects a computer account writing msDS-AllowedToActOnBehalfOfOtherIdentity (RBCD) or msDS-KeyCredentialLink (shadow credentials) in Active Directory, via Windows Security event 5136. This is the directory write performed after the CVE-2026-70229 LDAP signing bypass (switcheroo / Impacket ntlmrelayx) executes a ModifyRequest under a relayed machine identity. Machine accounts rarely modify these attributes, so any hit warrants investigation. Requires DS Change auditing (SACL) on computer objects.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1098, T1557, T1212, T1210
- **Data sources:** windows_security_5136, index=wineventlog sourcetype=XmlWinEventLog:Security, SecurityEvent
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

````spl
index=wineventlog sourcetype="XmlWinEventLog:Security" earliest=-24h EventCode=5136 OperationType="%%14674" (AttributeLDAPDisplayName="msDS-AllowedToActOnBehalfOfOtherIdentity" OR AttributeLDAPDisplayName="msDS-KeyCredentialLink")
| where like(SubjectUserName,"%$")
```Machine accounts rarely write delegation or key credential attributes; self writes are the relay signature```
| eval target_cn=lower(mvindex(split(replace(ObjectDN,"^CN=",""),","),0)), writer=lower(rtrim(SubjectUserName,"$"))
| eval self_write=if(writer==target_cn,"yes","no")
| stats count min(_time) as first_seen max(_time) as last_seen values(AttributeLDAPDisplayName) as attributes values(ObjectDN) as target_objects values(SubjectLogonId) as logon_ids values(self_write) as self_write by host, SubjectUserName
| convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
SecurityEvent
| where TimeGenerated > ago(24h)
| where EventID == 5136 and OperationType == "%%14674"
| where AttributeLDAPDisplayName in ("msDS-AllowedToActOnBehalfOfOtherIdentity", "msDS-KeyCredentialLink")
| where SubjectUserName endswith "$"
| extend TargetCN = tolower(extract("^CN=([^,]+),", 1, ObjectDN)), Writer = tolower(trim_end("[$]", SubjectUserName))
| extend SelfWrite = (Writer == TargetCN)
| project TimeGenerated, Computer, SubjectUserName, SubjectLogonId, ObjectDN, AttributeLDAPDisplayName, AttributeValue, SelfWrite
```

### Sigma

```yaml
title: CVE-2026-70229 Machine Account Writes RBCD or Shadow Credential Attribute
id: a1c3e5f7-2b4d-4a6c-8e0f-1d3b5a7c9e21
status: experimental
description: Detects a computer account modifying msDS-AllowedToActOnBehalfOfOtherIdentity or msDS-KeyCredentialLink, the directory write performed by relayed sessions in the CVE-2026-70229 LDAP signing bypass (switcheroo and Impacket ntlmrelayx). Requires DS Change auditing.
references:
    - https://specterops.io/blog/2026/10/23/ldap-signing-bypass-ntlm-relay/
    - https://nvd.nist.gov/vuln/detail/CVE-2026-70229
author: Threadlinqs Team
date: 2026/12/01
tags:
    - attack.persistence
    - attack.credential_access
    - attack.lateral_movement
    - attack.t1098
    - attack.t1557
    - attack.t1212
    - attack.t1210
    - attack.s0357
    - cve.2026.70229
logsource:
    product: windows
    service: security
detection:
    selection:
        EventID: 5136
        OperationType: '%%14674'
        AttributeLDAPDisplayName:
            - 'msDS-AllowedToActOnBehalfOfOtherIdentity'
            - 'msDS-KeyCredentialLink'
        SubjectUserName|endswith: '$'
    condition: selection
falsepositives:
    - Hybrid join, Windows Hello for Business or Entra Connect provisioning writing msDS-KeyCredentialLink
    - Legitimate RBCD configuration by automation running as a machine account
level: high
```

**Known false positives:**

- Hybrid Azure AD join / Windows Hello for Business / Entra Connect provisioning legitimately writes msDS-KeyCredentialLink
- Automation or cluster/service accounts running as a machine account that configure RBCD on their own computer object

**Tuning notes:** Enable Audit Directory Service Changes and a SACL (Write All Properties, Everyone) on computer objects, otherwise 5136 is not generated. Exclude known provisioning machine accounts (e.g. Entra Connect, ADFS, DCs for msDS-KeyCredentialLink). Prioritise self_write=yes hits; a machine account writing msDS-AllowedToActOnBehalfOfOtherIdentity on its own object is the switcheroo default.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- CVE-2026-70229 NTLM Relay Indicator - Machine Account Network Logon from Unexpected IP (locked: unlock with TL Creds)
- CVE-2026-70229 Post-Exploitation DCSync Replication from Non-Domain-Controller Source IP (locked: unlock with TL Creds)
- CVE-2026-70229 Relay Infrastructure - Non-System Process Listening on 445/TCP (locked: unlock with TL Creds)
- CVE-2026-70229 Exploitation Tooling - switcheroo and ntlmrelayx LDAP Relay Execution (locked: unlock with TL Creds)
- CVE-2026-70229 Post-Exploitation Delegation and Shadow Credential Attribute Tampering on Computer Objects (locked: unlock with TL Creds)
- CVE-2026-70229 Authentication Coercion Tooling - PetitPotam and Coercer Execution (locked: unlock with TL Creds)
- CVE-2026-70229 Post-Exploitation DCSync Replication Rights Used by Non-Domain-Controller Account (locked: unlock with TL Creds)
- CVE-2026-70229 Authentication Coercion via Named Pipes (PetitPotam / Coercer) on IPC$ (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [SpecterOps - Signed, Sealed, and Relayed, NTLM-style: Bypassing LDAP Signing Through Reauthentication](https://specterops.io/blog/2026/10/23/ldap-signing-bypass-ntlm-relay/)
- [GBHackers - Windows Server LDAP Signing Bypass Vulnerability Lets Hackers Compromise Active Directory Domains](https://gbhackers.com/windows-server-ldap-signing-bypass-vulnerability/)
- [Forkast - Active Directory will execute code from a packet that never authenticated; Microsoft's file carries 8.1, not 9.8](https://forkast.news/active-directory-will-execute-code-from-a-packet-that-never-authenticated-microsofts-file-carries-8-1-not-9-8)
- [Action1 - CVE-2026-70229 Windows Active Directory Domain Services Remote Code Execution Vulnerability](https://www.action1.com/vulnerabilities/cve-2026-70229/)
- [switcheroo (LDAP Switcheroo) - ntlmrelayx wrapper PoC](https://github.com/grayhatkiller/switcheroo)
- [Microsoft Security Update Guide - CVE-2026-70229](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70229)
- [NVD - CVE-2026-70229](https://nvd.nist.gov/vuln/detail/CVE-2026-70229)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7199
