Detectionhightest

RDP Port Forwarding Rule Added Via Netsh.EXE

Detects the execution of netsh to configure a port forwarding of port 3389 (RDP) rule

Open in Detection LabConvert ruleBuild Package
Florian Roth (Nextron Systems), oscd.communityCreated 2019-01-29Updated 2023-02-13782d6f3e-4c5d-4b8c-92a3-1d05fed72e63windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith: '\netsh.exe'
        - OriginalFileName: 'netsh.exe'
    selection_cli:
        CommandLine|contains|all:
            - ' i'
            - ' p'
            - '=3389'
            - ' c'
    condition: all of selection_*
False Positives

Legitimate administration activity

Rule Metadata
Rule ID
782d6f3e-4c5d-4b8c-92a3-1d05fed72e63
Status
test
Level
high
Type
Detection
Created
2019-01-29
Modified
2023-02-13
Path
rules/windows/process_creation/proc_creation_win_netsh_port_forwarding_3389.yml
Raw Tags
attack.lateral-movementattack.command-and-controlattack.t1090
View on GitHub