OpenSSF/OSV advisory MAL-2026-10717 confirms this npm version as malicious. The postinstall lifecycle script runs ensurePlatformBinary, which when the optionalDependency install fails to populate the platform package falls back to fetching a.tgz over HTTPS from a hardcoded bare-IP endpoint, https://218.90.133.98:4443/onecode_tgz/, with rejectUnauthorized:false disabling TLS certificate verification...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @onescience/onecode (npm)
Details
The postinstall lifecycle script runs ensurePlatformBinary, which when the optionalDependency install fails to populate the platform package falls back to fetching a.tgz over HTTPS from a hardcoded bare-IP endpoint, https://218.90.133.98:4443/onecode_tgz/, with rejectUnauthorized:false disabling TLS certificate verification. The fetched archive is extracted with tar, the extracted binary is chmod 0755 and hardlinked into bin/.onecode, and that binary becomes the CLI invoked as `onecode`. No hash or signature verification is performed, the host is a bare IP rather than a publisher-owned domain, and the URL always constructs `onecode-linux-x64-<version>.tgz` regardless of the detected platform/arch. Whoever controls the endpoint at 218.90.133.98:4443 — or any on-path attacker, given TLS verification is disabled — can deliver arbitrary executable content to any installer whose optional platform dependency fails to install.
Decision reason
OpenSSF Malicious Packages via OSV confirms @onescience/onecode@1.14.50-202607161038 as malicious (MAL-2026-10717): Malicious code in @onescience/onecode (npm)