Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / RELAY ATTACKS

NTLM Relay

This note documents detection patterns related to NTLM Relay within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4624Successful logonCriticalLook for LogonType 3 (network) from unusual hosts immediately following authentication coercion events. Review IpAddress, WorkstationName, TargetUserName, and AuthenticationPackageName (NTLM).
Security4625Failed logonMediumMultiple failed NTLM authentication attempts may precede successful relay attempts.
Security4776NTLM authenticationCriticalKey event for NTLM usage. Review Workstation, Source Workstation, and TargetUserName for unexpected authentication paths.
Security4672Special privileges assignedHighPrivileged logon following NTLM relay may indicate successful privilege escalation.
Security4688Process creationMediumExecution of relay tools such as ntlmrelayx.py or responder may appear on compromised host.
Sysmon1Process creationHighExecution of Responder, ntlmrelayx, or other credential relay tools.
Sysmon3Network connectionCriticalSuspicious SMB/HTTP/LDAP connections between hosts immediately after inbound NTLM authentication.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Authentication coercion preceding NTLM authEvents such as PrinterBug, PetitPotam, or DFSCoerce causing forced authenticationCriticalCommon first step before NTLM relay.
NTLM authentication to unexpected serviceAuthentication to LDAP, SMB, or HTTP service from unusual hostHighRelay often targets LDAP on domain controllers.
Multiple authentication attempts from relay serverSingle host initiating NTLM authentication on behalf of multiple usersHighTypical relay server behavior.
Immediate privileged action after authenticationCreation of machine accounts, ACL modifications, or AD changesCriticalIndicates successful relay exploitation.
New machine account creationMachine accounts created shortly after NTLM authenticationHighOften used for persistence or further delegation abuse.

Common Tools

ToolUsage
ResponderCaptures NTLM authentication attempts on network.
Impacket ntlmrelayx.pyRelays captured NTLM authentication to other services such as LDAP, SMB, or HTTP.
PetitPotamCoerces domain controllers to authenticate to attacker-controlled host.
PrinterBugForces target systems to authenticate to attacker via MS-RPRN.
CoercerFramework automating multiple authentication coercion techniques.
Cobalt StrikeUsed to stage and execute NTLM relay modules.

Relevant Artifacts

  • Windows Security logs (4624, 4625, 4776)
  • Sysmon logs (1, 3)
  • Network telemetry showing NTLM authentication flows
  • SMB and LDAP service logs
  • EDR telemetry detecting Responder or ntlmrelayx execution
  • PowerShell logs if relay orchestration scripts used
  • MFT artifacts showing deployment of relay tools
  • DNS logs showing suspicious name resolution patterns

MITRE ATT&CK References

  • T1557 Adversary-in-the-Middle
  • T1557.001 LLMNR/NBT-NS Poisoning and SMB Relay
  • T1110 Brute Force
  • T1078 Valid Accounts

Decision Tree

  1. Is the suspicious event present?
    • Identify NTLM authentication events (4776) from unusual hosts.
  2. What host generated the event?
    • Determine if authentication originated from relay server rather than legitimate client.
  3. Is the account expected to perform this action?
    • Investigate whether the user normally authenticates to the target system.
  4. Pivot:
    • Source host → inspect processes for Responder or ntlmrelayx.
    • Account → verify privileges and group membership.
    • Network → inspect authentication coercion events.
  5. Confirm exploitation
    • Determine whether attacker performed privileged actions after relay.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4776
| summarize count() by Workstation, TargetUserName, bin(TimeGenerated, 5m)
| order by count_ desc
SecurityEvent
| where EventID == 4624
| where AuthenticationPackageName == "NTLM"
| project TimeGenerated, TargetUserName, IpAddress, WorkstationName

EQL

any where event.code == "4776"

Sigma

title: Suspicious NTLM Authentication
id: ntlm-relay-detection
status: experimental
description: Detects NTLM authentication activity that may indicate relay attacks
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4776
  condition: selection
fields:
  - Workstation
  - TargetUserName
falsepositives:
  - Legacy systems using NTLM authentication
level: medium
tags:
  - attack.credential_access
  - attack.t1557

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Disable NTLMDisable NTLM authentication where possibleCriticalEliminates relay attack vector.
SMB signingRequire SMB signing on servers and domain controllersHighPrevents SMB relay attacks.
LDAP signingEnable LDAP signing and channel bindingHighBlocks LDAP relay attacks.
Network monitoringDetect unusual NTLM authentication patternsMediumProvides early detection of relay attempts.
Credential protectionUse Kerberos authentication where possibleHighReduces reliance on NTLM.