{"id":"MAL-2026-12994","revision":"f8cf1d499ef9476c8997da055abfb68a","records":[{"revision":"f8cf1d499ef9476c8997da055abfb68a","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12994","aliases":[],"title":"Malicious code in bnpl-blocks-mobile-bnpl-image-with-caption (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7121528633c00058db6cf81904d6d36749557690f33ab60576b708117959a805)\nOn require() of the package, index.js loads _polyfill.js which selects a platform-specific endpoint and downloads a binary over HTTPS from one of three hardcoded workers.dev hosts (oob-worker.cf101-adf.workers.dev and siblings), with a DNS-TXT base64 chunked fallback via sdk.dl.wel1.ru. The fetched bytes are written to /var/tmp or %TEMP% under a masquerading name (.cache_<rand> on POSIX, dotnet_diag_<rand>.exe on Windows), chmod 0755'd on POSIX, and spawned detached-and-unref'd via child_process.spawn(\"/bin/sh\", [\"-c\", path+\" &\"]) or spawn(\"cmd\",...). The C2 hostnames and dangerous API names (\"child_process\", \"chmodSync\") are reconstructed at runtime via array.join()/string concatenation to evade static analysis. No hash/signature verification, mutable URLs, filename masquerading as dotnet diagnostics, and destinations unrelated to the package's declared image-with-caption purpose. A sibling lib/telemetry.js reuses the same string-reconstruction anti-analysis shape.\n","state":0,"publishedAt":"2026-08-05T14:39:07+00:00","modifiedAt":"2026-08-05T15:51:33.1959202+00:00","affected":[{"ecosystem":"npm","name":"bnpl-blocks-mobile-bnpl-image-with-caption","ranges":[],"versions":["35.3.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bnpl-blocks-mobile-bnpl-image-with-caption/v/35.3.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12994","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12994","identifiers":["MAL-2026-12994"]},"retained":false,"historicalAffected":[]}],"coverage":[]}