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.initial-access
12 - attack.privilege-escalation
13 - attack.t1078.003
14logsource:
15 category: process_creation
16 product: macos
17detection:
18 selection:
19 Image|endswith: '/dseditgroup'
20 CommandLine|contains|all:
21 - ' -o edit ' # edit operation
22 - ' -a ' # username
23 - ' -t user'
24 - 'admin' # Group name
25 condition: selection
26falsepositives:
27 - Legitimate administration activities
28level: medium
References
Related rules
- User Added To Admin Group Via Dscl
- User Added To Admin Group Via Sysadminctl
- AWS Suspicious SAML Activity
- Account Tampering - Suspicious Failed Logon Reasons
- Activity From Anonymous IP Address