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

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 GitHub “ClickFix” Spreads macOS AmnesiaStealer

Fake GitHub “ClickFix” Spreads macOS AmnesiaStealer

Researchers say a real macOS malware campaign is using “ClickFix” social engineering to trick users into installing an infostealer called AmnesiaStealer. Victims are lured to a counterfeit GitHub download page that encourages them to copy/paste a Terminal command, which then downloads and runs the…

August 14, 2026
Fake Teams Update Drops Remote-Access Tools

Fake Teams Update Drops Remote-Access Tools

Researchers reported a real phishing campaign (“Operation BlueDash”) that tricks users with a “secure document” lure and routes them to a fake Microsoft Store page that claims Microsoft Teams must be updated. The download installs legitimate remote access tools (Level RMM and ScreenConnect) so…

July 27, 2026
ClickLock Stealer Freezes Macs for Passwords

ClickLock Stealer Freezes Macs for Passwords

Researchers found a new macOS infostealer, “ClickLock Stealer,” that uses ClickFix-style fake verification pages to trick people into running Terminal commands. After infection, it shows a realistic macOS password prompt and can effectively lock the Mac until the victim enters the correct password,…

July 21, 2026