<!--
MARDUK  /  SYSMON DYNAMIX

       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,,,,,,,,,,,,.     ,,,,,,,,,,,,,,,,,,,,,,
       ,,,,,,,,,,,..,,,,,,,,,.     ,,,,,,,,,,.,,,,,,,,,,,
       ,,,,,,,,,,,    ..,,,,,.     ,,,,,..    ,,,,,,,,,,,
       ,,,,,,,,,,,        ..,.    .,..        ,,,,,,,,,,,

Detection attribution and licensing are documented in THIRD_PARTY_NOTICES.md.
MITRE ATT&amp;CK mapping: © 2026 The MITRE Corporation. This work is reproduced
and distributed with the permission of The MITRE Corporation.
-->
<Sysmon schemaversion="4.90">
  <EventFiltering>
    <RuleGroup name="" groupRelation="or">
      <ProcessCreate onmatch="include">
        <!-- Detection: Windows Wermgr Spawning System Integrity Process -->
        <!-- SPL logic: ParentImage is WerMgr.exe AND (IntegrityLevel is System OR User ends with $ OR User is System) -->
        <!-- T1068 chosen over T1134.001: the core behavior is privilege escalation via phantom DLL exploit, -->
        <!-- making Exploitation for Privilege Escalation the most direct and specific technique match.      -->

        <!-- Branch 1: ParentImage WerMgr.exe AND IntegrityLevel = System -->
        <Rule name="Windows Wermgr Spawning System Integrity Process" groupRelation="and">
          <ParentImage name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="image">WerMgr.exe</ParentImage>
          <IntegrityLevel name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="is">System</IntegrityLevel>
        </Rule>

        <!-- Branch 2: ParentImage WerMgr.exe AND User ends with $ (machine accounts) -->
        <Rule name="Windows Wermgr Spawning System Integrity Process" groupRelation="and">
          <ParentImage name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="image">WerMgr.exe</ParentImage>
          <User name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="end with">$</User>
        </Rule>

        <!-- Branch 3: ParentImage WerMgr.exe AND User is System -->
        <Rule name="Windows Wermgr Spawning System Integrity Process" groupRelation="and">
          <ParentImage name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="image">WerMgr.exe</ParentImage>
          <User name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="is">System</User>
        </Rule>
      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>