Skip to main content
Menu
Advisories

Malicious code in internallib_v647 (npm)

GHSA-PGX6-8RCF-2QRPPublished Updated GitHubMalware

Description

Source: amazon-inspector (701b4c0d503cece80b2a7c5e7e59d1ae5b134b3b801e3ba966f177703917d244)

package.json declares the dependency internallib-helper as a plain-HTTP tarball URL at a bare internal IP: http://10.0.77.5:8000/internallib-helper-1.0.0.tgz. On npm install, npm fetches and installs whatever bytes that endpoint returns and runs any lifecycle scripts contained in the resolved tarball. The source is not the npm registry, there is no version pin, no integrity hash, and no TLS, so the fetched content is unauthenticated and mutable, and any party controlling or able to MITM 10.0.77.5:8000 controls code executed on the installing host. The shipped package source is a minimal stub, so the manifest line itself is the install-time execution vector.

---

Credit: OpenSSF (source)

Affected versions

References