{"id":"MAL-2026-21026","summary":"Malicious code in mycore-ledger-sdk (npm)","details":"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.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (16107a1388691730981e4621f06c4d49fe6e1d57578f0a028a524b744c33dbc0)\nThe 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/\u003ctoken\u003e`, with a DNS lookup to `\u003ctoken\u003e.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.\n","modified":"2026-12-03T08:30:05.577143755Z","published":"2026-12-02T14:18:19Z","database_specific":{"iocs":{"domains":["workinc.top","o1-f25d3f6c71dc42b3d961409494e1e2c97e57c287.cb.workinc.top"],"files":[{"digests":{"sha256":"f73f90d914e847e97449e05c9079475a6e0f10e0ca55dce39f1938a2770a19f1"},"note":"mycore-processor-sdk postinstall.js; DNS lookup + GET https://workinc.top/oob/o1-f25d3f6c... with host details.","paths":["postinstall.js"],"source":"PACKAGE_ARCHIVE"},{"digests":{"sha256":"1b040d7319ec5f211f1e2556ea21b3253874f4d0852350eb7ea4befa270244c6"},"note":"mycore-ledger-sdk postinstall.js; same code, src=mycore-ledger-sdk.","paths":["postinstall.js"],"source":"PACKAGE_ARCHIVE"},{"note":"postinstall runs `node postinstall.js`, which sends host and user details to workinc.top.","paths":["package.json"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"0b390c89023625e51bd59351937494a4d495b590b037d7942ecc62cce2deb5cc"}}],"urls":["https://workinc.top/oob/o1-f25d3f6c71dc42b3d961409494e1e2c97e57c287"]},"malicious-packages-origins":[{"versions":["99.0.0"],"id":"IN-MAL-2026-023186","import_time":"2026-12-03T06:26:17.675413878Z","modified_time":"2026-12-03T06:00:35Z","sha256":"16107a1388691730981e4621f06c4d49fe6e1d57578f0a028a524b744c33dbc0","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mycore-ledger-sdk/v/99.0.0"}],"affected":[{"package":{"name":"mycore-ledger-sdk","ecosystem":"npm","purl":"pkg:npm/mycore-ledger-sdk"},"versions":["99.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-SDoBl/Qabm0lb2Il8EchMqjkFfrkYPvpfaj1gkBF7vuGlUTk/JC8NUdlX0XOqSUcl2siZDHUQky6foNlR1G+1Q==","sha1":"19ef686680aa523cc279bb2b04ee3986e4d8cceb"},"filename":"mycore-ledger-sdk-99.0.0.tgz"}],"evidence_files":[{"sha256":"1b040d7319ec5f211f1e2556ea21b3253874f4d0852350eb7ea4befa270244c6","tlsh":"0a31fb7a42e56c3f01f217e0b136ea1597e2a0913341d6f06254f1027ff1b354ef299a","path":"postinstall.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mycore-ledger-sdk/MAL-2026-21026.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}