Sigma / rule
T1204.004 Malicious Copy and Paste: ClickFix macOS Terminal Execution
Shell spawned by Terminal.app (or another macOS terminal emulator) running a pipe-to-shell or base64-decode-to-shell one-liner, which is the macOS branch of a ClickFix lure. The counterfeit reCAPTCHA instructs the victim to open Terminal from Applications -> Utilities, press Command+V against a clipboard the page has already poisoned, and press Enter. Observed 2026-08-11 as the macOS half of an EtherHiding campaign that branched on navigator.userAgent and served a separate on-chain payload to Macintosh visitors. The macOS variant of that campaign also randomized its injected CSS class names where the Windows variant used static ones, which suggests it is the more actively maintained build and argues for treating macOS coverage as equal priority rather than as a follow-up. Detection anchors on the terminal-emulator parent plus remote-fetch-into-interpreter argument shape; a bare curl or bash under Terminal is normal developer behavior and is deliberately not matched on its own.
- Download
t1204-004-clickfix-macos-terminal-execution.yml- Log source
category: process_creation · product: macos- You need
- macOS process execution with arguments: Endpoint Security events from an EDR, or osquery es_process_events.
- Won’t catch
- A lure that has the victim paste into Spotlight, Script Editor or a terminal not on the list, and a command with no curl, wget, base64, eval, pipe-to-shell or osascript in it.
- Level
high- Status
experimental- ATT&CK
- T1204.004
- Groups using it
- Pear
- Written
2026-08-11- Rule ID
67bdcacb-65fe-5de6-a9a5-60d30ddeda59
Rule
title: 'T1204.004 Malicious Copy and Paste: ClickFix macOS Terminal Execution'
id: '67bdcacb-65fe-5de6-a9a5-60d30ddeda59'
status: 'experimental'
description: 'Shell spawned by Terminal.app (or another macOS terminal emulator) running a pipe-to-shell or base64-decode-to-shell one-liner, which is the macOS branch of a ClickFix lure. The counterfeit reCAPTCHA instructs the victim to open Terminal from Applications -> Utilities, press Command+V against a clipboard the page has already poisoned, and press Enter. Observed 2026-08-11 as the macOS half of an EtherHiding campaign that branched on navigator.userAgent and served a separate on-chain payload to Macintosh visitors. The macOS variant of that campaign also randomized its injected CSS class names where the Windows variant used static ones, which suggests it is the more actively maintained build and argues for treating macOS coverage as equal priority rather than as a follow-up. Detection anchors on the terminal-emulator parent plus remote-fetch-into-interpreter argument shape; a bare curl or bash under Terminal is normal developer behavior and is deliberately not matched on its own.'
references:
- 'https://thrunt.me/sigma/t1204-004-clickfix-macos-terminal-execution.yml'
- 'https://attack.mitre.org/techniques/T1204/004/'
author: 'Applied Cybernetics Group (via thrunt.me)'
date: '2026-08-11'
modified: '2026-08-11'
tags:
- 'attack.execution'
- 'attack.t1204.004'
- 'tlp.clear'
logsource:
category: 'process_creation'
product: 'macos'
detection:
selection_terminal_parent:
ParentImage|endswith:
- '/Terminal'
- '/iTerm2'
- '/kitty'
- '/alacritty'
- '/WezTerm'
selection_interpreter:
Image|endswith:
- '/bash'
- '/sh'
- '/zsh'
- '/osascript'
- '/python3'
selection_remote_exec:
CommandLine|contains:
- 'curl -'
- 'wget '
- 'base64 -d'
- 'base64 --decode'
- 'eval "$('
- '| sh'
- '| bash'
- '| zsh'
- 'osascript -e'
condition: 'selection_terminal_parent and selection_interpreter and selection_remote_exec'
falsepositives:
- 'Developers installing tooling via documented curl-pipe-shell instructions (Homebrew, rustup, nvm and similar). This is the dominant false positive on engineering endpoints: baseline the common installer URLs and allowlist them by command text rather than dropping the remote-exec selection.'
- 'Provisioning and dotfile bootstrap scripts run interactively on first login.'
- 'Security tooling and CI runners that shell out under a terminal emulator.'
level: 'high'
False positives
- Developers installing tooling via documented curl-pipe-shell instructions (Homebrew, rustup, nvm and similar). This is the dominant false positive on engineering endpoints: baseline the common installer URLs and allowlist them by command text rather than dropping the remote-exec selection.
- Provisioning and dotfile bootstrap scripts run interactively on first login.
- Security tooling and CI runners that shell out under a terminal emulator.
References
- https://thrunt.me/sigma/t1204-004-clickfix-macos-terminal-execution.yml
- https://attack.mitre.org/techniques/T1204/004/
Is the technique in use?
Yes, as of 2026-12-03.
| Technique | KEV CVEs | Reports, 90 days | Malware families, 30 days |
|---|---|---|---|
| T1204.004 Malicious Copy and Paste | 0 | 2 | - |