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

目标: 1000 元 · 已筹: 1359 元

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

hex-type

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

Summary

Malicious code in hex-type (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
8
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmhex-type*
npmhex-type3.0.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-11T15:28:26Z","published":"2026-06-11T00:19:58Z","schema_version":"1.7.4","id":"MAL-2026-5538","aliases":["GHSA-jc42-pxfc-29x3"],"summary":"Malicious code in hex-type (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f7d0271fe97ea66e9ff2ba3a0ea225364324f28138af32c337d6ed8b2b99e5ad)\nPackage metadata (description \"A universally-unique, lexicographically-sortable, identifier generator\", homepage github.com/ulid/javascript, build script `--name ulidx`, reused ULID source) impersonates the legitimate `ulid`/`ulidx` libraries, but the package adds a malicious dropper not present in those projects. `package.json` declares `\"postinstall\": \"node dist/utils.js\"`. On `npm install`, dist/utils.js re-spawns itself detached with `--bg`, copies dist/payload.js (~950KB) to a hidden directory named `MicrosoftSystem64` under LOCALAPPDATA / Application Support / ~/.local/share (impersonating a Windows system component), and registers OS-level persistence: a Windows Scheduled Task plus Run-key launching `wscript.exe` of a generated VBS, a Linux systemd --user service with `loginctl enable-linger`, or a `.config/autostart` fallback, and a detached spawn on macOS. The dropped payload.js bundles the `ws` WebSocket client/server, `pino` logging, `zod`, and references `https://huggingface.co/api` and `https://huggingface.co` — the building blocks of a long-running remote-controlled agent, with zero relation to ULID generation. Both the postinstall (`if (cpus.length <= 4...) return;`) and the agent (`MIN_CPU_COUNT = 5`) abort on hosts with ≤4 CPUs to evade sandboxes and low-core CI runners. This is unambiguous installer-side RCE plus persistence plus C2.\n\n## Source: ghsa-malware (4a9a7e2427ae3c6ab1b50874653afe275962d527b94bf81ea5ce52ae9455d793)\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":"hex-type"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.0.2"],"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":{"domains":["34.11.16.104.in-addr.arpa"],"evidence_files":[{"path":"dist/utils.js","sha256":"297addad77d1b0a45eb5dd84ce45ee5ab027bdef3acccf89be264577fb88c529","tlsh":"aff1844d66b366718df263a4620f42261a9f90937645ec70f69c81e92f5b12ec0339ee"},{"path":"package.json","sha256":"97090f8cdbedec578e9058d4a55fd485ff8224a11810dbdf26065eb00ace5307","tlsh":"ab611125cd980e331ac025d4e8ba4691a536885b89d4f958b3a9425d4fcc3af01ff2ed"},{"path":"dist/payload.js","sha256":"10f41901a3e5da8a9d1f64d6dd3ac504afbb4b1e43eae4635fea189c8a7d1727","tlsh":"5c15939aaaf750260663b1bd6f5f900676359007250cfd88be8c87946f4d42c93f6bec"}],"package_integrity":[{"filename":"hex-type-3.0.2.tgz","hashes":{"sha1":"5846bd2eaa4eac30715a6e299d9d0cdbbb36a0a9","sha512_sri":"sha512-MHRWfLZhfTJJqbWMYjIhNEa9QzskBDlln8TAT4Sw4e0ROLVi5aSiviValpRFxWmIX36ASAuahvJDQ9L73VQ7/w=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/hex-type/v/3.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-jc42-pxfc-29x3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"1b9530df5da36f6e3de0761c79ef3687e4f0c5f1990d77a3f874df2c1b3fe278","import_time":"2026-06-11T01:21:50.563423775Z","id":"IN-MAL-2026-005342","modified_time":"2026-06-11T00:19:59Z","versions":["3.0.2"]},{"source":"amazon-inspector","sha256":"f7d0271fe97ea66e9ff2ba3a0ea225364324f28138af32c337d6ed8b2b99e5ad","import_time":"2026-06-11T01:21:50.494294323Z","id":"IN-MAL-2026-005341","modified_time":"2026-06-11T00:19:58Z","versions":["3.0.2"]},{"source":"ghsa-malware","sha256":"4a9a7e2427ae3c6ab1b50874653afe275962d527b94bf81ea5ce52ae9455d793","import_time":"2026-06-11T15:26:36.955223904Z","id":"GHSA-jc42-pxfc-29x3","modified_time":"2026-06-11T13:57:10Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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