{"id":"b743623c-2776-40e0-87b1-682b975d0ca5","title":"User Added To Admin Group Via Dscl","description":"Detects attempts to create and add an account to the admin group via \"dscl\"","author":"Sohan G (D4rkCiph3r)","status":"test","level":"medium","date":"2023-03-19","modified":"","tags":["attack.persistence","attack.initial-access","attack.privilege-escalation","attack.stealth","attack.t1078.003"],"technique_ids":["T1078.003"],"logsource":{"category":"process_creation","product":"macos"},"falsepositives":["Legitimate administration activities"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1078.003/T1078.003.md#atomic-test-2---create-local-account-with-admin-privileges---macos","https://ss64.com/osx/dscl.html"],"source_path":"rules/macos/process_creation/proc_creation_macos_dscl_add_user_to_admin_group.yml","source_sha256":"31da086cefdd4f92f6a75a7d1294d898b5d8de56e20bd1e7552f881b16bc4afe","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/macos/process_creation/proc_creation_macos_dscl_add_user_to_admin_group.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: User Added To Admin Group Via Dscl\nid: b743623c-2776-40e0-87b1-682b975d0ca5\nrelated:\n    - id: 0c1ffcf9-efa9-436e-ab68-23a9496ebf5b\n      type: obsolete\nstatus: test\ndescription: Detects attempts to create and add an account to the admin group via \"dscl\"\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1078.003/T1078.003.md#atomic-test-2---create-local-account-with-admin-privileges---macos\n    - https://ss64.com/osx/dscl.html\nauthor: Sohan G (D4rkCiph3r)\ndate: 2023-03-19\ntags:\n    - attack.persistence\n    - attack.initial-access\n    - attack.privilege-escalation\n    - attack.stealth\n    - attack.t1078.003\nlogsource:\n    category: process_creation\n    product: macos\ndetection:\n    selection: # adds to admin group\n        Image|endswith: '/dscl'\n        CommandLine|contains|all:\n            - ' -append '\n            - ' /Groups/admin '\n            - ' GroupMembership '\n    condition: selection\nfalsepositives:\n    - Legitimate administration activities\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1078.003","id":"T1078.003","name":"Local Accounts","page":"techniques/enterprise/T1078.003/"}],"data_path":"data/detection-rules/b743623c-2776-40e0-87b1-682b975d0ca5.json","kind":"sigma"}
