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

目标: 1000 元 · 已筹: 1359 元

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

js-client-node

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

Summary

Malicious code in js-client-node (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
124
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.4.0unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmjs-client-node*
npmjs-client-node1.4.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-6502","published":"2026-06-26T04:07:22Z","modified":"2026-07-31T01:15:49.272647578Z","aliases":["GHSA-x7hp-6x9v-c662"],"summary":"Malicious code in js-client-node (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (341a29bc48b39d363662fe66dcf13ca9bc3db921cdae84e53b070fc7b3a935a2)\npackage.json declares a postinstall hook (`node dist/postinstall.js`) that runs automatically on `npm install`. The hook invokes `prices()` in dist/index.js, which resolves the installer's project root via `process.env.INIT_CWD?? process.cwd()`, locates `.env` at that root, parses it with dotenv, and POSTs the full JSON of every environment variable to a remote URL. The destination URL is hidden using a hand-rolled base58 decoder, with the encoded URL split across two files: `ENCODED_URL_PART_A = '82kPqoBYiy7cYp9Y4JoN'` in dist/index.js and `ENCODED_URL_PART_B = 'ZWfGP1a9afkaPxYp37FZgsTX'` in dist/cli.js, concatenated and decoded at runtime. Errors are silently swallowed so `npm install` shows no warning. The package's identity is a deliberate decoy: package.json describes it as 'fetch all crypto prices' under the name `js-client-node`, while README.md is copy-pasted verbatim from @types/node. Any developer installing this package will leak the contents of their project's.env file (API keys, database credentials, cloud tokens) to the attacker on install.\n\n## Source: ghsa-malware (fb25890a2068dbec1aec4caa60bc8df48c764504334ccd23eb91cd99ab2ea1ef)\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":"js-client-node","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.4.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"}],"indicators":{"evidence_files":[{"path":"dist/index.js","sha256":"b8ab49918d9b5cc2f48e1e4f56a9323b34a69d8354e279863f61ea303d2b3bb3","tlsh":"4d9184162df3a7230a9367989317801a6fbc97173504e888b55ed3947f8901ca5a7bb4"},{"path":"README.md","sha256":"2bdb487625dbf4299e5eb58b2954c184dcaa8c52c2162456f4efa4941787543d","tlsh":"293121f7144549891f022ec4c8c8a02df723a049ede58ccae462c134c45a67757bf628"}],"package_integrity":[{"filename":"js-client-node-1.4.0.tgz","hashes":{"sha1":"3ebaf8a7f5d731d5edfbb463cdb8ca1fb3c41b7d","sha512_sri":"sha512-oVxWkesEzCZovcv4n0q3A2nviO/HGQS84lVnQZUSX00aZwu2+3bO/4LETYJ97Nebcynd8F/Vw0VYftb2YQf6kg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/js-client-node/v/1.4.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x7hp-6x9v-c662"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007588","import_time":"2026-06-26T04:57:28.903991166Z","modified_time":"2026-06-26T04:07:22Z","sha256":"341a29bc48b39d363662fe66dcf13ca9bc3db921cdae84e53b070fc7b3a935a2","source":"amazon-inspector","versions":["1.4.0"]},{"id":"GHSA-x7hp-6x9v-c662","import_time":"2026-07-31T01:10:09.734681083Z","modified_time":"2026-07-30T12:29:39Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"fb25890a2068dbec1aec4caa60bc8df48c764504334ccd23eb91cd99ab2ea1ef","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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