Event ID 4800 — The workstation was locked.
Description
The workstation was locked.
Message #
Fields #
| Name | Description |
|---|---|
TargetUserSid SID | [Subject] Security ID |
TargetUserName UnicodeString | [Subject] Account Name |
TargetDomainName UnicodeString | [Subject] Account Domain |
TargetLogonId HexInt64 | [Subject] Logon ID |
SessionId UInt32 | [Subject] Session ID |
Security_ID SID | [Subject] Security ID. |
Account_Name UnicodeString | [Subject] Account Name. |
Account_Domain UnicodeString | [Subject] Account Domain. |
Logon_ID HexInt64 | [Subject] Logon ID. |
Session_ID UInt32 | [Subject] Session ID. |
Example Event #
{
"system": {
"provider": "Microsoft-Windows-Security-Auditing",
"guid": "54849625-5478-4994-A5BA-3E3B0328C30D",
"event_source_name": "",
"event_id": 4800,
"version": 0,
"level": 0,
"task": 12551,
"opcode": 0,
"keywords": 9232379236109516800,
"time_created": "2026-03-11T23:16:10.990860+00:00",
"event_record_id": 2684980,
"correlation": {
"ActivityID": "FA744C8F-80A0-4DBD-B165-8D96568C15CC"
},
"execution": {
"process_id": 720,
"thread_id": 3756
},
"channel": "Security",
"computer": "LAB-WIN11",
"security": {
"user_id": ""
}
},
"event_data": {
"TargetUserSid": "S-1-5-21-3407486967-1585450050-1838039599-1000",
"TargetUserName": "localuser",
"TargetDomainName": "LAB-WIN11",
"TargetLogonId": "0x1b1557",
"SessionId": 2
},
"message": ""
}
Detection Rules #
View all rules referencing this event →
Sigma # view in reference
- Locked Workstation source informational: Detects locked workstation session events that occur automatically after a standard period of inactivity.
References #
- Microsoft Learn https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4800
- Microsoft Learn Audit Policy https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-other-logonlogoff-events
- Ultimate Windows Security https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4800