Sigma rule: New Port Forwarding Rule Added Via Netsh.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4de1486b5b17, updated 2023-09-01T00:00:00.000Z.

Rule

Title
New Port Forwarding Rule Added Via Netsh.EXE
Status
test
Level
medium
Author
Florian Roth (Nextron Systems), omkar72, oscd.community, Swachchhanda Shrawan Poudel
Date
2019-01-29
Modified
2023-09-01
File
rules/windows/process_creation/proc_creation_win_netsh_port_forwarding.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the execution of netsh commands that configure a new port forwarding (PortProxy) rule

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith: '\netsh.exe'
    - OriginalFileName: 'netsh.exe'
selection_cli_1:
    CommandLine|contains|all:
        - 'interface'
        - 'portproxy'
        - 'add'
        - 'v4tov4'
selection_cli_2:
    CommandLine|contains|all:
        # Example: netsh I p a v l=8001 listena=127.0.0.1 connectp=80 c=192.168.1.1
        - 'i ' # interface
        - 'p ' # portproxy
        - 'a ' # add
        - 'v ' # v4tov4
selection_cli_3:
    CommandLine|contains|all:
        - 'connectp'
        - 'listena'
        - 'c='
condition: selection_img and 1 of selection_cli_*

False positives (as the rule lists them)

  • Legitimate administration activity
  • WSL2 network bridge PowerShell script used for WSL/Kubernetes/Docker (e.g. https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723)

Tags

  • attack.lateral-movement
  • attack.command-and-control
  • attack.t1090

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_netsh_port_forwarding.yml

Sources and licences

  • SigmaHQ

    "New Port Forwarding Rule Added Via Netsh.EXE" by Florian Roth (Nextron Systems), omkar72, oscd.community, Swachchhanda Shrawan Poudel (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_netsh_port_forwarding.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: New Port Forwarding Rule Added Via Netsh.EXE",
entity page, dataset version ref-4de1486b5b17, updated 2023-09-01T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/322ed9ec-fcab-4f67-9a34-e7c6aef43614 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 322ed9ec-fcab-4f67-9a34-e7c6aef43614, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.