MAL-2026-18210

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ecg-internal/media-util-js-lib/MAL-2026-18210.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18210
Aliases
  • GHSA-hcw5-m6mm-qg3q
Published
2026-10-23T02:00:22Z
Modified
2026-10-23T02:45:04Z
Summary
Malicious code in @ecg-internal/media-util-js-lib (npm)
Details

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

Source: amazon-inspector (c716438d9014063b4616588b1522ba2de2f3cf4fd961212840ed6a324cced3da)

The package publishes to the public npm registry under the scoped name @ecg-internal/media-util-js-lib, which resembles an internal namespace. It ships no real functionality — the main entry exports a Proxy stub returning no-ops for every property, described as a 'Compatibility shim.' Both package.json postinstall (node beacon.cjs) and the main module invoke fire() in beacon.cjs, which POSTs the installer's hostname (os.hostname()), install path (__dirname), current working directory (process.cwd()), Node version, and package name to the hardcoded bare-IP endpoint http://185.158.107.175:8787/_ah/dc over cleartext HTTP. The beacon fires on npm install without user action and again whenever the module is required, so any internal build system misconfigured to resolve this public artifact for an @ecg-internal/* dependency transmits identifying host and path information to the attacker-controlled endpoint. The 'build-provenance beacon' comment in the source is a cover story inconsistent with the hardcoded bare-IP destination unrelated to any legitimate publisher infrastructure.

Source: ghsa-malware (32be042c37e2c4ebd8edb68e47d68af04056c09e3c1d5e087f78c934f0d567e7)

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
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-021607",
            "import_time":  "2026-10-23T02:25:39.213390799Z",
            "modified_time":  "2026-10-23T02:01:06Z",
            "sha256":  "18fcf22b1f643593747aee2e705b59e2a0509e8c00d5692c8a2721b685f3d569",
            "source":  "amazon-inspector",
            "versions":  [
                "0.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-021601",
            "import_time":  "2026-10-23T02:25:38.84079903Z",
            "modified_time":  "2026-10-23T02:00:22Z",
            "sha256":  "89468c82dc4aa9cc0a32828ee9cbec7cddb118c3ddd8185dd45d25f7915d016e",
            "source":  "amazon-inspector",
            "versions":  [
                "99.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-021605",
            "import_time":  "2026-10-23T02:25:39.115138678Z",
            "modified_time":  "2026-10-23T02:00:52Z",
            "sha256":  "c716438d9014063b4616588b1522ba2de2f3cf4fd961212840ed6a324cced3da",
            "source":  "amazon-inspector",
            "versions":  [
                "2.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-021604",
            "import_time":  "2026-10-23T02:25:39.055532378Z",
            "modified_time":  "2026-10-23T02:00:44Z",
            "sha256":  "cb782fe576ae269801411c40a70696cf3cd314a4ca940e258bc69e006e1953bd",
            "source":  "amazon-inspector",
            "versions":  [
                "3.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-021606",
            "import_time":  "2026-10-23T02:25:39.163652495Z",
            "modified_time":  "2026-10-23T02:00:58Z",
            "sha256":  "d1dc5d4855766199fabef267b532986d5dc693400d916367db1a4e6b75fe2b57",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-021602",
            "import_time":  "2026-10-23T02:25:38.937651021Z",
            "modified_time":  "2026-10-23T02:00:29Z",
            "sha256":  "31c3d10db00852004f1d974431a3db46f260a3108029a5301fc755cfbc724ba6",
            "source":  "amazon-inspector",
            "versions":  [
                "1.1.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-021603",
            "import_time":  "2026-10-23T02:25:38.992337187Z",
            "modified_time":  "2026-10-23T02:00:37Z",
            "sha256":  "4906fee80eaa4e3bebfa976f85116d980ae908c5dff786d0dd2486b308ecd9a0",
            "source":  "amazon-inspector",
            "versions":  [
                "2.0.1"
            ]
        },
        {
            "id":  "GHSA-hcw5-m6mm-qg3q",
            "import_time":  "2026-10-23T02:36:25.380412082Z",
            "modified_time":  "2026-10-23T02:05:20Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "32be042c37e2c4ebd8edb68e47d68af04056c09e3c1d5e087f78c934f0d567e7",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / @ecg-internal/media-util-js-lib

Package

Name
@ecg-internal/media-util-js-lib
View open source insights on deps.dev
Purl
pkg:npm/%40ecg-internal/media-util-js-lib

Affected ranges

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

Affected versions

0.*
0.0.1
1.*
1.0.1
1.1.0
2.*
2.0.0
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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "beacon.cjs",
            "sha256":  "4dbf671479480d62cf9e111bb251e60db9b017dd8e863fde12bd987fc155f5de",
            "tlsh":  "c23161eba8e1a048aaa77098d54f1409b17af4078401ab54fd5c82919f7253c33fa8dc"
        },
        {
            "path":  "index.js",
            "sha256":  "a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d",
            "tlsh":  "2201d0d7225661b10b5221a4978f43c4a3b99d74027941d0d84a9226365108c463b8ee"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "media-util-js-lib-0.0.1.tgz",
            "hashes":  {
                "sha1":  "fe03c0b6ad79f7c20c77cb1f9bcd6a0cae03b83a",
                "sha512_sri":  "sha512-D2KKZw4ku9ddsxh3HnGaZ5CiS6kzDMh5u3kNMr8lJ0igJbV+SWSqNalR4JG4LCGFrbizBKs+YtEafZqtkPJTWQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ecg-internal/media-util-js-lib/MAL-2026-18210.json"