<!--
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: mmc.exe -> Child: powershell.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">mmc.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: mmc.exe -> Child: powershell.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">mmc.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: mmc.exe -> Child: pwsh.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">mmc.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">pwsh.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: mmc.exe -> Child: pwsh.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">mmc.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">pwsh.dll</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: mmc.exe -> Child: cmd.exe launching powershell (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">mmc.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: mmc.exe -> Child: cmd.exe launching powershell (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">mmc.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">Cmd.Exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: services.exe -> Child: powershell.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">services.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: services.exe -> Child: powershell.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">services.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: services.exe -> Child: pwsh.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">services.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">pwsh.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: services.exe -> Child: pwsh.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">services.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">pwsh.dll</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: services.exe -> Child: cmd.exe launching powershell (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">services.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: services.exe -> Child: cmd.exe launching powershell (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">services.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">Cmd.Exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wmiprvse.exe -> Child: powershell.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wmiprvse.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wmiprvse.exe -> Child: powershell.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wmiprvse.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wmiprvse.exe -> Child: pwsh.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wmiprvse.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">pwsh.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wmiprvse.exe -> Child: pwsh.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wmiprvse.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">pwsh.dll</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wmiprvse.exe -> Child: cmd.exe launching powershell (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wmiprvse.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wmiprvse.exe -> Child: cmd.exe launching powershell (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wmiprvse.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">Cmd.Exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wsmprovhost.exe -> Child: powershell.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wsmprovhost.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wsmprovhost.exe -> Child: powershell.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wsmprovhost.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wsmprovhost.exe -> Child: pwsh.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wsmprovhost.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">pwsh.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wsmprovhost.exe -> Child: pwsh.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wsmprovhost.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">pwsh.dll</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wsmprovhost.exe -> Child: cmd.exe launching powershell (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wsmprovhost.exe</ParentImage>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: wsmprovhost.exe -> Child: cmd.exe launching powershell (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">wsmprovhost.exe</ParentImage>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">Cmd.Exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!--
          Parent: svchost.exe with exclusions for -k netsvcs* and -s Schedule* applied via ParentCommandLine.
          Sysmon does not expose a distinct "parent_process" (full command line of parent) field separate
          from ParentCommandLine. The SPL excludes parent_process (full command line) matching "*-k netsvcs*"
          or "*-s Schedule*". We model this using ParentCommandLine with excludes any on those tokens.
          Note: The SPL comment references backtick-wrapped inline comments (not macros), so no lookup gap applies.
        -->

        <!-- Parent: svchost.exe (not netsvcs/Schedule) -> Child: powershell.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">svchost.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes any">-k netsvcs;-s Schedule</ParentCommandLine>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: svchost.exe (not netsvcs/Schedule) -> Child: powershell.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">svchost.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes any">-k netsvcs;-s Schedule</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: svchost.exe (not netsvcs/Schedule) -> Child: pwsh.exe (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">svchost.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes any">-k netsvcs;-s Schedule</ParentCommandLine>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">pwsh.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: svchost.exe (not netsvcs/Schedule) -> Child: pwsh.exe (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">svchost.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes any">-k netsvcs;-s Schedule</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">pwsh.dll</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: svchost.exe (not netsvcs/Schedule) -> Child: cmd.exe launching powershell (by Image) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">svchost.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes any">-k netsvcs;-s Schedule</ParentCommandLine>
          <Image name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

        <!-- Parent: svchost.exe (not netsvcs/Schedule) -> Child: cmd.exe launching powershell (by OriginalFileName) -->
        <Rule name="Possible Lateral Movement PowerShell Spawn" groupRelation="and">
          <ParentImage name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="image">svchost.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes any">-k netsvcs;-s Schedule</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="is">Cmd.Exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="contains any">powershell;pwsh</CommandLine>
          <CommandLine name="technique_id=T1059.001,technique_name=Command and Scripting Interpreter: PowerShell" condition="excludes">C:\Windows\CCM\</CommandLine>
        </Rule>

      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>