contract-contract-buildernpm
Advisory published Updated
contract-contract-builder is a confirmed malicious npm package (MAL-2026-12665) that executes malicious code on install (malicious version 35.5.2). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in contract-contract-builder (npm)
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for contract-contract-builder (version 35.5.2).
If you installed it — respond
Remove contract-contract-builder from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If contract-contract-builder 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 contract-contract-builder-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.