Detection rules › Splunk

Windows Group Policy Object Created

Author
Mauricio Velazco
Source
upstream

The following analytic detects the creation of a new Group Policy Object (GPO) by leveraging Event IDs 5136 and 5137. This detection uses directory service change events to identify when a new GPO is created. Monitoring GPO creation is crucial as adversaries can exploit GPOs to escalate privileges or deploy malware across an Active Directory network. If confirmed malicious, this activity could allow attackers to control system configurations, deploy ransomware, or propagate malware, leading to widespread compromise and significant operational disruption.

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1078.002 Valid Accounts: Domain Accounts
PersistenceT1078.002 Valid Accounts: Domain Accounts
Privilege EscalationT1078.002 Valid Accounts: Domain Accounts, T1484.001 Domain or Tenant Policy Modification: Group Policy Modification
Defense EvasionT1078.002 Valid Accounts: Domain Accounts, T1484.001 Domain or Tenant Policy Modification: Group Policy Modification

Event coverage

ProviderEvent IDTitle
Security-Auditing5136A directory service object was modified.
Security-Auditing5137A directory service object was created.

Stages and Predicates

Stage 1: search

search (((AttributeLDAPDisplayName="displayName" OR AttributeLDAPDisplayName="gPCFileSysPath") AttributeValue!="New Group Policy Object" EventCode=5136) OR EventCode=5137) ObjectClass="groupPolicyContainer"

Stage 2: stats

stats BY ObjectGUID, Computer, dest

Stage 3: eval

eval ... using (details)

Stage 4: eval

eval ... using (details)

Stage 5: fields

fields details

Stage 6: search

search `macro`

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
AttributeLDAPDisplayNameeq
  • displayName
  • gPCFileSysPath
AttributeValuene
  • "New Group Policy Object"
EventCodeeq
  • 5136 corpus 22 (splunk 22)
  • 5137 corpus 3 (splunk 3)
ObjectClasseq
  • groupPolicyContainer corpus 4 (splunk 3, sigma 1)

Neighbors

Often fire together

Rules that target events appearing in the same incident timelines. They pattern-match on adjacent steps of the same TTP, so an alert from one is often paired with alerts from these. Useful for triage context and for assembling chained-detection rules.

Share event IDs (chain-detection candidates)

Rules that observe the same Windows event-ID pairs as this one. If you're authoring a multi-stage / sequence rule that spans these events, these are the existing detections that already cover one or both endpoints.