Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@ecg-internal/media-util-js-libnpm

Advisory published Updated

@ecg-internal/media-util-js-lib is a confirmed malicious npm package (MAL-2026-18210) that opens a backdoor for remote access (malicious versions 0.0.1, 1.0.1, 1.1.0…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @ecg-internal/media-util-js-lib (npm)

MAL-2026-18210
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @ecg-internal/media-util-js-lib

What this malware does

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.

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.

Malicious versions

7 flagged
0.0.11.0.11.1.02.0.02.0.13.0.099.0.1

Indicators of compromise (SHA-256)

18fcf22b1f643593747aee2e705b59e2a0509e8c00d5692c8a2721b685f3d569
89468c82dc4aa9cc0a32828ee9cbec7cddb118c3ddd8185dd45d25f7915d016e
c716438d9014063b4616588b1522ba2de2f3cf4fd961212840ed6a324cced3da
cb782fe576ae269801411c40a70696cf3cd314a4ca940e258bc69e006e1953bd
d1dc5d4855766199fabef267b532986d5dc693400d916367db1a4e6b75fe2b57
31c3d10db00852004f1d974431a3db46f260a3108029a5301fc755cfbc724ba6
4906fee80eaa4e3bebfa976f85116d980ae908c5dff786d0dd2486b308ecd9a0
32be042c37e2c4ebd8edb68e47d68af04056c09e3c1d5e087f78c934f0d567e7

Detection & response playbook

Backdoor / remote access
  1. Find it

    Search your lockfiles and build artifacts for @ecg-internal/media-util-js-lib (7 malicious versions).

  2. If you installed it — respond

    @ecg-internal/media-util-js-lib establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.

  3. Did it already run?

    If @ecg-internal/media-util-js-lib was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. @ecg-internal/media-util-js-lib on npm has been identified as a malicious package (versions 0.0.1, 1.0.1, 1.1.0, 2.0.0, 2.0.1, 3.0.0, 99.0.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-021607IN-MAL-2026-021601IN-MAL-2026-021605IN-MAL-2026-021604IN-MAL-2026-021606IN-MAL-2026-021602IN-MAL-2026-021603GHSA-hcw5-m6mm-qg3q

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @ecg-internal/media-util-js-lib-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.

Explore

@ecg-internal/media-util-js-lib (npm) malicious package — MAL-2026-18210 | O3 Security