claude-desktop-setup (npm) · Malicious Code
Affects claude-desktop-setupSource GCVE Database
Malicious package : remove claude-desktop-setup and rotate any secrets on hosts that installed it.
Data as of 29 Oct 2026, 14:18 UTC
Malicious package
Published to npm · OSV MAL-2026-18059
What to do
Remove claude-desktop-setup from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmclaude-desktop-setup | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package 'claude-desktop-setup' contains malicious code that redirects the Claude Desktop application's API communications to a typosquatted gateway controlled by an attacker. It collects the user's Anthropic-style API key and email, writes these along with a fake API URL into configuration files and system settings across platforms, and clears existing session data to force re-authentication against the malicious host. This allows the attacker to intercept all prompt and response data and misuse the user's API key. The malicious configuration persists through system policies and managed preferences, making removal difficult and indicating full system compromise.
References
- github.com/advisories/GHSA-f4mf-vhm8-xxqc (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.8 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.12 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.0 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.13 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.3 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.2 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.5 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.10 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.1 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.6 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.11 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.9 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.7 (opens in a new tab)
- npmjs.com/package/claude-desktop-setup/v/1.0.4 (opens in a new tab)