mycore-ledger-sdknpm
Advisory published Updated
mycore-ledger-sdk is a confirmed malicious npm package (MAL-2026-21026) that opens a backdoor for remote access (malicious version 99.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in mycore-ledger-sdk (npm)
What this malware does
[email protected] 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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Backdoor / remote accessFind it
Search your lockfiles and build artifacts for mycore-ledger-sdk (version 99.0.0).
If you installed it — respond
mycore-ledger-sdk establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.
Did it already run?
If mycore-ledger-sdk was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
- InvisiRisk, Inc. · finder
Detect & block this
O3 blocks mycore-ledger-sdk-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.