Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / CREDENTIAL ACCESS / SECRETS

GPP

This note documents detection patterns related to Group Policy Preference Passwords within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security5145A network share object was checked to see whether client can access itCriticalAccess to SYSVOL share containing Group Policy Preference files that may store cpassword values.
Security4663An attempt was made to access an objectHighFile access events on GPP XML files containing encrypted passwords.
Security4624Successful logonMediumAuthentication that precedes or follows SYSVOL access.
Sysmon1Process creationMediumExecution of tools parsing GPP XML files for cpassword values.
Sysmon11File createdLowTemporary files created when copying SYSVOL contents.
Sysmon3Network connectionMediumSMB connections to domain controllers accessing SYSVOL.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Access to SYSVOL Policies folderSMB reads from \\<domain>\\SYSVOL\\PoliciesCriticalLocation where GPP XML files are stored.
Presence of cpassword fieldsXML files containing encrypted credentialsCriticalClassic Group Policy Preference credential exposure.
Enumeration of multiple GPO directoriesMass reads of policy filesHighPossible automated credential harvesting.
Use of decryption scriptsExecution of scripts extracting GPP passwordsHighAttacker decrypting stored credentials.
Authentication using recovered credentialsLogon events after SYSVOL enumerationCriticalIndicates attacker leveraged recovered passwords.

Common Tools

ToolUsage
PowerSploit Get-GPPPasswordExtracts GPP passwords from SYSVOL.
gpp-decryptDecrypts cpassword values from GPP XML files.
CrackMapExecAutomates enumeration and credential extraction.
ImpacketUses recovered credentials for remote execution.
Manual scriptsParsing XML files from SYSVOL.

Relevant Artifacts

  • Domain controller Security logs (5145, 4663)
  • SMB access logs to SYSVOL share
  • File system artifacts on domain controllers
  • Sysmon logs (1, 3, 11)
  • EDR telemetry identifying credential harvesting tools
  • Prefetch artifacts showing execution of PowerSploit or scripts
  • Authentication logs following credential extraction

MITRE ATT&CK References

  • T1552 Unsecured Credentials
  • T1552.006 Group Policy Preferences
  • T1003 Credential Dumping

Decision Tree

  1. Is the suspicious event present?
    • Identify SYSVOL access events (5145 / 4663).
  2. What host generated the event?
    • Determine workstation accessing SYSVOL files.
  3. Is the account expected to perform this action?
    • Investigate whether account normally manages GPOs.
  4. Pivot:
    • Source host → inspect execution of PowerSploit or GPP extraction scripts.
    • File access → determine which policy files were accessed.
    • Authentication → review logon events after credential extraction.
  5. Confirm exploitation
    • Determine whether attacker retrieved and decrypted cpassword credentials.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 5145
| where ShareName contains "SYSVOL"
SecurityEvent
| where EventID == 4663
| where ObjectName contains "Policies"

EQL

any where event.code == "5145"

Sigma

title: Suspicious SYSVOL Access for GPP Files
id: gpp-passwords-detection
status: experimental
description: Detects access to SYSVOL policies which may indicate Group Policy Preference password harvesting
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 5145
    ShareName|contains: SYSVOL
  condition: selection
fields:
  - SubjectUserName
  - ShareName
falsepositives:
  - Legitimate GPO management activity
level: medium
tags:
  - attack.credential_access
  - attack.t1552.006

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Credential hygieneRemove GPP passwords from SYSVOLCriticalMicrosoft deprecated storing credentials in GPP.
Audit policiesSearch domain for cpassword valuesCriticalIdentify legacy exposures.
Least privilegeRestrict who can read sensitive policy filesMediumLimits attack surface.
MonitoringAlert on mass SYSVOL enumerationHighDetects credential harvesting attempts.
Credential rotationRotate any exposed passwords immediatelyCriticalPrevents continued abuse.