Summery

A Group Policy Object (GPO) is a collection of Windows configuration settings and rules that administrators can apply to users and computers in an Active Directory domain. A GPO can control things such as password policies, firewall settings, registry configuration, software, scheduled tasks, scripts, and group membership. GPOs are stored in Pentesting/The Grimoire/Concepts/Active Directory/Active Directory objects and can be linked to a domain, site, or Organizational Unit (OU). When a computer or user falls within the GPO’s scope, Windows processes the policy and applies its configured settings.

Organizational Unit

An Organizational Unit (OU) is a container inside Active Directory used to organize users, computers, groups, and other objects. Administrators commonly use OUs to apply GPOs to specific sets of computers or users.

Default GPOs

Common default GPOs in a new Active Directory domain include Default Domain Policy and Default Domain Controllers Policy.

  1. The Default Domain Policy is linked to the domain root and commonly contains domain-wide security settings such as password and account-lockout policies.
  2. The Default Domain Controllers Policy is linked to the Domain Controllers OU and contains settings specifically intended for domain controllers.

You may also see Microsoft-created GPOs related to things like Windows Defender, security baselines, or remote management, but these depend on the Windows/AD version and what administrators have configured.

Commands

gpupdate /force - Force an update of domain’s GPOs.
gpresult /r - Shows which GPOs are applied to the current user/computer.
gpresult /h report.html - Creates a detailed HTML report of applied policies.
gpmc.msc - Opens the Group Policy Management Console.

PowerView has a set of some nice GPO commands. For example, you can easly query the
BloodyAD also allows us to perform some changes and gather information about existing GPOs.

Abusing GPOs

Abusing GPOs

References

GPO Abuse: Exploiting Vulnerable Group Policy Objects - Great read and walkthrough on GPO abuse with pygpoabuse.
Abusing AD-DACL: WriteOwner - Useful read to know what you can do with the “WriteOwner” rights.