GUI Input Capture - macOS

 Original Source: [Sigma source]
Title: GUI Input Capture - macOS
Status: test
Description:Detects attempts to use system dialog prompts to capture user credentials
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1056.002/T1056.002.md
  -https://scriptingosx.com/2018/08/user-interaction-from-bash-scripts/
Author: remotephone, oscd.community
Date: 2020-10-13
modified:2025-12-05
Tags:
  • -'attack.collection'
  • -'attack.credential-access'
  • -'attack.t1056.002'
Logsource:
  • product: macos
  • category: process_creation
Detection:
  selection_img:
    Image|endswith: '/osascript'
  selection_cli_1:
    CommandLine|contains|all:
      -'-e'
      -'display'
      -'dialog'
      -'answer'

  selection_cli_2:
    CommandLine|contains:
      -'admin'
      -'administrator'
      -'authenticate'
      -'authentication'
      -'credentials'
      -'pass'
      -'password'
      -'unlock'

  condition:all of selection_*
Falsepositives:
  -Legitimate administration tools and activities
Level: low