Malicious code in contract-contract-builder (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12665
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (3758ab87194c554acffc80e8cd2caf8fa8890e92854115edab08615877f22b5f) On require() of the package, _platform.js downloads a platform-specific binary from Cloudflare Workers hosts whose names are assembled at runtime from split string fragments (oob-worker.cf100-416.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf102-baf.workers.dev). The fetched bytes are written to /tmp or %TEMP% under disguising names (.cache_<hex> on POSIX, dotnet_diag_<hex>.exe on Windows), chmodded 0755, and spawned detached via cp.spawn("/bin/sh", ["-c", fp+" &"], {detached:true}) or the Windows equivalent. A DNS-TXT fallback channel under *.dl.wel1.ru reassembles a base64 payload from numbered TXT records (c.<domain>, 0.<domain>, 1.<domain>,...) when HTTPS delivery fails. The package advertises itself as a UI toolkit; the fetched binary is unrelated to that purpose, unpinned, unverified, and executed on import.
- Source published
- 5 Aug 2026 13:58:51 UTC
- Source modified
- 5 Aug 2026 14:36:14 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.