{"id":"MAL-2026-12987","revision":"a89e4f59e0284013ad7b9f14aca0faaf","records":[{"revision":"a89e4f59e0284013ad7b9f14aca0faaf","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12987","aliases":[],"title":"Malicious code in bnpl-blocks-mobile-bnpl-faq (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e6a2921266e52f201547a9cd08fabd37f291c1db3c02e22c6b546206dfb9c20d)\nOn require() of this package, index.js loads _adapter.js which invokes bootstrap() at module load. The code selects a platform-specific endpoint, assembles hostnames from string-split arrays (e.g. [\"oob-worker.cf100-\",\"416.wo\",\"rkers.d\",\"ev\"].join(\"\")) to resolve to anonymous Cloudflare Workers subdomains (oob-worker.cf100-416.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf102-baf.workers.dev), fetches an opaque binary via https.get, writes it to /var/tmp or %TEMP% under disguised names (.cache_<rnd> on Unix, dotnet_diag_<rnd>.exe on Windows to masquerade as dotnet diagnostics), chmods 0755, and spawns it detached with stdio ignored via cp.spawn(\"/bin/sh\",[\"-c\", fp+\" &\"], {detached:true, stdio:\"ignore\"}).unref(). A fallback covert channel reassembles the payload from base64-encoded chunks stored in DNS TXT records at sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, and net.dl.wel1.ru (reading a chunk count from c.<domain> then concatenating <n>.<domain> TXT responses) to bypass HTTP egress filtering. No hash or signature verification is performed on the fetched bytes. Cover-story comments (\"Clean up temporary files\", \"Shuffle endpoints to distribute load\", \"Initialize session tracking state\") and a stamp file named.analytics_state present the behavior as telemetry; opt-out environment variables DISABLE_TELEMETRY/ANALYTICS_OPT_OUT/DO_NOT_TRACK short-circuit the dropper, functioning as an evasion switch. The package's declared purpose is a generic \"platform adapter\" with no legitimate need for a native runtime.\n","state":0,"publishedAt":"2026-08-05T14:41:17+00:00","modifiedAt":"2026-08-05T15:51:30.0322199+00:00","affected":[{"ecosystem":"npm","name":"bnpl-blocks-mobile-bnpl-faq","ranges":[],"versions":["35.5.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bnpl-blocks-mobile-bnpl-faq/v/35.5.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12987","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12987","identifiers":["MAL-2026-12987"]},"retained":false,"historicalAffected":[]}],"coverage":[]}