Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / GPO

Modification

This note documents detection patterns related to GPO Modification within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security5136Directory object modifiedCriticalModification of Group Policy Container (GPC) attributes.
Security4739Domain policy changedHighDomain-wide policy modification detected.
Security5145Network share accessedHighAccess to SYSVOL policy files.
Security4663Object accessMediumFile modification inside SYSVOL policy directory.
Sysmon1Process creationMediumExecution of GPO abuse tools.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
SYSVOL policy changesModification of files under Policies directoryCriticalTypical GPO payload deployment.
Startup scripts addedScripts placed in Machine\Scripts\StartupHighUsed for mass execution.
Registry.pol changesModification of policy registry filesHighUsed to deploy configuration payloads.
Scheduled tasks deployed via GPOTasks created across many machinesCriticalOften used for persistence.

Common Tools

ToolUsage
SharpGPOAbuseModifies existing GPOs to deploy payloads.
PowerViewEnumerates and manipulates GPO permissions.
PowerShell GPO cmdletsAdministrative GPO modification.
ImpacketUsed after compromise to manipulate policies.

Relevant Artifacts

  • SYSVOL directory
  • GPT.ini
  • registry.pol
  • Startup and Logon scripts
  • Domain controller security logs
  • EDR telemetry
  • File system metadata

MITRE ATT&CK References

  • T1484 Domain Policy Modification
  • T1484.001 Group Policy Modification

Decision Tree

  1. Detect policy modification event.
  2. Identify which GPO object changed.
  3. Identify modifying account.
  4. Pivot to SYSVOL policy files.
  5. Determine payload delivered.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 5136
| where ObjectDN contains "Policies"

EQL

any where event.code == "5136"

Sigma

title: Suspicious GPO Modification
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5136
  condition: selection
level: high

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
PermissionsRestrict GPO editing rightsCriticalReduces abuse risk.
MonitoringAlert on GPO changesHighImmediate detection.
AuditingEnable directory service auditingHighCaptures modification events.