{"id":"MAL-2026-13027","summary":"Malicious code in book-collect (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (32d9f4b229afba5188036ffc4d7a5ac27d13339cd0f82920564cebbe13d089da)\nOn require('book-collect'), index.js loads _loader.js which downloads a platform-specific binary from Cloudflare Workers hosts (oob-worker.cf103-070.workers.dev, oob-worker.cf102-baf.workers.dev, oob-worker.cf99-9b3.workers.dev) with a DNS-TXT base64 fallback to sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru. Hostnames are reconstructed at runtime via split-array.join(\"\") and function names are built by concatenation ('child_'+'process', 'chmod'+'Sync') to evade static analysis. The fetched bytes are written to /var/tmp/.cache_\u003crand\u003e or %TEMP%\\dotnet_diag_\u003crand\u003e.exe (disguised as a dotnet diagnostic tool), chmod 0755, and spawned detached via '/bin/sh -c \u003cpath\u003e &' or 'cmd.exe /c start /b'. No hash or signature verification is performed. A second copy of the same drop-write-chmod-exec chain lives in lib/telemetry.js under an 'Analytics SDK' cover story, with an env-var opt-out (DISABLE_TELEMETRY / ANALYTICS_OPT_OUT) that does not change the default install behavior.\n","modified":"2026-08-05T15:51:49.319049371Z","published":"2026-08-05T14:34:47Z","database_specific":{"malicious-packages-origins":[{"versions":["35.8.2"],"id":"IN-MAL-2026-015357","import_time":"2026-08-05T15:19:46.868252392Z","modified_time":"2026-08-05T14:34:47Z","sha256":"32d9f4b229afba5188036ffc4d7a5ac27d13339cd0f82920564cebbe13d089da","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/book-collect/v/35.8.2"}],"affected":[{"package":{"name":"book-collect","ecosystem":"npm","purl":"pkg:npm/book-collect"},"versions":["35.8.2"],"database_specific":{"indicators":{"package_integrity":[{"filename":"book-collect-35.8.2.tgz","hashes":{"sha1":"8cece4efb4b6a4c6f6efc676eb14a8b8fe2f4a10","sha512_sri":"sha512-SOk7VaguIDghLdMODnPurKiO9HqCcIin04iqVkhszhQ0O0gHSafAlamQ3GRF6GVUdvFY8FoLbhqVj/GlQYzGjg=="}}],"evidence_files":[{"tlsh":"6ea1aa5a166a30184bb0dbe48717441af65be6633781c298fb5ca9d81f73124c3b2efc","path":"_loader.js","sha256":"b27cd916fb383a0ea26cf9ed27da134a4b8660d76ef54bbe99dbd91af8cf61f1"},{"sha256":"bee43c6bd6061772d5c6705bee820c75b01e737c5b8ed787f450b39df4753ee1","tlsh":"ed835055566a242186b2b378df234107ff3685272642429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/book-collect/MAL-2026-13027.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}