Repository navigation
Add SMB and LDAP signing bypass to ntlmrelayx (cross-user re-authentication) - #2345
Conversation
|
Following the SpecterOps article on bypassing enforced LDAP signing over NTLM relay (https://specterops.io/blog/2026/10/23/ldap-signing-bypass-ntlm-relay/), I decided to add the LDAP variant of the bypass to this same PR rather than open a separate one. Reasoning: as a reviewer I personally prefer reviewing a single PR that covers a whole feature, instead of several PRs splitting the same feature across branches, having to switch branches every time just to test everything end to end is That said, if @gabrielg5 @anadrianmanrique would rather have the LDAP part split into its own PR, just let me know and I'll break it out. One note for the future: the LDAP bypass had to reimplement a bit of the RBCD :
Shadow-creds :
|
|
For LDAP you actually do not need an account, in my tests with LDAP servers with signing enforced just an anonymous sessions works, so |
|
a you're right, I tinkered too much that I thought that was all that was needed for a baseline 😅 |
|
All tested bypass variants passed against the Windows target. Authentication was triggered from a separate domain member. SMB signing bypass — PASSpython3 examples/ntlmrelayx.py dir \relay\IPC$ The target accepted cross-identity reauthentication while retaining the controlled session’s signing key. The resulting signed SMB session was usable. LDAP signing bypass, authenticated base — PASSpython3 examples/ntlmrelayx.py The authenticated signed base session opened successfully. The same-record relayed Bind and RBCD Modify bot succeeded, and independent read-back confirmed the write. LDAP signing bypass, anonymous base — PASSpython3 examples/ntlmrelayx.py The anonymous signed base session opened successfully. Anonymous attribute reading was denied, exercising the blind-write path. The relayed Bind and RBCD Modify succeeded, and independent verification confirmed the expected delegation entry. |
|
PR is ready to be merged now, @azoxlpf great work! thanks! |
Upstream: fortra#2073 HTTPAttack keeps CESAttack from fortra#2345 plus SCCMClientPushAttack.




Following https://blackfield.ch/blog/defeating-enforced-smb-signing/, which documents how an
SMB2/3re-authentication keeps the original signing key while the server never checks that the re-authenticating identity is the same one, I wanted the technique available in ntlmrelayx itself.The write-up only ships it in a krbrelayx fork, so exploiting it today means taking the Kerberos route: adding an AD-integrated
DNS recordpointing at the relay and coercing with a confusable name. With--reauth-bypass, a plain NTLM relay is enough, no DNS record, no Kerberos plumbing, and a target that enforces SMB signing, a Domain Controller included, accepts the relayed session.Recon :
Coerce :
Relay :