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

目标: 1000 元 · 已筹: 1359 元

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

@my_name_is_khn/express-security-tool

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

Summary

Malicious code in @my_name_is_khn/express-security-tool (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
238
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@my_name_is_khn/express-security-tool*
npm@my_name_is_khn/express-security-tool1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-27T09:45:38Z","published":"2026-06-11T02:51:48Z","schema_version":"1.7.4","id":"MAL-2026-5550","aliases":["GHSA-pmmq-vq8x-p92v"],"summary":"Malicious code in @my_name_is_khn/express-security-tool (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6b7e17fc1e874d13547ace24c7b21593ce1eb13337d0d877a89c7a372974ee42)\nOn `npm install`, the package's postinstall hook (`scripts/inject.js`) locates the installer's host project root, identifies the main entry file (`index.js`, `app.js`, or `server.js`), detects the Express application variable, and appends a hidden route handler `GET /favicon.ico?key=d3str0y_th1s` directly into that file via `fs.appendFileSync`. When the deployed host application later receives a request to that endpoint with the trivial key string, the injected handler invokes `npx pm2 delete all`, `taskkill /IM node.exe /F` on Windows or `pkill -f \"node.*${process.cwd()}\"` on Unix, and recursively deletes the host project's `src/` directory via `fs.rm(path.join(process.cwd(),'src'), { recursive: true, force: true })`. The package's README falsely advertises benign middleware (security headers, request-ID injection); the shipped `index.js` is a dummy that only adds an `X-Request-Id` header, and a comment in that file explicitly states `\"Real functionality is injected into the host project during postinstall.\"` The `author` field is the placeholder `\"Your Name\"`. Two compounding harms: (1) installer-owned source files are mutated to contain attacker-authored code that persists after `npm uninstall`, and (2) any internet-facing deployment of the modified host app exposes a remote kill-switch (process termination + recursive source-tree deletion) to anyone who knows the hardcoded key.\n\n## Source: ghsa-malware (abfa0cd71419a9fbcccc8a3844d35b90acb1e6c07ec3013a89abd7a79b5a226d)\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":"@my_name_is_khn/express-security-tool"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["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"}],"indicators":{"evidence_files":[{"path":"scripts/inject.js","sha256":"9fc083132f243798afaaad4d6c35a846e435bdbc33dbab1df08baa4b411a92ee","tlsh":"f251779187ba8235ddf173eda0151423ba5bd9301a1141a073dc837d3e960668de3dfe"},{"path":"index.js","sha256":"82978dc1aeffe9f5a01ad9a780106a9601098ace2b0f69e45e23e3be1b762e94","tlsh":"c9e061056151f64192ab7124e3174605d4eec1c116f45423b0de93df1eb150880c7dce"}],"package_integrity":[{"filename":"express-security-tool-1.0.0.tgz","hashes":{"sha1":"9e21f4f7eb01141a4f94546b7f0af51fd30748b5","sha512_sri":"sha512-8SXCohwcn3e0avEA70bCO4xUuBg70PeoUeePcPpamK3pn+vQXvDxXC4YygZLk2HrEjhXzs8pOALpFVj9bjEoXw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@my_name_is_khn/express-security-tool/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pmmq-vq8x-p92v"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"6b7e17fc1e874d13547ace24c7b21593ce1eb13337d0d877a89c7a372974ee42","import_time":"2026-06-11T03:48:45.955420606Z","id":"IN-MAL-2026-005396","modified_time":"2026-06-11T02:51:48Z","versions":["1.0.0"]},{"source":"ghsa-malware","sha256":"abfa0cd71419a9fbcccc8a3844d35b90acb1e6c07ec3013a89abd7a79b5a226d","import_time":"2026-07-27T09:43:03.830267053Z","id":"GHSA-pmmq-vq8x-p92v","modified_time":"2026-07-27T00:55:54Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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