1. Resources
  2. Detection sources
  3. Event ID 4727

Event ID 4727: A security-enabled global group was created

Written by a domain controller when a new global security group is created in Active Directory. The ESX Admins rule reads it, because creating a group with that name is the first step of CVE-2024-37085 abuse.

Log source
Windows Security log
Detection value
Supporting
Volume
Low
Last updated
Audit subcategory
Audit Security Group Management (Account Management, Success)
Logged on
Domain controllers only
Event versions
0
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
7 groups that MITRE ATT&CK records using these techniques
Fields the rules read
TargetUserName

When it is written

A domain controller writes 4727 each time a new security-enabled global group is created in its domain. Global groups exist only in Active Directory, so only domain controllers write it, and Microsoft notes that the parts of the 4731 page about local groups do not apply. The event comes from the domain controller that created the group, so collect the Security log of all of them.

A new domain local group is event 4731, a new universal group event 4754, and a new distribution group is logged under Audit Distribution Group Management instead. The subcategory has no failure events.

How to turn it on

Advanced audit policy subcategory Audit Security Group Management, Success. Set it in a Group Policy object linked to the computers that write the event:

Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration > Audit Policies > Account Management > Audit Security Group Management
Microsoft's recommendation per computer role
ComputerAuditNote
Domain controllersSuccessMicrosoft's general and stronger baselines both recommend Success auditing, to see security groups created, changed and deleted, members added and removed, and group membership enumerated. The subcategory has no failure events, so there is nothing to gain from Failure auditing.
Member serversSuccessMicrosoft's general and stronger baselines both recommend Success auditing, to see security groups created, changed and deleted, members added and removed, and group membership enumerated. The subcategory has no failure events, so there is nothing to gain from Failure auditing.
WorkstationsSuccessMicrosoft's general and stronger baselines both recommend Success auditing, to see security groups created, changed and deleted, members added and removed, and group membership enumerated. The subcategory has no failure events, so there is nothing to gain from Failure auditing.
Check the current setting
auditpol /get /subcategory:"Security Group Management"
Based on vendor documentation.
Turn it on (local policy; a domain GPO overrides it)
auditpol /set /subcategory:"Security Group Management" /success:enable
Based on vendor documentation.
The same on a Windows in another display language
auditpol /get /subcategory:"{0CCE9237-69AE-11D9-BED3-505054503030}"
Based on vendor documentation.

Run the commands in an elevated prompt on a computer that writes the event. Subcategory settings take effect only when the security option Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings is enabled (the default), and a Group Policy object that sets advanced audit policy replaces local changes at its next refresh. Microsoft's advanced audit policy reference

Fields

In Event Viewer order. The field names are those of the event XML, from the event template that ships with Windows.

FieldWhat it holdsSince
Security IDSubjectUserSidSubjectSID of the account that created the group. Event Viewer shows the resolved name when it can.v0
Account NameSubjectUserNameSubjectName of the account that created the group.v0
Account DomainSubjectDomainNameSubjectDomain of that account. NT AUTHORITY for some well-known principals.v0
Logon IDSubjectLogonIdSubjectLogon ID of the subject's session on this domain controller, in hexadecimal. The logon event (4624) with the same ID shows where the session came from.v0
Security IDTargetSidNew GroupSID of the new group, the domain SID followed by a new RID.v0
Group NameTargetUserNameNew GroupRead by 1 ruleName of the new group (shown as Group Name under New Group).v0
Group DomainTargetDomainNameNew GroupDomain of the new group (shown as Group Domain), usually its NetBIOS name.v0
SAM Account NameSamAccountNameAttributesPre-Windows 2000 name of the group, the value of its sAMAccountName attribute (shown as SAM Account Name under Attributes).v0
SID HistorySidHistoryAttributesPrevious SIDs of the group, from its sIDHistory attribute, set when a group is moved from another domain. A dash when there are none or when the value was not captured.v0
PrivilegesPrivilegeListAdditional InformationPrivileges used for the operation. A dash when none were captured, as in the sample event of the 4731 page that Microsoft refers to; Microsoft says only that the list might not be captured.v0

Values to know

Group Name TargetUserName

ValueMeaningSignal
ESX AdminsThe group that domain-joined VMware ESXi hosts trust by name (CVE-2024-37085)Not a built-in group and absent by default. Microsoft reports that domain-joined hosts without VMware's update for CVE-2024-37085 give full administrative access to the members of any domain group with this name, matched by name and not by SID, even if the group did not exist when the host joined the domain. Whoever creates it and adds members gives them that access. A group renamed to ESX Admins is a change, not a creation, so watch the rename too (4781, 4737).Attack signal
Any other nameAn ordinary new groupExpected

SID History SidHistory

ValueMeaningSignal
-No SID historyThe normal value for a new group.Expected
One or more SIDsThe group carries SIDs from another domainExpected when groups are migrated between domains. Outside a migration it needs an explanation, since members gain the access granted to those SIDs.Worth knowing

Security ID SubjectUserSid

ValueMeaningSignal
An administrator or the provisioning product's service accountRoutine group creationExpected
An account that does not normally create groupsUnusual creatorMicrosoft describes ESX Admins abuse by accounts that hold the right to create groups. Check how that account got the right.Attack signal

Volume and noise

Microsoft rates the volume of the whole subcategory as low. Expect 4727 from administrators and from provisioning and identity governance products that create groups for teams, projects and applications.

Keeping it manageable

  • Keep every 4727 event. The volume is low and the ESX Admins rule reads it.
  • If you have a naming convention for groups, compare SamAccountName with it, as Microsoft suggests. A new group outside the convention, created by an account that does not normally create groups, deserves a look.
  • Microsoft lists pointing the ESXi hosts at a different administrators group as one of the mitigations. If you did that, add the name of that group to the rule as well.

Sample event

Version 0, with made-up values.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-a5ba-3e3b0328c30d}" />
    <EventID>4727</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>13826</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2026-11-18T09:30:12.4567890Z" />
    <EventRecordID>1048576</EventRecordID>
    <Correlation />
    <Execution ProcessID="712" ThreadID="2408" />
    <Channel>Security</Channel>
    <Computer>DC01.corp.example.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="TargetUserName">SQL-Prod-Admins</Data>
    <Data Name="TargetDomainName">CORP</Data>
    <Data Name="TargetSid">S-1-5-21-1004336348-1177238915-682003330-1131</Data>
    <Data Name="SubjectUserSid">S-1-5-21-1004336348-1177238915-682003330-1108</Data>
    <Data Name="SubjectUserName">adm-bob</Data>
    <Data Name="SubjectDomainName">CORP</Data>
    <Data Name="SubjectLogonId">0x4a3f21</Data>
    <Data Name="PrivilegeList">-</Data>
    <Data Name="SamAccountName">SQL-Prod-Admins</Data>
    <Data Name="SidHistory">-</Data>
  </EventData>
</Event>

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Why does a new group named ESX Admins matter?

Microsoft reported (CVE-2024-37085) that domain-joined VMware ESXi hosts without VMware's update give full administrative access to members of a domain group named ESX Admins, find the group by name and not by SID, and do not need it to exist when they join the domain. Creating the group and adding an account is the whole abuse, and Microsoft observed ransomware operators using it. Microsoft does not say which group scope the hosts accept, so the rule reads 4727, 4731 and 4754.

We do not use ESX Admins. Should the group exist?

Microsoft's first advice is to install VMware's security update on every domain-joined ESXi host. For hosts that cannot be updated, it advises making sure the group exists in the domain and is hardened, so that nobody else can create it. A new ESX Admins group that nobody can account for should be treated as malicious until explained.

Is 4727 written on member servers?

No. Global groups exist only in Active Directory, and Microsoft notes that 4727 is generated only for domain groups, by the domain controller that created the group.

References