User Added To Admin Group Via Sysadminctl

Detects attempts to create and add an account to the admin group via "sysadminctl"

Sigma rule (View on GitHub)

 1title: User Added To Admin Group Via Sysadminctl
 2id: 652c098d-dc11-4ba6-8566-c20e89042f2b
 3related:
 4    - id: 0c1ffcf9-efa9-436e-ab68-23a9496ebf5b
 5      type: obsolete
 6status: test
 7description: Detects attempts to create and add an account to the admin group via "sysadminctl"
 8references:
 9    - 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
10    - https://ss64.com/osx/sysadminctl.html
11author: Sohan G (D4rkCiph3r)
12date: 2023-03-19
13tags:
14    - attack.persistence
15    - attack.defense-evasion
16    - attack.initial-access
17    - attack.privilege-escalation
18    - attack.t1078.003
19logsource:
20    category: process_creation
21    product: macos
22detection:
23    selection:
24        # Creates and adds new user to admin group
25        Image|endswith: '/sysadminctl'
26        CommandLine|contains|all:
27            - ' -addUser '
28            - ' -admin '
29    condition: selection
30falsepositives:
31    - Legitimate administration activities
32level: medium

References

Related rules

to-top