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\`.12 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.34567 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.8 For example, publicly available scripts such as <code>New-GPOImmediateTask</code> can be leveraged to automate the creation of a malicious Scheduled Task/Job by modifying GPO settings, in this case modifying <code><GPO_PATH>\Machine\Preferences\ScheduledTasks\ScheduledTasks.xml</code>.910 In some cases an adversary might modify specific user rights like SeEnableDelegationPrivilege, set in <code><GPO_PATH>\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf</code>, 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.11
- TechNet Group Policy Basics
- ADSecurity GPO Persistence 2016
- ADSecurity GPO Persistence 2016
- Wald0 Guide to GPOs
- Harmj0y Abusing GPO Permissions
- Mandiant M Trends 2016
- Microsoft Hacking Team Breach
- Wald0 Guide to GPOs
- Wald0 Guide to GPOs
- Harmj0y Abusing GPO Permissions
- Harmj0y SeEnableDelegationPrivilege Right
Groups using this technique
| Group | Name | Country |
|---|---|---|
| grp_g1021 | Cinnamon Tempest | China |
| grp_g0119 | Indrik Spider | Russia |
| grp_g1053 | Storm-0501 | — |
| grp_g1055 | VOID MANTICORE | — |
| grp_g0096 | APT41 | China |
Claims
No public claim points at this technique yet.
Auto-ingested and not human-reviewed; confidence and validity read by citation.