Introduction
NTLM Relay attacks represent a powerful chain that lets an adversary move laterally across an Active Directory (AD) environment without ever cracking a password. By exploiting the stateless nature of NTLM authentication and the ubiquitous SMB protocol, attackers can proxy authentication requests from a legitimate user to a target service, effectively "relaying" credentials. When combined with Pass-the-Hash (PtH) techniques, the chain can bypass MFA, Kerberos, and other mitigations.
In this guide we dissect the entire attack chain-from enumeration to execution-covering NTLM relay fundamentals, SMB relay mechanics, and PtH exploitation. We also discuss real-world scenarios, tool usage, and defensive strategies that security teams can deploy to harden their environments.
Prerequisites
- Active Directory Enumeration: understanding of domain trusts, UPNs, and the AD schema.
- Credential Dumping with Mimikatz: familiarity with obtaining NTLM hashes from memory.
- Pass-the-Hash Basics: knowledge of how NTLM hashes are used in authentication flows.
Core Concepts
The NTLM relay attack chain is built upon three core ideas:
- NTLM Authentication Flow - a challenge-response protocol that does not bind the session to a specific service.
- SMB as a Relaying Surface - SMBβs ability to accept NTLM credentials and forward them makes it the natural relay point.
- Pass-the-Hash (PtH) Execution - once a hash is relayed to a target, it can be used to impersonate the user against other services.
Below we explore each component in depth.
NTLM Relay
NTLM relay is the cornerstone of many lateral movement scenarios. Because NTLM only verifies that the challenge-response pair matches, it does not require the client and server to share a unique session key. Attackers can intercept an NTLM authentication attempt, capture the challenge, and replay the response to a different server.
Key points:
- NTLM is stateless; the same hash can authenticate to any service that accepts NTLM.
- Relay attacks require a relay point that can accept NTLM and forward it.
- Typical relay points: SMB, RDP, WinRM, HTTP, LDAP.
Below is a simplified diagram of the flow:
Client --(NTLM Auth Request)--> Relay --(NTLM Auth Request)--> Target Service
In practice, the relay server modifies the target serverβs challenge to match the one the client originally received, thereby forging a valid authentication session.
SMB Relay
SMB is the default protocol for file sharing and many inter-process communications in Windows. Its design permits NTLM authentication, making it an ideal relay