Skip to main content
ACTIVELY MONITORED//Verified: Nov 16, 2026
Threat IntelligenceMalware & Botnets
4 min read

DownTheDRAIN: How to Detect macOS ClickFix Infostealer

••By Rutvij Khatri•VERIFIED INTEL
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

Attack Chain Flow
// Attack Chain Flow

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), type Terminal, and hit Enter.
  • It then instructs the user to press Command + V (pasting the clipboard content) followed by Enter.
  • 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)

MITRE ATT&CK • OPERATIONAL TTP MAPPING
TacticTechnique IDTechnique NameOperational Context
Initial AccessT1189Drive-by CompromiseCompromised websites serving fake CAPTCHA verification overlays.
ExecutionT1204.002User Execution: Malicious FileCoercing user into pasting base64 commands into Terminal.app.
Defense EvasionT1027Obfuscated Files or InformationBase64-encoded curl payload executed directly in memory/subshell.
DiscoveryT1082System Information DiscoveryProfiling macOS hardware UUIDs, release builds, and host architecture.
Credential AccessT1555.003Credentials from Web BrowsersExtracting cookies, session tokens, and autofill vaults from browser profiles.
ImpactT1565.001Stored Data ManipulationExecuting 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.app or zsh launching suspicious child network processes (curl, wget, osascript) with external IP connections.

2. Sigma Detection Rule (macOS ClickFix Terminal Command Execution)

QUERY / DETECTION_RULE
SIGMA / YAML
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.t1189

3. Microsoft Sentinel & Defender Hunting Query (KQL for macOS)

QUERY / DETECTION_RULE
SENTINEL / KQL
// 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 TypeValueContext / Telemetry
SHA-256 Hash58e503cc2e6aacc6bdba54f40a7edebf7a5362bef0a9039769baaba8c472c4dbDownTheDRAIN Mach-O Sample 1
SHA-256 Hash8b5026d841aa93758ec3cb55c276f84d3ec1cf459810e0d9aa5624e2776f2fcdDownTheDRAIN Mach-O Sample 2
SHA-256 Hashc34cc30cb1cff5c47d77e62a3ba63e9a183989ec1ccdf7929beb1bcae0d41f23DownTheDRAIN Mach-O Sample 3

---

Related Topic Cluster Intelligence

Indicators of Compromise (IOCs)
3 Identified
HASH58e503cc2e6aacc6bdba54f40a7edebf7a5362bef0a9039769baaba8c472c4db
HASH8b5026d841aa93758ec3cb55c276f84d3ec1cf459810e0d9aa5624e2776f2fcd
HASHc34cc30cb1cff5c47d77e62a3ba63e9a183989ec1ccdf7929beb1bcae0d41f23

// VERIFIED_SOURCES_&_REFERENCES

SHARE INTEL:Reddit