Suspicious User Home Directory Modification via dscl Process Creation

PremiumReviewedSigma · Medium · v1
Product
macos
Category
process_creation
Author
HuntRule
Published
2026-08-07
Updated
2026-08-28

ATT&CK techniques

Priv Esc → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects use of dscl to change a user account home directory, the core step of the macOS HM Surf technique that relocates the home path to tamper with Safari privacy preference files and bypass TCC protections. Modifying NFSHomeDirectory lets an attacker point sensitive Safari config to a controlled location and grant itself camera, microphone or location access.

Related detections9 linkedT1548 — drag to rearrange
Possible GTFOBins Shell Breakout via apt Command
Malicious Update Orchestrator Service Reconfiguration for Privilege Escalation
Malicious macOS Credential Verification via dscl authonly
Malicious setcap Assigning cap_sys_admin for GameOverlay Privilege Escalation (via process_creation)
Suspicious AWS GetFederationToken Console Access by JavaGhost (via cloudtrail)
Linux: Detect changes to fs.suid_dumpable enabling core dumps for SUID processes
Linux setcap sets cap_setgid on binaries (Setgid capability assignment)
Linux setcap sets cap_setuid on a binary via setcap utility
GCP Audit: Break-glass Keyword on Kubernetes Pod Create Overrides Binary Authorization
Suspicious User Home Directory Modification via dscl Process Creation
Pivot detection · T1548 · 9 related

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