heroui logo

macOS Guest Account or Guest Access Enabled

Elastic Detection Rules

View Source
Summary
This rule detects attempts to enable the macOS built-in Guest account or unauthenticated guest access to SMB/AFP shares by invoking sysadminctl with -guestAccount on, -smbGuestAccess on, or -afpGuestAccess on, or by writing GuestEnabled/AllowGuestAccess via defaults. The Guest account has no password, and guest file sharing permits unauthenticated network access to shared folders, which attackers may exploit to maintain access or to stage/collect data without credentials. The Elastic EQL query triggers on process start events for sysadminctl or defaults commands with the relevant arguments, while excluding activity from common device management agents to reduce false positives. The rule maps to MITRE ATT&CK techniques including Default Accounts (T1078.001) under Persistence, Defense Evasion, and Privilege Escalation. Investigation guidance covers determining which setting changed, who ran it (and whether sudo was used), and whether the change was sanctioned, as well as checking for related account or share changes, and follow-on activity. Remediation focuses on disabling guest access, auditing and reverting changes, reviewing shared resources, and enforcing settings via configuration profiles or MDM to prevent unauthorized re-enablement. In case of unauthorized activity, isolate the host and escalate to IR for broader containment and remediation steps, including cross-host checks.
Categories
  • Endpoint
  • macOS
Data Sources
  • Process
ATT&CK Techniques
  • T1078
  • T1078.001
Created: 2026-11-16