Signed, Sealed, and Relayed, NTLM-style: Bypassing LDAP Signing Through Reauthentication
LDAP signing could be bypassed by establishing a signed LDAP connection with a known session key, then relaying a victim's NTLM authentication and a malicious LDAP operation together in one signed SASL record. An attacker could then perform operations as the victim, such as modifying AD attributes to enable domain controller takeover.
Traditionally, LDAP signing was considered one of the “effective mitigations” against NTLM relay attacks. So, naturally, we had to ruin it.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The LDAP server verified the signature of a SASL record only once using the original session key, then processed subsequent messages in the same record under the new identity after a bind, without re-checking the signature with the new key.
Impact
An attacker could relay a machine account's NTLM authentication to LDAP and perform operations as that machine, enabling resource-based constrained delegation or shadow credentials attacks that could lead to complete domain compromise; the attack worked even with LDAP signing and channel binding enforced, but only over LDAP on port 389, not LDAPS.
What the attacker needed
Ability to coerce victim SMB authentication; Valid domain credentials or anonymous NTLM SASL; LDAP on port 389 reachable; Victim is a Windows SMB client
The fix
Microsoft fixed this by tracking the connection's identity with a counter and discarding the rest of a SASL record if the identity changes partway through; the October 2026 cumulative update (KB5126646) addresses the LDAP issue.
How it was found
- Coerce the victim into authenticating over SMB to the attacker.
- Establish a signed LDAP session to the DC using known credentials or anonymous NTLM SASL, keeping the session key.
- Relay the victim's NTLM NEGOTIATE and CHALLENGE messages between the victim and the DC over the existing signed LDAP connection.
- Send the victim's NTLM AUTHENTICATE message in a BindRequest together with a malicious LDAP ModifyRequest in one SASL record signed with the attacker's session key.
- The DC verifies the SASL record with the attacker's key, completes the bind as the victim, and executes the ModifyRequest with the victim's privileges.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
LDAP is a protocol used to access directory services like Active Directory. Signing is a protection that ensures messages come from the authenticated user. The researchers found that if an attacker first logs in with their own account, they can later switch the connection to a victim's identity and sneak in an extra command that runs as the victim, all within a single signed message.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.