Skip to main content
Mallory
Malware

GhostClaw

Tracked since Mar 10, 2026 · Updated 4 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK17Techniques
IOCs18Tracked
Type
RAT
Capabilities
Credential theftPersistenceInitial accessDefense evasionPost exploitation
Delivery
Landing pageLure
Platforms
macOS

GhostClaw is a macOS-focused malware campaign targeting developers through software supply chain and social-engineering lures. It has been associated with malicious npm packages and GitHub repositories impersonating developer tools such as SDKs, trading bots, and OpenClaw-related projects. The campaign also abuses AI-assisted development workflows by embedding malicious instructions in repository content that can be executed by coding agents, enabling compromise with limited or no direct user interaction.

The infection chain is multi-stage. Initial access has been observed through malicious npm package installation hooks and through repository instructions that persuade victims to run shell commands. On execution, GhostClaw deploys a bootstrapper that profiles the host, installs a compatible Node.js runtime in user space without requiring elevated privileges, and launches an obfuscated JavaScript stage. The malware uses fake installer output and deceptive prompts to make the activity appear legitimate.

A core function of GhostClaw is credential theft. It prompts victims for their macOS password under false pretenses and validates the supplied credential using native system functionality. It also uses deceptive AppleScript dialogs resembling legitimate macOS security prompts in an attempt to obtain broader access, including Full Disk Access. Subsequent stages retrieve encrypted payloads from attacker-controlled infrastructure, execute them in the background, and remove temporary artifacts to reduce visibility.

GhostClaw establishes persistence on compromised systems by placing components in user-controlled locations chosen to resemble normal npm telemetry or developer tooling activity. Reported activity indicates overlap in techniques and infrastructure with related clusters referred to as GhostLoader and the broader Ghost campaign. The campaign is notable for blending developer trust in public code repositories and package ecosystems with modern AI-driven development practices to compromise macOS systems and steal credentials and other sensitive data.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

17 distinct techniques documented for this family, organized by ATT&CK tactic.

Reconnaissance

1 technique
T1598Phishing for InformationEvidence2

the malware fetched an encrypted second-stage payload... That script displayed a convincing fake CLI installer, then prompted the victim for their system password using a keychain authorisation message.

Initial Access

4 techniques
T1078Valid AccountsEvidence1

Jamf Threat Labs exposes new GhostClaw/GhostLoader samples using malicious GitHub repos and AI dev workflows to steal macOS credentials via multi-stage payloads.

T1195Supply Chain CompromiseEvidence3

JFrog found the malicious package @openclaw-ai/openclawai on npm... The package used a postinstall hook to reinstall itself globally...

T1566.002Spearphishing LinkEvidence1

the repositories contain a README with step-by-step installation instructions that encourage users to execute a shell command, typically using curl to retrieve and run a remote script.

T1566.003Spearphishing via ServiceEvidence1

A new malware campaign called GhostClaw is actively targeting macOS users through fake GitHub repositories and AI-assisted development workflows. The campaign uses social engineering disguised as legitimate developer tools to steal user credentials and drop secondary payloads on infected systems.

Execution

3 techniques
T1059.004Unix ShellEvidence2

In one path, repositories contain README files with step-by-step installation instructions that prompt users to run a shell command using curl.

T1059.007JavaScriptEvidence3

In Windows, GhostLoader is delivered via a heavily obfuscated Node.js payload ( setup.js ) embedded in the project’s npm lifecycle scripts.

T1204User ExecutionEvidence2

README files with step-by-step installation instructions... prompt users to run a shell command using curl... This means GhostClaw can infect a system without any direct human involvement.

Persistence

1 technique
T1078Valid AccountsEvidence1

Jamf Threat Labs exposes new GhostClaw/GhostLoader samples using malicious GitHub repos and AI dev workflows to steal macOS credentials via multi-stage payloads.

Privilege Escalation

1 technique
T1078Valid AccountsEvidence1

Jamf Threat Labs exposes new GhostClaw/GhostLoader samples using malicious GitHub repos and AI dev workflows to steal macOS credentials via multi-stage payloads.

Stealth

5 techniques
T1027Obfuscated Files or InformationEvidence2

Execution then passes to setup.js, a heavily obfuscated JavaScript file responsible for credential collection.

T1036MasqueradingEvidence3

In the rankings of malicious samples by the file names attackers gave them, impersonations of AI developer tools... now sit second only to cracked Adobe and creative-suite installers... Fake corporate meeting apps (Zoom, Teams, Webex)...

T1070.004File DeletionEvidence1

Following execution, the temporary file is removed... Following execution of the primary payload, postinstall.js is invoked to extend the compromise and obscure earlier activity.

T1078Valid AccountsEvidence1

Jamf Threat Labs exposes new GhostClaw/GhostLoader samples using malicious GitHub repos and AI dev workflows to steal macOS credentials via multi-stage payloads.

T1216.002SyncAppvPublishingServerEvidence1

In addition to the terminal prompt, the script can present native-looking dialogs using AppleScript: osascript -e 'set dialogResult to display dialog ...'

Credential Access

2 techniques
T1555Credentials from Password StoresEvidence1

These dialogs are designed to resemble macOS security prompts and instruct the user to grant access or provide credentials. Variants observed during analysis impersonate different applications, including developer tools and trading platforms, while maintaining consistent messaging around access to 'secure wallet and credential storage.'

T1649Steal or Forge Authentication CertificatesEvidence1

This is followed by a credential prompt presented directly in the terminal: Password: ... The supplied password is then validated using: dscl . -authonly {username} {password}

Discovery

1 technique
T1083File and Directory DiscoveryEvidence2

It checks the host macOS version and architecture, then silently installs a compatible version of Node.js in a user-controlled directory, avoiding any need for elevated privileges.

Command and Control

2 techniques
T1071Application Layer ProtocolEvidence2

Once credentials are collected and access is secured, setup.js contacts the command-and-control server at trackpipe[.]dev to retrieve an encrypted secondary payload.

T1105Ingress Tool TransferEvidence1

setup.js contacts the command-and-control server at trackpipe[.]dev to retrieve an encrypted secondary payload, which is written to a temporary file at /tmp/sys-opt-{random}.js.

Indicators of compromise

Observables

18 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
pentest partnersNews · Jun 10, 2026ClickFix, CrashFix and the growing family of copy and paste attacks | Pen Test PartnersMalware delivered via a malicious npm package impersonating OpenClaw. It used a postinstall hook, fake CLI installer prompts, password harvesting, retrieval of an encrypted second-stage payload, decryption, temporary-file execution as a detached background process, and cleanup of the dropped file.Read more ↗cyber security newsNews · Mar 26, 2026GhostClaw AI Assisted Malware Attacking macOS Users to Deploy Credential-Stealing PayloadsGhostClaw is a macOS-focused malware campaign delivered via malicious npm packages and fake GitHub repositories impersonating developer tools. It uses social engineering and AI-agent-targeted SKILL.md files to trigger infection, installs Node.js without elevated privileges, steals user credentials by validating them with dscl, retrieves an encrypted secondary payload from C2 infrastructure, and establishes persistence under a path designed to resemble normal npm telemetry activity.Read more ↗cyber security newsNews · Mar 26, 2026Fake npm Install Messages Hide RAT Malware in New Open Source Supply Chain CampaignA remote access trojan delivered via malicious npm packages in a software supply chain campaign. It uses fake npm installation logs and sudo password phishing to deploy a final payload, then steals cryptocurrency wallets, harvests sensitive data, and accepts remote commands while maintaining stealthy persistence.Read more ↗cso onlineNews · Mar 10, 2026Devs looking for OpenClaw get served a GhostClaw RAT | CSO OnlineRemote Access Trojan (RAT) delivered to developers searching for 'OpenClaw', implying a trojanized/masquerading distribution to gain remote control of victim systems.Read more ↗
+1 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching18Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping17Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.