Suspicious MacOS Scripting Interpreter AppleScript (via process_creation)
This rule detects execution of AppleScript of the macOS scripting language AppleScript.
SigmamediummacOSv1
sigma
suspicious-macos-scripting-interpreter-applescript-via-process-creation
title: Suspicious MacOS Scripting Interpreter AppleScript (via process_creation)
id: 2c434abf-3169-51f8-9627-a7f391017083
status: stable
description: This rule detects execution of AppleScript of the macOS scripting language AppleScript.
references:
- https://attack.mitre.org/techniques/T1059/002/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1059.002/T1059.002.md
- https://redcanary.com/blog/applescript/
author: Huntrule Team
date: 2026-02-02
tags:
- attack.execution
- attack.t1059.002
logsource:
category: process_creation
product: macos
detection:
selection:
Image|endswith: '/osascript'
CommandLine|contains:
- ' -e '
- '.scpt'
- '.js'
filter_optional_opencode:
ParentImage|endswith: 'opencode'
CommandLine|contains|all:
- 'osascript'
- ' -e '
- 'set imageData to the clipboard'
- 'set fileRef'
condition: selection and not 1 of filter_optional_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.