Skip to content
WETNav

Discovery · Windows

netstat.exe

Netstat

Lists active connections and listening ports, optionally with the owning process. Used to find other hosts and services from a compromised system.

Legitimate use

Used to troubleshoot connections and check which process owns a port.

Worst caseLow

Switches

/a

Shows all connections and listening ports.

Low
/n

Shows addresses and ports as numbers.

Info
/o

Shows the owning process ID for each connection.

Low
/b

Shows the executable that owns each connection. Needs elevation.

Low
/r

Shows the routing table.

Low
/s

Shows per-protocol statistics.

Info

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.

Community detections

5 SigmaHQ rules for netstat.exe. The explainer checks every pasted command line against all of them.

  • Critical
    Suspicious Child Process Of Veeam Dabatase

    Detects suspicious child processes of the Veeam service process. This could indicate potential RCE or SQL Injection.

    by Nasreddine Bencherchali (Nextron Systems)

  • High
    Potential Process Injection Via Msra.EXE

    Detects potential process injection via Microsoft Remote Asssistance (Msra.exe) by looking at suspicious child processes spawned from the aforementioned process. It has been a target used by many threat actors and used for discovery and persistence tactics

    T1055by Alexander McDonald

  • High
    Suspicious Child Process Of SQL Server

    Detects suspicious child processes of the SQLServer process. This could indicate potential RCE or SQL Injection.

    T1505.003T1190by FPT.EagleEye Team, wagga

  • High
    Suspicious Child Process Of Wermgr.EXE

    Detects suspicious Windows Error Reporting manager (wermgr.exe) child process

    T1055T1036by Florian Roth (Nextron Systems)

  • High
    Webshell Detection With Command Line Keywords

    Detects certain command line parameters often used during reconnaissance activity via web shells

    T1505.003T1018T1033T1087by Florian Roth (Nextron Systems), Jonhnathan Ribeiro, Anton Kutepov, oscd.community, Chad Hudson, Matt Anderson

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.