# GhostClaw/GhostLoader macOS infostealer expands to GitHub repositories and AI workflows (SKILL.md)

> GhostClaw, first documented by JFrog as an npm package impersonating the OpenClaw installer, now spreads through malicious GitHub repositories posing as trading bots, SDKs and developer utilities, and through SKILL.md repositories run in AI-assisted workflows such as OpenClaw. A multi-stage chain phishes the user's macOS password, fetches the GhostLoader stage-two payload from trackpipe.dev and steals credentials, wallets, browser sessions and developer secrets.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-03T01:50:54Z
- **Last updated:** 2026-12-03T01:50:54Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7345
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7345.png
- **ID:** TL-2026-7345
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 20 (3 shown free below)

## Description

GhostClaw is a macOS-focused (also Linux/Windows-capable) infostealer and RAT campaign. JFrog Security Research documented the first vector on 2026-03-08: the npm package @openclaw-ai/openclawai (versions 1.5.14 and 1.5.15, publisher 'openclaw-ai', uploaded 2026-03-03, removed 2026-03-10, 178 downloads) posing as the OpenClaw installer. A postinstall hook globally reinstalls the package and exposes scripts/setup.js as the 'openclaw' binary. setup.js is obfuscated, shows a fake installer with progress bars and a fake iCloud Keychain / permission prompt to obtain the system password, validates it against the OS, then fetches an encrypted second stage from the C2 (trackpipe.dev), decrypts it locally and runs it as a detached process with NODE_CHANNEL and NODE_AUTH_TOKEN set. The payload, which calls itself GhostLoader, is an ~11,700-line JavaScript bundle.

On 2026-03-20 Jamf Threat Labs (Thijs Xhaflaire) reported that the campaign had moved beyond npm. Malicious GitHub repositories (e.g. TradingView-Claw with 386 stars, Antigravity Pack SDK) impersonate trading bots, SDKs and developer utilities. Repositories are staged: benign code first, malicious components added later. In one variant the README tells the user to run a curl command that fetches and executes a remote script; in another, SKILL.md repositories target AI coding agents such as OpenClaw that auto-install 'skills', so the malicious behaviour runs during setup (install.sh or dependency installation) rather than in the manifest. Jamf identified at least eight new samples and seven repositories sharing the same C2 infrastructure, with a per-repository UUID in the C2 request path.

Chain (Jamf): install.sh detects architecture and macOS version and installs a compatible Node.js into a user-controlled directory using 'curl -k' (TLS verification disabled), sets GHOST_PASSWORD_ONLY (0 = full branded flow, 1 = credential collection only in at least one downloader-themed repo) and launches setup.js. setup.js clears the terminal, shows fake SDK-install progress, presents a terminal password prompt, validates the password with 'dscl . -authonly {user} {password}', shows AppleScript dialogs impersonating macOS security or trading-app prompts ('secure wallet and credential storage'), and if Full Disk Access is missing opens x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles. It retrieves an encrypted secondary payload from C2, writes it to /tmp/sys-opt-{random}.js, runs it detached with captured credentials in environment variables, then deletes the file. GhostLoader persists by copying itself to ~/.cache/.npm_telemetry/monitor.js and communicates with C2 using the NODE_CHANNEL value. postinstall.js clears the terminal and in several variants runs 'npm install -g antigravity@install' (a non-resolving tag on a legacy npm package), or prints a fake success message.

GhostLoader capabilities (JFrog): theft of the macOS login and iCloud Keychain databases, Chromium-browser and Firefox passwords/cookies/cards/autofill, desktop wallets and wallet browser extensions, BIP-39 seed phrases, SSH keys, cloud/dev/AI-agent credential files (AWS, Azure, GCP, Kubernetes, Docker, npm, Git, GitHub CLI, Solana, OpenClaw/ZeroClaw/PicoClaw configs), and Full-Disk-Access-protected data (Apple Notes, iMessage, Safari history, Mail config). Clipboard is polled every 3 seconds for keys, seed phrases, wallet addresses and API keys. RAT commands: EXEC, OPEN, UPDATE, GRAB, RECOLLECT, PROXY_START/STOP/STATUS (SOCKS5), CLONE_START/STOP/STATUS (live browser profile cloning over Chrome DevTools Protocol) and NUKE. The implant beacons about every 25 seconds with 30% jitter, encrypts with AES-256-GCM, persists via shell RC hook lines and (Linux) an @reboot cron entry, and exfiltrates tar.gz archives to the C2 panel, Telegram Bot API (sendDocument) and GoFile.io for archives above ~49 MB.

Attribution is unresolved. ReversingLabs and Panther describe a related 'Ghost' cluster of npm packages by publisher 'mikilanjillo' (discovered early February 2026) that also delivers GhostLoader and stores configuration in Telegram, Teletype.in and a BSC smart contract; Panther considers it the same cluster as GhostClaw, while ReversingLabs says it is unknown whether the same actor is behind both. Jamf also lists Glassworm and PolinRider as related campaigns. Severity is analyst-assigned; no vendor stated a CVSS score. BeaconBeagle returned no match for trackpipe.dev at time of research.

## MITRE ATT&CK

- T1195.002 Compromise Software Supply Chain
- T1204.002 Malicious File
- T1059.007 JavaScript
- T1059.002 AppleScript
- T1546.004 Unix Shell Configuration Modification
- T1053.003 Cron
- T1027 Obfuscated Files or Information
- T1070.004 File Deletion
- T1036 Masquerading
- T1056.002 GUI Input Capture
- T1555.001 Keychain
- T1555.003 Credentials from Web Browsers
- T1539 Steal Web Session Cookie
- T1552.001 Credentials In Files
- T1185 Browser Session Hijacking
- T1071.001 Web Protocols
- T1090 Proxy
- T1573.001 Symmetric Cryptography
- T1567 Exfiltration Over Web Service

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

**GhostClaw Install Chain — trackpipe.dev Bootstrap, Malicious OpenClaw npm Package and Insecure Node.js Download (Exploitation)** (`TL-2026-7345-SPL-001`)

Detects the GhostClaw/GhostLoader (TL-2026-7345) initial execution chain on macOS endpoints: any command line referencing the trackpipe.dev C2, installation of the malicious npm package @openclaw-ai/openclawai, the non-resolving 'antigravity@install' tag used by postinstall.js, or install.sh downloading Node.js with curl -k (TLS verification disabled). These behaviours are the earliest observable steps before the fake password prompt and GhostLoader stage-two fetch.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1195.002, T1204.002, T1059.007
- **Data sources:** Splunk CIM Endpoint.Processes (macOS EDR / Jamf Protect / Endpoint Security process events), Microsoft Defender for Endpoint DeviceProcessEvents, Sigma process_creation (product macos)
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
| tstats summariesonly=false count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where (Processes.process="*trackpipe.dev*" OR Processes.process="*@openclaw-ai/openclawai*" OR Processes.process="*antigravity@install*" OR Processes.process_name="curl") by Processes.dest Processes.user Processes.parent_process_name Processes.process_name Processes.process
| rename Processes.* as *
| eval ghostclaw_stage=case(like(process,"%trackpipe.dev%"),"trackpipe_c2_bootstrap_in_cmdline", like(process,"%@openclaw-ai/openclawai%"),"malicious_npm_package_openclawai", like(process,"%antigravity@install%"),"postinstall_antigravity_install_tag", process_name="curl" AND match(process,"(?i) -[a-z]*k[a-z]*( |$)|--insecure") AND match(process,"(?i)nodejs[.]org|node-v[0-9]"),"curl_insecure_nodejs_download")
| where isnotnull(ghostclaw_stage)
| convert ctime(firstTime) ctime(lastTime)
| table firstTime lastTime dest user parent_process_name process_name process ghostclaw_stage
```

### Microsoft KQL

```kql
// GhostClaw install chain (TL-2026-7345): trackpipe.dev in command line, malicious npm package, curl -k Node.js download
let lookback = 24h;
DeviceProcessEvents
| where Timestamp > ago(lookback)
| where ProcessCommandLine has_any ('trackpipe.dev', '@openclaw-ai/openclawai', 'antigravity@install')
    or (FileName =~ 'curl'
        and ProcessCommandLine matches regex '(?i) -[a-z]*k[a-z]*( |$)|--insecure'
        and ProcessCommandLine matches regex '(?i)nodejs[.]org|node-v[0-9]')
| extend GhostclawStage = case(
    ProcessCommandLine has 'trackpipe.dev', 'trackpipe_c2_bootstrap_in_cmdline',
    ProcessCommandLine has '@openclaw-ai/openclawai', 'malicious_npm_package_openclawai',
    ProcessCommandLine has 'antigravity@install', 'postinstall_antigravity_install_tag',
    'curl_insecure_nodejs_download')
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, GhostclawStage
| order by Timestamp desc
```

### Sigma

```yaml
title: GhostClaw Install Chain - trackpipe.dev, OpenClaw npm Package or Insecure Node.js Download
id: 3f6c1d2e-8a47-4b19-9c5e-71a2d0b4e601
status: experimental
description: Detects the GhostClaw/GhostLoader initial execution chain on macOS, a command line referencing the trackpipe.dev C2, the malicious npm package @openclaw-ai/openclawai, the antigravity@install tag, or curl with TLS verification disabled downloading Node.js.
references:
  - https://www.jamf.com/blog/ghostclaw-ghostloader-malware-github-repositories-ai-workflows/
  - https://research.jfrog.com/post/ghostclaw-unmasked/
author: Threadlinqs Team
date: 2026-12-03
tags:
  - attack.initial-access
  - attack.t1195.002
  - attack.execution
  - attack.t1204.002
  - attack.t1059.007
logsource:
  category: process_creation
  product: macos
detection:
  selection_c2_cmdline:
    CommandLine|contains: 'trackpipe.dev'
  selection_npm_pkg:
    CommandLine|contains:
      - '@openclaw-ai/openclawai'
      - 'antigravity@install'
  selection_curl_img:
    Image|endswith: '/curl'
  selection_curl_insecure:
    CommandLine|contains:
      - ' -k '
      - '--insecure'
  selection_curl_node:
    CommandLine|contains:
      - 'nodejs.org'
      - 'node-v'
  condition: selection_c2_cmdline or selection_npm_pkg or (selection_curl_img and selection_curl_insecure and selection_curl_node)
falsepositives:
  - Developers downloading Node.js with curl -k behind a TLS-intercepting proxy
  - Security analysts reproducing the sample or testing blocklists
level: high
```

**Known false positives:**

- Developers or packagers who legitimately download Node.js with curl -k through a TLS-intercepting proxy
- Security analysts reproducing the sample or testing the trackpipe.dev blocklist

**Tuning notes:** The tstats base search matches every curl execution, so restrict it to macOS hosts with a dest lookup or macro for large estates. Exclude sanctioned build or proxy hosts that require curl -k. Treat the trackpipe.dev and @openclaw-ai/openclawai branches as near-zero false positive and page on them; treat the curl -k branch as a hunting lead unless paired with a Node.js download from a user-writable directory.

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

- GhostClaw [indicator] and README Delivery — AI-Agent-Launched install.sh and curl -k / curl-to-Shell (Exploitation) (locked: unlock with TL Creds)
- GhostLoader File Artifacts — .npm_telemetry Directory, sys-opt-*.js Temp Payload and Node-Modified Shell RC Files (Post-Exploitation) (locked: unlock with TL Creds)
- GhostLoader C2 Behaviour — Node.js Egress to [indicator]/Telegram/GoFile, 25-Second Beacon Cadence and CDP Browser Cloning (C2) (locked: unlock with TL Creds)
- GhostClaw npm Vector — [indicator], postinstall Global Reinstall and Related Ghost-Cluster Packages (Exploitation) (locked: unlock with TL Creds)
- GhostClaw Password Phishing and Credential Store Access — dscl -authonly, Fake osascript Dialogs, Full Disk Access Lure, Keychain CLI from Node.js (Post-Exploitation) (locked: unlock with TL Creds)
- GhostClaw Exfiltration — [indicator] Bootstrap, Telegram Bot sendDocument and GoFile Upload via Web Proxy (C2 / Exfiltration) (locked: unlock with TL Creds)
- GhostLoader Persistence and Stage-Two Execution — Node.js Running .npm_telemetry/monitor.js or [indicator] (Post-Exploitation) (locked: unlock with TL Creds)
- GhostClaw [indicator] C2 — DNS Resolution and HTTP Bootstrap Request (C2) (locked: unlock with TL Creds)

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

## Sample indicators (3 of 20)

Defanged, TLP:CLEAR.

- Domain: `trackpipe[.]dev`
- URL: `hxxps://ipinfo[.]io/json`
- Domain: `upload[.]gofile[.]io`

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

## Sources

- [GhostClaw expands beyond npm: GitHub repositories and AI workflows deliver macOS infostealer (Jamf Threat Labs)](https://www.jamf.com/blog/ghostclaw-ghostloader-malware-github-repositories-ai-workflows/)
- [GhostClaw Unmasked: A Malicious npm Package Impersonating OpenClaw to Steal Everything (JFrog)](https://research.jfrog.com/post/ghostclaw-unmasked/)
- [Malicious npm package posing as OpenClaw installer (The Hacker News)](https://thehackernews.com/2026/03/malicious-npm-package-posing-as.html)
- [Ghost campaign uses 7 npm packages to steal crypto wallets and credentials (The Hacker News)](https://thehackernews.com/2026/03/ghost-campaign-uses-7-npm-packages-to.html)
- [GhostClaw expands beyond npm (MacTech coverage)](https://www.mactech.com/2026/03/20/ghostclaw-expands-beyond-npm-github-repositories-and-ai-workflows-deliver-macos-infostealer/)

## 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-7345
