<!--
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">
      <ImageLoad onmatch="include">
        <!-- This rule targets Sysmon EventCode 7 (ImageLoad). The SPL requires:
             1. Company = "Microsoft Corporation"
             2. Signed = false (Signed condition not directly filterable in Sysmon XML; captured via Signature fields below where possible)
             3. SignatureStatus != Valid
             4. Image does NOT begin with any of the four trusted directories
             5. ImageLoaded does NOT begin with any of the four trusted directories
             6. Image and ImageLoaded share the same folder path (cannot be enforced in Sysmon XML filter; runtime correlation only)
             Because Sysmon XML cannot express field-to-field equality (ImageFolderPath = ImageLoadedFolderPath),
             that condition must remain as a post-filter in Splunk. The rules below approximate all statically
             expressible conditions from the SPL.
             T1574.001 (DLL Side-Loading) is chosen as the single most specific technique over the broader T1547. -->
        <Rule name="Windows Unsigned MS DLL Side-Loading" groupRelation="and">
          <Company name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="is">Microsoft Corporation</Company>
          <Signed name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="is">false</Signed>
          <SignatureStatus name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="is not">Valid</SignatureStatus>
          <Image name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Program Files (x86)\</Image>
          <Image name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Program Files\</Image>
          <Image name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Windows\System32\</Image>
          <Image name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Windows\SysWow64\</Image>
          <ImageLoaded name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Program Files (x86)\</ImageLoaded>
          <ImageLoaded name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Program Files\</ImageLoaded>
          <ImageLoaded name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Windows\System32\</ImageLoaded>
          <ImageLoaded name="technique_id=T1574.001,technique_name=DLL Side-Loading" condition="not begin with">C:\Windows\SysWow64\</ImageLoaded>
        </Rule>
      </ImageLoad>
    </RuleGroup>
  </EventFiltering>
</Sysmon>