<!--
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">
        <!-- Macro `process_powershell` resolves to: Processes.process_name=powershell.exe OR Processes.process_name=powershell (and similar PowerShell variants). Based on security_content GitHub, the macro typically matches on process_name IN ("powershell.exe","powershell","pwsh.exe","pwsh") -->
        <Rule name="Malicious PowerShell Process - Execution Policy Bypass" groupRelation="and">
          <Image name="technique_id=T1059.001,technique_name=PowerShell" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=PowerShell" condition="contains all"> -ex; bypass </CommandLine>
        </Rule>
        <Rule name="Malicious PowerShell Process - Execution Policy Bypass" groupRelation="and">
          <OriginalFileName name="technique_id=T1059.001,technique_name=PowerShell" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=PowerShell" condition="contains all"> -ex; bypass </CommandLine>
        </Rule>
        <Rule name="Malicious PowerShell Process - Execution Policy Bypass" groupRelation="and">
          <Image name="technique_id=T1059.001,technique_name=PowerShell" condition="image">pwsh.exe</Image>
          <CommandLine name="technique_id=T1059.001,technique_name=PowerShell" condition="contains all"> -ex; bypass </CommandLine>
        </Rule>
        <Rule name="Malicious PowerShell Process - Execution Policy Bypass" groupRelation="and">
          <OriginalFileName name="technique_id=T1059.001,technique_name=PowerShell" condition="is">pwsh.dll</OriginalFileName>
          <CommandLine name="technique_id=T1059.001,technique_name=PowerShell" condition="contains all"> -ex; bypass </CommandLine>
        </Rule>
      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>