Workstation locked by user or policy. TargetUserName identifies the account.
Correlate with 4624 Type 3 logons from the same account's credentials from new IPs while workstation is locked — indicates parallel remote use of stolen credentials.
Use as supporting evidence only. Alert: remote logons occurring while workstation is continuously locked.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4800 // The workstation was locked
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4800
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# The workstation was locked — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
The workstation was locked. Workstation locked by user or policy. TargetUserName identifies the account.
Event 4800 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Logon/Logoff' subcategory (Success and/or Failure).
Use as supporting evidence only. Alert: remote logons occurring while workstation is continuously locked.