MAL-2026-18276

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@drone-js-ext/core/MAL-2026-18276.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18276
Aliases
  • GHSA-938p-x8vr-2r33
Published
2026-10-25T04:49:18Z
Modified
2026-10-29T14:30:31Z
Summary
Malicious code in @drone-js-ext/core (npm)
Details

@drone-js-ext/core is a dependency-confusion package: it squats the @drone-js-ext scope, which matches a private internal package scope, and was published on 2026-10-25 in versions 1.0.0, 2.0.1, 3.0.0, 99.0.1 (up to 99.0.1) so that builds resolving the internal name from the public registry install it instead. Its postinstall script runs node beacon.cjs, which sends an HTTP POST over cleartext HTTP to the hardcoded IP endpoint http://185.158.107.175:8787/_ah/dc with the package name, the machine's hostname, the install directory, the current working directory and the Node.js version, tagged with an x-beacon-package header. The entry point index.js sends the same request again whenever the package is loaded and otherwise exports a Proxy whose every property is a no-op function, so it has no legitimate functionality and hides the missing API from bundlers. The README calls it an "authorized dependency-confusion test"; that does not change what it does to an installer. The same beacon code and endpoint appear in other dependency-confusion packages from the same publisher. The inert 0.0.0-stage and 0.1.0 placeholder versions carry no install script and are not affected. Any machine that installed an affected version has disclosed its hostname and filesystem layout to a third party; remove the package, pin or scope internal package names to the internal registry, and block 185.158.107.175 on build hosts.


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

Source: amazon-inspector (9173b1e0c1d01cafb58dfbcad8b59a50f49700cc911e22df2787f5a92b4c6e43)

The package ships a beacon.cjs that collects host identifiers (hostname, install path, current working directory, Node version) and POSTs them in cleartext to the hardcoded bare-IP endpoint http://185.158.107.175:8787/_ah/dc. This beacon is wired to run automatically in two places: package.json declares scripts.postinstall = "node beacon.cjs", so it executes on npm install, and index.js also invokes the same fire() function at module load, so it executes again on require(). The remainder of the package is a no-op Proxy shim with no functional code matching the stated Compatibility shim description. The scope-and-version shape (@drone-js-ext/core at version 99.0.1 against a plausibly internal @drone-js-ext/* namespace) matches a dependency-confusion lure designed to be resolved in place of a private internal package. A README self-label of dependency-confusion test does not change the behavior: any installer that resolves this package has host-identifying data sent to a non-vendor, non-registry, bare-IP, plaintext-HTTP collector controlled by a third party.

Source: ghsa-malware (338c919fc73c66cb9bd18fa251359467039387724d1f8f41e6d3bb88f52ddc6f)

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": "48500d618e28ef3d746095a6652aee2c0f08397f1c7ad02cf26c7c2cd6df507d"
                },
                "note": "postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@drone-js-ext/core@1.0.0).",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "536400306df71e064363b6792a44b6e46f2821cda56fdbbc6bb2c2558b08d974"
                },
                "note": "Executed by the postinstall script of @drone-js-ext/core@1.0.0.",
                "paths": [
                    "beacon.cjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "e5ae4e660c364c9c9fb6a68fd106423c3f65a85d1f034d8a6eed517f79620118"
                },
                "note": "postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@drone-js-ext/core@3.0.0).",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "536400306df71e064363b6792a44b6e46f2821cda56fdbbc6bb2c2558b08d974"
                },
                "note": "Executed by the postinstall script of @drone-js-ext/core@3.0.0.",
                "paths": [
                    "beacon.cjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "eeaaf7fb2af2102c7fb0f3e5cbc141bd3d7f23ba2d8d10b53f6c0f33aa8632e7"
                },
                "note": "postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@drone-js-ext/core@99.0.1).",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "536400306df71e064363b6792a44b6e46f2821cda56fdbbc6bb2c2558b08d974"
                },
                "note": "Executed by the postinstall script of @drone-js-ext/core@99.0.1.",
                "paths": [
                    "beacon.cjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "974b0332941e8e2fb90638297aaa2b526fd8ae63d1bc510c41df83456bd3153d"
                },
                "note": "postinstall script runs `node beacon.cjs`, which POSTs hostname, install path and cwd to http://185.158.107.175:8787/_ah/dc (@drone-js-ext/core@2.0.1).",
                "paths": [
                    "package.json"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "digests": {
                    "sha256": "536400306df71e064363b6792a44b6e46f2821cda56fdbbc6bb2c2558b08d974"
                },
                "note": "Executed by the postinstall script of @drone-js-ext/core@2.0.1.",
                "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-021702",
            "import_time": "2026-10-25T15:15:15.207666384Z",
            "modified_time": "2026-10-25T15:08:36Z",
            "sha256": "9173b1e0c1d01cafb58dfbcad8b59a50f49700cc911e22df2787f5a92b4c6e43",
            "source": "amazon-inspector",
            "versions": [
                "99.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-021754",
            "import_time": "2026-10-26T06:39:40.47309249Z",
            "modified_time": "2026-10-26T06:28:49Z",
            "sha256": "569ac3194c8e282ad998a4cdea42bf66f294718c34aa3e4a9e23c6e48fd6aa95",
            "source": "amazon-inspector",
            "versions": [
                "3.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-021752",
            "import_time": "2026-10-26T06:39:40.352830114Z",
            "modified_time": "2026-10-26T06:28:36Z",
            "sha256": "6b376be15e74e8b44a791cdeecc97767fe9910d08586fc35f7ff794a8b4f5f51",
            "source": "amazon-inspector",
            "versions": [
                "2.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-021753",
            "import_time": "2026-10-26T06:39:40.415958128Z",
            "modified_time": "2026-10-26T06:28:44Z",
            "sha256": "964c95bc1b9d42fc949e9baff8f32ea67b4d84fcf21cfdb7ffb2fa06c8aff122",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "GHSA-938p-x8vr-2r33",
            "import_time": "2026-10-26T16:31:42.708397892Z",
            "modified_time": "2026-10-26T16:27:31Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "338c919fc73c66cb9bd18fa251359467039387724d1f8f41e6d3bb88f52ddc6f",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022146",
            "import_time": "2026-10-29T14:14:29.811415946Z",
            "modified_time": "2026-10-29T13:54:50Z",
            "sha256": "02970d4c48725bd9aa71fa4a54d7bde3cca7d8f8099dcf5188c922eba66e9edf",
            "source": "amazon-inspector",
            "versions": [
                "0.0.0-stage"
            ]
        },
        {
            "id": "IN-MAL-2026-022207",
            "import_time": "2026-10-29T14:14:34.447277097Z",
            "modified_time": "2026-10-29T14:02:49Z",
            "sha256": "245cab09811e900e4aea61aa5dde0d7b50ec606987557a653be679660a4b6667",
            "source": "amazon-inspector",
            "versions": [
                "0.1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @drone-js-ext/core

Package

Name
@drone-js-ext/core
View open source insights on deps.dev
Purl
pkg:npm/%40drone-js-ext/core

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.1
3.*
3.0.0
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"
    },
    {
        "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"
    },
    {
        "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": "536400306df71e064363b6792a44b6e46f2821cda56fdbbc6bb2c2558b08d974",
            "tlsh": "893161eba8e4a0089ea77498c54f0409f17af4068401ab50fd5c82919f6153c33fa8dc"
        },
        {
            "path": "package.json",
            "sha256": "eeaaf7fb2af2102c7fb0f3e5cbc141bd3d7f23ba2d8d10b53f6c0f33aa8632e7",
            "tlsh": "edd05e2099205e2368c96ee20d766a0a55b20dab05547c1437d7505c46acb3725fe27d"
        }
    ],
    "package_integrity": [
        {
            "filename": "core-99.0.1.tgz",
            "hashes": {
                "sha1": "e6e89fb4d23a3c7247635ef80de9947e81d62ea4",
                "sha512_sri": "sha512-ULkr+8j6oaBB3nG4FVAyKiVue1jVwpPhTynNNpSWw2ziHzlc0TKh+IGiwZ7DXQ67HtAygumtciUc37VuoqgV4A=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@drone-js-ext/core/MAL-2026-18276.json"