Group Policy Preferences

T1552.006

Sub-technique of T1552 Unsecured Credentials.View on attack.mitre.org

About this technique

Adversaries may attempt to find unsecured credentials in Group Policy Preferences (GPP). GPP are tools that allow administrators to create domain policies with embedded credentials. These policies allow administrators to set local accounts.

These group policies are stored in SYSVOL on a domain controller. This means that any domain user can view the SYSVOL share and decrypt the password (using the AES key that has been made public).

The following tools and scripts can be used to gather and decrypt the password file from Group Policy Preference XML files:

* Metasploit’s post exploitation module: post/windows/gather/credentials/gpp
* Get-GPPPassword
* gpprefdecrypt.py

On the SYSVOL share, adversaries may use the following command to enumerate potential GPP XML files: dir /s * .xml

Detection rules7

Rules on DetectionCode tagged with T1552.006.

Sigma5

RuleLevelLog source
Findstr GPP Passwordshighwindows / process_creation
LSASS Process Reconnaissance Via Findstr.EXEhighwindows / process_creation
Access To Potentially Sensitive Sysvol Files By Uncommon Applicationsmediumwindows / file_access
Permission Misconfiguration Reconnaissance Via Findstr.EXEmediumwindows / process_creation
Suspicious SYSVOL Domain Group Policy Accessmediumwindows / process_creation

Splunk2

RuleTypeRiskData source
Windows Findstr GPP DiscoveryTTPNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2
Windows PowerSploit GPP DiscoveryTTPNULLPowershell Script Block Logging 4104

Groups2

Software3

Campaigns0

None recorded.

Procedure examples5

Groups2

Used byProcedure example
GroupAPT33

APT33 has used a variety of publicly available tools like Gpppassword to gather credentials.

GroupWizard Spider

Wizard Spider has used PowerShell cmdlets `Get-GPPPassword` and `Find-GPOPassword` to find unsecured credentials in a compromised network group policy.

Software3

Used byProcedure example
MalwareMirrorStealer

MirrorStealer can target Group Policy Preferences for credentials.

ToolPowerSploit

PowerSploit contains a collection of Exfiltration modules that can harvest credentials from Group Policy Preferences.

ToolSILENTTRINITY

SILENTTRINITY has a module that can extract cached GPP passwords.

References3

  1. Microsoft GPP 2016 Open source
    Microsoft. (2016, August 31). Group Policy Preferences. Retrieved March 9, 2020.
  2. Microsoft GPP Key Open source
    Microsoft. (n.d.). 2.2.1.1.4 Password Encryption. Retrieved April 11, 2018.
  3. Obscuresecurity Get-GPPPassword Open source
    Campbell, C. (2012, May 24). GPP Password Retrieval with PowerShell. Retrieved April 11, 2018.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.