A query was made for an account with a blank password.
Attackers scan for accounts with blank passwords as an easy lateral movement path. Tools: CrackMapExec, Metasploit auxiliary modules.
Alert on any occurrence — blank password queries indicate active credential reconnaissance.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName | Tactic | Technique |
|---|---|
| Credential Access | Brute Force (T1110) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4797 // An attempt was made to query the existence of a blank password
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4797
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# An attempt was made to query the existence of a blank password — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
An attempt was made to query the existence of a blank password. A query was made for an account with a blank password.
Event 4797 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Account Management' subcategory (Success and/or Failure).
Event 4797 is associated with: Brute Force (T1110).
Alert on any occurrence — blank password queries indicate active credential reconnaissance.