{"id":"MAL-2026-10405","revision":null,"records":[{"revision":"e8b5de7bff0741a1bfda44e1e15f5487","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10405","aliases":["GHSA-8vr7-5wqc-fjwv"],"title":"Malicious code in @torbeck/heap (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b8f88862ffacb671bdaed8521274293d5ef20bafee0deb91cc38cd852daa6a7d)\n@torbeck/heap impersonates the legitimate @datastructures-js/heap package: README.md line 1 reads `# @datastructures-js/heap`, package.json sets homepage/repository/bugs to github.com/datastructures-js/heap and author to `Eyas Ranjous <eyas-ranjous@gmail.com>`, while the npm scope `@torbeck` is unrelated. The package re-exports the genuine Heap class so consumers get a working API. Appended to src/heap.js after `exports.Heap = Heap;` (around line 247) is a heavily obfuscated obfuscator.io payload (two rotated string-array RC4-style decoders, ~580 and ~700 entries, with Function.toString anti-tamper traps and console-method override checks). On `require('@torbeck/heap')` via the package's index.js main entry, the payload derives an AES key by XORing four hardcoded buffers, decrypts a hidden URL, issues an http/https.request to download a binary into os.tmpdir(), writes a PID lock and.meta.json with a sha256, chmods the file to 0755, and spawns it detached via process.execPath or `bash -c` with stdio:'ignore', windowsHide:true, and unref() — plus a re-exec wrapper that respawns the parent under a sentinel. Platform-specific branches handle win/linux/mac. There is no version pinning or signature check on the downloaded bytes, the URL is concealed by obfuscation, and the dropped binary's purpose is unrelated to a heap data-structure library. This is a typosquat carrying an install/require-time RCE dropper.\n\n## Source: ghsa-malware (343a2b607a8d688e4596c80d14e7aa9d1bb785a187aa9949b789d5cd4d01b0d9)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","state":0,"publishedAt":"2026-07-13T06:53:07+00:00","modifiedAt":"2026-08-14T15:00:56.2865619+00:00","affected":[{"ecosystem":"npm","name":"@torbeck/heap","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["4.3.14","4.3.11","4.3.10","4.3.8","4.3.12"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@torbeck/heap/v/4.3.14","https://www.npmjs.com/package/@torbeck/heap/v/4.3.11","https://www.npmjs.com/package/@torbeck/heap/v/4.3.10","https://github.com/advisories/GHSA-8vr7-5wqc-fjwv","https://www.npmjs.com/package/@torbeck/heap/v/4.3.8","https://www.npmjs.com/package/@torbeck/heap/v/4.3.12"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10405","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10405","identifiers":["MAL-2026-10405","GHSA-8vr7-5wqc-fjwv"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T01:25:39.6647132+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T01:25:39.6647132+00:00","lastSuccessAt":"2026-11-22T01:25:39.8332435+00:00","error":null,"lastVerifiedAt":"2026-11-22T01:25:39.8332445+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-1d6c61c44cf3e269b6d60ed2fe0a3aa1f7e55445c7f170f16f2fa063bbf73db3-8739c76e681f900923b900c9df0ef75cf421d39cabb54650c4b9ad19b6a76d85","complete":true,"records":430360,"lastAttemptAt":"2026-11-22T01:25:39.2446556+00:00","lastSuccessAt":"2026-11-22T01:25:35.2015713+00:00","error":null,"lastVerifiedAt":"2026-11-22T01:25:39.2446556+00:00","snapshotPublishedAt":"2026-11-22T00:34:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-60c80451a48541f3a7a619f41737b884","complete":false,"records":13927,"lastAttemptAt":"2026-11-22T01:33:20.9225703+00:00","lastSuccessAt":"2026-11-22T01:33:20.916+00:00","error":"139 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T01:33:20.916+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13729,"expectedIdentifiers":13975,"failedIdentifiers":139},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T01:25:39.6647132+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T01:25:39.6647132+00:00","lastSuccessAt":"2026-11-22T01:25:39.8342802+00:00","error":null,"lastVerifiedAt":"2026-11-22T01:25:39.8342809+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b1edd4eceb95489f963c5eaabafcc54b","complete":true,"records":13939,"lastAttemptAt":"2026-11-22T01:25:43.3832012+00:00","lastSuccessAt":"2026-11-22T00:26:00.267+00:00","error":null,"lastVerifiedAt":"2026-11-22T00:26:00.267+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13975,"expectedIdentifiers":13975,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-e5345bb505029da8292989aaa8236ee0c21dd40080e465858702ec2ecb4dcefd","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T01:25:39.5170322+00:00","lastSuccessAt":"2026-11-21T19:16:03.0413179+00:00","error":null,"lastVerifiedAt":"2026-11-22T01:25:39.5170322+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T01:25:39.3052818+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T01:25:39.3052818+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-67ea94df7f6b2100258b087b14035af283f000b6aefe39f55e9f2795f912fde8","complete":true,"records":3209,"lastAttemptAt":"2026-11-22T01:25:39.6286637+00:00","lastSuccessAt":"2026-11-21T19:16:06.9994675+00:00","error":null,"lastVerifiedAt":"2026-11-22T01:25:39.6286637+00:00","snapshotPublishedAt":"2026-11-21T18:18:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-51ee6316df1f127212a04a5d14e44bd5b8320ce3e4eef0c5252608edb6cd3602","complete":true,"records":232850,"lastAttemptAt":"2026-11-22T01:25:39.4073394+00:00","lastSuccessAt":"2026-11-21T23:27:19.9062791+00:00","error":null,"lastVerifiedAt":"2026-11-22T01:25:39.4073394+00:00","snapshotPublishedAt":"2026-11-21T23:18:21+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}