Active Directory · Learn

What is GPO abuse?

Group Policy pushes settings to every computer and user in its scope. If an attacker can edit a GPO, or the files behind it, they can push code to all of those machines at once.

Active Directory · LearnAll services Download PDF
TL;DR

GPO abuse is the exploitation of write access to a Group Policy Object (or its SYSVOL files) to push a malicious policy across everything the GPO applies to. A single editable GPO linked to many machines becomes mass code execution, an immediate scheduled task that adds a local admin or runs a payload on every target. Because GPO permissions are often over-granted, this is a common escalation and lateral-movement path. Defend by auditing GPO write access and monitoring SYSVOL changes.

By John Dill, Red Team Lead, SecureLayer7Updated

What GPO abuse is

A Group Policy Object applies settings to every computer or user in its linked scope. The right to edit a GPO, or to write the policy files in SYSVOL, is therefore the right to change all of those systems. Over time, delegation and helpdesk permissions leave many GPOs writable by non-admins, and attackers find them with tools like BloodHound.

How the attack works

With write access to a target GPO the attacker uses SharpGPOAbuse (or pyGPOAbuse) to add an immediate scheduled task, a startup script, or a new local administrator that applies to every machine in scope. On the next policy refresh, the payload runs across all of them. Finding the writable GPO is usually the recon step; the push itself is a single command. Payloads are shown for defensive testing.

How to defend against it

Audit who can edit each GPO and remove write access from anyone who does not need it, especially on GPOs linked to many machines or to tier-0. Monitor SYSVOL for changes to GPO files (scheduled tasks, scripts) and alert on new GPO links to sensitive OUs. Map GPO permissions with BloodHound as attackers do, and fix the over-granted ones.

References

  1. [1]MITRE ATT&CK Enterprise Matrix(MITRE ATT&CK)
  2. [2]Microsoft: Group Policy overview(Microsoft)
Related terms

One over-permissioned GPO can push a payload to your whole fleet. Talk to a security expert about auditing your Group Policy permissions.

Related service
Red Team Assessment
Goal-based adversary emulation across your people, apps, and network, the full path an attacker would take.
Red team assessment

FAQ

GPO abuse, asked often

Scope an engagement

Test your Active Directory before an attacker does.

Our red team maps the real path from a foothold to domain dominance, and ships findings with reproducible attacks and fixes your team can implement.