{"id":"MAL-2026-12958","summary":"Malicious code in bnpl-blocks-independent-bnpl-items (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9b068b10c6608e86812242f222c2936a85aae90776b6c71298731c16f8d7ae31)\nOn require() of this package, index.js loads _runtime.js which selects a platform-specific asset, fetches an opaque binary from one of three obfuscated Cloudflare Workers hosts (oob-worker.cf100-416.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev) assembled at runtime via string-array.join to evade static matching, writes it to /tmp or %TEMP% under a cover-story name (dotnet_diag_\u003crand\u003e.exe on Windows,.cache_\u003crand\u003e on Unix), chmods 0755, and spawns it detached via /bin/sh -c or cmd. A TTL lockfile named.analytics_state masquerades the persistence as telemetry. If HTTPS egress is blocked, _runtime.js falls back to a DNS-TXT covert channel under author-controlled subdomains (sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, net.dl.wel1.ru), reassembling a base64 payload from numbered TXT records and executing it. No hash or signature verification is performed on the fetched bytes. The README describes only a trivial abstraction class, unrelated to any of the observed network or execution behavior.\n","modified":"2026-08-05T15:51:16.955239165Z","published":"2026-08-05T14:44:26Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T14:44:26Z","sha256":"9b068b10c6608e86812242f222c2936a85aae90776b6c71298731c16f8d7ae31","source":"amazon-inspector","versions":["35.9.3"],"id":"IN-MAL-2026-015422","import_time":"2026-08-05T15:19:50.540607161Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-independent-bnpl-items/v/35.9.3"}],"affected":[{"package":{"name":"bnpl-blocks-independent-bnpl-items","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-independent-bnpl-items"},"versions":["35.9.3"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-independent-bnpl-items/MAL-2026-12958.json","indicators":{"evidence_files":[{"path":"_runtime.js","sha256":"f74965134839ef3506fe89df62fa375ea8bee3d257b8eeac349fcd2a46d058dd","tlsh":"cda1a69a16b670194bb09be4cb17441af65be6633380c294fb6ca5945f73124c372efc"}],"package_integrity":[{"hashes":{"sha1":"0b3b4f61ce87f513688866ada56e1242e81f19eb","sha512_sri":"sha512-0snaK4fEAUcJlHyGK+7lJAfj7MxUd6hI2w6b93iFbU7UHHL79EKfIpcFcjuzrvhqQSG+mFYvU2Jo90tiWWXwiQ=="},"filename":"bnpl-blocks-independent-bnpl-items-35.9.3.tgz"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}