<!--
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">
        <!-- Matches processes where the command line contains rmdir, /s, and /q, excluding known benign parent processes -->
        <!-- Parent exclusion for explorer.exe -->
        <Rule name="Windows Indicator Removal Via Rmdir" groupRelation="and">
          <CommandLine name="technique_id=T1070,technique_name=Indicator Removal" condition="contains all">rmdir; /s; /q</CommandLine>
          <ParentImage name="technique_id=T1070,technique_name=Indicator Removal" condition="is not">C:\Windows\explorer.exe</ParentImage>
          <ParentImage name="technique_id=T1070,technique_name=Indicator Removal" condition="excludes">HPDock</ParentImage>
        </Rule>
        <!-- OriginalFileName match for cmd.exe (rmdir is a cmd built-in, but also exists as a standalone; covering cmd.exe as the typical host) -->
        <!-- Note: rmdir is a cmd.exe built-in and has no standalone OriginalFileName; the Image/OriginalFileName for cmd.exe is covered below -->
        <Rule name="Windows Indicator Removal Via Rmdir - OriginalFileName" groupRelation="and">
          <OriginalFileName name="technique_id=T1070,technique_name=Indicator Removal" condition="is">Cmd.Exe</OriginalFileName>
          <CommandLine name="technique_id=T1070,technique_name=Indicator Removal" condition="contains all">rmdir; /s; /q</CommandLine>
          <ParentImage name="technique_id=T1070,technique_name=Indicator Removal" condition="is not">C:\Windows\explorer.exe</ParentImage>
          <ParentImage name="technique_id=T1070,technique_name=Indicator Removal" condition="excludes">HPDock</ParentImage>
        </Rule>
      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>