{"id":"MAL-2026-18283","summary":"Malicious code in @greenlake/session (npm)","details":"\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","modified":"2026-10-25T15:30:05.648315673Z","published":"2026-10-25T15:08:57Z","database_specific":{"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"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@greenlake/session/v/99.0.1"}],"affected":[{"package":{"name":"@greenlake/session","ecosystem":"npm","purl":"pkg:npm/%40greenlake/session"},"versions":["99.0.1"],"database_specific":{"indicators":{"evidence_files":[{"path":"beacon.cjs","sha256":"dd0aba7af55aa0cc6d02c8408411e633a8f55ace41ba5f94f7f637a6c0104d53","tlsh":"1c3141eba8e1a0489aa67498c54f1409f27af4079501ab50fd5c82959f6193c33fa8dc"},{"tlsh":"2201d0d7225661b10b5221a4978f43c4a3b99d74027941d0d84a9226365108c463b8ee","path":"index.js","sha256":"a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d"}],"package_integrity":[{"hashes":{"sha1":"22fdcfe7d410cd696cb2a63d5321dc53ccbff067","sha512_sri":"sha512-EtDOMBbGsqEkKwLzECrECBgKVJ6nlFz1aH9fvotjgmpgSeWeaaK3fKwQP51Clkd4GtDJlDTC3Wf4KgEAY91F1g=="},"filename":"session-99.0.1.tgz"}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@greenlake/session/MAL-2026-18283.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}