macOS Local Group Enumeration via dscacheutil, cat /etc/group, or dscl

Flags macOS process executions that enumerate local system groups using dscacheutil, cat, or dscl commands.

FreeReviewedSigma · Informational · v2
Product
macos
Category
process_creation
Author
Ömer Günal, Alejandro Ortuno, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-11
Updated
2026-07-31
title: macOS Local Group Enumeration via dscacheutil, cat /etc/group, or dscl
id: 6d1a9f49-6568-42f3-b40b-4c5e494375a2
status: test
description: This rule flags process executions on macOS used to enumerate local system groups by querying group sources such as dscacheutil, /etc/group, or dscl. Attackers commonly use group discovery to understand local permissions and tailor follow-on actions. The detection relies on process creation telemetry, matching command-line arguments and executable paths for the relevant group enumeration commands.
references:
  - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.001/T1069.001.md
  - https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_local_groups.yml
author: Ömer Günal, Alejandro Ortuno, oscd.community, Huntrule Team
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
license: DRL-1.1
related:
  - id: 89bb1f97-c7b9-40e8-b52b-7d6afbd67276
    type: derived