DownTheDRAIN: How to Detect macOS ClickFix Infostealer

SOC Briefing Summary :: Executive Key Takeaways
- [01]Threat summary: Macfinger ClickFix campaign targets macOS workstations with newly identified DownTheDRAIN infostealer to hijack cryptocurrency wallets.
- [02]Root cause vector: Social engineering using fake verification CAPTCHAs that trick users into pasting base64 terminal commands executing an evasive Mach-O stealer.
- [03]Immediate action: Audit Terminal execution logs, block identified threat hashes in macOS Gatekeeper/XProtect, and restrict curl-to-bash execution.
Executive Summary
Threat researchers at the SANS Internet Storm Center (ISC) and Huntress have analyzed an ongoing social engineering campaign targeting Apple macOS workstations. Tracked as the Macfinger ClickFix campaign, the operation distributes a specialized Mach-O information stealer dubbed DownTheDRAIN. The malware is designed specifically to harvest browser credentials, system telemetry, and cryptocurrency wallet data from macOS environments.
Unlike traditional malware delivery models relying on weaponized email attachments or trojanized application installers, the Macfinger campaign weaponizes the rapidly spreading ClickFix social engineering technique. Compromised websites present users with deceptive, high-fidelity verification prompts (such as fake Cloudflare or Google CAPTCHA tests) that instruct the visitor to copy a verification string into their clipboard and paste it into their macOS Terminal. Once pasted, the command executes an obfuscated shell cradle that downloads and detonates the DownTheDRAIN stealer.
---
Technical Vulnerability Analysis & Attack Chain

1. ClickFix Deception Vector
The initial compromise begins when a victim browses to an adversary-compromised website. The browser displays an overlay claiming the user must complete a bot check before viewing the content:
- The dialog directs the user to press
Command + Space(opening Spotlight), typeTerminal, and hitEnter. - It then instructs the user to press
Command + V(pasting the clipboard content) followed byEnter. - The copied text contains a base64-encoded shell command that reaches out to an external server, downloads a stage-one shell script, and fetches the compiled Mach-O executable.
2. The DownTheDRAIN Stealer Architecture
Forensic disassembly of the Mach-O binary reveals modular data collection routines:
- System Profiling: Gathers hardware UUIDs, macOS operating system build numbers, logged-in user accounts, and local network configuration.
- Browser Credential Extraction: Inspects local profile directories for Safari, Google Chrome, Brave, and Edge, attempting to exfiltrate stored cookies and autofill databases.
- The DRAIN Routine: The most distinctive feature of the malware—which earned it the nickname DownTheDRAIN—is a dedicated cryptocurrency interception engine. The malware scans system memory, clipboard data, and application caches for public wallet address formats across Bitcoin, Ethereum, and Solana networks, replacing or redirecting outbound transactions to wallets controlled by the threat actor.
3. Built-In macOS Defenses
Telemetry from SANS ISC indicates that on up-to-date macOS installations (including macOS 26.7.3), background Gatekeeper and XProtect behavioral monitoring intercepted the dropped payload, preventing execution and moving the suspicious binary directly into the Trash before network exfiltration could occur. However, unpatched endpoints or users who manually bypass security dialogs remain acutely vulnerable.
---
MITRE ATT&CK Tactics, Techniques & Procedures (TTPs)
| Tactic | Technique ID | Technique Name | Operational Context |
|---|---|---|---|
| Initial Access | T1189 | Drive-by Compromise | Compromised websites serving fake CAPTCHA verification overlays. |
| Execution | T1204.002 | User Execution: Malicious File | Coercing user into pasting base64 commands into Terminal.app. |
| Defense Evasion | T1027 | Obfuscated Files or Information | Base64-encoded curl payload executed directly in memory/subshell. |
| Discovery | T1082 | System Information Discovery | Profiling macOS hardware UUIDs, release builds, and host architecture. |
| Credential Access | T1555.003 | Credentials from Web Browsers | Extracting cookies, session tokens, and autofill vaults from browser profiles. |
| Impact | T1565.001 | Stored Data Manipulation | Executing DRAIN routine to redirect cryptocurrency wallet transfers. |
---
Threat Actor Profile & Exploitation Telemetry
- Campaign Name: Macfinger ClickFix Campaign.
- Delivery Model: SEO poisoning, malicious advertising (malvertising), and compromised legitimate websites presenting fake verification challenges.
- Malware Artifact: DownTheDRAIN Mach-O 64-bit executable.
- Primary Target: macOS developers, cryptocurrency traders, and enterprise personnel utilizing Mac hardware for remote work.
---
Detection & SOC Mitigation Playbook
1. Enterprise Remediation & Hardening
- [ ] Enforce Terminal Command Restrictions: Train staff never to copy-paste unvetted strings from website prompts into Terminal prompts.
- [ ] Verify XProtect & Gatekeeper Updates: Confirm all macOS enterprise endpoints have active Gatekeeper and automated XProtect signature updates enabled via MDM.
- [ ] Audit Terminal Parent-Child Trees: Monitor EDR logs for
Terminal.apporzshlaunching suspicious child network processes (curl,wget,osascript) with external IP connections.
2. Sigma Detection Rule (macOS ClickFix Terminal Command Execution)
title: macOS Terminal ClickFix Base64 Curl Execution (DownTheDRAIN)
id: 9a812043-410a-4e2b-b801-4f9211d0a484
status: stable
description: Detects macOS Terminal.app or zsh processes executing base64 decoded shell commands or direct curl cradles characteristic of ClickFix lures
references:
- https://isc.sans.edu/diary/rss/33518
author: CyberNewsAI Threat Research Team
date: 2026-11-14
logsource:
category: process_creation
product: macos
detection:
selection_parent:
ParentImage|endswith:
- '/Terminal'
- '/iTerm'
- '/zsh'
- '/bash'
selection_commands:
CommandLine|contains:
- 'base64 -d'
- 'curl -s'
- 'curl -fsSL'
- '| bash'
- '| zsh'
- '/tmp/.'
condition: selection_parent and selection_commands
falsepositives:
- Legitimate developer environment setup scripts (e.g., Homebrew installation)
level: high
tags:
- attack.execution
- attack.t1204.002
- attack.initial_access
- attack.t11893. Microsoft Sentinel & Defender Hunting Query (KQL for macOS)
// Hunt for suspicious command execution spawned from Terminal on macOS
DeviceProcessEvents
| where OSPlatform == "macOS"
| where InitiatingProcessFileName in~ ("Terminal", "zsh", "bash", "iTerm2")
| where ProcessCommandLine has_any ("base64", "curl", "chmod +x", "DownTheDRAIN", "malware-traffic-analysis")
| where ProcessCommandLine has_any ("/tmp", "/private/tmp", "/dev/shm")
| project Timestamp, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, AccountName
| order by Timestamp desc---
| Indicator Type | Value | Context / Telemetry |
|---|---|---|
| SHA-256 Hash | 58e503cc2e6aacc6bdba54f40a7edebf7a5362bef0a9039769baaba8c472c4db | DownTheDRAIN Mach-O Sample 1 |
| SHA-256 Hash | 8b5026d841aa93758ec3cb55c276f84d3ec1cf459810e0d9aa5624e2776f2fcd | DownTheDRAIN Mach-O Sample 2 |
| SHA-256 Hash | c34cc30cb1cff5c47d77e62a3ba63e9a183989ec1ccdf7929beb1bcae0d41f23 | DownTheDRAIN Mach-O Sample 3 |
---
Related Topic Cluster Intelligence
- LummaStealer Resurgence via CastleLoader: Intel Brief: LummaStealer infostealer infections surge, delivered by the heavily obfuscated CastleLoader.
- FaceStealer: How to Detect DPRK $400M Fake Video Call Attacks: FBI exposes FaceStealer, a North Korean campaign stealing $400M via deepfake video calls and ClickFix lures.
- Fake GTA 6 Download: How to Detect WARDEN Crypto Stealer: Adversaries abuse Google Colab notebooks to distribute WARDEN stealer disguised as Grand Theft Auto VI PC installers.
58e503cc2e6aacc6bdba54f40a7edebf7a5362bef0a9039769baaba8c472c4db8b5026d841aa93758ec3cb55c276f84d3ec1cf459810e0d9aa5624e2776f2fcdc34cc30cb1cff5c47d77e62a3ba63e9a183989ec1ccdf7929beb1bcae0d41f23// VERIFIED_SOURCES_&_REFERENCES
Related Threat Intelligence
View Archive
ARTEX AI Agents: How to Detect & Counter Autonomous Attacks
FBI issues FLASH advisory warning that cybercriminals abuse ARTEX AI agents to achieve domain compromise in under 3 hours. Hunt rapid automated lateral moves.

AI Infostealer Market: How to Detect & Block Replay Attacks
Dark web shops deploy AI to parse infostealer logs into searchable corporate dossiers, targeting enterprise VPNs and AI tokens. Hunt token replay attacks.

Telegram Widgets: How to Detect & Block WebRAT Infiltration
Flaws in Telegram's newly launched widgets enable zero-click RCE to deliver WebRAT infostealer via PowerShell. Hunt Telegram child processes with KQL.