System Network Connections Discovery - Linux


Description

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.

Query · sigma

selection:
  Image|endswith:
  - /lsof
  - /netstat
  - /sockstat
  - /ss
condition: selection

Known false positives

  • Legitimate administration activities
Raw source System Network Connections Discovery - Linux · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: System Network Connections Discovery - Linux
id: 4c519226-f0cd-4471-bd2f-6fbb2bb68a79
status: test
description: |
    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.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1049/T1049.md
    - https://man7.org/linux/man-pages/man8/netstat.8.html
    - https://man7.org/linux/man-pages/man8/ss.8.html
    - https://man7.org/linux/man-pages/man8/lsof.8.html
author: Daniil Yugoslavskiy, oscd.community
date: 2020-10-19
modified: 2026-11-03
tags:
    - attack.discovery
    - attack.t1049
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith:
            - '/lsof'
            - '/netstat'
            - '/sockstat'
            - '/ss'
    condition: selection
falsepositives:
    - Legitimate administration activities
level: low

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.