cvelo
P2 · HighMalware

Malicious code in mycore-ledger-sdk (npm)

  • MAL-2026-21026

Description

Show the whole description

mycore-ledger-sdk@99.0.0 is a dependency-confusion package that poses as an internal MyCore client SDK and is published at version 99.0.0 so it outranks a same-named private package. Its postinstall script runs `node postinstall.js` on npm install, which resolves `o1-f25d3f6c71dc42b3d961409494e1e2c97e57c287.cb.workinc[.]top` and sends an HTTPS GET to `hxxps://workinc[.]top/oob/o1-f25d3f6c71dc42b3d961409494e1e2c97e57c287` with the machine's hostname, working directory, username, platform, Node.js version and detected CI system in the query string. The npm account matiaskorhonen published mycore-ledger-sdk and 1 sibling mycore-* package with the same script on 2026-12-02, after mycore-sdk. The package declares a `postinstall` lifecycle script (postinstall.js) that runs automatically on `npm install`. It collects host and environment identifiers — `os.hostname()`, `os.userInfo()` username, `process.cwd()`, platform/arch, Node version, and a set of CI-provider environment indicators — and transmits them as query parameters in an HTTPS GET to a hardcoded endpoint at `https://workinc.top/oob/<token>`, with a DNS lookup to `<token>.cb.workinc.top` as an out-of-band fallback channel. The destination is unrelated to any declared package purpose, the token is embedded in the shipped file, and the behavior is undisclosed and not opt-in. The version number 99.0.0 is implausibly high for a first-party release and is consistent with a dependency-confusion resolution attempt against an internally named package.

Text from the OSV record.

Affected

  • mycore-ledger-sdknpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.