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

目标: 1000 元 · 已筹: 1359 元

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

utils-mf

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

Summary

Malicious code in utils-mf (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
5
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmutils-mf11.2.4
npmutils-mf11.2.5
npmutils-mf11.2.6
npmutils-mf11.4.1
npmutils-mf11.9.8
npmutils-mf11.9.9
npmutils-mf12.0.1
npmutils-mf12.0.2
npmutils-mf12.1.0
npmutils-mf12.1.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-08T22:53:38Z","published":"2026-05-21T15:09:28Z","schema_version":"1.7.4","id":"MAL-2026-4699","aliases":["GHSA-4c54-hwv9-c5xm"],"summary":"Malicious code in utils-mf (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6d338ea2a5c454a5a0352e6fb29bd940027bc4b8c349649f6356c4fc4f396272)\nPackage metadata advertises 'utility mf' with main 'index.js', but the shipped main is a 15.7MB obfuscator.io-style blob preceded by ~8MB of invisible-Unicode whitespace padding designed to conceal its contents. On require(), the module performs several unsafe and attacker-beneficial actions:\n\n1. Hidden WhatsApp bot payload: index.js dynamically imports `@whiskeysockets/baileys`, calls `useMultiFileAuthState('sessions/dev')`, opens a WhatsApp socket via `makeWASocket(...)`, prompts on stdin for a pairing-code phone number, and writes credential state to `./sessions/`. None of this is gated behind an exported function — it fires when the module is loaded.\n\n2. Auto-exfiltration of accumulated chat/session state: an `AutoBackup` routine on a 30-second `setInterval` PUTs the local `database.json` (containing chats, contacts, sessions, and env-derived state) to `https://api.github.com/repos/<owner>/<repo>/contents/database.json` and the analogous GitLab API, using a token and repo path read from package-operator settings. The destination repo and credential are not the library consumer's — they are configured in the package's payload, so any consumer running this code uploads their accumulated state to the package operator's repository on a timer.\n\n3. Runtime self-updater / silent-mutation primitive: on load, the module fetches `https://registry.npmjs.org/utils-mf/latest`, compares versions, downloads the latest tarball to `./tmp/upgrade.tgz`, and extracts it over `node_modules/utils-mf/` using `tar -xzf` (or `Expand-Archive` on Windows), then reloads. Already-installed copies will silently pull and execute any future published version, including a compromised one — the package mutates itself at runtime regardless of the consumer's lockfile.\n\n4. Privileged system mutation at import: the top-level code shells out via `exec` to `apt-get install -y ffmpeg imagemagick git tar zip unzip` when those binaries are missing, runs recurring `exec('rm -rf /tmp/*')` and `exec('netstat -an')` on intervals, and writes to `./tmp/` and `./sessions/` in the consumer's CWD.\n\nThe combination of deceptive packaging (utility name, opaque blob), import-time exfiltration of local data to attacker-configured repos, an in-band self-update channel that bypasses normal dependency pinning, and unsanctioned privileged shell execution constitutes an active supply-chain attack against any installer who consumes this package as a 'utility'.\n\n## Source: ghsa-malware (7921878ab64996afca0b68ed8fed4ce0afccbe200740eb27504225e2d0fea9c2)\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":"utils-mf"},"versions":["11.2.5","11.4.1","11.2.6","11.2.4","12.1.1","12.1.0","12.0.2","12.0.1","11.9.9","11.9.8"],"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"},{"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":"index.js","sha256":"00463c65c21311688049bef92dc292aa9106ffd4f2e76b8ed5aa28326c262fb5","tlsh":"bdf6f20c2680b67512c71f6f6f1fe3a4b705d85931874cbaadf86b24bc65e13f9a1620"}],"package_integrity":[{"filename":"utils-mf-11.2.5.tgz","hashes":{"sha1":"36d1c7ad09f1c6e83514fc05184b2696f9d95fe2","sha512_sri":"sha512-TWGYsiESRCdpjJ4EcrG4uXtxer2fjqALt6X4mbrTtYfzzjQ6q1Gf8WGWLAk3D/ZNmItjMtWWvQMJb4pKY9sO5w=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/11.2.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/11.4.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/11.2.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/11.2.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4c54-hwv9-c5xm"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/11.9.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/11.9.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/12.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/12.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/12.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/utils-mf/v/12.0.2"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com","inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"1c2da33ec9db484def0cd13843bd15c0ec8613d508eb86747fab86cd413532b1","import_time":"2026-05-26T05:51:29.540419543Z","id":"IN-MAL-2026-003873","modified_time":"2026-05-21T15:09:32Z","versions":["11.2.5"]},{"source":"amazon-inspector","sha256":"8856f3bd713eae0ec502b1450bb0221741c78b5da4235bb37aebd9e16dc625d8","import_time":"2026-05-26T05:53:23.905433374Z","id":"IN-MAL-2026-004845","modified_time":"2026-05-26T01:28:39Z","versions":["11.4.1"]},{"source":"amazon-inspector","sha256":"aece5485a5defaed47a12bb12f22d243b77a05b9ce5d6cbe0c1d1632d314672d","import_time":"2026-05-26T05:52:43.988477363Z","id":"IN-MAL-2026-004505","modified_time":"2026-05-24T12:26:02Z","versions":["11.2.6"]},{"source":"amazon-inspector","sha256":"6d338ea2a5c454a5a0352e6fb29bd940027bc4b8c349649f6356c4fc4f396272","import_time":"2026-05-26T05:51:29.434901845Z","id":"IN-MAL-2026-003872","modified_time":"2026-05-21T15:09:28Z","versions":["11.2.4"]},{"source":"ghsa-malware","sha256":"7921878ab64996afca0b68ed8fed4ce0afccbe200740eb27504225e2d0fea9c2","import_time":"2026-06-05T15:22:17.748024837Z","id":"GHSA-4c54-hwv9-c5xm","modified_time":"2026-06-05T13:40:54Z","versions":["12.1.1","12.1.0","12.0.2","12.0.1","11.9.9","11.9.8"]},{"source":"amazon-inspector","sha256":"0aec86e9f5ecc0cc788d5e424ddb10187cec30b3699cdbb000a0b2a28175a1b5","import_time":"2026-07-08T22:51:21.350346824Z","id":"IN-MAL-2026-008796","modified_time":"2026-07-08T22:34:29Z","versions":["11.9.9"]},{"source":"amazon-inspector","sha256":"1cf834619a50f8e966dc754191a461d8694601ba9d069c7b51c7d8491442dc55","import_time":"2026-07-08T22:51:20.867726288Z","id":"IN-MAL-2026-008792","modified_time":"2026-07-08T22:33:55Z","versions":["11.9.8"]},{"source":"amazon-inspector","sha256":"3dd50900d28e25e692782c4a3f72ff1a1ea966c369983acb515ffa9723274951","import_time":"2026-07-08T22:51:23.127364444Z","id":"IN-MAL-2026-008812","modified_time":"2026-07-08T22:36:45Z","versions":["12.1.1"]},{"source":"amazon-inspector","sha256":"a4894700b97144ceddc2b837cbd0fb3c44473db9dd23527bdbfab647d15f680f","import_time":"2026-07-08T22:51:21.1441055Z","id":"IN-MAL-2026-008794","modified_time":"2026-07-08T22:34:13Z","versions":["12.1.0"]},{"source":"amazon-inspector","sha256":"a734a2a6082d7330121a525f100082210a86ef4b1051d4ca6fdca31e20f3e607","import_time":"2026-07-08T22:51:21.23644965Z","id":"IN-MAL-2026-008795","modified_time":"2026-07-08T22:34:21Z","versions":["12.0.1"]},{"source":"amazon-inspector","sha256":"b81986e6f925d55faeb735922b22ceaf2636f99e604ceee93d2a676fa87e3398","import_time":"2026-07-08T22:51:21.011351257Z","id":"IN-MAL-2026-008793","modified_time":"2026-07-08T22:34:05Z","versions":["12.0.2"]}]}}

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