macOS: Process commands with trailing space in filename to evade matching

Alerts on macOS processes whose command line and image path end with a trailing space, a common filename masquerading trick.

FreeReviewedSigma · Low · v2
Product
macos
Category
process_creation
Author
remotephone (SigmaHQ), DRL 1.1
Published
2021-11-20
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags process creation events where either the full command line or the executed image path ends with a trailing space. Attackers can use trailing whitespace to masquerade as legitimate filenames while evading naive string matching and filters. The detection relies on process creation telemetry that includes the process Image path and the CommandLine text.

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.