Skip to content

Security Reports disagree3 publishers 2 min read Published Updated

Attackers bought the top result for "codex macos download" and kept the payload swappable

Cato Networks says a sponsored ad outranked OpenAI's own page, sending macOS developers to a Google Sites portal whose ClickFix content lives on infrastructure Google never hosted.

The Watch · Security desk

Send a correction

What happened

  • Cato Networks found a fake OpenAI Codex download portal reached through a sponsored result that sat above OpenAI's own page for queries such as "codex macos download".
  • The visible page is hosted on Google Sites, with the working lure pulled in by iframe from a separate attacker-controlled domain.
  • Visitors are told to paste a Terminal command dressed as an npm install; it decodes a base64 URL and runs a shell loader with zsh.
  • Newer lure versions return benign content to non-macOS visitors and at the obvious /codex/ path, serving the ClickFix page at /codexx/.
  • The final Mach-O is suspected to be the Atomic macOS Stealer, based on overlaps with previously documented AMOS delivery chains.

Why it matters

  • Who's exposed exposure The suspected payload is an infostealer and the delivery path is a developer install step, which puts the compromise on a machine used to build software rather than in a mailbox.
  • What it limits constraint Cato's own detection guidance requires four correlated signals, so teams that cannot join search referral, web content, endpoint process and egress data have no single place to catch this.
  • Who has to decide decision Whoever owns developer tooling now has to decide whether canonical install commands are published internally, because paid placement can sit above the vendor's page for the same query.
  • What doesn't add up contradiction The two accounts of the same report disagree on scale and certainty: three infrastructure sets against at least four, and a suspected-AMOS framing against Cato's stated refusal to call the payload...

Next story · Build · yesterday

Codex agent solves 49 of 50 unpublished physics problems for under $3 each

Confirmed2 publishers

Cato's write-up is dated August 24 [2]. The iframe is the load-bearing part of what it describes. None of the malicious content sits on the Google Site, so the operator can rewrite the pasted command and the loader behind it without editing the page Google serves [3]. Cato's Jakub Osmani and Guy Waizel describe this as combining a trusted hosting domain with independently controlled ClickFix content [4]. The practical effect is that abuse handling splits in two: a report to Google removes a front end that costs nothing to rebuild, and a block on the payload host leaves the ad and the trusted domain working [22].

The content did get rewritten. In earlier infrastructure the embedded second stage was compressed and base64-encoded; in later versions it arrives as an AES-encrypted gzip container whose decryption key is reassembled from several variables [14]. SC Media reports at least four infrastructure sets, with the obfuscation of the second-stage loader changing between them [25]. The portal also advertised a Linux download, though Cato observed active payload delivery only for macOS [15], and the final binary is universal, so Intel and Apple Silicon hosts both run it [19].

Before the Mach-O is fetched, the second stage sends a request carrying event=pasted to an attacker-controlled endpoint [5], which Infosecurity Magazine describes as recording the paste ahead of payload retrieval [7]. That is campaign measurement rather than malware behaviour: the operator learns which searches produced someone willing to paste into Terminal, whether or not the payload lands or runs [23]. The same stage clears extended attributes with xattr -c [5], stripping the download quarantine metadata that normally triggers macOS warnings about files retrieved from the internet [6].

None of this tradecraft is new to AI tooling. Cyderes' Howler Cell reported in May on a ClickFix and Google Ads campaign aimed at Windows users searching for "Claude Code install" [20], and Push Security disclosed in March an "InstallFix" campaign spreading the Amatera infostealer to Windows and macOS users searching similar terms [21]. Cato says some infrastructure in the Codex campaign has also served Claude Code-themed pages that were not hosted on Google Sites [18], which makes the Sites front end an addition to a working kit rather than a new one [24]. The researchers' own summary is that trust becomes the payload, because no single stage reliably exposes the attack [17].

What to watch

  • Whether Google tightens ad review for developer-tool queries or restricts iframe embedding on Sites, the only controls that remove the front end at scale.
  • Whether behavioural analysis of the Mach-O confirms or rules out AMOS, given the current identification rests on delivery-side overlap.
  • Whether the same infrastructure rotates onto other AI CLI installers beyond Codex and Claude Code.

Clarity's read

What the record supports and how the coverage leans. The claims behind it follow.

Reality

Evidence60
Adoption
Not scored
Hype gap+10
Incentives35
Confidence65

Perspective Coverage

3 publishers
Builder
Builder 34%
Operator
Operator 58%
Investor
Investor 8%
Why these scores

Claim ledger

Ranked by verification strength, evidence, and original report placement.

  1. [1]

    Cato Networks reported Monday that a fake Codex macOS installation page uses ClickFix techniques and trusted Google Sites domains to deliver a payload suspected to be the Atomic macOS Stealer (AMOS), an infostealer.

    Reported Supported Source: Cato Networks, via SC MediaView cited source
  2. [2]

    Cato Networks published its technical write-up of the campaign on August 24.

    Reported SupportedView cited source
  3. [3]

    The ad links to a Google Sites page showing a fake Codex download portal through an iframe that embeds content from a separate malicious domain, letting the attacker control and modify the malicious content without editing the Google Site or hosting malicious content on it.

    Reported SupportedView cited source
  4. [4]

    "This separation lets the attacker combine a trusted hosting domain with independently controlled ClickFix content," wrote Cato Networks Research Engineer Jakub Osmani and Tech Evangelist Guy Waizel.

    Reported Supported Source: Jakub Osmani and Guy Waizel, Cato NetworksView cited source
  5. [5]

    The second-stage shell script sends a request with event=pasted to an attacker-controlled endpoint, downloads the final-stage payload to /tmp/helper, clears its extended attributes with xattr -c, makes it executable with chmod +x and launches it.

    Reported SupportedView cited source
  6. [6]

    Stripping the file's extended attributes removes the download-related quarantine metadata that normally triggers macOS warnings about files retrieved from the internet.

    Reported SupportedView cited source
  7. [7]

    The chain ran through three stages ending in the Mach-O payload, and the second stage recorded that a victim had pasted the command before retrieving the final payload.

    Reported SupportedView cited source
  8. [8]

    The final payload is a Mach-O binary suspected to be AMOS based on similarities with previous AMOS campaigns, including event=pasted delivery telemetry, /tmp/helper staging, base64-encoded curl loaders, removal of extended attributes and uniquely structured update URLs.

    Reported Supported Source: Cato NetworksView cited source
  9. [9]

    Cato Networks said the overlap with a previously documented AMOS infection chain was strong and consistent with AMOS delivery activity, rather than presenting it as proof that the final payload was AMOS, and cautioned that delivery telemetry should not on its own be read as evidence of how the Mach-O behaves once it runs.

    Reported Supported Source: Cato NetworksView cited source
  10. [10]

    Newer versions of the Google Sites lure serve benign content when visited from non-macOS devices, and serve benign content at the /codex/ path while the ClickFix lure is served at /codexx/.

    Reported SupportedView cited source
  11. [11]

    Cato researchers wrote that path- and operating-system-aware gating can mislead analysts and automated scanners, and that a request not matching the intended path or macOS target profile may never receive the ClickFix content.

    Reported Supported Source: Cato Networks researchersView cited source
  12. [12]

    The fraudulent installation page appears in sponsored results for search terms related to installing OpenAI's Codex coding tool for macOS, including "codex macos download", and the sponsored result appears at the top of search results, above the legitimate OpenAI page.

    Reported SupportedView cited source
  13. [13]

    The macOS download portal presents a command to paste into Terminal that begins with echo followed by a seemingly legitimate "npm install" string; the full command retrieves a malicious shell script from a base64-encoded URL and executes it with zsh.

    Reported SupportedView cited source
  14. [14]

    In an earlier version the embedded second-stage script was compressed and base64-encoded; in later versions it is embedded as an AES-encrypted gzip container with its decryption key reconstructed from several variables, making reverse engineering harder.

    Reported SupportedView cited source
  15. [15]

    The fake portal offered both macOS and Linux download options, but researchers observed active payload delivery only for macOS.

    Reported SupportedView cited source
  16. [16]

    Cato said detection depends on correlating search delivery, embedded content, Terminal execution and outbound activity rather than relying on any single indicator.

    Reported Supported Source: Cato NetworksView cited source
  17. [17]

    Cato researchers concluded that abuse of both Google Search and Google Sites creates a scenario where "trust becomes the payload", as "no single stage reliably exposes the attack".

    Reported Supported Source: Cato Networks researchersView cited source
  18. [18]

    Cato's report notes that some infrastructure used in the Codex campaign has also been used in Claude Code-themed campaigns, though those pages were not hosted on Google Sites.

    Reported SupportedView cited source
  19. [19]

    The Mach-O payloads staged in /tmp/helper are universal binaries, built to run on both Intel and Apple Silicon Macs.

    Reported SupportedView cited source
  20. [20]

    In May, Cyderes' Howler Cell reported on a ClickFix and Google Ads malvertising campaign targeting Windows users who searched for "Claude Code install".

    Reported SupportedView cited source
  21. [21]

    In March, Push Security disclosed a similar "InstallFix" campaign spreading the Amatera infostealer to both Windows and macOS users searching for "Claude Code install", "Claude Code CLI" and "install claude code".

    Reported SupportedView cited source
  22. [22]

    Because the malicious content is hosted off Google, removing the Google Site does not remove the ClickFix host, and blocking the ClickFix host leaves the sponsored ad and the trusted Google Sites front end in place.

    Derived Supported
  23. [23]

    Because the paste is reported to the operator before the final payload is downloaded, the operator gains delivery telemetry regardless of whether the payload is retrieved or executes successfully.

    Derived Supported
  24. [24]

    The Google Sites front end is an addition to infrastructure already in use for Claude Code-themed lures rather than a standalone build.

    Derived Supported
  25. [25]

    At least four different infrastructure sets were found across the Codex ClickFix campaign, with different obfuscation techniques used for the second-stage loader between infrastructure changes.

    Reported ContestedView cited source
  26. [26]

    Cato identified three infrastructure sets, the third of which reused an iframe host seen in the first.

    Reported ContestedView cited source
  27. [27]

    The two published accounts of the same Cato report differ on the number of infrastructure sets: at least four in one, three in the other, a gap of at least one set.

    Derived Contested

Sources

3 independent publishers whose own reporting we read for this story.

  1. helpnetsecurity.com

    1 article · August 25, 2026

    Fake OpenAI Codex download tricks macOS users into installing malware
  2. infosecurity-magazine.com

    1 article · August 24, 2026

    Fake Codex Download Uses Google Sites to Deliver macOS Malware
  3. scworld.com

    1 article · August 25, 2026

    Codex ClickFix installation lure spreads suspected AMOS infostealer

Topics and entities

Topics