{"id":"MAL-2026-13040","summary":"Malicious code in boxy-devtools-tokens (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (902a7b42df643551615d55958546ab9115082ac8eb60ff1208cafa18b804ab3c)\nThe package's main entry (index.js) unconditionally loads _compat.js on require(). _compat.js assembles a rotating list of Cloudflare Workers hostnames (oob-worker.cf99-9b3.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf102-baf.workers.dev) from split string fragments joined via.join(''), with a DNS TXT fallback channel (c.\u003cdomain\u003e/N.\u003cdomain\u003e under *.dl.wel1.ru) used when HTTPS delivery is blocked. It downloads a platform-specific binary via https.get, writes it to a temp file with a disguised name, chmods it 0755 on Unix, and spawns it detached via spawn('/bin/sh',...) or spawn('cmd',...). An mtime stamp file suppresses re-execution, and environment variables named to resemble opt-out signals (DISABLE_TELEMETRY, ANALYTICS_OPT_OUT, DO_NOT_TRACK) gate execution. The package is advertised as a token library; the shipped code performs an out-of-band binary drop from attacker-controlled infrastructure with no relationship to that purpose.\n","modified":"2026-08-05T15:51:54.665692457Z","published":"2026-08-05T14:32:40Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T14:32:40Z","sha256":"902a7b42df643551615d55958546ab9115082ac8eb60ff1208cafa18b804ab3c","source":"amazon-inspector","versions":["35.9.9"],"id":"IN-MAL-2026-015343","import_time":"2026-08-05T15:19:45.943588481Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/boxy-devtools-tokens/v/35.9.9"}],"affected":[{"package":{"name":"boxy-devtools-tokens","ecosystem":"npm","purl":"pkg:npm/boxy-devtools-tokens"},"versions":["35.9.9"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/boxy-devtools-tokens/MAL-2026-13040.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"boxy-devtools-tokens-35.9.9.tgz","hashes":{"sha1":"d05252e94259d1e26e88d4216b34ede5efdaf79e","sha512_sri":"sha512-1Vefqs9SHsz/Gziaz7p7Lveah5r4NyqsVZtBWbLAXFAkH7VDHW6kK8RAbSZa1YvezZCZk0lHuiLnNGxgSbWgng=="}}],"evidence_files":[{"path":"_compat.js","sha256":"656c9104d43cdf1a00f429612db0156421282efa07a8acb7343edb266b08813b","tlsh":"edb1a85a019a70188bb0d7f4c62b4426f55bf6633b8192c4f79c59985f72524c3b2efc"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}