MAL-2026-14221Malicious code in ssb-test-package (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | ssb-test-package | 1.0.0 |
{"modified":"2026-08-19T03:02:26Z","published":"2026-08-19T03:02:26Z","schema_version":"1.7.4","id":"MAL-2026-14221","summary":"Malicious code in ssb-test-package (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (086e13ef78d9987210a95cc9e70359d982cd9dbffa59d674d6f5ed3cb8f8a725)\nssb-test-package@1.0.0 is a dependency-confusion proof-of-concept. package.json declares `preinstall: node poc.js`, and poc.js runs unconditionally on `npm install`, collecting host reconnaissance (OS user, hostname, platform, arch, Node version, cwd, and non-internal network interface addresses) into a JSON `proof` object with `rce_status: \"CONFIRMED\"` written to /tmp/npm-dependency-confusion-rce-poc.json. The package has no legitimate library functionality: package.json declares `main: index.js` but index.js is absent from the tarball; only package.json and poc.js are shipped. The package self-identifies as a PoC for npm dependency confusion using a look-alike internal name. The current build writes reconnaissance data locally and does not exfiltrate over the network, but the preinstall hook demonstrates arbitrary code execution on the installer's host at install time.\n","affected":[{"package":{"ecosystem":"npm","name":"ssb-test-package"},"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"}],"indicators":{"evidence_files":[{"path":"poc.js","sha256":"9bcfc945986ee3dde7fffa2352f8e46937b979b82498e2f767804b3370db42f5","tlsh":"911123610531327d29ea17d40521890113a3f592b00670fcf97c829d87d98dd11f7237"},{"path":"package.json","sha256":"a1b707a93b3a54d6ee0a6e4d49c1297cf7bdc1dc19d4215171300ce3598ecec1","tlsh":"8fe02b304c215c6324c09ea41c7724426166ce3b05097c0d77d7142c8ade37784ff21e"}],"package_integrity":[{"filename":"ssb-test-package-1.0.0.tgz","hashes":{"sha1":"1a6f2ebff61c0f9ce814f334522b7d5412fbbf62","sha512_sri":"sha512-yzcGLJYTl/qBAsvlyg7WfPpQsN15cGZdOglkWn4Ry24TBrHgipDQmfz0f1YCoce/kK0DX4jru96ED2EmvqviUQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ssb-test-package/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018319","import_time":"2026-08-19T03:24:21.589000688Z","modified_time":"2026-08-19T03:02:26Z","sha256":"086e13ef78d9987210a95cc9e70359d982cd9dbffa59d674d6f5ed3cb8f8a725","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0