Possible Local System Accounts Enumeration - MacOs (via process_creation)
This rule detects enumeration of local system accounts on MacOS systems. This can be used by adversaries to identify accounts for lateral movement or privilege escalation.
SigmalowmacOSv1
sigma
possible-local-system-accounts-enumeration-macos-via-process-creation
title: Possible Local System Accounts Enumeration - MacOs (via process_creation)
id: fcb5534f-96df-5c2a-99a7-e25379065656
status: stable
description: This rule detects enumeration of local system accounts on MacOS systems. This can be used by adversaries to identify accounts for lateral movement or privilege escalation.
references:
- https://attack.mitre.org/techniques/T1087/001/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1087.001/T1087.001.md
- https://ss64.com/osx/dscl.html
- https://ss64.com/mac/dscacheutil.html
author: Huntrule Team
date: 2026-07-12
tags:
- attack.discovery
- attack.t1087.001
logsource:
category: process_creation
product: macos
detection:
selection_dscl:
Image|endswith: '/dscl'
CommandLine|contains|all:
- 'list'
- '/users'
selection_dscacheutil:
Image|endswith: '/dscacheutil'
CommandLine|contains|all:
- '-q'
- 'user'
selection_root:
CommandLine|contains: '''*:0:'''
selection_passwd_sudo:
Image|endswith:
- '/cat'
- '/awk'
- '/grep'
CommandLine|contains:
- '/etc/passwd'
- '/etc/sudoers'
selection_id:
Image|endswith: '/id'
selection_lsof:
Image|endswith: '/lsof'
CommandLine|contains: '-u'
selection_logged_in_users:
Image|endswith:
- '/who'
- '/w'
- '/users'
- '/last'
selection_home_dir_listing:
Image|endswith: '/ls'
CommandLine|endswith:
- '/Users'
- "/Users'"
- '/Users"'
selection_loginwindow_prefs:
Image|endswith:
- '/defaults'
- '/plutil'
CommandLine|contains: 'com.apple.loginwindow'
condition: 1 of selection*
falsepositives:
- Unknown
level: low
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.