User removed from a local security group.
Removing IT from local Administrators on sensitive systems locks out defenders. Also cleanup pattern after attack.
Alert: removal of expected admin accounts from Administrators or Remote Desktop Users.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 4733 // A member was removed from a security-enabled local group
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4733
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A member was removed from a security-enabled local group — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A member was removed from a security-enabled local group. User removed from a local security group.
Event 4733 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Account Management' subcategory (Success and/or Failure).
Alert: removal of expected admin accounts from Administrators or Remote Desktop Users.