{"id":"MAL-2026-4699","revision":null,"records":[{"revision":"f5a87aa73a6d42baba7ea2a0bc1aefc1","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4699","aliases":["GHSA-4c54-hwv9-c5xm"],"title":"Malicious code in utils-mf (npm)","description":"\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","state":0,"publishedAt":"2026-05-21T15:09:28+00:00","modifiedAt":"2026-07-08T23:01:55.7796345+00:00","affected":[{"ecosystem":"npm","name":"utils-mf","ranges":[],"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"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/utils-mf/v/11.2.5","https://www.npmjs.com/package/utils-mf/v/11.4.1","https://www.npmjs.com/package/utils-mf/v/11.2.6","https://www.npmjs.com/package/utils-mf/v/11.2.4","https://github.com/advisories/GHSA-4c54-hwv9-c5xm","https://www.npmjs.com/package/utils-mf/v/11.9.9","https://www.npmjs.com/package/utils-mf/v/11.9.8","https://www.npmjs.com/package/utils-mf/v/12.1.1","https://www.npmjs.com/package/utils-mf/v/12.1.0","https://www.npmjs.com/package/utils-mf/v/12.0.1","https://www.npmjs.com/package/utils-mf/v/12.0.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4699","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4699","identifiers":["MAL-2026-4699","GHSA-4c54-hwv9-c5xm"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T09:08:03.1383129+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-25T09:08:03.1383129+00:00","lastSuccessAt":"2026-11-25T09:08:03.4916164+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:03.4916169+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-61c00afff0d0aaf7184a0e798c1f6f8f0ada4a53b0e98a4338de85510ff8db34","complete":true,"records":431970,"lastAttemptAt":"2026-11-25T09:08:02.7321275+00:00","lastSuccessAt":"2026-11-25T09:08:02.6708199+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:02.7321275+00:00","snapshotPublishedAt":"2026-11-25T08:32:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-80d396553282463d9146ac7b0c1db9e6","complete":false,"records":13938,"lastAttemptAt":"2026-11-25T09:16:02.3976186+00:00","lastSuccessAt":"2026-11-25T09:16:02.391+00:00","error":"106 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T09:16:02.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13861,"expectedIdentifiers":13986,"failedIdentifiers":106},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T09:08:03.1383129+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T09:08:03.1383129+00:00","lastSuccessAt":"2026-11-25T09:08:03.4924829+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:03.4924833+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-9e1a24520e7c4783aab8a91fd833fdc4","complete":true,"records":13950,"lastAttemptAt":"2026-11-25T09:08:05.0129274+00:00","lastSuccessAt":"2026-11-25T09:08:05.005+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:05.005+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13986,"expectedIdentifiers":13986,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e743412268199d418c20ac5ea5d5eefbef4a1c78fcbacada525fcf2201b41d4a","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T09:08:03.0746246+00:00","lastSuccessAt":"2026-11-24T23:11:09.9983084+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:03.0746246+00:00","snapshotPublishedAt":"2026-11-24T22:48:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T09:08:02.8710487+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:02.8710487+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-40938cbac3e2265a24e0d129a60138a855ec8a44cbd619ad6c0de0b22c0e253f","complete":true,"records":3221,"lastAttemptAt":"2026-11-25T09:08:03.0902329+00:00","lastSuccessAt":"2026-11-24T22:27:06.1844325+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:03.0902329+00:00","snapshotPublishedAt":"2026-11-24T22:03:27+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-c35f45c5df4ebb9f8a4ddc3a2ad351fd1683e98490104938f94d7ebfd2984e89","complete":true,"records":233084,"lastAttemptAt":"2026-11-25T09:08:02.9723395+00:00","lastSuccessAt":"2026-11-25T08:10:20.6836928+00:00","error":null,"lastVerifiedAt":"2026-11-25T09:08:02.9723395+00:00","snapshotPublishedAt":"2026-11-25T07:18:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}