{"id":"MAL-2026-12913","summary":"Malicious code in bnpl-blocks-desktop-bnpl-article-author (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f80a4ff82e37de309fbc903891bd8ac770f0542251e9b4afc15fbd36e94ac21c)\nOn require, index.js loads _shim.js, which fetches a platform-specific native executable from hardcoded hosts reconstructed at runtime via array `.join('')` to evade string search: `oob-worker.cf102-baf.workers.dev`, `oob-worker.cf103-070.workers.dev`, `oob-worker.cf99-9b3.workers.dev`. The fetched bytes are written to /tmp or %TEMP% under cover-story names (`dotnet_diag_*.exe`, `.cache_*`), chmodded 0755, and spawned detached via `spawn('/bin/sh', ['-c', fp + ' &'], {detached:true})` or `spawn('cmd',...)`. A DNS-over-TXT covert channel provides fallback delivery: `dns.resolveTxt` is used against `c.\u003cdomain\u003e` and `\u003ci\u003e.\u003cdomain\u003e` under `sdk.dl.wel1.ru`, `ext.dl.wel1.ru`, `pkg.dl.wel1.ru`, `net.dl.wel1.ru`; TXT records are base64-decoded, concatenated into an executable buffer, written to disk and spawned. A state file `.analytics_state` is maintained. The package's declared name (\"session management\") does not justify fetching or executing native binaries, and none of the destinations are publisher-owned or version-pinned; the delivered bytes are opaque, un-hashed, and mutable at the operators' discretion.\n","modified":"2026-08-05T15:50:55.185380770Z","published":"2026-08-05T14:51:58Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["35.9.6"],"id":"IN-MAL-2026-015473","import_time":"2026-08-05T15:19:53.329449004Z","modified_time":"2026-08-05T14:51:58Z","sha256":"f80a4ff82e37de309fbc903891bd8ac770f0542251e9b4afc15fbd36e94ac21c"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-desktop-bnpl-article-author/v/35.9.6"}],"affected":[{"package":{"name":"bnpl-blocks-desktop-bnpl-article-author","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-desktop-bnpl-article-author"},"versions":["35.9.6"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"cfffd7f9260309f0d66662cfc3861515ecf116bddb42fc12e4cfc813e5786bf3","tlsh":"3da1959a026570198bb0d7f48717481afa5ae6633781c294fb5c69985fb3124c3b2efc","path":"_shim.js"}],"package_integrity":[{"filename":"bnpl-blocks-desktop-bnpl-article-author-35.9.6.tgz","hashes":{"sha1":"de3c093597795bc491338dd62f7d8b8d956b59d2","sha512_sri":"sha512-vUdlaHECQl6oEpSXD3Du0N5OgH3vcIrITaZILasOQHRBkPpgKDYeQnCSQXpxkQLtrdImBhr3okisQnM+VlAV6Q=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-desktop-bnpl-article-author/MAL-2026-12913.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}