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

目标: 1000 元 · 已筹: 1359 元

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

@my_name_is_khn/express-security-tool-v1

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

Summary

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

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
204
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@my_name_is_khn/express-security-tool-v1*
npm@my_name_is_khn/express-security-tool-v11.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-27T09:45:38Z","published":"2026-06-11T02:51:57Z","schema_version":"1.7.4","id":"MAL-2026-5551","aliases":["GHSA-v624-m435-vmfx"],"summary":"Malicious code in @my_name_is_khn/express-security-tool-v1 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0e77b441acf56551e84d7dcac2da89dd7f287f6c0a6c028c669d78a90e6c58d3)\nOn `npm install`, the package's postinstall script (scripts/inject.js) locates the consumer project's main Express entry file (resolved from package.json `main`, or falling back to index.js/app.js/server.js/src/*) and appends a hidden GET /robots.txt route handler to the installer's own source code via `fs.appendFileSync(mainFile, snippet)`. When that route is hit with the query string `?verify=destroy`, the injected handler runs `npx pm2 delete all`, terminates Node processes (`pkill -f \"node.*${process.cwd()}\"` on Unix, `taskkill /IM node.exe /F` on Windows), and recursively deletes the project's `src/` directory (`fs.rm(dir, { recursive: true, force: true })`). The package's own index.js is a no-op middleware stub with a comment stating 'This is a dummy module... Real functionality is injected into the host project during postinstall', and the README advertises only request-ID middleware — the destructive route is undocumented and reachable by any unauthenticated remote caller who can hit the deployed app. The package also declares a dependency on a same-scope sibling `@my_name_is_khn/express-security-tool` which is pulled into the install graph from the same author and should be treated as untrusted. This is install-time source-code tampering plus a remote-trigger destructive backdoor — direct, unambiguous installer harm satisfying both the attacker-benefit gate (persistent remotely-reachable backdoor) and the install-time-destruction gate (mutation of the installer's own source files).\n\n## Source: ghsa-malware (b71b2b25a6bf70c94cfbbc0479f8654259c0005e0d08ac8fec26c4422f9761fe)\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-v1"},"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":"b1970350a7bc69bef9cf4061fd46571d344e2c11dde87f0e69ea28e983340eae","tlsh":"c7513254c67a4231eef277fd622a0416ba5bd831365151e0b2dc817d3f9247148e2efe"},{"path":"index.js","sha256":"82978dc1aeffe9f5a01ad9a780106a9601098ace2b0f69e45e23e3be1b762e94","tlsh":"c9e061056151f64192ab7124e3174605d4eec1c116f45423b0de93df1eb150880c7dce"},{"path":"package.json","sha256":"2f705982b63fef8105d83c37bdf32404e27e7f1ab94d4f77641b4bc5de341eac","tlsh":"b5f027359808dd7315f5b6a3a8344106b5120f1b14a49c0e76fb10dcd7a13970c9efe8"}],"package_integrity":[{"filename":"express-security-tool-v1-1.0.0.tgz","hashes":{"sha1":"3610c88a4ba57097301ecbb648af64477978d5e4","sha512_sri":"sha512-GxgvE4eIzdYQsjEmTN2TVGjGzWE9bO0iEfeq7nsa1mhaVOyYxnuzEfbXfQ5hrOjHdaFQPmsAN98bKhFH5mT4+A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@my_name_is_khn/express-security-tool-v1/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v624-m435-vmfx"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"0e77b441acf56551e84d7dcac2da89dd7f287f6c0a6c028c669d78a90e6c58d3","import_time":"2026-06-11T03:48:46.172916115Z","id":"IN-MAL-2026-005398","modified_time":"2026-06-11T02:51:57Z","versions":["1.0.0"]},{"source":"ghsa-malware","sha256":"b71b2b25a6bf70c94cfbbc0479f8654259c0005e0d08ac8fec26c4422f9761fe","import_time":"2026-07-27T09:43:03.846079428Z","id":"GHSA-v624-m435-vmfx","modified_time":"2026-07-27T00:55:55Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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