{"schema_version":"1.9.0","id":"MAL-2026-18283","published":"2026-10-23T21:35:48Z","modified":"2026-10-26T03:30:05.159796820Z","summary":"Malicious code in @greenlake/session (npm)","details":"@greenlake/session is a dependency-confusion package: it is described as a \"Compatibility shim\", uses inflated version numbers, and its README calls it an \"authorized dependency-confusion test\". Each listed version (3.0.0, 99.0.1, 1.0.0, 2.0.0) has a postinstall script that runs `node beacon.cjs` on npm install, and index.js calls the same code when the package is imported; it POSTs the hostname, install path and current working directory over plain HTTP to `http://185.158.107.175:8787/_ah/dc`, and index.js exports a Proxy that returns no-op functions so builds importing the real package keep running. The npm account wiseke published 14 such packages under the @greenlake, @sxm-web, @drone-js-ext and @ppa-web-components scopes between 2026-10-23 21:23 and 2026-10-25 14:28 UTC; index.js is byte-identical to that of ph-common (MAL-2026-1809), which sends to the same endpoint.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3255cc4148a62c7ba090d1912d41c572f3ce7ccb6db9cc131132cfd4a0970f43)\nThe package is a scoped-namespace shim (version 99.0.1) whose main entry re-exports a Proxy returning no-op functions, allowing consumer builds to resolve this name without errors. On `npm install` (postinstall hook) and on `require('@greenlake/session')` (main-module side effect), beacon.cjs issues a plain-HTTP POST to the hardcoded bare-IP endpoint http://185.158.107.175:8787/_ah/dc carrying a JSON payload containing os.hostname(), __dirname (install path), process.cwd(), and process.version. The inflated version number, scoped name mimicking an internal namespace, Proxy no-op surface, and automatic beacon on both install and import together form a dependency-confusion exfiltration shape: any build that resolves @greenlake/session from the public registry instead of the intended private source leaks internal host identifiers and install locations to the hardcoded endpoint.\n","affected":[{"package":{"name":"@greenlake/session","ecosystem":"npm","purl":"pkg:npm/%40greenlake/session"},"versions":["99.0.1","3.0.0","1.0.0","2.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":"beacon.cjs","sha256":"dd0aba7af55aa0cc6d02c8408411e633a8f55ace41ba5f94f7f637a6c0104d53","tlsh":"1c3141eba8e1a0489aa67498c54f1409f27af4079501ab50fd5c82959f6193c33fa8dc"},{"path":"index.js","sha256":"a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d","tlsh":"2201d0d7225661b10b5221a4978f43c4a3b99d74027941d0d84a9226365108c463b8ee"}],"package_integrity":[{"filename":"session-99.0.1.tgz","hashes":{"sha1":"22fdcfe7d410cd696cb2a63d5321dc53ccbff067","sha512_sri":"sha512-EtDOMBbGsqEkKwLzECrECBgKVJ6nlFz1aH9fvotjgmpgSeWeaaK3fKwQP51Clkd4GtDJlDTC3Wf4KgEAY91F1g=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@greenlake/session/MAL-2026-18283.json"}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@greenlake/session/v/99.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@greenlake/session"}],"database_specific":{"iocs":{"files":[{"digests":{"sha256":"a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d"},"note":"Main entry point; calls beacon.cjs fire() on import and exports a no-op Proxy. Identical in all listed versions and in ph-common (MAL-2026-1809).","paths":["index.js"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"ac15cddbd3f2464d0d1031c6cbe7c686710822600ab9cbd8ff90a440c1b263c6"},"note":"postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@greenlake/session@3.0.0).","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"dd0aba7af55aa0cc6d02c8408411e633a8f55ace41ba5f94f7f637a6c0104d53"},"note":"Executed by the postinstall script of @greenlake/session@3.0.0.","paths":["beacon.cjs"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"e83eab3f34b9e0fb054f35fbe2d3fa4211afe2eb5181ca08ffea6df23f5603a1"},"note":"postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@greenlake/session@99.0.1).","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"dd0aba7af55aa0cc6d02c8408411e633a8f55ace41ba5f94f7f637a6c0104d53"},"note":"Executed by the postinstall script of @greenlake/session@99.0.1.","paths":["beacon.cjs"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"f3d1ef4587eaa104d652ddd0012dacd6d76d101480ed405941918d8e92079ce4"},"note":"postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@greenlake/session@1.0.0).","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"dd0aba7af55aa0cc6d02c8408411e633a8f55ace41ba5f94f7f637a6c0104d53"},"note":"Executed by the postinstall script of @greenlake/session@1.0.0.","paths":["beacon.cjs"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"f95a4c376542ddb1d13b5b2f775af6e2eeed9137665ddfb15b58bc50ca5af5d3"},"note":"postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@greenlake/session@2.0.0).","paths":["package.json"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"dd0aba7af55aa0cc6d02c8408411e633a8f55ace41ba5f94f7f637a6c0104d53"},"note":"Executed by the postinstall script of @greenlake/session@2.0.0.","paths":["beacon.cjs"],"source":"PACKAGE_ARCHIVE"}],"ips":["185.158.107.175"],"urls":["http://185.158.107.175:8787/_ah/dc"]},"malicious-packages-origins":[{"id":"IN-MAL-2026-021704","import_time":"2026-10-25T15:15:15.391737856Z","modified_time":"2026-10-25T15:08:57Z","sha256":"3255cc4148a62c7ba090d1912d41c572f3ce7ccb6db9cc131132cfd4a0970f43","source":"amazon-inspector","versions":["99.0.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}