Advisory

MAL-2026-10722

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 @whalent/agent-core (npm)

Details

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

Source: amazon-inspector (d8865ae7d25a498766280337f12ceea445a92bd6a6565e668651a79dbcc152e9)
The package's main/bin entry (dist/index.cjs) implements a remote agent that opens a WebSocket to a gateway configured via WHALENT_GATEWAY / WHALENT_TOKEN / WHALENT_PLATFORM_URL and, over that channel, drives local PTY sessions via node-pty, spawns shells against process.env.SHELL, bridges loopback services on 127.0.0.1:3389 (RDP) and 127.0.0.1:5900/5901 (VNC), and runs a Python Jupyter kernel sidecar (dist/jupyter_sidecar.py) that executes arbitrary NDJSON-delivered code cells. The remote party at the gateway therefore has interactive command and code execution on the installer's host, plus a channel to reach otherwise-loopback-bound RDP/VNC. The 13.6 MB dist/index.cjs is protected with obfuscator.io-style transforms — a rotated 105,426-entry string array, _0xNNNN identifier renaming, decoder wrappers, and control-flow flattening — hiding the gateway URLs, command dispatch, and upgrade logic from review. The bundle additionally contains an npmInstall code path plus WHALENT_NPM_REGISTRY and WHALENT_CORE_ENTRY environment configuration, and the README describes the package as one that is 'replaced by remote daemon upgrades', so the running agent can be instructed by the gateway to fetch and swap in a new version of @whalent/agent-core from a configurable registry, executing whatever code that fetched artifact contains. The net effect of installing and running this package is a persistent, remote-controlled RCE channel into the installer's machine with a self-update mechanism that can pull further code from a registry the remote party can influence.

Severity

Not rated by the source.

Dates

Published
2026-07-16 18:41 UTC
Modified
2026-08-05 22:19 UTC

Affected packages and fixes

@whalent/agent-core

npm · All systems

Affected

  • Versions: 0.3.230, 0.3.231, 0.3.232, 0.3.233, 0.3.234, 0.3.235, 0.3.238, 0.3.239, 0.3.240, 0.3.241, 0.3.243, 0.3.244, 0.3.245, 0.3.247, 0.3.248, 0.3.249, 0.3.250, 0.3.251, 0.3.252, 0.3.253, 0.3.254, 0.3.255, 0.3.257, 0.3.258, 0.3.259, 0.3.261, 0.3.262, 0.3.263, 0.3.264, 0.3.265, 0.3.266, 0.3.268, 0.3.271, 0.3.273, 0.3.275, 0.3.276, 0.3.277, 0.3.278, 0.3.279, 0.3.280, 0.3.282, 0.3.288, 0.3.289, 0.3.291, 0.3.294, 0.3.295, 0.3.296, 0.3.297, 0.3.298

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