macOS Office Apps Spawning Shell or Scripting Processes

Alerts when Microsoft Office on macOS launches suspicious shell/script or download utilities as child processes.

FreeReviewedSigma · High · v2
Product
macos
Category
process_creation
Author
Sohan G (D4rkCiph3r) (SigmaHQ), DRL 1.1
Published
2023-01-31
Updated
2026-07-31
title: macOS Office Apps Spawning Shell or Scripting Processes
id: d75ca91d-084c-480f-b739-dba4eebdc928
status: test
description: This rule flags macOS process executions where a Microsoft Office application (Word, Excel, PowerPoint, or OneNote) spawns a child process whose executable name ends with common command-line or scripting interpreters/tools (e.g., bash, sh, zsh, python, curl, wget, osascript, osacompile). Such behavior is suspicious because Office-driven execution is often used to run external commands after user interaction, including macro or script activity. The detection relies on process creation telemetry that includes parent process image names and the child process executable path.
references:
  - https://redcanary.com/blog/applescript/
  - https://objective-see.org/blog/blog_0x4B.html
  - https://github.com/SigmaHQ/sigma/blob/master/rules/macos/process_creation/proc_creation_macos_office_susp_child_processes.yml
author: Sohan G (D4rkCiph3r), Huntrule Team
date: 2023-01-31
modified: 2023-02-04
tags:
  - attack.execution
  - attack.persistence
  - attack.t1059.002
  - attack.t1137.002
  - attack.t1204.002
logsource:
  product: macos
  category: process_creation
detection:
  selection:
    ParentImage|contains:
      - Microsoft Word
      - Microsoft Excel
      - Microsoft PowerPoint
      - Microsoft OneNote
    Image|endswith:
      - /bash
      - /curl
      - /dash
      - /fish
      - /osacompile
      - /osascript
      - /sh
      - /zsh
      - /python
      - /python3
      - /wget
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1
related:
  - id: 69483748-1525-4a6c-95ca-90dc8d431b68
    type: derived