macOS: Guest account enabled via sysadminctl

Flags sysadminctl command lines that appear to activate the macOS guest account.

FreeReviewedSigma · Low · v2
Product
macos
Category
process_creation
Author
Sohan G (D4rkCiph3r) (SigmaHQ), DRL 1.1
Published
2023-02-18
Updated
2026-07-31
title: "macOS: Guest account enabled via sysadminctl"
id: 0a31c67c-dee8-4db5-8415-5b0f7dd6b841
status: test
description: This rule flags process executions of the sysadminctl utility where the command line includes parameters to enable the guest account. Attackers may use the built-in guest account to establish an easy persistence or initial foothold without creating a new user. The detection relies on process creation telemetry, matching the sysadminctl executable path and specific command-line substrings associated with guest account activation.
references:
  - https://ss64.com/osx/sysadminctl.html
  - https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_sysadminctl_enable_guest_account.yml
author: Sohan G (D4rkCiph3r), Huntrule Team
date: 2023-02-18
tags:
  - attack.privilege-escalation
  - attack.persistence
  - attack.initial-access
  - attack.stealth
  - attack.t1078
  - attack.t1078.001
logsource:
  category: process_creation
  product: macos
detection:
  selection:
    Image|endswith: /sysadminctl
    CommandLine|contains|all:
      - " -guestAccount"
      - " on"
  condition: selection
falsepositives:
  - Unknown
level: low
license: DRL-1.1
related:
  - id: d7329412-13bd-44ba-a072-3387f804a106
    type: derived