<!--
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">
        <!-- Parent process: low/medium/high integrity, running from user-controlled path, not a service account -->
        <!-- Child process: system integrity, parent path in user-controlled location -->
        <!-- The SPL joins two Processes queries: parent (user-controlled path, non-system user) spawning child (system integrity) -->
        <!-- Sysmon ProcessCreate captures both Image (child) and ParentImage (parent) fields in a single event, -->
        <!-- allowing us to match: child IntegrityLevel=System AND parent path in user-controlled locations -->

        <!-- Rule set covers: child process at system integrity whose parent lives under a user-writable path -->
        <!-- Parent path contains \Users\ -->
        <Rule name="Windows Privilege Escalation User Process Spawn System Process" groupRelation="and">
          <IntegrityLevel name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="is">System</IntegrityLevel>
          <ParentImage name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="contains">\Users\</ParentImage>
        </Rule>
        <!-- Parent path contains \Temp\ -->
        <Rule name="Windows Privilege Escalation User Process Spawn System Process" groupRelation="and">
          <IntegrityLevel name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="is">System</IntegrityLevel>
          <ParentImage name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="contains">\Temp\</ParentImage>
        </Rule>
        <!-- Parent path contains \ProgramData\ -->
        <Rule name="Windows Privilege Escalation User Process Spawn System Process" groupRelation="and">
          <IntegrityLevel name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="is">System</IntegrityLevel>
          <ParentImage name="technique_id=T1068,technique_name=Exploitation for Privilege Escalation" condition="contains">\ProgramData\</ParentImage>
        </Rule>
      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>