Sigma rule: Local System Accounts Discovery - MacOs

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-0da97e9b3f78, updated 2026-07-07T00:00:00.000Z.

Rule

Title
Local System Accounts Discovery - MacOs
Status
test
Level
low
Author
Alejandro Ortuno, oscd.community
Date
2020-10-08
Modified
2026-07-07
File
rules/macos/process_creation/proc_creation_macos_local_account.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects enumeration of local system accounts on MacOS systems.
This can be used by attackers to identify accounts for lateral movement or privilege escalation.

Log source

product
macos
category
process_creation

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' # defaults read /Library/Preferences/com.apple.loginwindow
        - '/plutil' # plutil -p /Library/Preferences/com.apple.loginwindow.plist
    CommandLine|contains: 'com.apple.loginwindow'
condition: 1 of selection*

False positives (as the rule lists them)

  • Legitimate administration activities

Tags

  • attack.discovery
  • attack.t1087.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/macos/process_creation/proc_creation_macos_local_account.yml

Sources and licences

  • SigmaHQ

    "Local System Accounts Discovery - MacOs" by Alejandro Ortuno, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/macos/process_creation/proc_creation_macos_local_account.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Local System Accounts Discovery - MacOs",
entity page, dataset version ref-0da97e9b3f78, updated 2026-07-07T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ddf36b67-e872-4507-ab2e-46bda21b842c (accessed 2026-11-03).
Underlying source: SigmaHQ rule ddf36b67-e872-4507-ab2e-46bda21b842c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.