Detection rules › Sigma

MacOS Network Service Scanning

Status
test
Severity
low
Log source
product macos, category process_creation
Author
Alejandro Ortuno, oscd.community
Source
github.com/SigmaHQ/sigma

Detects enumeration of local or remote network services.

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1046 Network Service Discovery

Event coverage

ProviderEventTitle
ESFexecProcess Execution (Notify)

Rule body yaml

title: MacOS Network Service Scanning
id: 84bae5d4-b518-4ae0-b331-6d4afd34d00f
status: test
description: Detects enumeration of local or remote network services.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1046/T1046.md
author: Alejandro Ortuno, oscd.community
date: 2020-10-21
modified: 2021-11-27
tags:
    - attack.discovery
    - attack.t1046
logsource:
    category: process_creation
    product: macos
detection:
    selection_1:
        Image|endswith:
            - '/nc'
            - '/netcat'
    selection_2:
        Image|endswith:
            - '/nmap'
            - '/telnet'
    filter:
        CommandLine|contains: 'l'
    condition: (selection_1 and not filter) or selection_2
falsepositives:
    - Legitimate administration activities
level: low

Stages and Predicates

Stage 0: condition

(selection_1 and not filter) or selection_2

Stage 1: selection_1

selection_1:
    Image|endswith:
        - '/nc'
        - '/netcat'

Stage 2: not filter

filter:
    CommandLine|contains: 'l'

Stage 3: selection_2

selection_2:
    Image|endswith:
        - '/nmap'
        - '/telnet'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
CommandLinematchl

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • /nc
  • /netcat
  • /nmap
  • /telnet