<!--
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">
        <Rule name="User Discovery With Env Vars PowerShell" groupRelation="and">
          <Image name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="contains">$env:UserName</CommandLine>
        </Rule>
        <Rule name="User Discovery With Env Vars PowerShell" groupRelation="and">
          <OriginalFileName name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="contains">$env:UserName</CommandLine>
        </Rule>
        <Rule name="User Discovery With Env Vars PowerShell" groupRelation="and">
          <Image name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="image">powershell.exe</Image>
          <CommandLine name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="contains">[System.Environment]::UserName</CommandLine>
        </Rule>
        <Rule name="User Discovery With Env Vars PowerShell" groupRelation="and">
          <OriginalFileName name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="is">PowerShell.EXE</OriginalFileName>
          <CommandLine name="technique_id=T1033,technique_name=System Owner/User Discovery" condition="contains">[System.Environment]::UserName</CommandLine>
        </Rule>
      </ProcessCreate>
    </RuleGroup>
  </EventFiltering>
</Sysmon>