macOS osascript Clipboard Access via AppleScript Commands

Alerts on osascript commands that reference the system clipboard, which may indicate collection or automation misuse on macOS.

FreeReviewedSigma · Medium · v2
Product
macos
Category
process_creation
Author
Sohan G (D4rkCiph3r) (SigmaHQ), DRL 1.1
Published
2023-01-31
Updated
2026-07-31

ATT&CK techniques

Execution → Collection
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags process executions of osascript on macOS that include AppleScript commands referencing the clipboard, indicating clipboard content access. Attackers can use this capability to collect data from the user’s clipboard or integrate clipboard handling into automation and tooling. It relies on process creation telemetry, matching the osascript binary path and required clipboard-related command-line strings, and excludes a known legitimate automation pattern from a specific parent process.

Related detections9 linkedT1059.002 — drag to rearrange
Malicious Data Exfiltration via curl with Stealer Specific BuildID Header
Suspicious osascript Password Prompt via AppleScript Display Dialog (via process_creation)
Malicious dllFake Stealer Execution from WindowsApps Directory (via process_creation)
Malicious Sapphire Sleet curl to osascript Chain With mac-cur User-Agent (via process_creation)
Suspicious osascript Spawning Shell Interpreter on macOS
Suspicious AMOS Stealer Fake Password Prompt via osascript (via process_creation)
Suspicious osascript Spawning Shell curl to External Host on macOS (via process_creation)
Malicious Fake Zoom AppleScript Execution via Osascript
Suspicious osascript Fake Password Prompt by ClickLock macOS Stealer (via process_creation)
macOS osascript Clipboard Access via AppleScript Commands
Pivot detection · T1059.002 · 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.