Group membership enumerated at logon. Supplements 4624 with group list.
Detect unexpected high-privilege group memberships at logon — an account in Domain Admins that shouldn't be.
Correlate with 4624. Alert: unexpected high-privilege groups in MembershipList.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4627 // Group membership information
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4627
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# Group membership information — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
Group membership information. Group membership enumerated at logon. Supplements 4624 with group list.
Event 4627 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Logon/Logoff' subcategory (Success and/or Failure).
Correlate with 4624. Alert: unexpected high-privilege groups in MembershipList.