ClickFix Attack: How a macOS Infostealer Targets Crypto Theft
clickfixmacosinfostealercrypto theftsocial engineeringcybersecurityhuntressnetskope threat labsmitre att&ckapple gatekeeperaeza groupcryptocurrency

ClickFix Attack: How a macOS Infostealer Targets Crypto Theft

ClickFix: The Social Engineering Threat

The ClickFix attacks aren't some zero-day exploit silently compromising your system. They start with a classic social engineering play, often through a malicious email or a compromised website. You might land on a page that looks like a counterfeit CAPTCHA verification, ultimately leading to the deployment of a **macOS infostealer**. The common thread is a perceived issue that users are prompted to resolve.

The initial delivery, as Huntress researchers detailed, often involves a link to a page that tells you to run a command in Terminal. Netskope Threat Labs also reported a variant where users are prompted to paste a curl command, disguised as a "verification code," directly into macOS Spotlight search. This isn't a sophisticated technical bypass; it's a direct appeal to your willingness to follow instructions, especially when you're trying to get something done.

The Anatomy of a Terminal Command Gone Wrong: Deploying a macOS Infostealer

Once a user pastes the malicious command, the attack chain typically unfolds as follows:

Initial execution begins when the provided curl command, or similar, loads a malicious bash script. This script acts as the first-stage payload, a common technique for initial access, aligning with MITRE ATT&CK T1059.004 (Command and Scripting Interpreter: Unix Shell). This is the critical step that allows the **macOS infostealer** to gain a foothold.

Following initial execution, the bash script performs **system reconnaissance**, gathering details such as CPU, RAM, and the current user's account name. This environmental profiling, categorized under MITRE ATT&CK T1082 (System Information Discovery), helps tailor subsequent stages for the **macOS infostealer**.

After reconnaissance, the script retrieves a **Mach-O payload** – a Go-based **macOS infostealer** specifically compiled for the target Mac's processor architecture, indicating a targeted approach rather than a generic binary.

For **evasion and persistence**, the script creates a directory mimicking trustd (a legitimate macOS process) and copies the **macOS infostealer** as com.apple.verified, blending the malware with system files. Critically, it removes the com.apple.quarantine extended attribute, thereby bypassing Gatekeeper security alerts that would otherwise flag untrusted code (MITRE ATT&CK T1553.001, Gatekeeper Bypass).

The **macOS infostealer** then initiates **credential harvesting**, using the osascript utility to generate fake error prompts that coerce users into providing system credentials. This can lead to persistence and privilege escalation, aligning with MITRE ATT&CK T1003.001 (OS Credential Dumping: Keychain). It also scans storage for credential files, targeting specific names and extensions.

The primary objective is **data exfiltration**. The **macOS infostealer** targets cryptocurrency assets, browser-stored passwords and cached credentials (from multiple web browsers and over 200 browser extensions, including extensive data from a dozen Chromium-based browsers, Mozilla Firefox, and Waterfox), Apple Keychain data, and information from 16 standalone crypto wallet applications. These actions align with MITRE ATT&CK T1560.001 (Archive Collected Data: Archive via Utility) and T1041 (Exfiltration Over C2 Channel).

macOS Terminal window showing a malicious curl command deploying a macOS infostealer

The crypto drain: A calculated theft

The cryptocurrency draining functionality is particularly insidious. It doesn't just steal your keys; the **macOS infostealer** actively intercepts and modifies transactions before they are signed. This means an attacker can divert funds, not just by emptying your wallet, but by taking a percentage of every transaction you make. Imagine sending Bitcoin to a friend, and 1% of it silently goes to the attacker. This method of theft is designed to be subtle, siphoning small amounts over time rather than a single, noticeable wallet drain. The **macOS infostealer** even has functions to calculate that 1% value for various cryptocurrencies like Bitcoin, Litecoin, Dogecoin, Monero, Ethereum, and Ripple's XRP.

The command and control (C2) infrastructure for these attacks often uses shared IP addresses associated with bulletproof hosting providers, such as those operated by Aeza Group. This Russian corporation has been sanctioned by the US and UK for providing services to ransomware groups, indicating that this isn't some amateur operation; it's backed by infrastructure known to support serious cybercrime, showing a clear intent for long-term operation.

Mac Security Posture: Assessing the ClickFix Vector

The practical impact is direct: an attacker gaining this access can drain cryptocurrency holdings, steal online identities, and gain control over critical digital accounts. Security analysts note that these attacks challenge the perception of Macs as inherently secure, potentially eroding user trust. The presence of a sophisticated **macOS infostealer** underscores this challenge.

Apple has implemented mitigations. Recent macOS versions, such as Sequoia, include Terminal paste warnings, requiring user confirmation before executing pasted commands. This is a positive step. However, attack vectors continue to evolve, incorporating broader data harvesting. The underlying challenge extends beyond technical vulnerabilities; it involves human factors.

The "ClickFix" campaign exploits several cognitive and technical gaps. A common vulnerability is the user's belief in Mac's inherent security, which attackers exploit by creating urgent situations that bypass careful consideration. Furthermore, users are conditioned to trust system prompts or instructions from seemingly legitimate sources. A lack of technical literacy regarding command-line operations, such as the implications of a curl command, also contributes to successful exploitation by a **macOS infostealer**.

Hand hovering over a laptop keyboard, showing a deceptive error message used in ClickFix attacks

Building a better defense: Beyond the code

Addressing this threat requires more than software patches; it demands a shift in user habits to counter the effectiveness of a **macOS infostealer**.

A fundamental defense begins with a critical evaluation of all unsolicited requests to execute commands in Terminal. Before pasting any string, users must understand its function and potential impact. Blind execution, even from seemingly benign sources, is a direct vector for compromise. Beyond this, source verification is critical. Always double-check URLs and hover over links to inspect their true destination. For sensitive operations like crypto wallet access or system updates, navigate directly to the official website rather than clicking embedded email links.

Furthermore, it is crucial to view macOS Terminal paste warnings as a vital security feature, not merely an inconvenience. These prompts exist to prevent inadvertent execution of malicious code and should be treated as a serious security alert.

For account security, implementing Multi-Factor Authentication (MFA) across all critical accounts – email, crypto exchanges, social media, and banking – adds a crucial layer of defense. Even if credentials are compromised, MFA can block unauthorized access. For substantial cryptocurrency holdings, a hardware wallet is an essential security measure. These devices keep private keys offline, significantly increasing the difficulty of theft. Crucially, never enter a seed phrase into any application other than the hardware wallet's officially verified interface.

Finally, regular, verified backups are an essential recovery strategy. In the event of a compromise, a clean backup allows for system restoration without data loss. Additionally, maintaining an updated macOS version ensures access to Apple's latest security patches and features, including enhanced Terminal paste warnings. While not a complete solution, it closes known vulnerability windows.

The ClickFix attacks highlight a persistent trend: the increasing sophistication of social engineering tactics targeting human psychology. While technical mitigations are necessary, the most effective defense begins with a disciplined approach to command execution and source verification. The belief that Macs are inherently secure can itself be a vulnerability; they merely present a different attack surface for a **macOS infostealer**.

Daniel Marsh
Daniel Marsh
Former SOC analyst turned security writer. Methodical and evidence-driven, breaks down breaches and vulnerabilities with clarity, not drama.