Skip to content

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

Siemphony’s repertoire

Registry write to an Active Setup StubPath value

Matches a registry_set event where the target value is StubPath beneath HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components — the single write AN0871 needs to have happened before any of its logon-time correlation can begin, since a StubPath write is what makes a component ID execute at the next interactive logon at all. AN0871 also wants the subsequent process execution (4672/4688) tied to the same logon session within a TimeWindow, and entropy- or signature-scored on the launched binary; Sigma has no cross-event join and no scoring function, so this rule keeps the registry write, which is the one event both cheap to collect and specific to this mechanism — no other persistence technique writes a StubPath value under this exact key. Requires Sysmon with a registry rule covering the Active Setup subtree, or Security auditing with Audit Registry enabled and a SACL placed on the Installed Components key, neither of which a default install carries. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0312, 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

title: Registry write to an Active Setup StubPath valueid: 50c3ef1c-34b9-48c8-b2bf-327d5dcb6762status: experimentaldescription: |  Matches a registry_set event where the target value is StubPath beneath  HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components — the single write  AN0871 needs to have happened before any of its logon-time correlation can  begin, since a StubPath write is what makes a component ID execute at the  next interactive logon at all. AN0871 also wants the subsequent process  execution (4672/4688) tied to the same logon session within a  TimeWindow, and entropy- or signature-scored on the launched binary; Sigma  has no cross-event join and no scoring function, so this rule keeps the  registry write, which is the one event both cheap to collect and specific  to this mechanism — no other persistence technique writes a StubPath value  under this exact key. Requires Sysmon with a registry rule covering the  Active Setup subtree, or Security auditing with Audit Registry enabled and  a SACL placed on the Installed Components key, neither of which a default  install carries.  UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0312, not hand-written and not tested by its author. Any lab result is on this rule's own page.references:  - https://attack.mitre.org/techniques/T1547/014  - https://attack.mitre.org/detectionstrategies/DET0312author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-16tags:  - attack.persistence  - attack.privilege-escalation  - attack.t1547.014logsource:  category: registry_set  product: windowsdetection:  selection_key:    TargetObject|contains: '\Active Setup\Installed Components\'  selection_value:    TargetObject|endswith: '\StubPath'  condition: selection_key and selection_valuefalsepositives:  - "Software installers that legitimately register an Active Setup component to run a per-user first-launch step — Adobe Reader, Java, and enterprise deployment tools (SCCM, Intune post-install scripts) all write a StubPath entry as part of a normal install, and this is the rule's single largest source of benign hits on any managed fleet."  - "Citrix, VDI and terminal-server profile-provisioning tools that use Active Setup by design to re-run a per-user configuration step the first time each account logs onto a shared image, producing a StubPath write on every new profile rather than every install."level: medium

Sentinel · KQL

Run this as a search.

DeviceRegistryEvents| where (RegistryKey contains "\\Active Setup\\Installed Components\\" and RegistryKey endswith "\\StubPath")

Splunk · SPL

Run this as a search.

index=* (TargetObject="*\\Active Setup\\Installed Components\\*" AND TargetObject="*\\StubPath")

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (TO_LOWER(registry.path) LIKE "*\\\\active setup\\\\installed components\\\\*" AND TO_LOWER(registry.path) LIKE "*\\\\stubpath")

Wazuh · XML rule

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

<group name="sigma,windows,registry_set,">  <!-- 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="TargetObject" type="pcre2">(?i)\\Active Setup\\Installed Components\\</field>    <field name="TargetObject" type="pcre2">(?i)\\StubPath$</field>    <description>Registry write to an Active Setup StubPath value</description>    <mitre>      <id>T1547.014</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.