MAL-2026-18283

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@greenlake/session/MAL-2026-18283.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18283
Published
2026-10-25T15:08:57Z
Modified
2026-10-25T15:30:05Z
Summary
Malicious code in @greenlake/session (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (3255cc4148a62c7ba090d1912d41c572f3ce7ccb6db9cc131132cfd4a0970f43)

The 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.

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
Credits

Affected packages

npm / @greenlake/session

Package

Name
@greenlake/session
View open source insights on deps.dev
Purl
pkg:npm/%40greenlake/session

Affected ranges

Affected versions

99.*
99.0.1

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":  "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"