{"id":"MAL-2026-12976","summary":"Malicious code in bnpl-blocks-markdown (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (161162281afaf68fd193e2521beaf60d32c850e29cc276192497eee09646a55a)\nOn require('bnpl-blocks-markdown'), index.js loads _bootstrap.js which downloads a platform-specific binary from runtime-assembled Cloudflare Workers hosts (strings such as ['oob-worker.cf100-416.workers','.d','ev'].join('') and ['sdk.dl.','wel','1.r','u'].join('')), with a base64-over-DNS-TXT fallback channel via wel1.ru subdomains. The fetched bytes are written to /tmp or %TEMP% under disguised filenames mimicking system tools (e.g..cache_\u003chex\u003e, dotnet_diag_\u003chex\u003e.exe), chmod 0755'd, and spawned detached via /bin/sh -c or cmd. Env-var names DISABLE_TELEMETRY / ANALYTICS_OPT_OUT / DO_NOT_TRACK and filenames like analytics_state are cover-story framing; the package's advertised purpose is a markdown utility, which has no need to fetch and execute an arch-specific native binary from obfuscated hosts at import time. This is a classic import-time dropper with attacker-controlled code execution on the installer's host.\n","modified":"2026-08-05T15:51:24.751717603Z","published":"2026-08-05T14:42:16Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015407","import_time":"2026-08-05T15:19:49.700664251Z","modified_time":"2026-08-05T14:42:16Z","sha256":"161162281afaf68fd193e2521beaf60d32c850e29cc276192497eee09646a55a","source":"amazon-inspector","versions":["35.4.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bnpl-blocks-markdown/v/35.4.1"}],"affected":[{"package":{"name":"bnpl-blocks-markdown","ecosystem":"npm","purl":"pkg:npm/bnpl-blocks-markdown"},"versions":["35.4.1"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-aR32boYUkYwJ8349LJdnXa33lnxrcPmOT4l3KKBpcH4gYD7oL5AP/kJfyrkftBN5KLPh0axb5mc+qEGYerh9gA==","sha1":"51c2c3e682aff7d85aa7913e4fe7c46f7ec312fd"},"filename":"bnpl-blocks-markdown-35.4.1.tgz"}],"evidence_files":[{"path":"_bootstrap.js","sha256":"834cb602f957e60dff714d018d6d5e1ba59a20d70cc84f7c0dceda63c2ea5001","tlsh":"9cb1965a166670184bb097f4c617541af65af6633380c194f79ca9981fb3624c3b2efc"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bnpl-blocks-markdown/MAL-2026-12976.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}