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

目标: 1000 元 · 已筹: 1359 元

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

@yudzxml/baileys

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

Summary

Malicious code in @yudzxml/baileys (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
905
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@yudzxml/baileys*
npm@yudzxml/baileys7.4.0
npm@yudzxml/baileys7.4.1
npm@yudzxml/baileys7.4.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17846","published":"2026-10-12T16:31:25Z","modified":"2026-10-29T14:15:54.850279664Z","aliases":["GHSA-qh6w-wgpq-j344"],"summary":"Malicious code in @yudzxml/baileys (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (629ff06ada2390b75e4ba41304b30289746455bba454c455d04d7743f6998974)\nThis package is a fork of the Baileys WhatsApp Web library. a static rule matched on keyword co-occurrence in lib/Utils/messages-media.js: `require('child_process')`, `require('os')`, `require('http')`/`require('https')`, and `POST`/`GET`/`fetch(` calls, with the only cited literal URL being `https://mmg.whatsapp.net` (WhatsApp's own media server, which is the expected destination for a Baileys media utility). The evidence quotes do not name any non-first-party attacker endpoint, do not show environment-variable scraping, and do not show reads of installer-secret paths (`~/.ssh`, `~/.aws`, `~/.npmrc`, browser stores). The primitive co-occurrence in messages-media.js is the shape you would expect from a legitimate WhatsApp media upload/download implementation (child_process for ffmpeg/thumbnail generation, http/https/fetch for WhatsApp media endpoints, os for tmpdir). Because this is a fork of a widely used upstream library, and forks are a common vehicle for covert modifications (e.g., undocumented actions using the caller's WhatsApp session), a reviewer should diff this fork against upstream Baileys to confirm messages-media.js only talks to `mmg.whatsapp.net`/WhatsApp infrastructure, and that no other file in the package performs credential harvest, undocumented auto-follow/subscribe, or exfiltration using the caller's session. Without corroborating evidence of installer harm, keyword co-occurrence alone is not sufficient to publish a block.\n\n## Source: ghsa-malware (96357918fec8e046fe049ec94c614ab988e412532ace70beeb64d737533c3a30)\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":{"name":"@yudzxml/baileys","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["7.4.2","7.4.1","7.4.0"],"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/Utils/messages-media.js","sha256":"a4736c035b637d9a24f6be70870ea00d322252670c3319b56161cfea3975c47e","tlsh":"b1f2e85a1ef624350397b0b9979f551eb222d0073109dea9bf9c93106f8613c9af3bd8"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qh6w-wgpq-j344"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@yudzxml/baileys/v/7.4.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@yudzxml/baileys/v/7.4.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@yudzxml/baileys/v/7.4.0"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-qh6w-wgpq-j344","import_time":"2026-10-12T17:27:28.155257321Z","modified_time":"2026-10-12T16:31:26Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"96357918fec8e046fe049ec94c614ab988e412532ace70beeb64d737533c3a30","source":"ghsa-malware"},{"id":"IN-MAL-2026-022061","import_time":"2026-10-29T14:14:22.18332556Z","modified_time":"2026-10-29T13:43:42Z","sha256":"90a75e9fc920aa057f63fbd9a2aae28edb8aec497852bacfe69a411c36f4f049","source":"amazon-inspector","versions":["7.4.2"]},{"id":"IN-MAL-2026-022015","import_time":"2026-10-29T14:14:17.599227344Z","modified_time":"2026-10-29T13:37:44Z","sha256":"2e474ec401ee81c51e7c524630008beb55d288568ffc1f8388d48b776362aebb","source":"amazon-inspector","versions":["7.4.1"]},{"id":"IN-MAL-2026-022016","import_time":"2026-10-29T14:14:17.702437112Z","modified_time":"2026-10-29T13:37:52Z","sha256":"629ff06ada2390b75e4ba41304b30289746455bba454c455d04d7743f6998974","source":"amazon-inspector","versions":["7.4.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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