Windows Security Logoff Events (Event ID 4634/4647)

Identifies Windows user logoff using Security Event IDs 4634 and 4647.

FreeReviewedSigma · Informational · v2
Product
windows
Service
security
Author
frack113 (SigmaHQ), DRL 1.1
Published
2022-10-14
Updated
2026-07-31

ATT&CK techniques

Impact
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

What it detects

Identifies Windows user logoff activity using Security log events with Event ID 4634 and 4647. Attackers may intentionally log off to end sessions, reduce activity visibility, or align with other actions during an investigation timeline. The rule relies on Windows Security audit telemetry that records user logoff-related event IDs.

Related detections9 linkedT1531 — drag to rearrange
Suspicious Account Disable via net user active no (via process_creation)
AWS IAM SAML Provider Deletion via CloudTrail
Linux userdel Execution: User Account Deletion via userdel
Linux groupdel Executed to Delete a User Group
Windows PowerShell Script: Remove Account From Domain Admin Group via Remove-ADGroupMember
Okta User Account Lockout Triggered by Max Sign-In Attempts
Google Cloud: Service Account Disabled or Deleted via IAM Audit Events
Azure Kubernetes Service Service Account Modified or Deleted Activity Log Events
AWS ElastiCache Cache Security Group Modified or Deleted via CloudTrail
Windows Security Logoff Events (Event ID 4634/4647)
Pivot detection · T1531 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.