Cybercriminals Use Fake OpenAI Codex Ads to Deploy Mac Malware That Steals Passwords

3 Sources

Share

Attackers are targeting Mac developers through sponsored Google search results that lead to fake OpenAI Codex download pages. The campaign uses ClickFix techniques to trick users into running Terminal commands that install Atomic macOS Stealer, an infostealer capable of grabbing passwords, browser data, and cryptocurrency wallet information within seconds.

Fake OpenAI Codex Download Pages Target Mac Developers

Cybercriminals have launched a sophisticated campaign targeting Mac developers by creating fake OpenAI Codex download pages that distribute Mac malware through sponsored Google search results. Researchers at Cato Networks uncovered the operation after detecting malicious ads appearing above legitimate search results for queries like "codex macos download."

1

The attackers use Google Sites to host convincing replicas of the OpenAI Codex download portal, complete with authentic branding and both macOS and Linux download buttons, though only the Mac payload actually functions.

2

How the ClickFix Attack Chain Works

The campaign employs a ClickFix technique where victims are instructed to open Terminal and paste what appears to be a legitimate installation command. Instead of downloading an actual installer, the fake Codex installer page provides Terminal commands that look like standard npm instructions for installing AI coding tools.

3

Hidden within these commands is code that decodes a Base64-encoded URL, fetches an attacker-controlled shell script, and pipes it into zsh. This approach convinces victims to execute malicious commands themselves rather than relying on suspicious attachments or executables that might trigger security warnings.

Source: SiliconANGLE

Source: SiliconANGLE

The multi-stage infection begins with a shell-script loader padded with dead code and unused variables. The script sends telemetry to an attacker endpoint with "event=pasted" to confirm someone has executed the command. It then downloads the final payload to "/tmp/helper," removes security metadata using xattr -c to bypass macOS warnings, and launches the malware.

1

The final binaries are universal Mach-O files capable of running natively on both Intel-powered Macs and Apple Silicon machines.

Links to Atomic macOS Stealer Discovered

Cato Networks identified substantial similarities between this campaign and Atomic macOS Stealer, commonly known as AMOS, an infostealer previously distributed through fake software downloads and malicious Google ad campaigns. The researchers found overlaps in loader URL structure, telemetry requests, staging paths, extended attribute removal, and payload URLs.

3

While Cato stopped short of definitively labeling the malware as AMOS, the fingerprints strongly point in that direction. This malware that can steal passwords operates as an infostealer capable of grabbing browser data, login credentials, cryptocurrency wallet information, and more within seconds of infection.

2

Sophisticated Evasion Tactics Deployed

The attackers have implemented multiple layers of deception to avoid detection and analysis. Although victims initially land on Google Sites, the malicious content loads through an iframe from attacker-controlled infrastructure, allowing operators to refresh the ClickFix content without modifying the visible Google Sites page.

3

This infrastructure performs checks on the visitor's operating system and access path, displaying harmless content when visitors don't match the target profile. Researchers mapped three infrastructure sets, with one hiding its lure by serving benign content at obvious paths like "/codex/" while the actual attack sits at "/codexx/."

3

Source: TechRadar

Source: TechRadar

The loader itself has evolved between infrastructure sets. Early samples compressed and Base64-encoded the second stage, while newer versions use AES encryption with gzip containers and rebuild decryption keys from scattered variables throughout the script.

3

Attackers deliberately use both Google Sites and Google Ads to appear legitimate and trustworthy, with some threat actors stealing legitimate accounts with good standing to bypass automated security scans.

2

Campaign Extends Beyond OpenAI Codex

During their investigation, Cato Networks discovered the attackers aren't limiting their efforts to fake OpenAI Codex downloads. The researchers found a similar ClickFix page masquerading as Anthropic's Claude Code that shares infrastructure with the Codex campaign.

1

This expansion suggests cybercriminals are systematically targeting developers searching for popular AI coding tools. Microsoft documented a related macOS ClickFix operation on August 5 that had shifted from openly served lures to browser-fingerprinting gates showing malicious content only to likely targets.

3

What This Means for Mac Security

This campaign represents a troubling evolution in Mac-targeted attacks, exploiting the trust developers place in search engines and official-looking download pages. The use of Terminal commands as the infection vector is particularly concerning because it bypasses traditional security measures and relies on social engineering rather than technical exploits. Developers must scrutinize search results carefully, even sponsored ones appearing at the top of Google searches. Verify download URLs directly through official channels rather than clicking ads. Be suspicious of installation processes requiring manual Terminal commands, especially those involving Base64 encoding or remote script execution. Watch for similar campaigns targeting other popular AI coding tools as attackers continue rotating domains and payload locations.

3

Today's Top Stories

© 2026 TheOutpost.AI All rights reserved