Skip to content

Siemphony is in beta and still being built. How a rule earns its badge.

Siemphony’s repertoire

Group Policy object rewritten in its code path or its permissions

Siemphony@siemphonymediumT1484.001unverified
AN0854 covers both halves of a malicious GPO change — the directory object edit that repoints or extends a policy, and the delegation edit that hands someone the right to make it — and Security EventID 5136 is the one source in the brief that records either directly. The rule gates on a directory object modification whose ObjectClass is groupPolicyContainer, then requires the changed attribute to be one of four that determine what a policy does or who may change it: gPCFileSysPath, the SYSVOL path clients read policy from; gPCMachineExtensionNames and gPCUserExtensionNames, the client-side extension lists that decide which processors run — the pair a scheduled-task or registry payload has to touch; and nTSecurityDescriptor, the GPO's own ACL. That attribute list is authored into MITRE's `ObjectDN` and `UserContext` knobs, not taken from MITRE. The SYSVOL file leg is deliberately not attempted: on a domain controller those writes arrive over SMB from a management console, so Sysmon EventID 11 records the System process rather than the editing tool, and MITRE's `TimeWindow` correlation between the object change and the file write is a cross-event join Sigma cannot express. Note also that the brief maps Security 4663 onto the Sysmon-shaped `file_event` category, whose TargetFilename field 4663 does not have, so that feed would need a field mapping before any file-based variant of this rule could match. Prerequisite: 5136 needs the *Audit Directory Service Changes* subcategory enabled on domain controllers and an auditing SACL covering the Policies container — neither is on in a default install or in the Microsoft and CIS baselines, so an empty result means blind rather than quiet. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0305, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full description

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.

SecurityEvent| where ((EventID == 5136 and ObjectClass =~ "groupPolicyContainer") and (AttributeLDAPDisplayName =~ "gPCFileSysPath" or AttributeLDAPDisplayName =~ "gPCMachineExtensionNames" or AttributeLDAPDisplayName =~ "gPCUserExtensionNames" or AttributeLDAPDisplayName =~ "nTSecurityDescriptor"))

Splunk · SPL

Run this as a search.

index=* ((EventID="5136" AND ObjectClass="groupPolicyContainer") AND (AttributeLDAPDisplayName="gPCFileSysPath" OR AttributeLDAPDisplayName="gPCMachineExtensionNames" OR AttributeLDAPDisplayName="gPCUserExtensionNames" OR AttributeLDAPDisplayName="nTSecurityDescriptor"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((event.code == 5136 AND TO_LOWER(ObjectClass) == "grouppolicycontainer") AND (TO_LOWER(AttributeLDAPDisplayName) == "gpcfilesyspath" OR TO_LOWER(AttributeLDAPDisplayName) == "gpcmachineextensionnames" OR TO_LOWER(AttributeLDAPDisplayName) == "gpcuserextensionnames" OR TO_LOWER(AttributeLDAPDisplayName) == "ntsecuritydescriptor"))

Wazuh · XML rule

Deploy to your manager — this is a rule, not a search.

<group name="sigma,windows,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <rule id="100000" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="EventID" type="pcre2">(?i)^5136$</field>    <field name="ObjectClass" type="pcre2">(?i)^groupPolicyContainer$</field>    <field name="AttributeLDAPDisplayName" type="pcre2">(?i)(^gPCFileSysPath$|^gPCMachineExtensionNames$|^gPCUserExtensionNames$|^nTSecurityDescriptor$)</field>    <description>Group Policy object rewritten in its code path or its permissions</description>    <mitre>      <id>T1484.001</id>    </mitre>  </rule></group>

Verdicts · reactions · comments

Community

Verdicts from engineers who actually deployed it, and the conversation around it.

Log in to react
Not yet reported on

Nobody has run this in a real environment and said what happened.

Verdicts from engineers who deployed it

0 cast

No 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.