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

目标: 1000 元 · 已筹: 1359 元

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

chaienv

MAL-2026-17321
2026-09-30 04:09:36
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in chaienv (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
106
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchaienv1.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-30T04:09:36Z","published":"2026-09-30T04:09:36Z","schema_version":"1.7.4","id":"MAL-2026-17321","summary":"Malicious code in chaienv (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cbb73465123d4e732dae815badc8950b40e9447463c1fca697551ab3aa00e020)\nchaienv@1.0.2 is published as a small Chai environment helper, but its index.js unconditionally loads lib/config.js at require() time via `const { config } = require('./lib/config')`. lib/config.js is a 4,454,290-byte single-line module packed with obfuscator.io (RC4-decoded string array of roughly 26,000 entries), with no relation to the trivial no-op middleware the README advertises. The rest of lib/ ships verbatim pino internals (proto.js, multistream.js, levels.js, transport.js, worker.js, redaction.js, symbols.js) as decoys, the README CI badge and LICENSE point at github.com/pinojs/pino, and package.json bugs.url is jsonspack.com — none of which match the stated Chai-plugin purpose. Any consumer that imports this package executes the opaque 4.4MB blob on load; the package impersonates an unrelated well-known project's source tree to normalize the obfuscated sibling and bypass casual review.\n","affected":[{"package":{"ecosystem":"npm","name":"chaienv"},"versions":["1.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/config.js","sha256":"ddf2efda031c3b87965a90be6f14265b4fb223352f5680ddd2b28e91258cc99b","tlsh":"0e2683ca4a45d02389de26d3be067ad9e23b9d9ad4dc65c7c36cbd9c6cac447c1a0cd0"},{"path":"package.json","sha256":"796f68ed792d88a38862d658fefbd2c8feaf2d88c6a44cd302bd7782a7d343e4","tlsh":"7811ce34c9385d6311dc75a16c5a8292627a4a434e08bd0d33e7802c0faee7f21ff65d"}],"package_integrity":[{"filename":"chaienv-1.0.2.tgz","hashes":{"sha1":"af8bd6974fe2e37a112a7185b3247544799f67b9","sha512_sri":"sha512-BqJzhDY/3jn4i3XQDRRBl4ToIrBGdWthL0XTiqjxBTuw8NeLdoNeOw90SwtPBsDER2FE67tvpi3JQ1juXauLbw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chaienv/v/1.0.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020801","import_time":"2026-09-30T04:46:52.221617361Z","modified_time":"2026-09-30T04:09:36Z","sha256":"cbb73465123d4e732dae815badc8950b40e9447463c1fca697551ab3aa00e020","source":"amazon-inspector","versions":["1.0.2"]}]}}

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