Fake Codex Download Lures Macs Into Terminal Malware

SiliconANGLE Security · High sophistication
Last updated August 24, 2026

Researchers described a real macOS malware campaign that tricks people searching for “Codex macos download” into clicking a sponsored Google result and landing on a fake OpenAI Codex download site. Victims are then coached to open Terminal and paste a command that fetches and runs malware (a “ClickFix” style social-engineering flow). The activity is strongly linked to Atomic macOS Stealer (AMOS), and the attack is designed to hide from scanners and non‑Mac visitors.

Key findings

  • The campaign uses sponsored Google search ads to lure victims searching for “codex macos download” to a fake Codex download portal.
  • The fake page instructs users to open Terminal and paste a command; the command looks like a legitimate npm install but actually decodes a Base64 URL and pipes a remote script into zsh (ClickFix pattern).
  • Attackers use gating and deceptive paths (e.g., /codexx/ malicious vs /codex/ benign) and serve benign content to non-macOS visitors to evade analysis.
  • Telemetry is sent immediately after execution (event=pasted) to confirm the victim ran the command.
  • The malware workflow downloads a payload to /tmp/helper, removes quarantine-related extended attributes via xattr -c, makes it executable, and runs it.
  • Cato assesses strong links to Atomic macOS Stealer (AMOS) based on consistent infrastructure and delivery behaviors.

Who’s being targeted

  • Commonly targeted roles: Developers, Engineering, IT support/helpdesk, Security operations, Employees who administer Macs.
  • Affected industries: Software development, Technology, Any organization with macOS users.
  • Attack channels: website.
  • Impersonated: OpenAI Codex download portal, Codex product/download site.

Awareness takeaways

  • Treat sponsored search results for software downloads as untrusted; navigate to the vendor site directly or via known bookmarks.
  • Never paste commands into Terminal from a website unless your IT/security team has verified the source and the exact command.
  • Be alert for “installer” steps that run remote scripts (for example piping content into a shell); this is a common way to silently execute malware.
  • If a download/installer tries to remove protections or bypass warnings (like clearing extended attributes), assume it’s malicious and stop.

Red flags to watch for

  • Download arrived via a sponsored ad and a Google Sites page rather than an official vendor domain
  • Instructions require pasting a long Terminal command instead of using a standard signed installer
  • The command fetches and runs remote code (e.g., piping to zsh), which is high-risk behavior
  • Slightly altered URL paths (e.g., extra character) leading to different content
  • Different content served depending on device/OS (fingerprinting or gating behavior)
  • Page content loaded via embedded frames (iframes) rather than a straightforward download page
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 search “codex macos download,” click the top Google result, and boom, you're on a slick Codex download page. Looks legit, right? But this is a fake Codex portal. On macOS, it walks you through opening Terminal and pasting a long 'npm install' style command that secretly decodes a Base64 URL and pipes a remote script straight into zsh. Paste it, and behind the scenes it phones home 'event=pasted', pulls a payload into /tmp/helper, strips macOS quarantine with xattr -c, makes it executable, and runs what researchers link to Atomic macOS Stealer, or AMOS. Here’s the move: if a website tells you to paste a long Terminal command to install Codex or any app, stop and close the tab, then only install from openai.com or your normal app store.

Similar attacks

Fake “OpenAI Codex” Ads Push Mac ClickFix Malware

Fake “OpenAI Codex” Ads Push Mac ClickFix Malware

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.

August 25, 2026
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
ClickFix Sites Trick Macs Into Running Malware Commands

ClickFix Sites Trick Macs Into Running Malware Commands

A real ClickFix campaign used 250+ lookalike domains and browser fingerprinting to show malware lures mainly to real macOS visitors while showing harmless decoys to scanners and researchers. Victims were pushed to copy and run an obfuscated command in macOS Terminal, which then downloaded and…

August 6, 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
Fake GitHub Page Tricks Mac Users Into Malware

Fake GitHub Page Tricks Mac Users Into Malware

Researchers found a real macOS malware campaign that uses a fake GitHub download page to convince users to paste a command into Terminal and enter their Mac password. The malware then steals credentials, cookies, and files, and can even turn the victim’s Chromium browser into a remotely controlled…

August 17, 2026
Fake CAPTCHA ClickFix Drops Amatera via WebDAV

Fake CAPTCHA ClickFix Drops Amatera via WebDAV

Cisco Talos investigated a real infection chain seen at a Ukrainian government organization where a disguised DLL was executed directly from a WebDAV network path. Attackers used a compromised website to show a fake Google CAPTCHA-style “verification” prompt that tricks users into running a copied…

September 8, 2026