Event ID 4728
Event ID 4728: Member Added to Global Group
A member was added to a security-enabled global group
- Log source
- Security
- How to enable it
- Account Management > Audit Security Group Management (Success)
- Category
- Privilege Escalation
- Priority
- Critical
- Typical volume
- Low
- MITRE ATT&CK
What Event ID 4728 means
4728 is written by a domain controller when an account joins a global security group. Domain Admins is a global group, so this event is the one that announces a new domain administrator.
Group type determines the event number. Global groups use 4728, domain local and local groups use 4732, and universal groups such as Enterprise Admins use 4756. Monitoring only one of the three leaves obvious paths open.
Few alerts have such a good ratio of value to noise. Membership of privileged groups changes a handful of times a year, every change should have an approval, and the event names the actor, the member and the group in a single record.
Key fields to inspect
| Field | Meaning | Suspicious when |
|---|---|---|
TargetUserName | Group that gained a member. | Domain Admins, Group Policy Creator Owners, or custom groups that administer servers. |
TargetSid | Security identifier of the group. | RID 512 (Domain Admins) or 520 (Group Policy Creator Owners), whatever the language. |
MemberName | Distinguished name of the new member. | A recently created user, a service account or a computer account. |
MemberSid | Security identifier of the new member. | The same SID as the subject, which means self-promotion. |
SubjectUserName | Who made the change. | Someone outside the directory team, or a computer account. |
SubjectLogonId | Session that made the change. | A network session from a workstation. |
Relative identifiers of privileged groups
| RID | Group | Event when a member is added |
|---|---|---|
512 | Domain Admins | 4728 |
520 | Group Policy Creator Owners | 4728 |
518 | Schema Admins | 4756 (4728 in mixed-mode domains) |
519 | Enterprise Admins | 4756 |
544 | Administrators | 4732 |
548 | Account Operators | 4732 |
551 | Backup Operators | 4732 |
Detection queries
Alert on additions to well-known privileged global groups by RID, independent of language. Adjust names and thresholds to your environment. About these queries.
Splunk SPL
index=windows source="XmlWinEventLog:Security" EventCode=4728
| where match(TargetSid, "-(512|518|520|521|525|526)$")
| table _time Computer SubjectUserName MemberName MemberSid TargetUserName Microsoft Sentinel KQL
SecurityEvent
| where EventID == 4728
| where TargetSid matches regex @"-(512|518|520|521|525|526)$"
| project TimeGenerated, Computer, SubjectUserName, MemberName, MemberSid, Group = TargetUserName, SubjectLogonId PowerShell
Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4728; StartTime = (Get-Date).AddDays(-30) } |
ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
Select-Object Time, SubjectUserName, MemberName, TargetUserName, TargetSid | Format-List Attack scenarios
Promotion to Domain Admins
net group "Domain Admins" user /add /domain is among the first commands after a domain is compromised. The change is sometimes reversed minutes later (4729), so alert on the addition and do not wait for a daily membership report.
Promotion through a nested group
Adding an account to an unremarkable group that is itself a member of Domain Admins gives the same power with a quieter name. Monitor every group that is nested in a privileged one.
Abuse of write rights on a group
GenericAll or AddMember rights on a group let a user without administrator rights add themselves. MemberSid equals the subject's SID.
Investigation checklist
- Verify the change with the subject by phone and find the approval.
- If it is unexpected, remove the member at once and disable the account.
- Use SubjectLogonId to find the origin of the session and its other actions.
- Check for 4729, which shows removal and can mark a brief misuse.
- Review what the new member did between addition and removal.
Common benign causes
- Approved administrator onboarding.
- Privileged access systems that grant membership for a limited time.
- Ordinary department groups, which form most of the volume.
Event ID 4728 FAQ
What is the difference between 4728, 4732 and 4756?
They are the same action for different group scopes. 4728 is for global groups, 4732 for local and domain local groups, and 4756 for universal groups. Domain Admins is global, Administrators is local and Enterprise Admins is universal.
How do I detect a user who adds themselves to Domain Admins?
Compare the subject's SID with MemberSid in a 4728 whose TargetSid ends in -512. Equal values mean that the account added itself.
Does 4728 show nested group membership?
It records only the direct change. If a group is added as a member, MemberName is that group, and all of its members gain access without events of their own.