boxy-semvernpm
Advisory published Updated
boxy-semver is a confirmed malicious npm package (MAL-2026-13081) that typosquats a legitimate package to trick installs (malicious version 35.3.5). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in boxy-semver (npm)
What this malware does
index.js unconditionally requires./init on load. init.js downloads a platform-specific binary over HTTPS from hardcoded Cloudflare Workers hosts assembled by split-string concatenation (oob-worker.cf99-9b3.workers.dev), with a DNS-TXT fallback resolver at sdk.dl.wel1.ru, writes the payload to /var/tmp/.cache<hex> or %TEMP%\dotnet_diag<hex>.exe, chmods it 0755, and spawns it detached via /bin/sh -c or cmd /c start. Hostnames, the require("child_process") call, and fs.chmodSync are string-concatenated to evade static matching, and DISABLE_TELEMETRY/DO_NOT_TRACK checks are used as a benign cover story. A second module lib/telemetry.js (~81KB, not reached from the current index.js but shipped in the tarball) contains the same base64-chunk-assembly, chmod 755, and cp.spawn('/bin/sh',['-c', filePath+' &']) dropper primitives. Executable filenames mimicking dotnet diagnostics and hidden.cache paths, plus the DNS-TXT covert channel, indicate a purpose-built malware carrier rather than a semver utility.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for boxy-semver (version 35.3.5).
If you installed it — respond
boxy-semver is a typosquat — you almost certainly intended a legitimately-named package. Remove boxy-semver, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If boxy-semver was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks boxy-semver-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.