
Summary
Detects macOS local account creation via sysadminctl. The rule fires on a start event where the process is sysadminctl, the arguments include -addUser, indicating a new local user creation. If -admin is supplied, the account is added to the admin group, representing privilege escalation; without -admin, it indicates potential persistence. A negative condition filters out activity originating from known device management agents to reduce false positives. Mapping to MITRE ATT&CK, this aligns with T1136 (Create Account) and T1098 (Account Manipulation), including T1098.007 (Additional Local or Domain Groups) when admin privileges are granted. The detection uses EQL against endpoint process events (macOS) and is intended for Elastic Defend deployments on macOS endpoints. Remediation guidance advocates disabling/removing unauthorized accounts, terminating related processes, and auditing related persistence artifacts. The rule is tagged for endpoint persistence and privilege escalation contexts and is part of a broader macOS EDR detection strategy.
Note: The accompanying investigation guidance and integration setup provide steps for validating legitimate management workflows and configuring Elastic Defend on macOS, including exclusion of known management tools to minimize false positives and ensure rapid containment when unauthorized account creation is detected.
Categories
- Endpoint
- macOS
Data Sources
- Process
ATT&CK Techniques
- T1136
- T1136.001
- T1098
- T1098.007
Created: 2026-11-16