Detectionlowtest

Local System Accounts Discovery - MacOs

Detects enumeration of local systeam accounts on MacOS

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Alejandro Ortuno, oscd.communityCreated Thu Oct 08Updated Sun Nov 27ddf36b67-e872-4507-ab2e-46bda21b842cmacos
Log Source
macOSProcess Creation
ProductmacOS← raw: macos
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic6 selectors
detection:
    selection_1:
        Image|endswith: '/dscl'
        CommandLine|contains|all:
            - 'list'
            - '/users'
    selection_2:
        Image|endswith: '/dscacheutil'
        CommandLine|contains|all:
            - '-q'
            - 'user'
    selection_3:
        CommandLine|contains: '''x:0:'''
    selection_4:
        Image|endswith: '/cat'
        CommandLine|contains:
            - '/etc/passwd'
            - '/etc/sudoers'
    selection_5:
        Image|endswith: '/id'
    selection_6:
        Image|endswith: '/lsof'
        CommandLine|contains: '-u'
    condition: 1 of selection*
False Positives

Legitimate administration activities

MITRE ATT&CK
Rule Metadata
Rule ID
ddf36b67-e872-4507-ab2e-46bda21b842c
Status
test
Level
low
Type
Detection
Created
Thu Oct 08
Modified
Sun Nov 27
Path
rules/macos/process_creation/proc_creation_macos_local_account.yml
Raw Tags
attack.discoveryattack.t1087.001
View on GitHub