User Added To Admin Group Via DseditGroup

Detects attempts to create and/or add an account to the admin group, thus granting admin privileges.

Sigma rule (View on GitHub)

 1title: User Added To Admin Group Via DseditGroup
 2id: 5d0fdb62-f225-42fb-8402-3dfe64da468a
 3status: test
 4description: Detects attempts to create and/or add an account to the admin group, thus granting admin privileges.
 5references:
 6    - https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1078.003/T1078.003.md#atomic-test-5---add-a-newexisting-user-to-the-admin-group-using-dseditgroup-utility---macos
 7    - https://ss64.com/osx/dseditgroup.html
 8author: Sohan G (D4rkCiph3r)
 9date: 2023-08-22
10tags:
11    - attack.persistence
12    - attack.defense-evasion
13    - attack.initial-access
14    - attack.privilege-escalation
15    - attack.t1078.003
16logsource:
17    category: process_creation
18    product: macos
19detection:
20    selection:
21        Image|endswith: '/dseditgroup'
22        CommandLine|contains|all:
23            - ' -o edit ' # edit operation
24            - ' -a ' # username
25            - ' -t user'
26            - 'admin' # Group name
27    condition: selection
28falsepositives:
29    - Legitimate administration activities
30level: medium

References

Related rules

to-top