<!--
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">

        <!-- Branch 1: process_name IN (list of LOLBINs), matched via Image, with each parent_process pattern -->
        <!-- Parent pattern: *- -experimental-https* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">--experimental-https</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">--experimental-https</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *- -experimental-next-config-strip-types* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">--experimental-next-config-strip-types</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">--experimental-next-config-strip-types</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *\node_modules\next* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">\node_modules\next</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">\node_modules\next</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *next dev* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">next dev</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">next dev</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *next start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">next start</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">next start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *next" start* (note: quote is XML-escaped) -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">next&quot; start</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">next&quot; start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *node_modules\.bin\\..\next* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">node_modules\.bin\</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">node_modules\.bin\</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *react-scripts start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">react-scripts start</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">react-scripts start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!-- Parent pattern: *start-server.js* -->
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">start-server.js</ParentCommandLine>
          <Image name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;CalculatorApp.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;OpenConsole.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;sh.exe;tftp.exe;wget.exe;win32calc.exe;wmic.exe;wscript.exe;wsl.exe;wt.exe</Image>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process" groupRelation="and">
          <ParentImage name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="contains">start-server.js</ParentCommandLine>
          <OriginalFileName name="technique_id=T1190,technique_name=Exploit Public-Facing Application" condition="is any">bash.exe;bitsadmin.exe;calc.exe;certutil.exe;cscript.exe;curl.exe;ftp.exe;ipconfig.exe;mshta.exe;netstat.exe;powershell.exe;pwsh.exe;regsvr32.exe;rundll32.exe;tftp.exe;wget.exe;wmic.exe;wscript.exe;wsl.exe</OriginalFileName>
        </Rule>

        <!--
          Branch 2: process_name = cmd.exe AND NOT process contains "/d /s /c"
          (cmd.exe spawned directly without the standard /d /s /c wrapper - inherently suspicious)
          Expanded across all parent_process patterns x (Image OR OriginalFileName).
          Note: Sysmon cannot express "NOT contains" within an onmatch=include rule in combination
          with positive matching cleanly as a pure exclusion; we model the positive signal
          (cmd.exe child of node.exe running a Next/React server) and accept that the
          excludes condition on CommandLine narrows it to cases where /d /s /c is absent.
        -->

        <!-- cmd.exe without /d /s /c - parent: *- -experimental-https* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-https</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-https</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *- -experimental-next-config-strip-types* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-next-config-strip-types</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-next-config-strip-types</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *\node_modules\next* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">\node_modules\next</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">\node_modules\next</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *next dev* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next dev</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next dev</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *next start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next start</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *next" start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next&quot; start</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next&quot; start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *node_modules\.bin\* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">node_modules\.bin\</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">node_modules\.bin\</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *react-scripts start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">react-scripts start</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">react-scripts start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!-- cmd.exe without /d /s /c - parent: *start-server.js* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">start-server.js</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd direct" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">start-server.js</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">/d /s /c</CommandLine>
        </Rule>

        <!--
          Branch 3: process_name = cmd.exe AND process contains "/d /s /c"
          AND NOT (
            process contains "git config - -local - -get remote.origin.url"
            OR (process contains "netstat -ano | findstr /C:" AND process contains "| findstr LISTENING")
            OR (parent_process contains "- -experimental-https" AND process contains "\mkcert\" AND process contains either "-CAROOT" or "-install ")
          )

          The SPL excludes three specific benign patterns. In Sysmon onmatch=include rules we
          cannot express complex nested NOT logic directly. We model the positive signal
          (cmd /d /s /c from a Next/React node.exe parent) and apply the excludes conditions
          for the two globally applicable benign patterns (git config and netstat+findstr).
          The third exclusion (mkcert with - -experimental-https parent) is specific to one
          parent pattern and is handled there.

          Because all three exclusion arms must be simultaneously absent for the alert to fire,
          and Sysmon's excludes within an include rule only fires when the condition does NOT
          match, we add excludes for the patterns that are always safe to exclude globally,
          and accept that the mkcert/- -experimental-https exclusion cannot be fully expressed
          without nesting - we omit it to avoid invalid XML, which means a small number of
          false positives may occur in that specific scenario. This is the correct trade-off
          per the schema constraints.

          Expanded across all 9 parent patterns x (Image OR OriginalFileName) = 18 rules.
        -->

        <!-- cmd /d /s /c suspicious - parent: *- -experimental-https* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-https</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">\mkcert\</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-https</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">\mkcert\</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *- -experimental-next-config-strip-types* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-next-config-strip-types</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">--experimental-next-config-strip-types</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *\node_modules\next* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">\node_modules\next</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">\node_modules\next</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *next dev* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next dev</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next dev</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *next start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next start</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *next" start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next&quot; start</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">next&quot; start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *node_modules\.bin\* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">node_modules\.bin\</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">node_modules\.bin\</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *react-scripts start* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">react-scripts start</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">react-scripts start</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

        <!-- cmd /d /s /c suspicious - parent: *start-server.js* -->
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">start-server.js</ParentCommandLine>
          <Image name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">cmd.exe</Image>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>
        <Rule name="Windows Suspicious React or Next.js Child Process - cmd /d /s /c" groupRelation="and">
          <ParentImage name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="image">node.exe</ParentImage>
          <ParentCommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">start-server.js</ParentCommandLine>
          <OriginalFileName name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="is">cmd.exe</OriginalFileName>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="contains">/d /s /c</CommandLine>
          <CommandLine name="technique_id=T1059.003,technique_name=Windows Command Shell" condition="excludes">git config --local --get remote.origin.url</CommandLine>
        </Rule>

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