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

目标: 1000 元 · 已筹: 1336

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

nano-perf

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

Summary

Malicious code in nano-perf (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
343
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.0unavailable
1.0.1unavailable
1.1.0unavailable
2.0.0unavailable
2.0.1unavailable
2.1.0unavailable
2.2.0unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmnano-perf*
npmnano-perf1.0.0
npmnano-perf1.0.1
npmnano-perf1.1.0
npmnano-perf2.0.0
npmnano-perf2.0.1
npmnano-perf2.1.0
npmnano-perf2.2.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-11204","published":"2026-06-17T19:01:25Z","modified":"2026-08-20T06:51:40.528782287Z","aliases":["GHSA-4236-g67q-42fc"],"summary":"Malicious code in nano-perf (npm)","details":"Version 2.2.0 of nano-perf declares a postinstall script that automatically launches daemon.js as a detached, unreferenced process with ignored standard streams, allowing it to survive completion of npm install. The launcher reconstructs an obfuscated Supabase endpoint from Base64 fragments and sends a persistent node identifier, CPU count, total memory, platform information, and an online heartbeat to a table named stealth_heartbeats.\n\nAfter a successful heartbeat the detached daemon polls a second table named stealth_tasks for pending work assigned to the victim node. The observed task handlers perform CPU benchmarking and system probing and upload the results. Although this version does not expose an arbitrary shell task, the hidden endpoint, automatic installation-time persistence, periodic beaconing, system fingerprint collection, and remote task polling are behavior of a covert C2 beacon and task agent rather than a performance utility.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (654460e27d19da08e0c343f90cc776d9a7e683bc7e2814dd751eb3bf4bebcada)\nOn require(), nano-perf (index.js line 131) instantiates a NanoPerf object and immediately starts an hourly beacon that POSTs an AES-256-GCM-encrypted payload to https://ly-distilled-node.vercel.app/api/heartbeat (hardcoded at index.js line 18 as BEACON_HOST). The payload includes a hostname-derived node_id, platform, arch, Node.js version, CPU usage, memory, uptime, and CPU count. The encryption key is derived from os.hostname() + 'nano-perf-v1' (index.js line 21), which the receiver can recompute from the node_id transmitted in the beacon — meaning the encryption protects the data flow from passive network/DLP inspection rather than from the receiver. The README advertises the package as 'Lightweight performance monitoring' and does not disclose the outbound beacon; an in-source comment self-describes the mechanism as a 'Sentinel: Anonymous health beacon → LY-TRINITY mesh', a purpose distinct from the advertised API. The behavior is enabled by default with no opt-in. Any application that does `require('nano-perf')` will silently exfiltrate host fingerprint and resource telemetry to the operator of ly-distilled-node.vercel.app hourly for the lifetime of the process.\n\n## Source: ghsa-malware (9cbd507bde0e4815e03d92f7114f130ce0eff929f3b79f74c08cc39474ff994f)\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":"nano-perf","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.2.0","2.0.1","2.1.0","2.0.0","1.0.1","1.1.0","1.0.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"},{"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":"daemon.js","sha256":"061ff018f72c4ccc01f928614733f250ff988deff034a16f4df13f9cfc6a7b5e","tlsh":"dbb131dd9eb75194adb3322e83bf95155173d0036c0aed61b98c37201f98a2c04a9ef8"},{"path":"postinstall.js","sha256":"c47515e0219a4d112c26c608f212c899614135f2793a2ecc88203da60409fdc3","tlsh":"ca4152daafb3a29cbea3726a823f990441a6c1133815e861f4cc79511f8971d04badf4"}],"package_integrity":[{"filename":"nano-perf-2.2.0.tgz","hashes":{"sha1":"0c76e77ca88e04ca1d28155423f1229c79f4264c","sha256":"48165a206fb778bea19de4ad414a50059256418abd78ed104c1d8a1c147d420b","sha512_sri":"sha512-v4hDYYfeu0Kij797nz3s5EFr0olR4znk/XFvdZH94WZM/Qn3vkMv1XZ3WWQZYOSIQCG9iyaOCzveuI90M7zJOA=="}}]},"iocs":{"domains":["ojkxjcz5yvgtdsigwbxi.supabase.co"],"urls":["https://ojkxjcz5yvgtdsigwbxi.supabase.co/rest/v1/stealth_heartbeats","https://ojkxjcz5yvgtdsigwbxi.supabase.co/rest/v1/stealth_tasks"]}}}],"references":[{"type":"WEB","url":"https://www.npmjs.com/package/nano-perf/v/2.2.0"},{"type":"REPORT","url":"https://github.com/ossf/malicious-packages/issues/1373"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nano-perf/v/2.2.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4236-g67q-42fc"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nano-perf/v/2.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nano-perf/v/2.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nano-perf/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nano-perf/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nano-perf/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nano-perf/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010975","import_time":"2026-08-04T21:33:11.920196753Z","modified_time":"2026-08-04T21:11:07Z","sha256":"452f28d1cf87f232f40920b040da4821c6f618ef293a91162b8c8696c45764fe","source":"amazon-inspector","versions":["2.2.0"]},{"id":"GHSA-4236-g67q-42fc","import_time":"2026-08-20T04:26:16.133477714Z","modified_time":"2026-08-20T03:44:08Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"9cbd507bde0e4815e03d92f7114f130ce0eff929f3b79f74c08cc39474ff994f","source":"ghsa-malware"},{"id":"IN-MAL-2026-018449","import_time":"2026-08-20T06:16:09.544039193Z","modified_time":"2026-08-20T06:11:19Z","sha256":"03fb9ad9be49a421c63612442c98a07d03e70da394c17950bae6f89c5b946cac","source":"amazon-inspector","versions":["2.0.1"]},{"id":"IN-MAL-2026-018452","import_time":"2026-08-20T06:16:09.653357998Z","modified_time":"2026-08-20T06:11:45Z","sha256":"575bbb86c20854f0549eb7d4bfad37f4a22769c1410df34ffca27a30dd57caf7","source":"amazon-inspector","versions":["2.1.0"]},{"id":"IN-MAL-2026-018451","import_time":"2026-08-20T06:16:09.623222272Z","modified_time":"2026-08-20T06:11:37Z","sha256":"5a3f5df0fe4188679c12065b53260dba7edeeef0e938017c24153fcf2580d33a","source":"amazon-inspector","versions":["2.0.0"]},{"id":"IN-MAL-2026-018450","import_time":"2026-08-20T06:16:09.595842648Z","modified_time":"2026-08-20T06:11:28Z","sha256":"654460e27d19da08e0c343f90cc776d9a7e683bc7e2814dd751eb3bf4bebcada","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-018454","import_time":"2026-08-20T06:49:52.764041917Z","modified_time":"2026-08-20T06:20:23Z","sha256":"e42cc507b2373fa45e676a98f7e042a37285b2e16f6436ff774676adf788e5f8","source":"amazon-inspector","versions":["1.1.0"]},{"id":"IN-MAL-2026-018453","import_time":"2026-08-20T06:49:52.67077977Z","modified_time":"2026-08-20T06:20:15Z","sha256":"eedabb328fb399f66e4437b1ba5fd12c8f1c8adcef47153716c5515ff36b2532","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"YoSheep","contact":["https://github.com/YoSheep"],"type":"FINDER"}]}

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