{"id":"MAL-2026-12895","summary":"Malicious code in bnpl-blocks-atom-bnpl-star-rating (npm)","details":"\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_\u003crand\u003e.exe on Windows, loader_mac /.cache_\u003crand\u003e 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.\u003cdomain\u003e and reassembling sequential N.\u003cdomain\u003e 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","modified":"2026-08-05T15:50:46.800957641Z","published":"2026-08-05T14:52:50Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T14:52:50Z","sha256":"06bdc5da391bdf16afb2eb1cc60461831dc1d7ede9fa817cc842795cb8d2ddda","source":"amazon-inspector","versions":["35.8.2"],"id":"IN-MAL-2026-015479","import_time":"2026-08-05T15:19:53.617655694Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-atom-bnpl-star-rating/v/35.8.2"}],"affected":[{"package":{"name":"bnpl-blocks-atom-bnpl-star-rating","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-atom-bnpl-star-rating"},"versions":["35.8.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-atom-bnpl-star-rating/MAL-2026-12895.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"91a19596066670188bb0ebe4c7178816f56ff66337808294fb9c65945f7312483b2efc","path":"_shim.js","sha256":"0aa3f045674b3a33368ea2798a676a57244ed2db8f8c089ea6bec25144323c75"}],"package_integrity":[{"hashes":{"sha1":"520fc572b85d87e4a547df4a20a40a73dd9f0304","sha512_sri":"sha512-irkmmGS/5u25GYa2z1WCdFOj+hY975dSC33eS17Rxiu7iOIqd6+Ne5azHsxJe8qXMVIuG3jvThCIiOpTLQtlvQ=="},"filename":"bnpl-blocks-atom-bnpl-star-rating-35.8.2.tgz"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}