Fake “OpenAI Codex” Ads Push Mac ClickFix Malware

The Register Security · Medium sophistication
Last updated August 25, 2026

Attackers are buying sponsored Google search ads that send Mac developers to fake OpenAI Codex download pages. The pages instruct victims to paste a Terminal command that looks like a normal install step, but actually downloads and runs a multi-stage malware payload.

Key findings

  • Sponsored Google search ads lead to a convincing fake OpenAI Codex download page hosted on Google Sites.
  • Victims are instructed to open Terminal and run a pasted command as part of a supposed install process (ClickFix-style).
  • The command decodes a Base64 URL, fetches an attacker shell script, and pipes it into zsh, leading to a multi-stage infection.
  • Later stages download a Mach-O payload to "/tmp/helper" and attempt to remove macOS security metadata used to flag suspicious downloads.
  • The campaign appears similar to Atomic macOS Stealer (AMOS) distribution patterns, though Cato did not fully attribute it.

Who’s being targeted

  • Commonly targeted roles: Developers, Engineering, DevOps, IT.
  • Affected industries: Software development, Technology, Professional services.
  • Attack channels: website.
  • Impersonated: OpenAI Codex download page (OpenAI branding) hosted via Google Sites, Legitimate npm-based Codex installer instructions.

Awareness takeaways

  • Treat sponsored search results for downloads as untrusted and navigate to the vendor’s official site directly.
  • Be suspicious of any ‘installation’ process that asks you to paste and run Terminal commands from a website.
  • Watch for obfuscation and risky command patterns (Base64 decoding, curl/wget, piping into a shell) as strong indicators of malicious intent.
  • Assume lookalike branding and reputable hosting platforms can still be used to deliver attacks; verify the exact domain and source.

Red flags to watch for

  • Sponsored search ad redirects to a non-official hosting location (Google Sites) for a software download
  • Site asks user to run a pasted Terminal command instead of providing a normal installer
  • Command includes obfuscated content (e.g., Base64 decoding) and pipes to a shell
  • Install command has extra appended code beyond a typical npm install
  • Uses Base64 decoding and fetches a remote script
  • Pipes downloaded content directly into zsh
Try Mirage

Mirage safely runs attacks like this one against your own team, so you find out what happens before a real adversary does.

Get a demo
Read the video transcript

You Google “OpenAI Codex download for macOS” and click the top result, looks legit, OpenAI logo and all. But that click lands you on a Google Sites page impersonating the Codex download. Instead of a normal installer, it says: “Install Codex for macOS: open Terminal and paste the following command to complete installation.” The command looks like a normal npm install, but tacked on is obfuscated Base64, curl, and a pipe into zsh, quietly pulling a Mach-O payload into /tmp/helper and stripping macOS security flags. One paste, multi-stage infection. If any website tells you to paste a long install command into Terminal, stop. Instead, go directly to openai.com yourself and only follow install steps from there.

Similar attacks

Fake Codex Ad Tricks Mac Users to Paste Malware

Fake Codex Ad Tricks Mac Users to Paste Malware

Attackers used a sponsored search ad to send macOS users to a fake “OpenAI Codex download” page hosted on Google Sites. The page convinced victims to open Terminal and paste a command that secretly downloaded and ran a multi-stage malware infection.

August 25, 2026
Fake GitHub Lure Tricks macOS Users Into Stealer

Fake GitHub Lure Tricks macOS Users Into Stealer

Researchers described AmnesiaStealer, a macOS info-stealer spread through a counterfeit “Download for macOS” page that tricks users into pasting a command into Terminal. The malware steals passwords and browser session data, and can even give an attacker live, hidden control of the victim’s browser…

August 17, 2026
Poisoned AI Agent Files Turn Dev Tools Into Spies

Poisoned AI Agent Files Turn Dev Tools Into Spies

Researchers found real GitHub repositories containing poisoned AI-agent instruction/config files (like CLAUDE.md and .cursorrules) that silently tell coding assistants to steal prompts, environment variables, and credentials. The malicious instructions can trigger hidden commands (for example, curl…

August 4, 2026
Fake Claude & Perplexity Lures Push Malware

Fake Claude & Perplexity Lures Push Malware

Sophos reports real incidents where attackers impersonated well-known AI brands (especially Claude) to trick people into installing malware. The lures included polished fake installer pages that instruct victims to copy/paste commands, and browser extensions that look legitimate via high ratings…

August 21, 2026
Job Offer & Doc-Link Phishing Drive Real Breaches

Job Offer & Doc-Link Phishing Drive Real Breaches

This weekly threat bulletin describes real incidents where attackers used human manipulation to break in, including social engineering at Levi Strauss and a Microsoft 365 credential-theft phish at defense supplier IEH. It also highlights a Lazarus-linked campaign using fake job offers and…

August 17, 2026
Vishing “Help Desk” Scams and Lookalike Phish Surge

Vishing “Help Desk” Scams and Lookalike Phish Surge

This weekly roundup highlights multiple real-world social engineering threats, including fake IT help-desk phone calls that push employees to phishing sites to steal passwords and one-time authentication codes. It also describes credential-phishing sites impersonating WhatsApp and Instagram that…

August 14, 2026