{"id":"MAL-2026-12895","revision":"39e0d17fa7864faeadc920cd6ce6c867","records":[{"revision":"39e0d17fa7864faeadc920cd6ce6c867","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12895","aliases":[],"title":"Malicious code in bnpl-blocks-atom-bnpl-star-rating (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (06bdc5da391bdf16afb2eb1cc60461831dc1d7ede9fa817cc842795cb8d2ddda)\nOn require of the package's main entry, index.js loads _shim.js which fetches a platform-specific binary payload (dotnet_diag_<rand>.exe on Windows, loader_mac /.cache_<rand> on POSIX) from hardcoded Cloudflare Workers hosts, writes it to a temp path, chmods 0755, and spawns it detached via child_process.spawn with unref(). When HTTPS mirrors fail, the loader falls back to a DNS TXT retrieval channel against *.dl.wel1.ru, reading a chunk count from c.<domain> and reassembling sequential N.<domain> TXT records as a base64-encoded payload. C2 hostnames and fallback resolver domains are reconstructed at runtime by.join('') of split-string arrays to defeat static searching, and execution is gated by env-var kill switches (DISABLE_TELEMETRY, ANALYTICS_OPT_OUT, DO_NOT_TRACK) and a /tmp/.analytics_state stamp file for once-per-TTL suppression. The package's declared purpose is a 'star rating abstraction layer,' which does not require fetching or executing an opaque cross-platform binary at load time. The delivered binary runs with the installer's privileges and provides full-host code execution.\n","state":0,"publishedAt":"2026-08-05T14:52:50+00:00","modifiedAt":"2026-08-05T15:50:46.8009576+00:00","affected":[{"ecosystem":"npm","name":"bnpl-blocks-atom-bnpl-star-rating","ranges":[],"versions":["35.8.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bnpl-blocks-atom-bnpl-star-rating/v/35.8.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12895","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12895","identifiers":["MAL-2026-12895"]},"retained":false,"historicalAffected":[]}],"coverage":[]}