Advisory

MAL-2026-10717

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in @onescience/onecode (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (713bf7fce40e177608dd5145e1662b4efd3da6c1597d9a1aeb15d7715b865205)
The npm postinstall hook runs ensurePlatformBinary(), which downloads a.tgz archive from the hardcoded bare-IP URL https://218.90.133.98:4443/onecode_tgz/onecode-<ver>/onecode-linux-x64-<ver>.tgz, extracts it via tar -xzf, chmods the extracted file to 0o755, hardlinks it into bin/.onecode, and the shipped CLI launcher invokes it. The HTTPS request explicitly sets rejectUnauthorized: false, disabling TLS certificate verification, and no hash or signature check is performed on the downloaded artifact. The download destination is a bare IPv4 address on a non-standard port, not a publisher-owned domain or a recognized release host. The package name and launcher (@onescience/onecode) mirror the unrelated 'opencode' project — env-var fallbacks reference OPENCODE_BIN_PATH and bundled asset directories are named.opencode/session-seed and.opencode/oneskills — while the executable payload is retrieved from an unrelated hardcoded IP endpoint. Anyone controlling that host, or any on-path network attacker (TLS is disabled), can deliver arbitrary code that executes on every installer's machine.

Severity

Not rated by the source.

Dates

Published
2026-07-16 18:41 UTC
Modified
2026-08-07 13:49 UTC

Affected packages and fixes

@onescience/onecode

npm · All systems

Affected

  • Versions: 1.14.50-202607161038, 1.14.50-202607161139, 1.14.50-202607161642, 1.14.50-202607161710, 1.14.50-202607171833, 1.14.50-202607171841, 1.14.50-202607200911, 1.14.50-202607201741, 1.14.50-202607220956, 1.14.50-202607221649, 1.14.50-202607230908, 1.14.50-202607231111, 1.14.50-202607231344, 1.14.50-202607231354, 1.14.50-202607231515, 1.14.50-202607240916, 1.14.50-202607270920, 1.14.50-202607271456, 1.14.50-202607271545, 1.14.50-202607271808, 1.14.50-202607281527, 1.14.50-202607281613, 1.14.50-202607281737, 1.14.50-202607281758, 1.14.50-202607281814, 1.14.50-202607281838, 1.14.50-202607281928, 1.14.50-202607291013, 1.14.50-202607291116, 1.14.50-202607291417, 1.14.50-202607291705, 1.14.50-202607301600, 1.14.50-202607301758, 1.14.50-202607310907, 1.14.50-202607311449, 1.14.50-202607311732, 1.14.50-202607311756, 1.14.50-202608010827, 1.14.50-202608031514, 1.14.50-202608031812, 1.14.50-202608041043, 1.14.50-202608041416, 1.14.50-202608041614, 1.14.50-202608041653, 1.14.50-202608041724, 1.14.50-202608041802, 1.14.50-202608041828, 1.14.50-202608051418, 1.14.50-202608051826, 1.14.50-202608061459, 1.14.50-202608061753, 1.14.50-202608070922, 1.14.50-202608071143, 1.14.50-202608071618

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences