macOS GUI Credential Prompt Capture via osascript

Flags osascript command lines that script system dialogs referencing authentication and password-related terms.

FreeReviewedSigma · Low · v2
Product
macos
Category
process_creation
Author
remotephone, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-13
Updated
2026-07-31

ATT&CK techniques

Cred Access → Collection
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Discovery

  9. Lateral Movement

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags process executions of osascript that use AppleScript dialog prompts (display dialog) and include keywords related to authentication and credentials. Attackers may use system dialogs to solicit or capture sensitive information from users. It relies on macOS process creation telemetry, specifically the executed image path ending with /osascript and the command-line arguments used.

Related detections2 linkedT1056.002 — drag to rearrange
Windows DLL image load: credui.dll loaded by an uncommon process
Windows Process Creation: Mouse Lock Execution with “Misc314” Indicator
macOS GUI Credential Prompt Capture via osascript
Pivot detection · T1056.002 · 2 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.