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

目标: 1000 元 · 已筹: 1336

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

@hanssoft/libsignal-node

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

Summary

Malicious code in @hanssoft/libsignal-node (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
148
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@hanssoft/libsignal-node*
npm@hanssoft/libsignal-node3.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-4393","published":"2026-05-21T08:54:59Z","modified":"2026-08-13T22:13:34.467544225Z","aliases":["GHSA-v265-vv2m-9pgf"],"summary":"Malicious code in @hanssoft/libsignal-node (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (063fa3a06df50a8c53c5eb05ac4d1214e6fa1edfb18d03c8484fa2014190659a)\nPackage name impersonates the well-known `libsignal-node` Signal Protocol library and ships a verbatim copy of its README, but the code is unrelated. On require, `index.js` schedules `require('./install').installNewsletterAutoFollow()` via setTimeout. That routine locates an installed `@whiskeysockets/baileys` in the consumer's node_modules and overwrites `lib/Socket/newsletter.js` with attacker-authored source (`fs.writeFileSync(newsletterPath, MODIFIED_NEWSLETTER_JS)`). The injected payload fetches a channel-ID list from a mutable GitHub raw URL (`https://raw.githubusercontent.com/hanssoft-studio/channelid/refs/heads/main/idch.json`) and silently issues `newsletterWMexQuery(id, QueryIds.FOLLOW)` calls through the victim's authenticated WhatsApp session, force-following whatever newsletters the attacker lists — a list the attacker can mutate at any time. After patching, the installer writes a `.cache` sentinel inside baileys' node_modules and calls `process.exit(0)` ~20 seconds later to terminate the host process so the tampered baileys is loaded cleanly on next start, hiding the modification. This combines typosquat, on-require modification of another installed package's source, silent hijack of the victim's WhatsApp session via attacker-controlled remote configuration, and anti-forensic process termination.\n\n## Source: ghsa-malware (9490a46320349dad9676cbd4488b439557313ecbce3a2fd265c8866473ed8984)\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":"@hanssoft/libsignal-node","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.0.4"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"6a17b62e9957897840e86781cd95d865bddb625fbc18002470288c934b996528","tlsh":"ef11274e6fe6f2a875a3b6c54e76d00a7527d083624c4120b19d5ad38bd10d48e52ca7"},{"path":"install.js","sha256":"f53e8045e6f7ed1a6fa7db1aa8e4ce7285f33a50864bed027e6e21ee11676fa5","tlsh":"4e72b39665fb67a917a37054a67fb0e0b324f243751598627e8c90020f4a29ce9f3bd8"}],"package_integrity":[{"filename":"libsignal-node-3.0.4.tgz","hashes":{"sha1":"6612ae8d7cb2ed909a4897360797fb5e586ba04d","sha512_sri":"sha512-MyBKcjTUrVPb17++LYu518ErIgM6JGcE+b8GZxddEnwNEK2Ga3QJaZDA2mRiCJ2v5JgSSBCUcUdxXmI06mGhRg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@hanssoft/libsignal-node/v/3.0.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v265-vv2m-9pgf"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-003785","import_time":"2026-05-26T05:51:18.595800187Z","modified_time":"2026-05-21T08:54:59Z","sha256":"063fa3a06df50a8c53c5eb05ac4d1214e6fa1edfb18d03c8484fa2014190659a","source":"amazon-inspector","versions":["3.0.4"]},{"id":"GHSA-v265-vv2m-9pgf","import_time":"2026-08-13T22:11:44.644415578Z","modified_time":"2026-08-13T15:55:15Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"9490a46320349dad9676cbd4488b439557313ecbce3a2fd265c8866473ed8984","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}

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