CyberKit

Event IDs

Security event 4731

A security-enabled local group was created

Channel: Security. Category: Security Group Management.

What it records

Records the creation of a new security-enabled local group. Scoped to a single machine's local SAM database (member server or workstation) or, for a domain-local group, scoped within a domain.

Why it matters

Local security groups are sometimes abused to create a machine-local privileged group as a low-visibility persistence mechanism on an individual host.

What triggers it

Legitimately triggered by IT creating a custom local group for delegated local rights; suspicious on a server or workstation where local group creation isn't part of normal operations.

Fields that carry the answer

Key fields
FieldWhat it tells you
Subject > Account NameThe account that created the group. Unexpected local group creation by a non-admin account is a persistence indicator.
New Group > Group NameThe name of the newly created local group. Flag names that don't match naming conventions or that mimic built-in groups.
New Group > Group DomainShows the computer name for a local group, useful when aggregating 4731 events centrally to identify which host the group was created on.

In practice

On workstation WKSTN-0231, Subject > Account Name shows the standard user CORP\jsmith (not an IT account) creating New Group > Group Name "HelpDeskLocal," with New Group > Group Domain confirming the host. A non-admin account creating a local group outside change-management hours is a textbook local-persistence indicator worth escalating.

Sample record

A security-enabled local group was created.

Subject:
	Security ID:		S-1-5-21-1608875090-2011518412-93892229-500
	Account Name:		Administrator
	Account Domain:		WIN-FS01
	Logon ID:		0x3A2110

New Group:
	Security ID:		S-1-5-21-1608875090-2011518412-93892229-1003
	Group Name:		FileShareAdmins
	Group Domain:		WIN-FS01

Attributes:
	SAM Account Name:		FileShareAdmins
	SID History:		-

Additional Information:
	Privileges:		-

Sources

Paste a record into Event XML or open a log in EVTX Reader.