Sigma rule: User Added To Admin Group Via Dscl
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-9c22e91f8155, updated 2023-03-19T00:00:00.000Z.
Rule
- Title
- User Added To Admin Group Via Dscl
- Status
- test
- Level
- medium
- Author
- Sohan G (D4rkCiph3r)
- Date
- 2023-03-19
- File
- rules/macos/process_creation/proc_creation_macos_dscl_add_user_to_admin_group.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects attempts to create and add an account to the admin group via "dscl"
Log source
- product
- macos
- category
- process_creation
Detection
selection: # adds to admin group
Image|endswith: '/dscl'
CommandLine|contains|all:
- ' -append '
- ' /Groups/admin '
- ' GroupMembership '
condition: selectionFalse positives (as the rule lists them)
- Legitimate administration activities
Tags
- attack.persistence
- attack.initial-access
- attack.privilege-escalation
- attack.stealth
- attack.t1078.003
MITRE ATT&CK ids this rule names
Related rules
References
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1078.003/T1078.003.md#atomic-test-2---create-local-account-with-admin-privileges---macos
- https://ss64.com/osx/dscl.html
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_dscl_add_user_to_admin_group.yml
Sources and licences
SigmaHQ
"User Added To Admin Group Via Dscl" by Sohan G (D4rkCiph3r) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/macos/process_creation/proc_creation_macos_dscl_add_user_to_admin_group.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: User Added To Admin Group Via Dscl",
entity page, dataset version ref-9c22e91f8155, updated 2023-03-19T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b743623c-2776-40e0-87b1-682b975d0ca5 (accessed 2026-11-03).
Underlying source: SigmaHQ rule b743623c-2776-40e0-87b1-682b975d0ca5, 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.