Enumeration
PowerView
PowerView
nxc ldap
nxc ldap
Well-Known Default GPO GUIDs
Well-Known Default GPO GUIDs
These GUIDs are identical across every Active Directory environment.
pyGPOAbuse
Tool by Hackndo for writing scheduled tasks into GPOs directly over LDAP without requiring SYSVOL write access.GPO Selection
GPO Selection
One is required.
Task Options
Task Options
Scope / Targeting
Scope / Targeting
Authentication
Authentication
Verbosity
Verbosity
One-Liners
ACL Prerequisite Chain
GPO abuse usually sits at the end of an ACL chain. A common path is WriteDacl or WriteOwner on a user that already has GPO write access.1
Grant yourself GenericAll on the victim account
2
Reset the victim's password
3
Confirm GPO write permissions
4
Abuse the GPO
Attack Scenarios
GenericAll on Default Domain Controllers Policy
GenericAll on Default Domain Controllers Policy
Highest-value path. The Default Domain Controllers Policy applies to every DC OU. Push a task and get SYSTEM on all DCs.
GenericAll on Default Domain Policy
GenericAll on Default Domain Policy
Applies to all domain computers and users. Broad execution — every machine in the domain runs the task on next GP refresh. Noisy.
Scoped Attack (Single Target)
Scoped Attack (Single Target)
Use
-filter-enabled -target-dns-name to restrict execution to one machine. Much stealthier than domain-wide deployment.Post-Abuse
1
Force GP refresh on target (if you have a shell)
2
Verify the backdoor account landed
3
Get a shell
4
Dump credentials
5
Cleanup
--cleanup removes the scheduled task XML from SYSVOL and rolls back the GPO version counter.