Linux System Network Connections Discovery via who, w, last, lsof, or netstat

Identifies Linux discovery activity using who/w/last/lsof/netstat for enumerating network connections and system state.

FreeReviewedSigma · Low · v2
Product
linux
Category
process_creation
Author
Daniil Yugoslavskiy, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-19
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 identifies Linux process executions of common system utilities used to enumerate active network connections and system session state, including who, w, last, lsof, and netstat. Attackers may use these commands to recon a host, understand service usage, or identify exposed connections. Detection relies on process creation telemetry and matches executable paths by filename suffix, while excluding executions spawned from the landscape-sysinfo utility.

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
PowerShell Get-NetTCPConnection Network Connection Discovery (Windows)
Windows Process Creation: SharpView.exe with Recon/Domain Discovery Cmdlets
Windows PowerShell: Query TCP connections with Get-NetTCPConnection
macOS System Network Connection Discovery via who, w, last, lsof, or netstat
Cisco AAA discovery via show/dir commands
Linux System Network Connections Discovery via who, w, last, lsof, or netstat
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.