macOS dseditgroup Used to Add User to admin Group

Flags dseditgroup command lines that edit and add a user to the macOS admin group.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Sohan G (D4rkCiph3r) (SigmaHQ), DRL 1.1
Published
2023-08-22
Updated
2026-07-31

ATT&CK techniques

Initial Access → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Execution

  4. Cred Access

  5. Discovery

  6. Lateral Movement

  7. Collection

  8. C2

  9. Exfiltration

  10. Impact

What it detects

This rule identifies process executions of the dseditgroup utility on macOS where the command line indicates an edit operation adding a specified user to the admin group. Adding an account to the admin group grants elevated privileges, which can be used for persistence, privilege escalation, or stealthy access. The detection relies on process creation telemetry capturing the process image path and command-line arguments containing the relevant dseditgroup parameters.

Related detections5 linkedT1078.003 — drag to rearrange
Suspicious Hidden Account Creation via Winlogon SpecialAccounts UserList Registry
macOS Root Account Enable Attempt via dsenableroot
macOS sysadminctl Used to Add User to Admin Group
macOS dscl Adds User to Admin Group via -append /Groups/admin GroupMembership
Windows: Administrator Account Remote Logon via Negotiate (4624 LogonType 10)
macOS dseditgroup Used to Add User to admin Group
Pivot detection · T1078.003 · 5 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.