@whalent/agent (npm) · Malicious Code
Affects @whalent/agentSource GCVE Database
Malicious package : remove @whalent/agent and rotate any secrets on hosts that installed it.
Data as of 6 Aug 2026, 18:46 UTC
Malicious package
Published to npm · OSV MAL-2026-10721
What to do
Remove @whalent/agent from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@whalent/agent | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The @whalent/agent npm package installs a CLI daemon that establishes a persistent WebSocket connection to a remote Whalent Memory gateway. This daemon accepts remote commands, including the ability to upgrade or restart itself by installing arbitrary package versions as directed by the gateway operator. The package includes obfuscated JavaScript code enabling remote code execution and shell access on the host machine when the daemon is explicitly started by the user. The daemon does not activate on installation or import but only when run with a specific token. Multiple specific versions of the package are affected.
References
- npmjs.com/package/@whalent/agent/v/0.3.231 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.283 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.295 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.282 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.280 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.296 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.277 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.297 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.272 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.285 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.298 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.291 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.279 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.281 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.253 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.244 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.269 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.264 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.247 (opens in a new tab)
- npmjs.com/package/@whalent/agent/v/0.3.251 (opens in a new tab)