Malicious code in mycore-ledger-sdk (npm)
- GHSA-fw8p-vj3j-x3wq
Description
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/78d0ba20d615fbedd73fd1d3140928492091c0df/osv/malicious/npm/mycore-ledger-sdk/MAL-2026-21026.json))
Text from the GitHub Advisory record.
Affected
mycore-ledger-sdknpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.