Researchers at Push Security have uncovered a new malware distribution campaign targeting developers who search for how to install Claude Code, Anthropic’s command-line AI coding assistant. Attackers are using Google Search ads to push cloned installation pages that look nearly identical to the real thing, but secretly serve malicious terminal commands.
Clone Sites Built to Fool Developers
The attackers built pixel-perfect copies of Anthropic’s official Claude Code installation page and hosted them on lookalike domains (e.g., domains that swap characters or add hyphens to mimic anthropic.com). Most links on these fake pages actually point back to legitimate Anthropic URLs, a deliberate trick to pass casual inspection.
The only modified element is the installation command itself. Instead of the real npm install -g @anthropic-ai/claude-code (or equivalent), the altered command silently fetches a malicious payload from an attacker-controlled server, often via curl or PowerShell one-liners that pipe directly into a shell or script interpreter, leaving no downloaded file for antivirus to scan.
Different Payloads for Windows and macOS
The malicious command varies by operating system:
On Windows, the fake install command downloads and runs Amatera Stealer, a credential-harvesting malware that targets Chromium-based browser profiles, session cookies, saved passwords, and OAuth tokens stored in AppData. It can also extract crypto wallet files and auto-fill data.
On macOS, the command fetches a separate infostealer payload adapted for the macOS keychain and browser profile directories under ~/Library. The exact malware family hasn’t been publicly confirmed, but behavior analysis suggests it exfiltrates credentials and transmits them over HTTPS to a command-and-control (C2) server.
Since developers routinely paste install commands directly from documentation into their terminal without reviewing the full URL embedded in a curl or iwr call, execution is often near-instant.
Malvertising: No Phishing Email Required
The campaign’s initial access vector is malvertising, which involves purchasing or hijacking Google Ads placements so the fake pages appear at the top of search results for queries like “install Claude Code,” “Claude Code CLI,” or “Claude Code npm.”
This approach sidesteps traditional defenses because there’s no phishing email to filter, no attachment to sandbox, and no suspicious link to click. The user voluntarily searches for the tool and lands on what looks like the official page. Researchers note that attackers increasingly compromise existing Google Ads manager accounts to hijack live ad budgets, letting them deploy campaigns that inherit the prior account’s reputation and billing history.
The “InstallFix” Technique
Researchers defined the term “InstallFix” to describe this class of attack, drawing a parallel to the well-documented ClickFix technique, where victims are tricked into running commands under the guise of fixing an error or completing a CAPTCHA.
InstallFix shifts the lure from troubleshooting to onboarding. Since CLI-based installation is the standard workflow for most developer tools (Node packages via npm, Python tools via pip, Rust tools via cargo, etc.), users already expect to copy and paste a command. Attackers exploit this expectation without needing any additional social engineering.
Why AI Tools Are Prime Targets
AI coding tools like Claude Code generate high search volume from developers eager to try new workflows, making them attractive for impersonation. But the attack model generalizes to any widely-used tool that relies on terminal-based installation, including popular npm packages, Homebrew formulae, Python CLI tools, or open-source frameworks.
Researchers expect InstallFix campaigns to expand well beyond AI tools and increasingly target other high-traffic developer utilities.
What Developers Should Do
To reduce exposure to this class of attack, developers should take the following precautions:
- Inspect the full URL in your browser’s address bar before running any command from a documentation page, especially the domain name, not just the page content.
- Audit embedded URLs in install commands before running a
curl | bashoriwr | iexstyle command, check the domain it’s fetching from against the official project source. - Get install instructions from verified sources: the official GitHub repo, package registry (npmjs.com, pypi.org), or Homebrew formula, not from a Google search result.
- Use a browser extension or DNS filter that flags lookalike domains or newly registered domains impersonating known software vendors.
As AI development tools grow in popularity, campaigns like this are expected to increase in frequency and sophistication.
References
- Push Security InstallFix: How attackers are weaponizing malvertised install guides
- TrendMicro InstallFix and Claude Code: How Fake Install Pages Lead to Real Compromise
- Pilar Research InstallFix: Fake Claude Code Pages Deliver Amatera Stealer
- Malwarebytes Fake Claude Code install pages hit Windows and Mac users with infostealers