PowerShell Get-NetTCPConnection Network Connection Discovery (Windows)

Detects PowerShell use of Get-NetTCPConnection to enumerate TCP network connections for discovery.

FreeReviewedSigma · Low · v2
Product
windows
Category
ps_module
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-12-10
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell module usage that contains the string "Get-NetTCPConnection", indicating an attempt to enumerate active TCP network connections from the host or to remote systems. Attackers can use this information for situational awareness, lateral movement planning, or validating network paths. The detection relies on PowerShell command/module context telemetry that captures the executed content containing "Get-NetTCPConnection".

Related detections9 linkedT1049 — drag to rearrange
Suspicious Java Process Spawning Reconnaissance Commands via Cleo MFT (via process_creation)
Suspicious Reconnaissance Spawned by Injected SearchProtocolHost via process_creation
Windows Process Creation Signals for Pikabot System Discovery
Windows Net.exe Network Connections Discovery via Use Sessions Query
Windows Process Creation: SharpView.exe with Recon/Domain Discovery Cmdlets
Windows PowerShell: Query TCP connections with Get-NetTCPConnection
Linux System Network Connections Discovery via who, w, last, lsof, or netstat
macOS System Network Connection Discovery via who, w, last, lsof, or netstat
Cisco AAA discovery via show/dir commands
PowerShell Get-NetTCPConnection Network Connection Discovery (Windows)
Pivot detection · T1049 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.