Detection rules › Sigma

Macos Remote System Discovery

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

Detects the enumeration of other remote systems.

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1018 Remote System Discovery

Event coverage

ProviderEventTitle
ESFexecProcess Execution (Notify)

Rule body yaml

title: Macos Remote System Discovery
id: 10227522-8429-47e6-a301-f2b2d014e7ad
status: test
description: Detects the enumeration of other remote systems.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1018/T1018.md
author: Alejandro Ortuno, oscd.community
date: 2020-10-22
modified: 2021-11-27
tags:
    - attack.discovery
    - attack.t1018
logsource:
    category: process_creation
    product: macos
detection:
    selection_1:
        Image|endswith: '/arp'
        CommandLine|contains: '-a'
    selection_2:
        Image|endswith: '/ping'
        CommandLine|contains:
            - ' 10.' # 10.0.0.0/8
            - ' 192.168.' # 192.168.0.0/16
            - ' 172.16.' # 172.16.0.0/12
            - ' 172.17.'
            - ' 172.18.'
            - ' 172.19.'
            - ' 172.20.'
            - ' 172.21.'
            - ' 172.22.'
            - ' 172.23.'
            - ' 172.24.'
            - ' 172.25.'
            - ' 172.26.'
            - ' 172.27.'
            - ' 172.28.'
            - ' 172.29.'
            - ' 172.30.'
            - ' 172.31.'
            - ' 127.' # 127.0.0.0/8
            - ' 169.254.' # 169.254.0.0/16
    condition: 1 of selection*
falsepositives:
    - Legitimate administration activities
level: informational

Stages and Predicates

Stage 0: condition

1 of selection*

Stage 1: selection_1

selection_1:
    Image|endswith: '/arp'
    CommandLine|contains: '-a'

Stage 2: selection_2

selection_2:
    Image|endswith: '/ping'
    CommandLine|contains:
        - ' 10.'
        - ' 192.168.'
        - ' 172.16.'
        - ' 172.17.'
        - ' 172.18.'
        - ' 172.19.'
        - ' 172.20.'
        - ' 172.21.'
        - ' 172.22.'
        - ' 172.23.'
        - ' 172.24.'
        - ' 172.25.'
        - ' 172.26.'
        - ' 172.27.'
        - ' 172.28.'
        - ' 172.29.'
        - ' 172.30.'
        - ' 172.31.'
        - ' 127.'
        - ' 169.254.'

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
CommandLinematch
  • 10.
  • 127.
  • 169.254.
  • 172.16.
  • 172.17.
  • 172.18.
  • 172.19.
  • 172.20.
  • 172.21.
  • 172.22.
  • 172.23.
  • 172.24.
  • 172.25.
  • 172.26.
  • 172.27.
  • 172.28.
  • 172.29.
  • 172.30.
  • 172.31.
  • 192.168.
  • -a
Imageends_with
  • /arp
  • /ping