cvelo
P2 · HighMalware

Malicious code in @coinme-security/risk-sdk-js (npm)

  • GHSA-8q2p-qwr7-vf83

Description

The package declares a `postinstall` hook (`node.phone-home.js install`) that collects the installing host's `os.hostname()`, `process.version` and `process.platform` and sends them in an HTTPS GET to the hardcoded external host `https://workinc.top/oob/o1-<token>` with a per-target identifier embedded in the URL path and the hostname passed as an `&h=` query parameter. Errors are swallowed and the request is timeout-capped, so the beacon fails silently and leaves no visible output during installation. The package `main` (`index.js`) repeats the same request with `&m=import` on `require()`, so any consumer that loads the module also discloses the same host identifiers, and then exports an empty object, providing none of the functionality the scoped security-SDK name implies. The combination of a vendor-style scope, the implausibly high version `99.0.0` chosen to win version resolution against an internal package of the same name, a no-functionality payload, and a per-target callback token on an unrelated domain is the dependency-confusion beacon pattern: successful resolution inside a private build environment is reported back to the operator of workinc.top, confirming a reachable internal namespace and host. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/78d0ba20d615fbedd73fd1d3140928492091c0df/osv/malicious/npm/@coinme-security/risk-sdk-js/MAL-2026-21011.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • @coinme-security/risk-sdk-jsnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.