Detection rules › Sigma

Local Groups Discovery - MacOs

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

Detects enumeration of local system groups

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
ESFexecProcess Execution (Notify)

Rule body yaml

title: Local Groups Discovery - MacOs
id: 89bb1f97-c7b9-40e8-b52b-7d6afbd67276
status: test
description: Detects enumeration of local system groups
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.001/T1069.001.md
author: Ömer Günal, Alejandro Ortuno, oscd.community
date: 2020-10-11
modified: 2022-11-27
tags:
    - attack.discovery
    - attack.t1069.001
logsource:
    category: process_creation
    product: macos
detection:
    selection_1:
        Image|endswith: '/dscacheutil'
        CommandLine|contains|all:
            - '-q'
            - 'group'
    selection_2:
        Image|endswith: '/cat'
        CommandLine|contains: '/etc/group'
    selection_3:
        Image|endswith: '/dscl'
        CommandLine|contains|all:
            - '-list'
            - '/groups'
    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: '/dscacheutil'
    CommandLine|contains|all:
        - '-q'
        - 'group'

Stage 2: selection_2

selection_2:
    Image|endswith: '/cat'
    CommandLine|contains: '/etc/group'

Stage 3: selection_3

selection_3:
    Image|endswith: '/dscl'
    CommandLine|contains|all:
        - '-list'
        - '/groups'

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
  • -list
  • -q
  • /etc/group
  • /groups
  • group
Imageends_with
  • /cat
  • /dscacheutil
  • /dscl