Sigma rule: User Added To Admin Group - MacOS
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-89ede8ef0395, updated 2023-08-22T00:00:00.000Z.
SigmaHQ marks this rule as deprecated.
Rule
- Title
- User Added To Admin Group - MacOS
- Status
- deprecated
- Level
- medium
- Author
- Sohan G (D4rkCiph3r)
- Date
- 2023/03/19
- Modified
- 2023/08/22
- File
- deprecated/macos/proc_creation_macos_add_to_admin_group.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects attempts to create and/or add an account to the admin group, thus granting admin privileges.
Log source
- product
- macos
- category
- process_creation
Detection
selection_sysadminctl: #creates and adds new user to admin group
Image|endswith: '/sysadminctl'
CommandLine|contains|all:
- ' -addUser '
- ' -admin '
selection_dscl: #adds to admin group
Image|endswith: '/dscl'
CommandLine|contains|all:
- ' -append '
- ' /Groups/admin '
- ' GroupMembership '
condition: 1 of selection_*False positives (as the rule lists them)
- Legitimate administration activities
Tags
- attack.t1078.003
- attack.initial_access
- attack.privilege_escalation
MITRE ATT&CK ids this rule names
References
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1078.003/T1078.003.md#atomic-test-3---create-local-account-with-admin-privileges-using-sysadminctl-utility---macos
- https://ss64.com/osx/dscl.html
- https://ss64.com/osx/sysadminctl.html
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/deprecated/macos/proc_creation_macos_add_to_admin_group.yml
Sources and licences
SigmaHQ
"User Added To Admin Group - MacOS" by Sohan G (D4rkCiph3r) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/deprecated/macos/proc_creation_macos_add_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 - MacOS",
entity page, dataset version ref-89ede8ef0395, updated 2023-08-22T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/0c1ffcf9-efa9-436e-ab68-23a9496ebf5b (accessed 2026-11-03).
Underlying source: SigmaHQ rule 0c1ffcf9-efa9-436e-ab68-23a9496ebf5b, 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.