ntlmrelayx
- Capabilities
- Lateral movement
- Platforms
- Windows
ntlmrelayx is a dual-use NTLM authentication-relay tool in the Impacket toolkit, rather than a malware family. It forwards intercepted or induced NTLM authentication exchanges to other services, allowing an operator to authenticate as the affected account without knowing its plaintext password. Successful relay can enable unauthorized access and lateral movement in Windows and Active Directory environments, subject to the account’s permissions and the target service’s authentication protections. It is commonly discussed alongside Responder and adversary-in-the-middle techniques involving LLMNR/NBT-NS poisoning, although capturing authentication and relaying it are distinct functions. Its use is not specific to any single threat actor, industry, or infection vector.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Adversary-in-the-Middle: LLMNR/NBT-NS Poisoning — ntlmrelayx, Responder. | “NTLM relay attacks (ntlmrelayx, Responder)”
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
"utilized ntlmrelay to copy my malicious wbemcomn.dll file with a reverse shell into the c:\windows\system32\wbem directory. This file was subsequently loaded... granting me a shell with SYSTEM, Network Service, or logged-in User privileges"
Persistence
2 techniques
Persistence
Using the relayed LDAP authentication, grant DCSync privileges to the attacker account.
The second attack requires control over a computer account... or a computer account the attacker created, abusing the fact that any account in Active Directory can create those by default.
Privilege Escalation
3 techniques
Privilege Escalation
This allows for Remote code execution as SYSTEM on any unpatched Windows server or workstation... and for instant escalation to Domain Admin via any unpatched Exchange server
Using the relayed LDAP authentication, grant DCSync privileges to the attacker account.
This technique may allow an attacker to relay a site server's domain computer account to a remote SMS Provider and elevate their privileges to "Full Administrator" for the SCCM hierarchy.
Stealth
1 technique
Stealth
"utilized ntlmrelay to copy my malicious wbemcomn.dll file with a reverse shell into the c:\windows\system32\wbem directory. This file was subsequently loaded... granting me a shell with SYSTEM, Network Service, or logged-in User privileges"
Credential Access
5 techniques
Credential Access
"...relayed the authentication to the SMB service... and dumped the local SAM database"
通信の不正中継 Fake WPAD Htran NTLMRelayX
通信の不正中継 Fake WPAD Htran NTLMRelayX
ntlmrelayx, Responder. NTLM coercion: nxc smb hostx.txt -M coerce_plus.
by abusing Resource Based Constrained Kerberos delegation, it is possible to grant an attacker impersonation rights on the victim server
Lateral Movement
3 techniques
Lateral Movement
The SMS Provider also provides access to the site database via the administration service (AdminService) REST API and uses Microsoft Negotiate for authentication... targeting the URL of the AdminService API on the remote SMS Provider... -t https://SMS_PROVIDER_URL_OR_IP/AdminService/wmi/SMS_Admin
ntlmrelayx HTTP, WebDAV, RDP, and SCCM 6 WPAD, WebDAV, RDP relay certificate, SCCM policy strings
Using any AD account, connect over SMB to the victim server, and trigger the SpoolService bug.
Collection
2 techniques
Collection
通信の不正中継 Fake WPAD Htran NTLMRelayX
ntlmrelayx, Responder. NTLM coercion: nxc smb hostx.txt -M coerce_plus.
Command and Control
1 technique
Command and Control
ntlmrelayx HTTP, WebDAV, RDP, and SCCM 6 WPAD, WebDAV, RDP relay certificate, SCCM policy strings
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.