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
Suspicious Clipboard Data Access via Get-Clipboard (BeaverTail OtterCookie)
Suspicious Osascript Requesting Administrator Privileges (via process_creation)
Possible Clipboard Data Capture via PowerShell (via process_creation)
Malicious Remote Script Piped to a Shell on macOS (via process_creation)
AppleScript do-shell-script Abuse via Osascript (via process_creation)
Suspicious AppleScript Payload Execution via osascript (macOS)
Suspicious AppleScript Execution Spawning a Shell via Osascript
Suspicious osascript Execution of Encoded AppleScript on macOS (via process_creation)
Suspicious Credential Prompt Phishing via osascript (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.