Root Account Enable Via Dsenableroot

 Original Source: [Sigma source]
Title: Root Account Enable Via Dsenableroot
Status: test
Description:Detects attempts to enable the root account via "dsenableroot"
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/b27a3cb25025161d49ac861cb216db68c46a3537/atomics/T1078.003/T1078.003.md
  -https://github.com/elastic/detection-rules/blob/4312d8c9583be524578a14fe6295c3370b9a9307/rules/macos/persistence_enable_root_account.toml
  -https://ss64.com/osx/dsenableroot.html
Author: Sohan G (D4rkCiph3r)
Date: 2023-08-22
modified:None
Tags:
  • -'attack.privilege-escalation'
  • -'attack.stealth'
  • -'attack.t1078'
  • -'attack.t1078.001'
  • -'attack.t1078.003'
  • -'attack.initial-access'
  • -'attack.persistence'
Logsource:
  • category: process_creation
  • product: macos
Detection:
  selection:
    Image|endswith: '/dsenableroot'
  filter_main_disable:
    CommandLine|contains: ' -d '
  condition:selection and not 1 of filter_main_*
Falsepositives:
  -Unknown
Level: medium