Skip to main content
Menu
Advisories

Malicious code in @greenlake/common-context (npm)

GHSA-P5FC-J294-QR5QPublished Updated GitHubMalware

Description

Source: amazon-inspector (5c391fc0f0acc51479adc96cdca5e63497f47dd4304eb0a871819bce9313551e)

@greenlake/common-context@99.0.1 is a stub package whose main entry exports a Proxy of no-op functions and whose only real behavior is a beacon. Both scripts.postinstall (node beacon.cjs) and require() of the main entry (index.js) POST host identifiers — package name, os.hostname(), __dirname install path, process.cwd(), and node version — to the hardcoded bare-IP plaintext endpoint 185.158.107.175/_ah/dc. The destination is not registry or publisher infrastructure. Combined with the @greenlake scope, implausibly high 99.0.1 version, generic 'Compatibility shim' description, and no-op Proxy main, the package matches the canonical dependency-confusion payload shape: a lure designed to be auto-resolved in place of an internal private name and to callback-report successful installations inside the target environment.

---

Credit: OpenSSF (source)

Affected versions

References