System Network Connections Discovery - Linux

Detects attempts to discover system network connections via common Linux utilities. Adversaries may use tools such as netstat, ss, or lsof to enumerate active connections, open ports, and listening services on a compromised system.

Sigma rule (View on GitHub)

 1title: System Network Connections Discovery - Linux
 2id: 4c519226-f0cd-4471-bd2f-6fbb2bb68a79
 3status: test
 4description: |
 5    Detects attempts to discover system network connections via common Linux utilities.
 6    Adversaries may use tools such as netstat, ss, or lsof to enumerate active connections,
 7    open ports, and listening services on a compromised system.    
 8references:
 9    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1049/T1049.md
10    - https://man7.org/linux/man-pages/man8/netstat.8.html
11    - https://man7.org/linux/man-pages/man8/ss.8.html
12    - https://man7.org/linux/man-pages/man8/lsof.8.html
13author: Daniil Yugoslavskiy, oscd.community
14date: 2020-10-19
15modified: 2026-11-03
16tags:
17    - attack.discovery
18    - attack.t1049
19logsource:
20    category: process_creation
21    product: linux
22detection:
23    selection:
24        Image|endswith:
25            - '/lsof'
26            - '/netstat'
27            - '/sockstat'
28            - '/ss'
29    condition: selection
30falsepositives:
31    - Legitimate administration activities
32level: low

References

Related rules

to-top