Potential Local NTLM Relay via HTTP using Windows Printer Spooler
This rule identifies attempts to coerce local NTLM authentication via HTTP using the Windows Printer Spooler service as a target, which adversaries may use to elevate privileges on a compromised system.
Triage facts
Revision 2- Evidence
- Unknown
- Severity
- High
- Sources
- 3 public sources
- Freshness
- Revision 2Jan 24, 12:00 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
This detection identifies potential NTLM relay attacks targeting the Windows Printer Spooler service. Attackers exploit this service to coerce NTLM authentication over HTTP. The rule focuses on detecting suspicious rundll32.exe executions that invoke WebDAV client DLLs with specific arguments, which indicates attempts to access named pipes via HTTP. This technique can be combined with other methods to achieve privilege escalation on a compromised Windows system. The activity is detected through process monitoring and command-line analysis, specifically looking for rundll32 executing davclnt.dll with HTTP paths to named pipes. The references indicate that this behavior has been seen in conjunction with tools like PetitPotam and NTLMRelay2Self. This activity has been observed being used since at least 2022, and continues to be relevant for defenders as a post-exploitation technique.
Attack Chain
- An attacker gains initial access to a Windows system (e.g., via phishing or exploiting a public-facing application).
- The attacker uses rundll32.exe to load the WebDAV client DLL (davclnt.dll) using the DavSetCookie function.
- The command line includes an HTTP path targeting a named pipe associated with the Printer Spooler service (e.g.,
/print/pipe/,/pipe/spoolss, or/pipe/srvsvc). - This action coerces the system to authenticate to the attacker-controlled HTTP endpoint.
- The attacker relays the captured NTLM authentication to another service or system.
- If successful, the attacker gains unauthorized access to the targeted service or system.
- The attacker leverages the gained access for further actions, such as lateral movement or data exfiltration.
- The final objective is often to escalate privileges within the domain.
Impact
Successful exploitation of this NTLM relay technique can lead to complete domain compromise. An attacker can gain control over critical systems, including domain controllers, leading to widespread data breaches, system downtime, and financial losses. The targets are typically organizations running vulnerable Windows systems and Active Directory environments. The number of victims could range from individual machines to entire networks.
Recommendation
- Deploy the Sigma rule
Detect Potential Local NTLM Relay via HTTPto your SIEM to identify suspicious rundll32.exe executions. - Enable Sysmon process-creation logging to provide the data required to activate the Sigma rule.
- Monitor network connections for unusual HTTP traffic originating from rundll32.exe to named pipes, as described in the Attack Chain.
- Review the false positive analysis section in the content of this brief to create appropriate exclusions.
- Consider blocking the execution of rundll32.exe with davclnt.dll and HTTP paths to named pipes in your environment, if such executions are not legitimate.
- Implement network segmentation to limit the exposure of critical services and reduce the risk of similar attacks, as mentioned in the original analysis.
- Audit and restrict the use of the Windows Printer Spooler service where possible to minimize the attack surface, considering the information in the Overview section.
Detection coverage 2
Detect Potential Local NTLM Relay via HTTP
highDetects suspicious rundll32.exe executions that load davclnt.dll and attempt to access named pipes via HTTP, indicating a potential NTLM relay attack.
Detect Potential Local NTLM Relay via HTTP - Alternate Detection
highDetects suspicious rundll32.exe executions that load davclnt.dll and attempt to access named pipes via HTTP, indicating a potential NTLM relay attack. This rule uses an alternate detection method by focusing on process arguments.
Detection queries are available on the platform. Get full rules →