Detection rules › Sigma

System Network Connections Discovery - Linux

Status
test
Severity
low
Log source
category process_creation, product linux
Author
Daniil Yugoslavskiy, oscd.community
Source
github.com/SigmaHQ/sigma

Detects usage of system utilities to discover system network connections

Known false positives

  • Legitimate activities

MITRE ATT&CK coverage

Telemetry coverage

PlatformRecord / event type
LinuxEvent ID 1: Process Create

Rule body

title: System Network Connections Discovery - Linux
id: 4c519226-f0cd-4471-bd2f-6fbb2bb68a79
status: test
description: Detects usage of system utilities to discover system network connections
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1049/T1049.md
author: Daniil Yugoslavskiy, oscd.community
date: 2020-10-19
modified: 2023-01-17
tags:
    - attack.discovery
    - attack.t1049
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|endswith:
            - '/who'
            - '/w'
            - '/last'
            - '/lsof'
            - '/netstat'
    filter_landscape_sysinfo:
        ParentCommandLine|contains: '/usr/bin/landscape-sysinfo'
        Image|endswith: '/who'
    condition: selection and not 1 of filter_*
falsepositives:
    - Legitimate activities
level: low

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_*

Stage 1: selection

selection:
    Image|endswith:
        - '/who'
        - '/w'
        - '/last'
        - '/lsof'
        - '/netstat'

Stage 2: not filter_landscape_sysinfo

filter_landscape_sysinfo:
    ParentCommandLine|contains: '/usr/bin/landscape-sysinfo'
    Image|endswith: '/who'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Imageends_with/whoexcludes:Image field:"Image" value:"/who"
ParentCommandLinematch/usr/bin/landscape-sysinfoexcludes:ParentCommandLine field:"ParentCommandLine" value:"/usr/bin/landscape-sysinfo"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • /last
  • /lsof
  • /netstat
  • /w
  • /who
field:"Image" kind:ends_with