CmdID

CmdID / Rules / Windows

New Port Forwarding Rule Added Via Netsh.EXE

A Sigma rule for process creation on Windows, by Florian Roth (Nextron Systems), omkar72, oscd.community, Swachchhanda Shrawan Poudel.

medium 1 ATT&CK technique 1 program it names 2 everyday examples trip it

What it looks for

its detection, as SigmaHQ writes it
detection:
  selection_cli_1:
    CommandLine|contains|all:
      - 'interface'
      - 'portproxy'
      - 'add'
      - 'v4tov4'
  selection_cli_2:
    CommandLine|contains|all:
      - 'i '
      - 'p '
      - 'a '
      - 'v '
  selection_cli_3:
    CommandLine|contains|all:
      - 'connectp'
      - 'listena'
      - 'c='
  selection_img:
    - Image|endswith: '\netsh.exe'
    - OriginalFileName: 'netsh.exe'
  condition: selection_img and 1 of selection_cli_*

The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Florian Roth (Nextron Systems), omkar72, oscd.community, Swachchhanda Shrawan Poudel, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.

Command lines that trip it

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

Set up IPv4 port forwarding (run in elevated console) on the page for netsh-interface-portproxy

netsh interface portproxy add v4tov4 listenaddress=192.168.0.1 listenport=8080 connectaddress=10.0.0.1 connectport=80Identify

Remove IPv4 port forwarding (run in elevated console) on the page for netsh-interface-portproxy

netsh interface portproxy delete v4tov4 listenaddress=192.168.0.1 listenport=8080Identify

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1090Proxy