MAL-2026-18318

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@greenlake/mfe-login-url/MAL-2026-18318.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18318
Aliases
  • GHSA-6vg7-x7p2-c749
Published
2026-10-23T21:33:58Z
Modified
2026-10-29T14:45:04Z
Summary
Malicious code in @greenlake/mfe-login-url (npm)
Details

@greenlake/mfe-login-url 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 (2.0.0, 1.0.0, 3.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.


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

Source: amazon-inspector (8669a0a99995d7a57a13210e4b7e8fe8449f746ab808271370776d072491b3db)

@greenlake/mfe-login-url 2.0.0 presents itself as an empty compatibility shim but ships a beacon.cjs that POSTs installer hostname, install path, cwd, and Node version to the hardcoded plain-HTTP bare-IP endpoint http://185.158.107.175:8787/_ah/dc. The beacon fires in two places: package.json declares a postinstall script running node beacon.cjs, and index.js (a Proxy-based no-op stub designed not to break bundlers) invokes require('./beacon.cjs').fire() on import. The scope @greenlake and the stub-plus-beacon shape are consistent with a dependency-confusion reconnaissance package that silently confirms successful installs inside internal build systems and discloses host identifiers to an unknown operator. There is no legitimate functional code; the entire package exists to exfiltrate installer host metadata.

Source: ghsa-malware (9faa9e9c53efcfe969b4aaa5d2f8df7a5ab2879ab08cc2639f1c385dc1883094)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

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": "7702040cc46bba7b68455d8c28dcde546da84b9865e43dbf3aa2133c857c080b"
                },
                "note": "postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@greenlake/mfe-login-url@2.0.0).",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "0525465b55c4b5b7f12cc5c4e5321e8f21114ec96533c95ebb52edcfacfcb2b5"
                },
                "note": "Executed by the postinstall script of @greenlake/mfe-login-url@2.0.0.",
                "paths": [
                    "beacon.cjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "c72406caf8b83ef90067918b0a58d012474cd9ed7fb8bdb9e0762ac0667a34b3"
                },
                "note": "postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@greenlake/mfe-login-url@1.0.0).",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "0525465b55c4b5b7f12cc5c4e5321e8f21114ec96533c95ebb52edcfacfcb2b5"
                },
                "note": "Executed by the postinstall script of @greenlake/mfe-login-url@1.0.0.",
                "paths": [
                    "beacon.cjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "e25158aa482b59089ec46adb1f317bc617c59cfaf2e88e8d97fd8a1cc30a5d8d"
                },
                "note": "postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@greenlake/mfe-login-url@3.0.0).",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "0525465b55c4b5b7f12cc5c4e5321e8f21114ec96533c95ebb52edcfacfcb2b5"
                },
                "note": "Executed by the postinstall script of @greenlake/mfe-login-url@3.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-021721",
            "import_time": "2026-10-26T05:46:52.56364945Z",
            "modified_time": "2026-10-26T05:31:37Z",
            "sha256": "8669a0a99995d7a57a13210e4b7e8fe8449f746ab808271370776d072491b3db",
            "source": "amazon-inspector",
            "versions": [
                "2.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-021722",
            "import_time": "2026-10-26T05:46:52.611659034Z",
            "modified_time": "2026-10-26T05:31:45Z",
            "sha256": "95dde66d8e8b22aa7f25b7b90892ce84c3aabd70281b1680ba729d2f36dfae4a",
            "source": "amazon-inspector",
            "versions": [
                "3.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-021723",
            "import_time": "2026-10-26T05:46:52.805874028Z",
            "modified_time": "2026-10-26T05:31:52Z",
            "sha256": "0a74b73854861db522d08bb6bce10b79172677ee3f17c8277dfd995dfef38c0a",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "GHSA-6vg7-x7p2-c749",
            "import_time": "2026-10-26T16:31:42.704360797Z",
            "modified_time": "2026-10-26T16:27:31Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "9faa9e9c53efcfe969b4aaa5d2f8df7a5ab2879ab08cc2639f1c385dc1883094",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022307",
            "import_time": "2026-10-29T14:37:03.050409821Z",
            "modified_time": "2026-10-29T14:15:48Z",
            "sha256": "274d2397bb234a47e39b28e3d812f16fc3683766d9ca6c0cac061185fa2617b9",
            "source": "amazon-inspector",
            "versions": [
                "0.1.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022308",
            "import_time": "2026-10-29T14:37:03.083580676Z",
            "modified_time": "2026-10-29T14:15:55Z",
            "sha256": "7fa15aab3e697b61b7a854abbfd7e004994882ea33750073bc9844156f23e31a",
            "source": "amazon-inspector",
            "versions": [
                "0.0.0-stage"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @greenlake/mfe-login-url

Package

Name
@greenlake/mfe-login-url
View open source insights on deps.dev
Purl
pkg:npm/%40greenlake/mfe-login-url

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.0.0-stage
0.1.0
1.*
1.0.0
2.*
2.0.0
3.*
3.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"
    },
    {
        "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": "0525465b55c4b5b7f12cc5c4e5321e8f21114ec96533c95ebb52edcfacfcb2b5",
            "tlsh": "c33161eba8e4e0089ae77498c54f0409b17af0068501af54f95c82959f6153c33fa8dc"
        },
        {
            "path": "index.js",
            "sha256": "a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d",
            "tlsh": "2201d0d7225661b10b5221a4978f43c4a3b99d74027941d0d84a9226365108c463b8ee"
        }
    ],
    "package_integrity": [
        {
            "filename": "mfe-login-url-2.0.0.tgz",
            "hashes": {
                "sha1": "f043c70580dade0bc10d1650ef7ead559d98d118",
                "sha512_sri": "sha512-QshHsIwF3iUI0KYjpzY4Jqg5DdkinwBcESvo/Xi81utYdQ58SZeCB0zEoH4f0A02S3YTWizFKXDU1uLxRbGHYA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@greenlake/mfe-login-url/MAL-2026-18318.json"