Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / LATERAL MOVEMENT / PASS

Pass the Hash

This note documents detection patterns related to Pass the Hash within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4624Successful logonCriticalLogonType 3 (network) often appears when NTLM authentication is performed using a stolen hash. Also LogonType 9 (NewCredentials) with LogonProcess=seclogo is a strong indicator of alternate credentials
Security4625Failed logonMediumRepeated failed NTLM logons may occur during hash validation attempts.
Security4648Explicit credentials usedHighMay appear if attacker attempts credential-based authentication prior to hash reuse.
Security4776NTLM authenticationCriticalKey event for Pass the Hash detection. Review WorkstationName, TargetUserName, and AuthenticationPackage.
Security4672Special privileges assignedHighPrivileged session established after successful hash authentication.
Sysmon10Process accessed LSASSCriticalAccess to LSASS memory to extract password hashes.
Sysmon1Process creationHighExecution of tools like Mimikatz or Impacket used for Pass the Hash.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
NTLM authentication from unusual hostAccount authenticating from system not normally usedHighPotential attacker-controlled workstation. Logon_Process="NtLmSsp"
Repeated NTLM authentication attemptsMultiple NTLM authentication events in short periodMediumMay indicate brute-force or credential validation.
LSASS memory access prior to authenticationProcesses accessing LSASS before NTLM authenticationCriticalSuggests credential dumping occurred.
Administrative actions after authenticationGroup membership changes or system modificationsCriticalIndicates attacker escalation after authentication.
Authentication across multiple hostsAccount authenticating to several hosts in short windowHighPossible lateral movement.

Common Tools

ToolUsage
MimikatzExtracts NTLM password hashes from LSASS memory.
Impacket psexec / wmiexec / smbexecUses NTLM hashes for remote authentication.
CrackMapExecAutomates Pass the Hash attacks across multiple systems.
MetasploitSupports NTLM hash authentication modules.
Invoke-MimikatzPowerShell wrapper for Mimikatz.

Relevant Artifacts

  • Domain controller Security logs (4624, 4776)
  • Host Security logs on target systems
  • Sysmon logs (1, 10)
  • LSASS memory artifacts
  • EDR telemetry identifying credential dumping tools
  • Network authentication telemetry
  • Prefetch artifacts showing execution of Mimikatz or Impacket tools
  • SMB authentication logs

MITRE ATT&CK References

  • T1550 Use Alternate Authentication Material
  • T1550.002 Pass the Hash
  • T1078 Valid Accounts

Decision Tree

  1. Is the suspicious event present?
    • Identify NTLM authentication events (4776).
  2. What host generated the event?
    • Determine workstation performing NTLM authentication.
  3. Is the account expected to perform this action?
    • Investigate authentication patterns and host relationships.
  4. Pivot:
    • Source host → inspect LSASS access events or execution of Mimikatz.
    • Account → review privileges and access history.
    • Network → analyze lateral movement patterns across hosts.
  5. Confirm exploitation
    • Determine whether attacker reused NTLM password hash for authentication.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4776
| summarize count() by TargetUserName, Workstation, bin(TimeGenerated, 5m)
SecurityEvent
| where EventID == 4624 and LogonType == 3
| project TimeGenerated, TargetUserName, IpAddress, WorkstationName

EQL

any where event.code == "4776"

Sigma

title: Suspicious NTLM Authentication Activity
id: pass-the-hash-detection
status: experimental
description: Detects suspicious NTLM authentication potentially indicating Pass the Hash
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4776
  condition: selection
fields:
  - TargetUserName
  - Workstation
falsepositives:
  - Legitimate NTLM authentication
level: medium
tags:
  - attack.lateral_movement
  - attack.t1550.002

Splunk

# 4624
index=* earliest=1690543380 latest=1690545180 EventCode=4624 Logon_Type=3 Logon_Process="NtLmSsp"
| table _time, ComputerName, Account_Name, Source_Network_Address, Logon_Process

# 4648
index=* earliest=1690543380 latest=1690545180 EventCode=4648
| table _time, ComputerName, Account_Name, Target_Server_Name

# 4776
index=* earliest=1690543380 latest=1690545180 EventCode=4776
| table _time, ComputerName, Logon_Account
index=main source="WinEventLog:Security" EventCode=4624 Logon_Type=9 Logon_Process=seclogo
| table _time, ComputerName, user, Network_Account_Domain, Network_Account_Name, Logon_Type, Logon_Process
index=main (source="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=10 TargetImage="C:\Windows\system32\lsass.exe" SourceImage!="*MsMpEng.exe")
OR (source="WinEventLog:Security" EventCode=4624 Logon_Type=9 Logon_Process=seclogo)
| sort _time
| transaction host maxspan=1m endswith=(EventCode=4624) startswith=(EventCode=10)
| table _time, host, SourceImage, Network_Account_Name, Logon_Type

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Credential protectionEnable LSASS protection and Credential GuardCriticalPrevents hash extraction.
NTLM restrictionsDisable or restrict NTLM authenticationHighEliminates attack vector.
Privileged access controlUse dedicated admin accountsHighLimits impact of credential theft.
MonitoringAlert on abnormal NTLM authentication patternsHighEarly detection of attack activity.
Network segmentationRestrict lateral movement between hostsHighReduces attack propagation.