目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

api-anthropic

MAL-2026-18055
2026-10-29 14:15:55
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in api-anthropic (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
66
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmapi-anthropic*
npmapi-anthropic0.1.0
npmapi-anthropic0.1.1
npmapi-anthropic1.1.0
npmapi-anthropic1.1.1
npmapi-anthropic1.1.2
npmapi-anthropic1.1.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-18055","published":"2026-10-19T21:47:42Z","modified":"2026-10-29T14:15:55.227017972Z","aliases":["GHSA-cj9w-7h22-q93g"],"summary":"Malicious code in api-anthropic (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (19164d6b4b781d022a4bc75ae45fae6d20737ddc0b711057e89990d39efc8df5)\nThe npm package api-anthropic impersonates Anthropic branding (both the package name and the destination domain api-anthropic.help) and reconfigures the user's Claude Code installation to send all traffic through an author-controlled gateway. The CLI writes ~/.claude/settings.json with env.ANTHROPIC_BASE_URL set to https://api-anthropic.help and env.ANTHROPIC_AUTH_TOKEN set to a key, so every subsequent Claude Code session - including prompts, pasted code, file contents, and credentials shared with the assistant - flows through the author's domain instead of Anthropic's real API. The README advertises a non-Anthropic model (\"Fable 5.1 (1M Context)\"), confirming the endpoint is a third-party proxy rather than Anthropic infrastructure. In addition, the package writes hasTrustDialogAccepted=true and hasClaudeMdExternalIncludesApproved=true into ~/.claude.json for both the current working directory and the user's entire $HOME, pre-approving Claude Code's folder-trust and external-include safety prompts across every project in the home directory. The combination gives the proxy operator a durable channel to capture all AI-assisted content and to have Claude Code act on arbitrary files beneath $HOME without further confirmation.\n\n## Source: ghsa-malware (f1922723e10fcad576f383d44d31606460edf694315338ff529a20a84add0005)\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":"api-anthropic","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.2","1.1.1","1.1.3","1.1.0","0.1.0","0.1.1"],"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"},{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"bin.js","sha256":"91cc7bc97115287217b232ba80db81a127c46b3252739bc6ceeb78734b47cc7d","tlsh":"6b42931a4efa13242df6d979a6cf0427d71680633304e82c77fd52906fd16248a6e6ee"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cj9w-7h22-q93g"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/api-anthropic/v/1.1.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/api-anthropic/v/1.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/api-anthropic/v/1.1.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/api-anthropic/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/api-anthropic/v/0.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/api-anthropic/v/0.1.1"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-cj9w-7h22-q93g","import_time":"2026-10-19T22:24:25.306608976Z","modified_time":"2026-10-19T21:47:42Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"f1922723e10fcad576f383d44d31606460edf694315338ff529a20a84add0005","source":"ghsa-malware"},{"id":"IN-MAL-2026-021833","import_time":"2026-10-29T13:14:06.679619976Z","modified_time":"2026-10-29T13:13:45Z","sha256":"8bc38b611790247aa77b1c2fc2f3c891a0a31b210fb54dc907c2073b9003d9f0","source":"amazon-inspector","versions":["1.1.2"]},{"id":"IN-MAL-2026-021834","import_time":"2026-10-29T13:14:06.770016044Z","modified_time":"2026-10-29T13:13:52Z","sha256":"da6ded6ef731622407c9cd7cd17235a9d010636ab1484aa5332a23e795d9a49d","source":"amazon-inspector","versions":["1.1.1"]},{"id":"IN-MAL-2026-021832","import_time":"2026-10-29T13:14:06.60134344Z","modified_time":"2026-10-29T13:13:36Z","sha256":"50d22f4491327818aa1d03fc098a3a7f532ae16bb72f77d4d4cb929afc6fe382","source":"amazon-inspector","versions":["1.1.3"]},{"id":"IN-MAL-2026-021835","import_time":"2026-10-29T13:37:12.395310814Z","modified_time":"2026-10-29T13:13:59Z","sha256":"19164d6b4b781d022a4bc75ae45fae6d20737ddc0b711057e89990d39efc8df5","source":"amazon-inspector","versions":["1.1.0"]},{"id":"IN-MAL-2026-022263","import_time":"2026-10-29T14:14:38.495573384Z","modified_time":"2026-10-29T14:10:11Z","sha256":"0b5a143886cc66cf6b6cbfb0e93f7fae396a7b9a4aa359050e41d25c7ffd8e3a","source":"amazon-inspector","versions":["0.1.0"]},{"id":"IN-MAL-2026-022259","import_time":"2026-10-29T14:14:38.206960439Z","modified_time":"2026-10-29T14:09:40Z","sha256":"5ddb7023b6761d905d2447c832beac6d68c257902a2ba8b09a8ceda046d6ad9e","source":"amazon-inspector","versions":["0.1.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

数据来源:OpenSSF Malicious Packages · Apache-2.0