Event ID 4634 — An account was logged off.
Description
An account was logged off.
Message #
Fields #
| Name | Description |
|---|---|
TargetUserSid SID | [Subject] Security ID. |
TargetUserName UnicodeString | [Subject] Account Name. |
TargetDomainName UnicodeString | [Subject] Account Domain. |
TargetLogonId HexInt64 | [Subject] Logon ID. |
LogonType UInt32 | [Subject] Logon Type. Logon type reference |
Example Event #
{
"system": {
"provider": "Microsoft-Windows-Security-Auditing",
"guid": "54849625-5478-4994-A5BA-3E3B0328C30D",
"event_source_name": "",
"event_id": 4634,
"version": 0,
"level": 0,
"task": 12545,
"opcode": 0,
"keywords": 9232379236109516800,
"time_created": "2023-10-25T22:56:14.242850+00:00",
"event_record_id": 2692,
"correlation": {},
"execution": {
"process_id": 824,
"thread_id": 880
},
"channel": "Security",
"computer": "WinDevEval",
"security": {
"user_id": ""
}
},
"event_data": {
"TargetUserSid": "S-1-5-111-3847866527-469524349-687026318-516638107-1125189541-4560",
"TargetUserName": "sshd_4560",
"TargetDomainName": "VIRTUAL USERS",
"TargetLogonId": "0x41a49",
"LogonType": 5
},
"message": ""
}
Detection Patterns #
Security-Auditing Event ID 4624: An account was successfully logged on.ANDEvent ID 4625: An account failed to log on.ANDEvent ID 4634: An account was logged off.
11 rules
Splunk
Kusto Query Language
Uses Authentication Normalization
Uses Authentication Normalization
Security-Auditing Event ID 4624: An account was successfully logged on.ANDEvent ID 4625: An account failed to log on.ANDEvent ID 4634: An account was logged off.ANDEvent ID 4647: User initiated logoff.ANDEvent ID 4648: A logon was attempted using explicit credentials.ANDEvent ID 4675: SIDs were filtered.
Impact: Account Access Removal
1 rule
References #
- Microsoft Learn https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4634
- Microsoft Learn Audit Policy https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/audit-logoff
- Ultimate Windows Security https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4634
- Example event sourced from https://github.com/NextronSystems/evtx-baseline