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

目标: 1000 元 · 已筹: 1359 元

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

routecraft

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

Summary

Malicious code in routecraft (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmroutecraft*
npmroutecraft4.2.0
npmroutecraft5.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-20T13:16:59Z","published":"2026-06-19T15:55:54Z","schema_version":"1.7.4","id":"MAL-2026-6229","aliases":["GHSA-mw8m-x3ph-h3x7"],"summary":"Malicious code in routecraft (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a0c4f17a9e94ab9fdbab7325f597551a6c0ba5b9e210cb0b7e28d3b86b4766d0)\nroutecraft@4.2.0 ships verbatim Express.js source (lib/routecraft.js, lib/application.js, lib/request.js, lib/response.js, lib/utils.js, lib/view.js — same layout, comments, and exports including createApplication, Router, and json/raw/text/urlencoded/static middleware) under a different package name and author with no Express attribution, presenting itself as an original 'lightweight HTTP routing framework'. package.json declares `\"preinstall\": \"node./lib/configure.js\"`. lib/configure.js performs no compilation despite logging '...Skipping native addon compilation' — the package ships no native sources (no binding.gyp, no.cc/.cpp/.rs files). Instead, lines 10-12 contain `if (os.platform() === 'win32' && v >= 18) { require('procwire'); }`, conditionally loading the obscure `procwire` dependency (declared as `^1.3.0`) only on Windows with Node >= 18. The false cover story, the platform gate, and the delegation of the executed code to an unpinned transitive dependency together form the standard pattern for shifting a malicious payload off the parent package so it appears clean while installers on Windows execute whatever procwire ships at install time.\n\n## Source: ghsa-malware (1d59be835e0f7c6030e248343fc25d7d5044225a02c021b588faa736bf204170)\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":"routecraft"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["5.0.0","4.2.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"}],"indicators":{"evidence_files":[{"path":"lib/configure.js","sha256":"e0fb0ac2cd9a864482a63de72821462ad5e2fa3f73b9ea5229c49cee0d0bafc8","tlsh":"dae020cc9bfde556397526c6181602176555c0210e05d4d06534d1f57f90d7017a6df9"},{"path":"lib/routecraft.js","sha256":"0ac99f23625ab512ad4170e1658a4e21f69359e01c89bd0dd507cec2c52e27e2","tlsh":"5b31f0c7b5c0b2a917a375fc473ad1c16caed2fa6045d4ba40d4d2f82c8140dd385ed4"}],"package_integrity":[{"filename":"routecraft-5.0.0.tgz","hashes":{"sha1":"db1b27737dd2d0cbbbbc792676be52a623911a15","sha512_sri":"sha512-Phu3S1BH9fDl7mrSe5euILuJkQl91/7pDl/fD51upMZAIyDw9tZC8Qu50tR0V4N0CM41A+71CiBhEcqIUiWrIw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/routecraft/v/5.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/routecraft/v/4.2.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-mw8m-x3ph-h3x7"},{"type":"WEB","url":"https://safedep.io/procwire-npm-windows-dropper-campaign"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"ReversingLabs","type":"FINDER","contact":["https://www.reversinglabs.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"35254023a0071db579346eebe9f0e355a847a6d7f4320f600354c220f00ba646","import_time":"2026-06-19T16:53:21.348902647Z","id":"IN-MAL-2026-007085","modified_time":"2026-06-19T15:55:54Z","versions":["5.0.0"]},{"source":"amazon-inspector","sha256":"a0c4f17a9e94ab9fdbab7325f597551a6c0ba5b9e210cb0b7e28d3b86b4766d0","import_time":"2026-06-19T16:53:21.405061587Z","id":"IN-MAL-2026-007086","modified_time":"2026-06-19T15:57:50Z","versions":["4.2.0"]},{"source":"ghsa-malware","sha256":"1d59be835e0f7c6030e248343fc25d7d5044225a02c021b588faa736bf204170","import_time":"2026-06-29T17:14:01.294880259Z","id":"GHSA-mw8m-x3ph-h3x7","modified_time":"2026-06-29T16:30:47Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"reversing-labs","sha256":"c9b8b5fd2b46134e9afdda559e336b7895f1c727d241c493fc93ae4e6b2d4875","import_time":"2026-07-20T13:14:50.809954815Z","id":"RLMA-2026-05608","modified_time":"2026-07-20T10:57:26Z","versions":["4.2.0","5.0.0"]}]}}

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