Per-user CLSID registered with a payload under InprocServer32 or LocalServer32
AN1323's registry source is Security EventID 4657, but this rule is written in Sysmon's registry_set vocabulary (a single TargetObject) because that is what the brief's sigmaLogsource declares; a deployment feeding from 4657 instead needs its ObjectName/ObjectValueName fields mapped onto TargetObject first — enabling Audit Registry and a SACL alone does not make 4657 fit this shape. The match targets the actual hijack mechanism — a CLSID under `HKEY_CURRENT_USER\Software\Classes\CLSID\` (Sysmon's `HKU\` prefix) overriding the machine-wide HKLM registration — and ends on the CLSID's InprocServer32/LocalServer32 subkey and its `(Default)` value, because that is where the payload path actually lives; the CLSID key's own value carries nothing. The module load or execution MITRE correlates against this write is a cross-event join Sigma cannot express, and most public Sysmon configs filter `\Software\Classes` out as noise, so this needs an explicit include rule first. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0481, 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.
DeviceRegistryEvents| where ((RegistryKey startswith "HKU\\" and RegistryKey contains "\\Software\\Classes\\CLSID\\") and (RegistryKey endswith "\\InprocServer32\\(Default)" or RegistryKey endswith "\\LocalServer32\\(Default)"))
Splunk · SPL
Run this as a search.
index=* ((TargetObject="HKU\\*" AND TargetObject="*\\Software\\Classes\\CLSID\\*") AND (TargetObject="*\\InprocServer32\\(Default)" OR TargetObject="*\\LocalServer32\\(Default)"))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE ((TO_LOWER(registry.path) LIKE "hku\\\\*" AND TO_LOWER(registry.path) LIKE "*\\\\software\\\\classes\\\\clsid\\\\*") AND (TO_LOWER(registry.path) LIKE "*\\\\inprocserver32\\\\(default)" OR TO_LOWER(registry.path) LIKE "*\\\\localserver32\\\\(default)"))
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)^HKU\\</field> <field name="TargetObject" type="pcre2">(?i)\\Software\\Classes\\CLSID\\</field> <field name="TargetObject" type="pcre2">(?i)(\\InprocServer32\\\(Default\)$|\\LocalServer32\\\(Default\)$)</field> <description>Per-user CLSID registered with a payload under InprocServer32 or LocalServer32</description> <mitre> <id>T1546.015</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.