<!--
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">
        <!-- Detects logoff.exe spawned by cmd.exe -->
        <Rule name="Windows Account Access Removal via Logoff Exec" groupRelation="and">
          <Image name="technique_id=T1531,technique_name=Account Access Removal" condition="image">logoff.exe</Image>
          <ParentImage name="technique_id=T1531,technique_name=Account Access Removal" condition="image">cmd.exe</ParentImage>
        </Rule>
        <Rule name="Windows Account Access Removal via Logoff Exec" groupRelation="and">
          <OriginalFileName name="technique_id=T1531,technique_name=Account Access Removal" condition="is">logoff.exe</OriginalFileName>
          <ParentImage name="technique_id=T1531,technique_name=Account Access Removal" condition="image">cmd.exe</ParentImage>
        </Rule>
        <!-- Detects logoff.exe spawned by powershell.exe -->
        <Rule name="Windows Account Access Removal via Logoff Exec" groupRelation="and">
          <Image name="technique_id=T1531,technique_name=Account Access Removal" condition="image">logoff.exe</Image>
          <ParentImage name="technique_id=T1531,technique_name=Account Access Removal" condition="image">powershell.exe</ParentImage>
        </Rule>
        <Rule name="Windows Account Access Removal via Logoff Exec" groupRelation="and">
          <OriginalFileName name="technique_id=T1531,technique_name=Account Access Removal" condition="is">logoff.exe</OriginalFileName>
          <ParentImage name="technique_id=T1531,technique_name=Account Access Removal" condition="image">powershell.exe</ParentImage>
        </Rule>
        <!-- Detects logoff.exe spawned by pwsh.exe -->
        <Rule name="Windows Account Access Removal via Logoff Exec" groupRelation="and">
          <Image name="technique_id=T1531,technique_name=Account Access Removal" condition="image">logoff.exe</Image>
          <ParentImage name="technique_id=T1531,technique_name=Account Access Removal" condition="image">pwsh.exe</ParentImage>
        </Rule>
        <Rule name="Windows Account Access Removal via Logoff Exec" groupRelation="and">
          <OriginalFileName name="technique_id=T1531,technique_name=Account Access Removal" condition="is">logoff.exe</OriginalFileName>
          <ParentImage name="technique_id=T1531,technique_name=Account Access Removal" condition="image">pwsh.exe</ParentImage>
        </Rule>
      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>