macOS Local System Account Enumeration via dscl, dscacheutil, and user listing commands

Detects macOS commands used to enumerate local system accounts via dscl, dscacheutil, id, lsof, who, and preference/query utilities.

FreeReviewedSigma · Low · v2
Product
macos
Category
process_creation
Author
Alejandro Ortuno, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-08
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies process executions on macOS used to enumerate local system accounts by matching common account discovery utilities and arguments. Such enumeration can help attackers gather valid usernames to support lateral movement or privilege escalation. It relies on process creation telemetry including the executed binary path and command-line arguments for utilities like dscl, dscacheutil, id, who/w, lsof, cat/awk/grep against passwd/sudoers, and related listing/defaults commands.

Related detections9 linkedT1087.001 — drag to rearrange
Windows PowerShell module commandlet names matching known exploitation and post-exploitation tooling
Windows Process Creation: Suspicious PowerShell Commandlets Used by Known Exploitation Tools
Windows PowerShell Recon Using Get-LocalGroupMember on Local/Well-Known Groups
Windows file creation for SharpHound/BloodHound collection output filenames
Windows: Process Execution of PsLogList with Event Log Dump/Export Flags
Linux Local Account Enumeration via lastlog, /etc/* file reads, id, and lsof -u
Windows Process Execution of Bloodhound/SharpHound Command-Line Collection Options
Windows Local Account Discovery via System Utilities Process Execution
Cisco AAA Command Output Collection: show running/startup-config and archive config
macOS Local System Account Enumeration via dscl, dscacheutil, and user listing commands
Pivot detection · T1087.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.