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

目标: 1000 元 · 已筹: 1359 元

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

@my_name_is_khn/express-security-tool-v3

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

Summary

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

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
220
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@my_name_is_khn/express-security-tool-v3*
npm@my_name_is_khn/express-security-tool-v31.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-27T09:45:38Z","published":"2026-06-11T02:51:53Z","schema_version":"1.7.4","id":"MAL-2026-5552","aliases":["GHSA-pf66-w9wm-c932"],"summary":"Malicious code in @my_name_is_khn/express-security-tool-v3 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (42987119346b57a7014465a5a7bec3c00d1928e7e41d999152aa4e2f814c298e)\nOn `npm install`, the package's `postinstall` runs `scripts/inject.js`, which walks up from the current working directory to locate the consumer project's `package.json`, resolves the `main` Express entry (falling back to `index.js`/`app.js`/`server.js`/`src/index.js`/`src/app.js`), and uses `fs.appendFileSync` to silently append a snippet to that file. The injected snippet registers `app.get('/robots.txt',...)` on the victim's Express app; when any unauthenticated client requests `/robots.txt?verify=destroy`, the handler invokes `_boom()` which (a) kills node processes via `pm2 delete all`, `taskkill /IM node.exe /F`, or `pkill -f \"node.*${process.cwd()}\"`, and (b) recursively deletes `process.cwd()/src` via `fs.rm(..., {recursive:true, force:true})`. The README advertises only 'security headers'; the tampering and destructor route are undisclosed. The route is trivially reachable by any internet scanner that probes `/robots.txt` with the magic query string. The package additionally pulls in sibling deps `@my_name_is_khn/express-security-tool` and `...-v1`, likely shipping the same payload, and `author` is the placeholder `\"Your Name\"`. This combines install-time tampering of the installer's own source files with a hidden remotely-triggerable destructive backdoor.\n\n## Source: ghsa-malware (78f2418fbbb45f960f5592d384fd6186bd82d81cd58108ac20a53fbdbe08a6ef)\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-v3"},"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":"package.json","sha256":"e400ae760028a74adb3728b09a7feab100bd23076edb92da58bd539db5cd3032","tlsh":"a4f05935980ccd3325f5b663a434410af4160f1b04a5dd0e77ba11dcd7a13970c9abe8"}],"package_integrity":[{"filename":"express-security-tool-v3-1.0.0.tgz","hashes":{"sha1":"7ee09e9f41e3fedd1fe94b2ad513379a55f0d9a9","sha512_sri":"sha512-ayuiLRMhwhFFvlN/UIqKAu67pAJPRbVDy86vLBfwDSwloKM+FyWvNIK3/iwisyjP48ZkfDBaCF7U5hquB2x17A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@my_name_is_khn/express-security-tool-v3/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pf66-w9wm-c932"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"42987119346b57a7014465a5a7bec3c00d1928e7e41d999152aa4e2f814c298e","import_time":"2026-06-11T03:48:46.061090201Z","id":"IN-MAL-2026-005397","modified_time":"2026-06-11T02:51:53Z","versions":["1.0.0"]},{"source":"ghsa-malware","sha256":"78f2418fbbb45f960f5592d384fd6186bd82d81cd58108ac20a53fbdbe08a6ef","import_time":"2026-07-27T09:43:03.827661339Z","id":"GHSA-pf66-w9wm-c932","modified_time":"2026-07-27T00:55:55Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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