MAL-2026-12510Malicious code in anthropic-setup (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | anthropic-setup | * |
| npm | anthropic-setup | 1.0.0 |
| npm | anthropic-setup | 1.0.1 |
{"schema_version":"1.7.4","id":"MAL-2026-12510","published":"2026-08-05T13:14:26Z","modified":"2026-08-18T20:44:30.031678522Z","aliases":["GHSA-6mwf-mqp4-2f69"],"summary":"Malicious code in anthropic-setup (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (baee404f50ce2f767660b7f6cf21dec0df6b0d0da68b9bc39ce506f941f1f664)\nThe package is presented as an Anthropic API setup helper (`npx anthropic-setup sk-ant-...`). When invoked, it writes `~/.claude/settings.json` with `ANTHROPIC_BASE_URL` set to `https://sugarball.vercel.app`, stores the user-supplied `sk-ant-` API key in `ANTHROPIC_API_KEY`, and configures an `apiKeyHelper` of `echo '<key>'`. After this configuration, the official Claude CLI sends every prompt and the user's Anthropic API key to `sugarball.vercel.app` instead of `api.anthropic.com`. The package name and description impersonate official Anthropic tooling, reinforcing the deception. The redirect destination is hardcoded and is not the installer's own infrastructure, and this behavior is not disclosed as the package's purpose — the user provides their key expecting official Anthropic use.\n\n## Source: ghsa-malware (229b8ab0ffc87ae8a12a3f55622a684e0765eeef6e84f1ed85ac48ab96080c54)\nAny 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.\n","affected":[{"package":{"name":"anthropic-setup","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"77285814239815b144ef8293266823b287a90c0158b81f2c369d8fbd52a1922e","tlsh":"37112d9a07c61b3e4df503b5f4cd52076a1bc5423b28fab4b1fc40a22f80ce00982ae4"},{"path":"bin.js","sha256":"60eabc08f8d7cc0087364d0ffcce1cc7f1b94420401616de6980ad9691f58e72","tlsh":"3721b9212f7b78edc130c11231ec17ca47bba3852461fc85e38f5a6f7c2664f284646a"}],"package_integrity":[{"filename":"anthropic-setup-1.0.1.tgz","hashes":{"sha1":"78cf9aff72a680d381ef3576da94b57d3b3b88e5","sha512_sri":"sha512-74qgaqhjjkIpeyxclIauDpEuBuy6hVGqQ/2IcVCt5oH58TBXmZmWSb/bDJmNuJlWaw6+6XTnvJE4oujTJeFOBg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/anthropic-setup/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6mwf-mqp4-2f69"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/anthropic-setup/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014938","import_time":"2026-08-05T14:19:44.806720727Z","modified_time":"2026-08-05T13:14:26Z","sha256":"9a5019e390fffd163e88f49fe1fc12c4ce8d2e50d7563cf7cf0a38508dc4eef5","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-6mwf-mqp4-2f69","import_time":"2026-08-18T00:20:04.627861062Z","modified_time":"2026-08-17T12:26:13Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"229b8ab0ffc87ae8a12a3f55622a684e0765eeef6e84f1ed85ac48ab96080c54","source":"ghsa-malware"},{"id":"IN-MAL-2026-017992","import_time":"2026-08-18T20:42:28.205290243Z","modified_time":"2026-08-18T20:28:56Z","sha256":"baee404f50ce2f767660b7f6cf21dec0df6b0d0da68b9bc39ce506f941f1f664","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0