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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-init

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

Summary

Malicious code in chai-as-init (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-as-init*
npmchai-as-init1.4.5
npmchai-as-init1.4.6
npmchai-as-init1.4.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-06T18:55:50Z","published":"2026-04-16T20:36:13Z","schema_version":"1.7.4","id":"MAL-2026-2891","aliases":["GHSA-7cq2-px9f-cq3g"],"summary":"Malicious code in chai-as-init (npm)","details":"chai-as-init is a malicious npm package that when imported downloads a C2 dropper from https://api.npoint[.]io/c2e881b8bc0fe2121454 and executes it (similar to malware in to chai-await-test).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (86a5e85d8d41d2f731104422d3a8e4a73d02354250782e45389d28acc2332854)\nPackage name impersonates chai-as-promised and ships a README copied from pino as cover. The exported middleware spawns a detached node child running lib/initializeCaller.js, which decodes a base64-encoded URL (https://ipcheck-hashed.vercel.app/api/auth/b4dadd6a26d820d08596) and POSTs the full process.env (`{...process.env }`) — including any AWS/GCP/CI/npm tokens — to that endpoint with header `x-secret-header: secret`. The HTTP response body is then passed to `new Function('require', response.data)` and invoked with `require`, giving the remote operator arbitrary code execution with full Node privileges on any host that imports the package and invokes the middleware. Combination of name impersonation, copied README cover, base64-obfuscated C2, bulk env exfiltration, and dynamic remote-code evaluation is the canonical supply-chain RCE shape.\n\n## Source: ghsa-malware (c0ce99e61fda9a489c749cea51adcf66648c56d26ee18a7aa4f0100db30615f9)\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":{"ecosystem":"npm","name":"chai-as-init"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.4.6","1.4.5","1.4.7"],"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"}],"indicators":{"evidence_files":[{"path":"lib/initializeCaller.js","sha256":"dd6c890778d25bf1ec3411c142dc921ceb75f2d36790c7e02eb8edc9759d74ce","tlsh":"abf0e14e38ba117a02ae68e2bb0b18465003f56237c0d865f2cd836b0f4ed4df6636d8"},{"path":"README.md","sha256":"69f85aca0109e307b488f37404f53af66d85e38beba792e057335c90c9134462","tlsh":"0b51b7e746e56b6e4b6300f1a5c335a5ff5f931cbf29606dddec91380309897803250a"}],"package_integrity":[{"filename":"chai-as-init-1.4.6.tgz","hashes":{"sha1":"16d967b2a0ce025654bd685bde338c5d7a3c747e","sha512_sri":"sha512-6KhsT/qD7VbLsL5/irAzXgvYnkKhWddv2B4zwZcNvcGcWcQbCxOm3yeiiNj4csd/2dN5gY8PHP220e/lwd4XzA=="}}]}}}],"references":[{"type":"REPORT","url":"https://www.indece.com/en-US/blog/7df041ba-feb1-4d87-918b-7fc2c709d805"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-init/v/1.4.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-init/v/1.4.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-init/v/1.4.7"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7cq2-px9f-cq3g"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com","inspector-research@amazon.com"]},{"name":"indece","type":"FINDER","contact":["https://indece.com"]}],"database_specific":{"iocs":{"urls":["https://api.npoint.io/c2e881b8bc0fe2121454"]},"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"086ea02015eee2ed739d268574f9f70069e52293a0c16b02b83f76d95c22afae","import_time":"2026-04-23T20:49:07.94781775Z","modified_time":"2026-04-23T20:43:56Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"57086955990a082c75fa9bec1a1b3f57a71eafa6eaef825a9c4d716aac044dca","import_time":"2026-06-11T05:40:59.154425511Z","id":"IN-MAL-2026-005481","modified_time":"2026-06-11T04:51:43Z","versions":["1.4.6"]},{"source":"amazon-inspector","sha256":"4d792d1a35e17dd44d19301afb81ceb82ba68a11913d51ba9462b052e4cb8014","import_time":"2026-06-12T19:43:39.864783269Z","id":"IN-MAL-2026-005848","modified_time":"2026-06-12T19:03:14Z","versions":["1.4.5"]},{"source":"amazon-inspector","sha256":"86a5e85d8d41d2f731104422d3a8e4a73d02354250782e45389d28acc2332854","import_time":"2026-06-12T19:43:39.957230169Z","id":"IN-MAL-2026-005849","modified_time":"2026-06-12T19:03:15Z","versions":["1.4.7"]},{"source":"ghsa-malware","sha256":"c0ce99e61fda9a489c749cea51adcf66648c56d26ee18a7aa4f0100db30615f9","import_time":"2026-07-06T18:54:03.588589467Z","id":"GHSA-7cq2-px9f-cq3g","modified_time":"2026-07-06T18:51:52Z","versions":["1.4.7","1.4.6","1.4.5"]}]}}

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