Group Policy Preferences password tooling or SYSVOL XML search
Matches the two command-line steps AN1075 describes, both on `CommandLine` so the whole rule sits in one field. The first arm names the published decryptors and the `cpassword` attribute itself — the XML attribute holding the AES blob, which anything reading or grepping for a Group Policy Preferences password has to name somewhere. The second arm requires a path under SYSVOL together with a reference to XML, which is the enumeration step MITRE spells out in the technique text as `dir /s *.xml` against the policy share — with the caveat that `dir` is a cmd builtin and `Get-ChildItem` a cmdlet, so neither creates a process when typed into a shell that is already open. The second arm therefore sees the `cmd /c` and `powershell -c` one-liner forms, `findstr`, and compiled tooling; it does not see the interactive session, and an operator working from a mapped drive rather than the UNC path misses the `\sysvol` gate as well. MITRE supplies the KnownToolsSignature knob; the term list here is authored. The brief's other three sources were not used: Sysmon EventID 11 is file creation and cannot see a policy file being read, Security 5145 fires for every domain member at every policy refresh, and the PowerShell source is described only as scripts with XML or AES logic, which is not a field-level observable. Vocabulary note — the brief maps Sysmon EventID 1 onto `category: process_creation`, and this rule is written in that vocabulary; an estate feeding Security 4688 into the same category gets `CommandLine` only after enabling *Include command line in process creation events* on top of *Audit Process Creation*, neither of which is on by default. Two limits worth stating: the decryption key is public and the work is offline, so an operator who copies Groups.xml aside with Explorer or robocopy and decrypts it elsewhere leaves no matching command line; and a bespoke script that parses the XML without naming cpassword or a known tool is invisible to both arms. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0381, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
Sentinel · KQL
Run this as a search.
DeviceProcessEvents| where ((ProcessCommandLine contains "Get-GPPPassword" or ProcessCommandLine contains "gpprefdecrypt" or ProcessCommandLine contains "gpp-decrypt" or ProcessCommandLine contains "gpp_password" or ProcessCommandLine contains "gpp_autologin" or ProcessCommandLine contains "cpassword" or ProcessCommandLine contains "gather/credentials/gpp") or (ProcessCommandLine contains "\\sysvol" and ProcessCommandLine contains ".xml"))
Splunk · SPL
Run this as a search.
index=* ((CommandLine="*Get-GPPPassword*" OR CommandLine="*gpprefdecrypt*" OR CommandLine="*gpp-decrypt*" OR CommandLine="*gpp_password*" OR CommandLine="*gpp_autologin*" OR CommandLine="*cpassword*" OR CommandLine="*gather/credentials/gpp*") OR (CommandLine="*\\sysvol*" AND CommandLine="*.xml*"))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE ((TO_LOWER(process.command_line) LIKE "*get-gpppassword*" OR TO_LOWER(process.command_line) LIKE "*gpprefdecrypt*" OR TO_LOWER(process.command_line) LIKE "*gpp-decrypt*" OR TO_LOWER(process.command_line) LIKE "*gpp_password*" OR TO_LOWER(process.command_line) LIKE "*gpp_autologin*" OR TO_LOWER(process.command_line) LIKE "*cpassword*" OR TO_LOWER(process.command_line) LIKE "*gather/credentials/gpp*") OR (TO_LOWER(process.command_line) LIKE "*\\\\sysvol*" AND TO_LOWER(process.command_line) LIKE "*.xml*"))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,process_creation,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <!-- 2 rules: the Sigma condition ORs across different fields, which one rule cannot express. Any one matching is a hit. --> <rule id="100000" level="7"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="CommandLine" type="pcre2">(?i)(Get-GPPPassword|gpprefdecrypt|gpp-decrypt|gpp_password|gpp_autologin|cpassword|gather/credentials/gpp)</field> <description>Group Policy Preferences password tooling or SYSVOL XML search (1/2)</description> <mitre> <id>T1552.006</id> </mitre> </rule> <rule id="100001" level="7"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="CommandLine" type="pcre2">(?i)\\sysvol</field> <field name="CommandLine" type="pcre2">(?i)\.xml</field> <description>Group Policy Preferences password tooling or SYSVOL XML search (2/2)</description> <mitre> <id>T1552.006</id> </mitre> </rule></group>
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.