{"schema_version":"1.9.0","id":"MAL-2026-18283","published":"2026-10-23T21:35:48Z","modified":"2026-10-26T06:00:04.204429136Z","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 (57df84a0164eda463123b80b9c0b871e6aeedaf39bfb0f585641495fd9b7c25c)\nThe package is a near-empty shim whose only functional behavior is a beacon. beacon.cjs defines a hardcoded bare-IP HTTP endpoint (http://185.158.107.175:8787/_ah/dc) and a fire() routine that POSTs installer-side host identifiers to it: package name, os.hostname(), __dirname (install path), process.cwd(), and process.version. fire() is invoked from the postinstall lifecycle script, so it runs automatically on `npm install`, and also from the main entry, so it runs again on `require('@greenlake/session')`. The main export is a Proxy that returns a no-op for every property access, so the package provides no legitimate functionality. The README self-labels this as an authorized dependency-confusion test against an internal `@greenlake` scope, but that is author-controlled text and does not constitute consent from any other installer whose resolver pulls this public package in place of the intended internal one. The data path is unencrypted (plain HTTP) and the destination is a bare IP unrelated to any declared publisher infrastructure.\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"},{"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"},{"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"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@greenlake/session/v/3.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@greenlake/session/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@greenlake/session/v/2.0.0"}],"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"]},{"id":"IN-MAL-2026-021726","import_time":"2026-10-26T05:46:52.917807352Z","modified_time":"2026-10-26T05:32:12Z","sha256":"0ccc7e38d6aa91b65c2b1bea73888265eaec2571e772fbada60b2f14ca771416","source":"amazon-inspector","versions":["3.0.0"]},{"id":"IN-MAL-2026-021724","import_time":"2026-10-26T05:46:52.837157065Z","modified_time":"2026-10-26T05:31:58Z","sha256":"4dd726d36e65a00a3c65aa602ff2a7b489a8aae93ffec5acdef70d5248609f44","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-021725","import_time":"2026-10-26T05:46:52.873567994Z","modified_time":"2026-10-26T05:32:05Z","sha256":"57df84a0164eda463123b80b9c0b871e6aeedaf39bfb0f585641495fd9b7c25c","source":"amazon-inspector","versions":["2.0.0"]}]},"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"}]}