<!--
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">
        <!-- Block 1: wmic.exe matched by Image, parent NOT in trusted paths, command targets WMI recon classes -->
        <!-- Parent path exclusion cannot be directly expressed as "not in trusted dirs AND cmdline contains class" -->
        <!-- in a single flat Rule without nesting. We expand: parent IS cmd.exe OR powershell* OR pwsh.exe (OR condition) -->
        <!-- combined with each WMI class value, per DNF expansion. -->
        <!-- The SPL logic is: (parent_path NOT in trusted dirs OR parent_name in shell list) AND (process is wmic.exe) AND (cmdline contains WMI class) -->
        <!-- Because Sysmon cannot express NOT-in-path with OR semantics directly alongside positive conditions in one Rule, -->
        <!-- we cover the explicit parent shell names (cmd.exe, powershell.exe, pwsh.exe) combined with each WMI class, -->
        <!-- using Image and OriginalFileName variants. This covers the most forensically relevant branch of the SPL OR. -->

        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <Image name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">wmic.exe</Image>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">cmd.exe</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <OriginalFileName name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="is">wmic.exe</OriginalFileName>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">cmd.exe</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <Image name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">wmic.exe</Image>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">powershell.exe</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <OriginalFileName name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="is">wmic.exe</OriginalFileName>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">powershell.exe</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <Image name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">wmic.exe</Image>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">pwsh.exe</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <OriginalFileName name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="is">wmic.exe</OriginalFileName>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">pwsh.exe</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
        <!-- The SPL also triggers when parent_process_path is NOT in trusted dirs (regardless of parent name). -->
        <!-- Sysmon cannot express "not begin with any of these paths" combined with a positive CommandLine -->
        <!-- in a single Rule without exceeding schema limits, so we cover the parent-path exclusion branch -->
        <!-- using not begin with conditions for each trusted root, expanded as AND-of-exclusions. -->
        <!-- This covers parents whose path does not start with any of the four trusted prefixes. -->
        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <Image name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="image">wmic.exe</Image>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Program Files (x86)\</ParentImage>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Program Files\</ParentImage>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Windows\System32\</ParentImage>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Windows\SysWOW64\</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
        <Rule name="Windows WMI Reconnaissance Class Query" groupRelation="and">
          <OriginalFileName name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="is">wmic.exe</OriginalFileName>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Program Files (x86)\</ParentImage>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Program Files\</ParentImage>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Windows\System32\</ParentImage>
          <ParentImage name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="not begin with">C:\Windows\SysWOW64\</ParentImage>
          <CommandLine name="technique_id=T1047,technique_name=Windows Management Instrumentation" condition="contains any">csproduct;Win32_BaseBoard;Win32_Bios;Win32_DiskDrive;Win32_DisplayConfiguration;Win32_OperatingSystem;Win32_PhysicalMemory;Win32_PnPEntity;Win32_Processor;Win32_ShadowCopy;win32_ShortcutFile;win32_VideoController</CommandLine>
        </Rule>
      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>