Cross-source coverage
T1484.001 / ATT&CK
Domain or Tenant Policy Modification: Group Policy Modification
From MITRE ATT&CK 19.2
Adversaries may modify Group Policy Objects (GPOs) to subvert the intended discretionary access controls for a domain, usually with the intention of escalating privileges on the domain. Group policy allows for centralized management of user and computer settings in Active Directory (AD). GPOs are containers for group policy settings made up of files stored within a predictable network path \<DOMAIN>\SYSVOL\<DOMAIN>\Policies\.
Like other objects in AD, GPOs have access controls associated with them. By default all user accounts in the domain have permission to read GPOs. It is possible to delegate GPO access control permissions, e.g. write access, to specific users or groups in the domain.
Malicious GPO modifications can be used to implement many other malicious behaviors such as Scheduled Task/Job, Disable or Modify Tools, Ingress Tool Transfer, Create Account, Service Execution, and more. Since GPOs can control so many user and machine settings in the AD environment, there are a great number of potential attacks that can stem from this GPO abuse.
For example, publicly available scripts such as New-GPOImmediateTask can be leveraged to automate the creation of a malicious Scheduled Task/Job by modifying GPO settings, in this case modifying <GPO_PATH>\Machine\Preferences\ScheduledTasks\ScheduledTasks.xml. In some cases an adversary might modify specific user rights like SeEnableDelegationPrivilege, set in <GPO_PATH>\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf, to achieve a subtle AD backdoor with complete control of the domain because the user account under the adversary's control would then be able to modify GPOs.
- Tactics
- Defense Impairment · Privilege Escalation
- Platforms
- Windows
- Telemetry
-
WinEventLog:SecurityWinEventLog:Sysmon
How MITRE says to detect it DET0305
Detection of Group Policy Modifications via AD Object Changes and File Activity
Windows Analytic 0854
Adversary modifies GPO containers or files under SYSVOL using LDAP, ADSI, PowerShell (e.g., New-GPOImmediateTask) or GUI tools. This includes directory object changes (e.g., gPCFileSysPath), delegation assignments (SeEnableDelegationPrivilege), and SYSVOL file writes (ScheduledTasks.xml, GptTmpl.inf).
WinEventLog:SecurityEventCode=5136WinEventLog:SecurityEventCode=4663, 4670, 4656WinEventLog:SecurityEventCode=4704WinEventLog:SysmonEventCode=1WinEventLog:SysmonEventCode=11
splunk/security_content
9 rules| Detection | Severity | Format |
|---|---|---|
| Windows AD GPO Deleted | Undefined | SPL |
| Windows AD GPO Disabled | Undefined | SPL |
| Windows AD GPO New CSE Addition | Undefined | SPL |
| Windows Admon Default Group Policy Object Modified | Undefined | SPL |
| Windows Admon Group Policy Object Created | Undefined | SPL |
| Windows Default Group Policy Object Modified | Undefined | SPL |
| Windows Default Group Policy Object Modified with GPME | Undefined | SPL |
| Windows Group Policy Object Created | Undefined | SPL |
| Windows Scheduled Task Created in a Group Policy Object | Undefined | SPL |
Wazuh Core Ruleset
8 rules| Detection | Severity | Format |
|---|---|---|
| Distributed COM Users Group Changed | Medium | Wazuh XML |
| Performance Log Users Group Changed | Medium | Wazuh XML |
| Performance Monitor Users Group Changed | Medium | Wazuh XML |
| Pre-Windows 2000 Compatible Access Group Changed | Medium | Wazuh XML |
| Print Operators Group Changed | Medium | Wazuh XML |
| Security enabled group created | Medium | Wazuh XML |
| Terminal Server License Servers Group Changed | Medium | Wazuh XML |
| Windows Authorization Access Group Changed | Medium | Wazuh XML |
SigmaHQ/sigma
6 rules| Detection | Severity | Format |
|---|---|---|
| Group Policy Abuse for Privilege Addition | Medium | Sigma |
| Modify Group Policy Settings | Medium | Sigma |
| Modify Group Policy Settings - ScriptBlockLogging | Medium | Sigma |
| Startup/Logon Script Added to Group Policy Object | Medium | Sigma |
| Windows Default Domain GPO Modification | Medium | Sigma |
| Windows Default Domain GPO Modification via GPME | Medium | Sigma |
elastic/detection-rules
4 rules| Detection | Severity | Format |
|---|---|---|
| Group Policy Abuse for Privilege Addition | High | Elastic TOML |
| Scheduled Task Execution at Scale via GPO | Medium | Elastic TOML |
| Startup/Logon Script added to Group Policy Object | Medium | Elastic TOML |
| Creation or Modification of a new GPO Scheduled Task or Service | Low | Elastic TOML |
panther-labs/panther-analysis
1 rule| Detection | Severity | Format |
|---|---|---|
| GCP User Added to Privileged Group | Low | Panther Python |