Threat Actors Abuse claude.ai Shared Chat for ClickFix Malvertising Campaign
A sophisticated malvertising campaign abused Google Ads to deliver ClickFix social engineering attacks disguised as popular AI developer tools and Mac utilities. The threat actors initially leveraged GitLab Pages before pivoting to weaponize claude.ai's shared chat feature, tricking macOS users into executing terminal commands that deploy the MacSync infostealer.
- domainchatgpt-codex-app[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure impersonating ChatGPT Codex.
- domainchatgpt-codex[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure impersonating ChatGPT Codex.
- domainchatgpt-codex-lm[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure impersonating ChatGPT Codex.
- domaincladesktop[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domainclaud-desktop-app[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domainclaudeapp[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domainclaude-code-app[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure in Wave 1.
- domainclaudecode-desktop[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domainclaudecode-download[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domainclaude-desktop-apps[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domainclaude-desktop-lm[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure in Wave 3.
- domainclaudesktop[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domainclaude-tool-app[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure.
- domaincodexgpt[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure in Wave 4.
- domainjetbrains-apps-group[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure impersonating JetBrains.
- domainloserrq0j1sha8[.]com1st stage loader and C2 domain hosting the malicious shell script and AppleScript payload.
- domainmac-clean-storage[.]gitlab[.]ioMalicious GitLab Pages subdomain used for Mac utility scam lures.
- domainmac-guide-tool[.]gitlab[.]ioMalicious GitLab Pages subdomain used for Mac utility scam lures.
- domainmacsupp-group[.]gitlab[.]ioMalicious GitLab Pages subdomain used for Mac utility scam lures.
- domainmacsupp-usb[.]gitlab[.]ioMalicious GitLab Pages subdomain used for Mac utility scam lures.
- domainperplexity-platform[.]gitlab[.]ioMalicious GitLab Pages subdomain used as a ClickFix lure impersonating Perplexity AI.
- urlhxxps://claude[.]ai/share/498818d9-1ddc-4fbb-9fa7-56dfb84840b0Weaponized claude.ai shared chat URL used to deliver ClickFix instructions.
- urlhxxps://loserrq0j1sha8[.]com/debug/loader[.]sh?build=a39427f9d5bfda11277f1a58c89b7c2dURL hosting the first-stage loader script.
- urlhxxps://loserrq0j1sha8[.]com/debug/payload[.]applescript?build=a39427f9d5bfda11277f1a58c89b7c2dURL hosting the MacSync infostealer AppleScript payload.
Detection / HunterGoogle
What Happened
Cybercriminals are running fake Google Ads for popular AI tools like Claude and ChatGPT to trick people into downloading malware. When users click the ads, they are taken to legitimate-looking pages—including real shared chats on claude.ai—that instruct them to copy and paste a command into their Mac terminal to 'install' the software. If executed, this command installs malware that steals passwords, cookies, and cryptocurrency wallets. Mac users should be extremely cautious and only download software directly from official websites, never by copying and pasting terminal commands from unknown sources.
Key Takeaways
- Threat actors deployed 106 unique malicious hostnames over seven weeks, rotating infrastructure and testing AI brand lures like Claude, ChatGPT, and Perplexity.
- The campaign shifted to weaponizing claude.ai's shared chat feature, evading browser warnings and URL inspection by using a highly trusted domain.
- The attacks primarily targeted the Asia-Pacific region, with Taiwan accounting for 30.5% of total traffic.
- The ClickFix social engineering technique tricks users into manually executing malicious terminal commands to 'install' fake software.
- The final payload is the MacSync infostealer, which harvests browser credentials, cookies, SSH keys, and cryptocurrency wallets on macOS.
Affected Systems
- macOS
- Chromium browsers
- GitLab Pages (abused infrastructure)
- claude.ai (abused infrastructure)
Attack Chain
The attack begins with malicious Google Ads targeting users searching for AI developer tools or Mac utilities. Clicking the ad redirects the victim to a ClickFix social engineering page hosted on GitLab Pages or a weaponized claude.ai shared chat. The page instructs the user to copy and paste a base64-encoded curl command into their macOS terminal. Execution of this command downloads a loader script that checks for CIS keyboard layouts; if not found, it fetches and executes the MacSync infostealer (an AppleScript payload) to harvest browser data, SSH keys, and crypto wallets.
Detection Availability
- YARA Rules: No
- Sigma Rules: No
- Snort/Suricata Rules: No
- KQL Queries: No
- Splunk SPL Queries: No
- EQL Queries: No
- Other Detection Logic: No
- Platforms: TrendAI Vision One
Trend Micro provides hunting queries and IOCs via their TrendAI Vision One Threat Intelligence Hub, though specific rule bodies are not included in the public blog post.
Detection Engineering Assessment
EDR Visibility: High — EDRs on macOS should easily capture terminal commands executing curl piped to bash or sh, as well as osascript execution fetching remote payloads. Network Visibility: Medium — Initial access uses legitimate domains (claude.ai, gitlab.io) over HTTPS, making network detection difficult. However, the secondary payload fetch to the attacker-controlled C2 domain can be detected. Detection Difficulty: Moderate — The social engineering aspect evades traditional web filters by using trusted domains, but the post-exploitation terminal commands are highly anomalous for standard users.
Required Log Sources
- macOS Unified Log
- EDR Process Telemetry
- Network Proxy/DNS Logs
Hunting Hypotheses
| Hypothesis | Telemetry | ATT&CK Stage | FP Risk |
|---|---|---|---|
| Consider hunting for macOS terminal processes executing curl commands that pipe output directly into bash, sh, or zsh, especially if the command line contains base64 encoded strings. | EDR Process Telemetry | Execution | Medium |
| Look for osascript executions that are spawned by shell processes and include remote URLs in their command line arguments. | EDR Process Telemetry | Execution | Low |
| Monitor for shell commands querying com.apple.HIToolbox.plist for AppleEnabledInputSources, which may indicate malware checking for CIS locales. | EDR Process Telemetry | Discovery | Low |
Control Gaps
- Web Content Filtering (fails due to trusted domains like claude.ai and gitlab.io)
- Safe Browsing heuristics
Key Behavioral Indicators
- curl piped to shell
- osascript fetching remote payloads
- defaults read querying keyboard layouts
False Positive Assessment
- Low
Recommendations
Immediate Mitigation
- Verify against your organization's incident response runbook and team escalation paths before acting.
- Consider blocking the identified malicious loader domain (loserrq0j1sha8.com) at the network perimeter.
- Search endpoint telemetry for the execution of the identified curl and osascript command patterns.
Infrastructure Hardening
- Consider implementing DNS filtering or EDR network controls to restrict terminal applications from initiating outbound connections to untrusted domains.
User Protection
- If your EDR supports it, consider creating custom behavioral rules to alert on curl commands piped to shells on macOS endpoints.
- Evaluate whether standard users require access to terminal utilities, and restrict access where appropriate.
Security Awareness
- Educate developers and technical staff about ClickFix social engineering tactics, emphasizing the danger of copying and pasting terminal commands from web pages.
- Reinforce the importance of downloading software only from official vendor websites or approved package managers (e.g., Homebrew, npm).
MITRE ATT&CK Mapping
- T1583.008 - Acquire Infrastructure: Malvertising
- T1566.002 - Phishing: Spearphishing Link
- T1204.001 - User Execution: Malicious Link
- T1204.002 - User Execution: Malicious File
- T1059.004 - Command and Scripting Interpreter: Unix Shell
- T1059.002 - Command and Scripting Interpreter: AppleScript
- T1614.001 - System Location Discovery: System Language Discovery
- T1555.003 - Credentials from Password Stores: Credentials from Web Browsers
- T1539 - Steal Web Session Cookie
Additional IOCs
- Domains:
claudeapp[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.mac-guide-tool[.]gitlab[.]io- Malicious GitLab Pages subdomain used for Mac utility scam lures.claude-tool-app[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.claud-desktop-app[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.claudesktop[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.claude-desktop-apps[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.macsupp-group[.]gitlab[.]io- Malicious GitLab Pages subdomain used for Mac utility scam lures.macsupp-usb[.]gitlab[.]io- Malicious GitLab Pages subdomain used for Mac utility scam lures.jetbrains-apps-group[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure impersonating JetBrains.chatgpt-codex[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure impersonating ChatGPT Codex.cladesktop[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.chatgpt-codex-app[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure impersonating ChatGPT Codex.chatgpt-codex-lm[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure impersonating ChatGPT Codex.claudecode-desktop[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.claudecode-download[.]gitlab[.]io- Malicious GitLab Pages subdomain used as a ClickFix lure.
- Command Lines:
- Purpose: Decodes and executes the first-stage loader script from the terminal. | Tools:
curl,base64,sh,bash| Stage: Initial Access / Execution |curl -s | echo <base64_blob> | base64 -d | sh - Purpose: Checks the macOS system for Russian keyboard layouts to avoid infecting CIS systems. | Tools:
defaults,grep| Stage: Discovery / Evasion - Purpose: Fetches and executes the MacSync infostealer AppleScript payload. | Tools:
curl,osascript| Stage: Execution / Payload Delivery
- Purpose: Decodes and executes the first-stage loader script from the terminal. | Tools: