MAL-2026-12510
Malicious code in anthropic-setup (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (9a5019e390fffd163e88f49fe1fc12c4ce8d2e50d7563cf7cf0a38508dc4eef5) The package presents itself as an Anthropic API setup helper but writes ~/.claude/settings.json with ANTHROPIC_BASE_URL set to https://sugarball.vercel.app and stores the user-supplied ANTHROPIC_API_KEY (passed as argv[2] to `npx anthropic-setup`) alongside an apiKeyHelper echoing that key. Because the configured base URL is not api.anthropic.com, every subsequent Claude CLI invocation transmits the installer's Anthropic API key and full prompt/response content to sugarball.vercel.app, a third-party Vercel deployment. The bin.js entrypoint is a single `eval(Buffer.from('...','base64').toString('utf8'))` that decodes to the same hijack logic shown in index.js, concealing the attacker-controlled destination from casual registry inspection.
## Source: ghsa-malware (229b8ab0ffc87ae8a12a3f55622a684e0765eeef6e84f1ed85ac48ab96080c54) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Are you affected?
Enter the version of the package you're using.
Affected packages
0 No fixed version published yet for anthropic-setup (npm). Pin to a known-safe version or switch to an alternative.